Browse Source

超节损运算优化

qiuenguang 1 year ago
parent
commit
5d36702039
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,2) == '99'){
+                    if (substr($entry[$gxmcKey],0,3) == 'M04'){
                         $list[$j]= $entry[$slKey];
                         $j++;
                     }
@@ -467,7 +467,7 @@ class OrderSuperLoss extends Api
                         $material[$n]= $entry[$slKey];
                         $n++;
                     }
-                    if (substr($entry[$labelKey],0,3) == 'M04' ){
+                    if (substr($entry[$labelKey],0,3) == 'M01' ){
                         $change[$l]= $entry[$slKey];
                         $l++;
                     }