yuanrf il y a 8 mois
Parent
commit
659fd4963a
1 fichiers modifiés avec 4 ajouts et 11 suppressions
  1. 4 11
      OASystem/OASystem.Api/Controllers/FinancialController.cs

+ 4 - 11
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -4235,7 +4235,9 @@ Group by PriceType ", dto.diId);
                 }
 
                 _sqlSugar.BeginTran();
-                
+
+                _sqlSugar.Updateable<Fin_GroupExtraCost>(fge).ExecuteCommand();
+
                 if (isSaveCollectionStatement)
                 {
                     //同步修改收款账单
@@ -4254,16 +4256,7 @@ Group by PriceType ", dto.diId);
             }
 
             _sqlSugar.CommitTran();
-            var count = _sqlSugar.Updateable<Fin_GroupExtraCost>(fge).ExecuteCommand();
-            if (count > 0)
-            {
-                
-                jw = JsonView(true, "操作成功!");
-            }
-            else
-            {
-                jw.Msg = "操作失败!";
-            }
+            jw = JsonView(true, "操作成功!");
 
             return Ok(jw);
         }