作者 lyh

gx

@@ -33,6 +33,9 @@ class ProductController extends BaseController @@ -33,6 +33,9 @@ class ProductController extends BaseController
33 if(isset($this->map['title']) && !empty($this->map['title'])){ 33 if(isset($this->map['title']) && !empty($this->map['title'])){
34 $this->map['title'] = ['like','%'.$this->map['title'].'%']; 34 $this->map['title'] = ['like','%'.$this->map['title'].'%'];
35 } 35 }
  36 + if(isset($this->map['category_id']) && !empty($this->map['category_id'])){
  37 + $this->map['category_id'] = ['like','%'.$this->map['category_id'].'%'];
  38 + }
36 $this->map['project_id'] = $this->user['project_id']; 39 $this->map['project_id'] = $this->user['project_id'];
37 $filed = ['id', 'project_id', 'title', 'sort' ,'thumb', 'product_type' , 'route' ,'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at']; 40 $filed = ['id', 'project_id', 'title', 'sort' ,'thumb', 'product_type' , 'route' ,'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at'];
38 $lists = $product->lists($this->map,$this->page,$this->row,$this->order,$filed); 41 $lists = $product->lists($this->map,$this->page,$this->row,$this->order,$filed);