|
@@ -1188,6 +1188,7 @@ class ProductService extends Service
|
|
|
if(isset($data['state'])) $model->where('state', $data['state']);
|
|
|
if(isset($data['product_attribute'])) $model->where('product_attribute', $data['product_attribute']);
|
|
|
if(! empty($data['product_category_id'])) $model->where('product_category_id', $data['product_category_id']);
|
|
|
+ if(! empty($data['product_category_array_id'])) $model->whereIn('product_category_id', $data['product_category_array_id']);
|
|
|
if(! empty($data['category'])){
|
|
|
$id = $this->getProductCateGory($data['category']);
|
|
|
$model->whereIn('product_category_id', $id);
|