|
@@ -106,7 +106,7 @@ class FyyOrderService extends Service
|
|
|
->orderBy('id','asc');
|
|
|
|
|
|
if(! empty($data['order_no'])) $model->where('order_no', 'LIKE', '%'.$data['order_no'].'%');
|
|
|
- if(! empty($data['out_order_no'])) $model->where('out_order_no', 'LIKE', '%'.$data['out_order_no'].'%');
|
|
|
+ if(! empty($data['out_order_no'])) $model->whereIn('out_order_no', $data['out_order_no']);
|
|
|
if(! empty($data['customer_name'])) $model->where('customer_name', 'LIKE', '%'.$data['customer_name'].'%');
|
|
|
if(! empty($data['product_no'])) $model->where('product_no', 'LIKE', '%'.$data['product_no'].'%');
|
|
|
if(! empty($data['product_title'])) $model->where('product_title', 'LIKE', '%'.$data['product_title'].'%');
|
|
@@ -394,4 +394,12 @@ class FyyOrderService extends Service
|
|
|
|
|
|
return [true,['shipment_code'=>array_values($shipment_code), 'show'=>array_values($return), 'post'=>$result]];
|
|
|
}
|
|
|
+
|
|
|
+ public function getOutOrderNum($data){
|
|
|
+ $order = Orders::where('del_time',0)
|
|
|
+ ->select('out_order_no')
|
|
|
+ ->get()->toArray();
|
|
|
+
|
|
|
+ return [true, array_column($order,'out_order_no')];
|
|
|
+ }
|
|
|
}
|