From 3353d52a62c7bed1ab48eda189c7ed1c169242e7 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Tue, 19 Mar 2024 11:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/dao/store/product/SpuDao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/dao/store/product/SpuDao.php b/app/common/dao/store/product/SpuDao.php index 6f967d03..d56c1bf7 100644 --- a/app/common/dao/store/product/SpuDao.php +++ b/app/common/dao/store/product/SpuDao.php @@ -77,7 +77,7 @@ class SpuDao extends BaseDao $merIds = Merchant::whereIn('wholesale', $saleType)->column('mer_id'); $query->whereIn('P.mer_id', $merIds); if ($where['sale_type'] == Enum::SALE_TYPE_WHOLESALE) { - $query->join('StoreProductAttrValue PAV','S.product_id = PAV.product_id', 'left')->where('PAV.wholesale_price', '>', 0); + $query->where('P.wholesale_price', '>', 0); } }) ->when(isset($where['product_ids']) && $where['product_ids'] !== '',function($query)use($where){