yuanrf месяцев назад: 8
Родитель
Сommit
1834c7d126

+ 2 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/CarTouristGuideGroundRepository.cs

@@ -731,14 +731,14 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 string time = DateTime.Now.ToString("yyyy-MM-dd HH:mm ss");
 
                 var ids = carTouristList.Select(x1 => x1.Id);
-                _ = _sqlSugar.Updateable<Grp_CarTouristGuideGroundReservationsContent>().Where(x => x.DiId == dto.DiId).SetColumns(x => new Grp_CarTouristGuideGroundReservationsContent
+                _ = _sqlSugar.Updateable<Grp_CarTouristGuideGroundReservationsContent>().Where(x => x.DiId == dto.DiId && x.CTGGRId == dto.CTGGRId).SetColumns(x => new Grp_CarTouristGuideGroundReservationsContent
                 {
                     IsDel = 1,
                     DeleteTime = time ,
                     DeleteUserId = dto.CreateUserId,
                 }) .ExecuteCommand();
 
-                _ = _sqlSugar.Updateable<Grp_CarTouristGuideGroundReservationsContent>().Where(x => x.DiId == dto.DiId && ids.Contains(x.Id)).SetColumns(x => new Grp_CarTouristGuideGroundReservationsContent
+                _ = _sqlSugar.Updateable<Grp_CarTouristGuideGroundReservationsContent>().Where(x => x.DiId == dto.DiId && x.CTGGRId == dto.CTGGRId  &&  ids.Contains(x.Id)).SetColumns(x => new Grp_CarTouristGuideGroundReservationsContent
                 {
                     IsDel = 0,
                     DeleteTime = "",