|
...
|
...
|
@@ -115,9 +115,7 @@ class ProductController extends BaseController |
|
|
|
$str[] = $this->map['category_id'];
|
|
|
|
$this->getAllSub($this->map['category_id'],$str);
|
|
|
|
$query->where(function ($subQuery) use ($str) {
|
|
|
|
foreach ($str as $v) {
|
|
|
|
$subQuery->orWhereRaw("FIND_IN_SET(?, category_id) > 0", [$v]);
|
|
|
|
}
|
|
|
|
$subQuery->orWhereRaw("FIND_IN_SET(?, category_id) > 0", $str);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
if(isset($this->map['title']) && !empty($this->map['title'])){
|
...
|
...
|
|