cqp 1 tháng trước cách đây
mục cha
commit
bb85c601c9
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/Service/ProductService.php

+ 1 - 0
app/Service/ProductService.php

@@ -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);