qiuenguang 1 рік тому
батько
коміт
ebede25947
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      application/api/controller/OrderSuperLoss.php

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

@@ -445,10 +445,10 @@ class OrderSuperLoss extends Api
             ->where(function($query) {
             ->where(function($query) {
                 $query->where('b.仓库编号', '101')
                 $query->where('b.仓库编号', '101')
                     ->whereOr('b.仓库编号', 'Y101');})
                     ->whereOr('b.仓库编号', 'Y101');})
-            ->where('c.质量考核',null)
+            ->where('c.质量考核',0)
             ->field($field)
             ->field($field)
             ->find();
             ->find();
-
+        halt($data);
         if (empty($data)){
         if (empty($data)){
             $this->error('该工单不参与考核');
             $this->error('该工单不参与考核');
         }
         }