|
@@ -106,7 +106,13 @@ 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->whereIn('out_order_no', $data['out_order_no']);
|
|
|
+ if(! empty($data['out_order_no'])) {
|
|
|
+ if(! is_array($data['out_order_no'])) {
|
|
|
+ $model->where('out_order_no', 'LIKE', '%'.$data['out_order_no'].'%');
|
|
|
+ }else{
|
|
|
+ $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'].'%');
|