@ -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)