feat: 后台商品列表调试 店铺表加索尼

master
yin5th 2023-10-24 15:10:17 +08:00
parent ac16a06d7f
commit a33a6aa9fa
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class GoodsLogic extends Logic
->page($get['page'], $get['limit'])
->order('g.create_time', 'desc')
->select();
$count = Goods::alias('g')->leftJoin('shop s', 's.id = g.shop_id')->where($where)->count();
$count = Goods::alias('g')->where($where)->count();
foreach($lists as &$item) {
$item['price'] = $item['spec_type'] == 1 ? $item["min_price"] : $item["min_price"] . " ~ " . $item["max_price"];
switch($item['shop_type']) {