pull/1/head
wanghousheng 10 months ago
parent ca5ce3f1e5
commit b1f189fd00
  1. 3
      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)

Loading…
Cancel
Save