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){