Browse Source

团费报表-老OA数据clientNum 0处理

jiangjc 10 months ago
parent
commit
00ecef74ac
1 changed files with 2 additions and 1 deletions
  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;