瀏覽代碼

Merge branch 'develop' of http://132.232.92.186:3000/XinXiBu/OA2023 into develop

leiy 1 年之前
父節點
當前提交
2029b88a84
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      OASystem/OASystem.Api/Controllers/StatisticsController.cs

+ 2 - 1
OASystem/OASystem.Api/Controllers/StatisticsController.cs

@@ -636,7 +636,8 @@ namespace OASystem.API.Controllers
                     {
                         string clientPinYinName = "";
                         decimal unitCost = 0.00M;
-                        unitCost = (item.PayMoney / item.ClientNum).ConvertToDecimal1();
+                        int cNum = item.ClientNum == 0 ? 1 : item.ClientNum;
+                        unitCost = (item.PayMoney / cNum).ConvertToDecimal1();
 
                         Regex r = new Regex("[0-9]");
                         string name1 = item.ClientName;