Browse Source

地接费用部分代码修改

yuanrf 8 months ago
parent
commit
8e32c72901

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

@@ -1070,7 +1070,8 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 foreach (var item in carTouristList)
                 {
 
-                    Grp_CarTouristGuideGroundReservationsContent QueryData = _sqlSugar.Queryable<Grp_CarTouristGuideGroundReservationsContent>().First(a => a.SId == item.SId && a.Id == item.Id && a.DiId == item.DiId && a.IsDel == 0);
+                    Grp_CarTouristGuideGroundReservationsContent QueryData = _sqlSugar.Queryable<Grp_CarTouristGuideGroundReservationsContent>().First(a => a.SId == item.SId && a.Id == item.Id && a.DiId == item.DiId
+                    && a.CTGGRId == dto.CTGGRId && a.IsDel == 0);
                     if (QueryData == null)
                     {
                         int id = await _sqlSugar.Insertable(item).ExecuteReturnIdentityAsync();