liuhairui 1 год назад
Родитель
Сommit
c4a3ea9fe2
1 измененных файлов с 5 добавлено и 1 удалено
  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)
             ->field($field)
             ->find();
-        if (empty($data)){
+//        if (empty($data)){
+//            $this->error('该工单不参与考核');
+//        }
+        if ($data['Gd_gdbh'] == ''){
             $this->error('该工单不参与考核');
         }
+        
         if ($data['ls'] == 0){
             $data['ls'] === 1;
         }