Browse Source

新增商品加入优惠券关联业务修改

multiwx
dy-hu 10 months ago
parent
commit
2421624937
  1. 2
      cereshop-business/src/main/java/com/shop/cereshop/business/service/product/impl/CereShopProductServiceImpl.java

2
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<CereShopCoupon> coupons=cereShopCouponService.findAllByShopId(cereShopProduct.getShopId());
List<CereShopCoupon> coupons=cereShopCouponService.findAllByShopId(user.getBusinessId());
if(!EmptyUtils.isEmpty(coupons)){
//如果有,将新增的商品插入到优惠券商品明细表中
List<CereShopCouponDetail> details = coupons.stream().map(coupon -> {

Loading…
Cancel
Save