diff --git a/app/admin/controller/Goods.php b/app/admin/controller/Goods.php index 0349f99e..47bd25e3 100644 --- a/app/admin/controller/Goods.php +++ b/app/admin/controller/Goods.php @@ -61,6 +61,9 @@ class Goods extends Controller if (isset($params['max_price']) && $params['max_price']) { $where[] = ['net_price', '<=', $params['max_price']]; } + if (!empty($params['catalog_name'])) { + $where[] = ['catalog_name', 'like', "%{$params["catalog_name"]}%"]; + } $list = Db::connect("dataCenterMysql")->table('goods_sku') ->where($where) ->order($sort, $order)