liuhairui 1 year ago
parent
commit
c4a3ea9fe2
1 changed files with 5 additions and 1 deletions
  1. 5 1
      application/api/controller/OrderSuperLoss.php

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

@@ -448,9 +448,13 @@ class OrderSuperLoss extends Api
             ->where('c.质量考核',0)
             ->where('c.质量考核',0)
             ->field($field)
             ->field($field)
             ->find();
             ->find();
-        if (empty($data)){
+//        if (empty($data)){
+//            $this->error('该工单不参与考核');
+//        }
+        if ($data['Gd_gdbh'] == ''){
             $this->error('该工单不参与考核');
             $this->error('该工单不参与考核');
         }
         }
+        
         if ($data['ls'] == 0){
         if ($data['ls'] == 0){
             $data['ls'] === 1;
             $data['ls'] === 1;
         }
         }