From e81c1b8c721d637f41c1deb72fdb76a4054f950c Mon Sep 17 00:00:00 2001 From: xxb Date: Tue, 14 Sep 2021 14:52:49 +0800 Subject: [PATCH] liche update for admin goods show when id=1 --- admin/controllers/items/goods/Goods.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/controllers/items/goods/Goods.php b/admin/controllers/items/goods/Goods.php index f8ebd77b..11b4cf03 100644 --- a/admin/controllers/items/goods/Goods.php +++ b/admin/controllers/items/goods/Goods.php @@ -31,7 +31,9 @@ class Goods extends HD_Controller $params = $this->input->get(); $page = $params['page'] = $params['page'] ? intval($params['page']) : 1; $size = $params['size'] = $params['size'] ? intval($params['size']) : 20; - $where = $where_1 = $where_2 = $where_3 = $autoList = array(); + $where = array('id<>1' => null); + $where_1 = $where_2 = $where_3 = array('m.id<>1' => null); + $autoList = array(); $search_type = 0;//0不连表,1联表筛选精品,2联表筛选销售,3联表筛选精品和销售 if ($params['brand_id']) { $where['brand_id'] = $params['brand_id'];