cqp 1 月之前
父节点
当前提交
bb85c601c9
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);