liuhairui 1 жил өмнө
parent
commit
c4a3ea9fe2

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

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