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