瀏覽代碼

引用产品资料优化

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

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

@@ -2269,7 +2269,7 @@ class WorkOrder extends Api
             }else{
                 $number = $production[$key];
             }
-            if ((int)$value[$key-1]['Gy0_ls'] === 1 && $key>=1 && (int)$value['Gy0_ls'] > 1){
+            if ((int)$processList[$key-1]['Gy0_ls'] === 1 && $key>=1 && (int)$value['Gy0_ls'] > 1){
                 $number = $number/(int)$value['Gy0_ls'];
             }
             array_push($production,ceil($number-$wastage));