Browse Source

超节损运算优化

qiuenguang 1 year ago
parent
commit
3389abb6c7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/OrderSuperLoss.php

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

@@ -459,7 +459,7 @@ class OrderSuperLoss extends Api
                 $gxmcKey = "fp_gxmc" . $i;
                 $slKey = "fp_sl" . $i;
                 if (!empty($entry[$labelKey])) {
-                    if (substr($entry[$gxmcKey],0,3) == 'M04'){
+                    if (substr($entry[$labelKey],0,3) == 'M04'){
                         $list[$j]= $entry[$slKey];
                         $j++;
                     }
@@ -508,7 +508,7 @@ class OrderSuperLoss extends Api
                     for ($i = 1; $i <= 13; $i++) {
                         $gxmcKey = "fp_gxmc" . $i;
                         $slKey = "fp_sl" . $i;
-                        if ((int)substr($entry[$gxmcKey],0,2) == $item['Gy0_gxh']){
+                        if ((int)substr($entry[$gxmcKey],0,2) == $item['Gy0_gxh'] &&  (int)substr($entry[$gxmcKey],0,2) !== 99){
                             $gy_data[$k]['waste_quality'] += $entry[$slKey];
 
                         }