购物车相关代码优惠券选择自动取消问题处理

This commit is contained in:
Chopper 2021-10-26 09:23:25 +08:00
parent 234f355661
commit 676c432ded

View File

@ -604,11 +604,8 @@ public class CartServiceImpl implements CartService {
//如果是平台优惠券
if (memberCoupon.getIsPlatform()) {
tradeDTO.setPlatformCoupon(new MemberCouponDTO(skuPrice, memberCoupon));
//选择平台优惠券则将品台优惠券清空
tradeDTO.setStoreCoupons(new HashMap<>(16));
} else {
tradeDTO.getStoreCoupons().put(memberCoupon.getStoreId(), new MemberCouponDTO(skuPrice, memberCoupon));
}
}