feat(CateLists): 更新商品分类列表搜索逻辑,移除库存筛选条件,优化搜索性能

This commit is contained in:
mkm 2024-08-07 00:30:39 +08:00
parent 86de33cd04
commit 780248aff4

View File

@ -46,7 +46,7 @@ class CateLists extends BaseAdminDataLists implements ListsSearchInterface
{
$level = Request()->get('level', 1);
$pid = $this->request->get('pid',0);
$this->searchWhere[] = ['stock', '>', 0];
// $this->searchWhere[] = ['stock', '>', 0];
$this->searchWhere[] = ['status', '=', 1];
if($pid && $level ==2){
$this->searchWhere[] = ['top_cate_id','=',$pid];