From a33a6aa9fa64969c26d6149158806519129138f2 Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Tue, 24 Oct 2023 15:10:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8E=E5=8F=B0=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=B0=83=E8=AF=95=20=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E8=A1=A8=E5=8A=A0=E7=B4=A2=E5=B0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/admin/logic/goods/GoodsLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) {