From 2421624937605ad0df4584ac30bba84ee247168c Mon Sep 17 00:00:00 2001 From: dy-hu Date: Mon, 24 Jun 2024 15:05:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E4=BC=98=E6=83=A0=E5=88=B8=E5=85=B3=E8=81=94=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/service/product/impl/CereShopProductServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cereshop-business/src/main/java/com/shop/cereshop/business/service/product/impl/CereShopProductServiceImpl.java b/cereshop-business/src/main/java/com/shop/cereshop/business/service/product/impl/CereShopProductServiceImpl.java index 8581635..e5e6838 100644 --- a/cereshop-business/src/main/java/com/shop/cereshop/business/service/product/impl/CereShopProductServiceImpl.java +++ b/cereshop-business/src/main/java/com/shop/cereshop/business/service/product/impl/CereShopProductServiceImpl.java @@ -210,7 +210,7 @@ public class CereShopProductServiceImpl implements CereShopProductService { }); log.info(new Gson().toJson(map)); //查询当前是否有全部商品且进行中状态的优惠券 - List coupons=cereShopCouponService.findAllByShopId(cereShopProduct.getShopId()); + List coupons=cereShopCouponService.findAllByShopId(user.getBusinessId()); if(!EmptyUtils.isEmpty(coupons)){ //如果有,将新增的商品插入到优惠券商品明细表中 List details = coupons.stream().map(coupon -> {