Merge pull request 'feat(CateLists): 更新商品分类列表搜索逻辑,移除库存筛选条件,优化搜索性能' (#109) from dev into main

Reviewed-on: #109
This commit is contained in:
mkm 2024-08-07 00:30:59 +08:00
commit ce9fb3da95

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];