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