leiy 9 months ago
parent
commit
181753fff3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      OASystem/OASystem.Api/Controllers/FinancialController.cs

+ 3 - 1
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -2734,9 +2734,10 @@ namespace OASystem.API.Controllers
                                            .SetColumns(it => it.IsPay == 1)
                                            .Where(it => otherTypeCcpIds.Contains(it.Id))
                                            .ExecuteCommand();
+                    changeStatus = true;
                 }
 
-                if (hotelTyprCcpIds.Count > 1) //酒店费用子项逻辑付款,酒店子项费用全部付完款,c表ispay=1
+                if (hotelTyprCcpIds.Count > 0) //酒店费用子项逻辑付款,酒店子项费用全部付完款,c表ispay=1
                 {
                     if (hotelSubIds.Count > 0)
                     {
@@ -2745,6 +2746,7 @@ namespace OASystem.API.Controllers
                                                    .SetColumns(it => it.IsPay == 1)
                                                    .Where(it => hotelSubIds.Contains(it.Id))
                                                    .ExecuteCommand();
+                        changeStatus = true;
                         //酒店子项是否全部付完款
                         List<int> hrIds = _sqlSugar.Queryable<Grp_HotelReservationsContent>().Where(it => it.IsDel == 0 && hotelSubIds.Contains(it.Id)).Select(it => it.HrId).Distinct().ToList();
                         if (hrIds.Count > 0 )