瀏覽代碼

员工超节损优化

qiuenguang 1 年之前
父節點
當前提交
fce318477a
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      application/api/controller/OrderSuperLoss.php

+ 5 - 0
application/api/controller/OrderSuperLoss.php

@@ -1396,6 +1396,11 @@ class OrderSuperLoss extends Api
             }
         }
         $res['日期'] = $params['date'];
+        $res['yinshuaA'] = number_format(array_sum($res['印刷车间']['A班']),2);
+        $res['yinshuaB'] = number_format(array_sum($res['印刷车间']['B班']),2);
+        $res['yinhouA'] = number_format(array_sum($res['印后车间']['A班']),2);
+        $res['yinhouB'] = number_format(array_sum($res['印后车间']['B班']),2);
+        $res['total'] = number_format(floatval($res['yinshuaA'])+floatval($res['yinshuaB'])+floatval($res['yinhouA'])+floatval($res['yinhouB']),2);
         $this->success('成功',$res);
     }
 }