diff --git a/app/api/lists/goods/GoodsLists.php b/app/api/lists/goods/GoodsLists.php index 46f883c..ba3f2d5 100644 --- a/app/api/lists/goods/GoodsLists.php +++ b/app/api/lists/goods/GoodsLists.php @@ -34,7 +34,7 @@ class GoodsLists extends BaseAdminDataLists implements ListsSearchInterface if($name && preg_match('/[\x{4e00}-\x{9fff}]+/u', $name)==1){ $where['%like%']=['name']; }else{ - $where['=']=['code']; + $where['=']=['code','class']; } return $where; } @@ -85,6 +85,7 @@ class GoodsLists extends BaseAdminDataLists implements ListsSearchInterface }else{ $where[]=['class','=',$class_all]; } + } if(!empty($order_param)){ if($order_param == 'asc'){