|
@@ -641,6 +641,11 @@ class ProductService extends Service
|
|
->orderby('product_attribute', 'desc')
|
|
->orderby('product_attribute', 'desc')
|
|
->orderby('id', 'desc');
|
|
->orderby('id', 'desc');
|
|
|
|
|
|
|
|
+ if(! empty($data['title_t'])) {
|
|
|
|
+ $model->where('title', 'LIKE', '%'.$data['title_t'].'%')
|
|
|
|
+ ->orWhere('code', 'LIKE', '%'.$data['title_t'].'%')
|
|
|
|
+ ->orWhere('size', 'LIKE', '%'.$data['title_t'].'%');
|
|
|
|
+ }
|
|
if(! empty($data['title'])) $model->where('title', 'LIKE', '%'.$data['title'].'%');
|
|
if(! empty($data['title'])) $model->where('title', 'LIKE', '%'.$data['title'].'%');
|
|
if(isset($data['state'])) $model->where('state', $data['state']);
|
|
if(isset($data['state'])) $model->where('state', $data['state']);
|
|
if(isset($data['product_attribute'])) $model->where('product_attribute', $data['product_attribute']);
|
|
if(isset($data['product_attribute'])) $model->where('product_attribute', $data['product_attribute']);
|