修改查询逻辑

This commit is contained in:
liu 2024-06-17 11:52:13 +08:00
parent 2a9887e632
commit 55c4d35849

View File

@ -46,6 +46,7 @@ class CateLists extends BaseAdminDataLists implements ListsSearchInterface
$level = Request()->get('level', 1);
$this->searchWhere[] = ['level', '=', $level];
$this->searchWhere[] = ['count', '>', 0];
$this->searchWhere[] = ['delete_time', '=', null];
$cate_arr = Db::name('store_product_cate')->where($this->searchWhere)->column('cate_id');
$lists = [];
if ($cate_arr) {