diff --git a/server/app/admin/logic/goods/GoodsLogic.php b/server/app/admin/logic/goods/GoodsLogic.php index 5d9d103e..d7c2115e 100644 --- a/server/app/admin/logic/goods/GoodsLogic.php +++ b/server/app/admin/logic/goods/GoodsLogic.php @@ -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']) {