修改分类搜索限制

This commit is contained in:
liu 2024-06-19 18:44:45 +08:00
parent 8fe86d5bd9
commit 8e957d7d86

View File

@ -98,6 +98,8 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface, L
if ($arr) {
$arr2 = Cate::where('pid', 'in', $arr)->column('id');
$this->searchWhere[] = ['cate_id', 'in', array_merge($arr, $arr2)];
}else{
$this->searchWhere[] = ['cate_id','=',$class_all];
}
}