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