|
|
@ -61,6 +61,9 @@ class Goods extends Controller |
|
|
|
if (isset($params['max_price']) && $params['max_price']) { |
|
|
|
if (isset($params['max_price']) && $params['max_price']) { |
|
|
|
$where[] = ['net_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') |
|
|
|
$list = Db::connect("dataCenterMysql")->table('goods_sku') |
|
|
|
->where($where) |
|
|
|
->where($where) |
|
|
|
->order($sort, $order) |
|
|
|
->order($sort, $order) |
|
|
|