Browse Source

员工超节损优化

qiuenguang 11 months ago
parent
commit
73986f80ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/OrderSuperLoss.php

+ 1 - 1
application/api/controller/OrderSuperLoss.php

@@ -1198,7 +1198,7 @@ class OrderSuperLoss extends Api
         foreach ($data as $item) {
             $cj = $item['cj'];
             $bh = $item['bh'];
-            $je = intval($item['je']); // 保留为整数格式
+            $je = round($item['je'],2); // 保留为整数格式
 
             // 如果 cj 不存在于结果数组中,则初始化
             if (!isset($result[$cj])) {