cqpCow пре 1 година
родитељ
комит
903b9c35d0
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/Service/Box/BoxService.php

+ 2 - 2
app/Service/Box/BoxService.php

@@ -725,10 +725,10 @@ class BoxService extends Service
     }
 
     public function boxFhBzList($data){
+        if(empty($data['shipment_order_no'])) return [false, '请输入发货单号'];
         $model = DB::table('box_detail')->where('del_time',0)
+            ->whereIn('shipment_order_no','LIKE', '%'.$data['shipment_order_no'].'%')
             ->select('order_no','crt_time');
-        if(! empty($data['out_order_no'])) $model->whereIn('out_order_no',$data['out_order_no']);
-        if(! empty($data['shipment_order_no'])) $model->whereIn('shipment_order_no',$data['shipment_order_no']);
 
         $return = [];
         $result = $model->get()->toArray();