Kaynağa Gözat

修改不参与的判断

zw 1 yıl önce
ebeveyn
işleme
9c0b606e81

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

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