Commit 8a02e2fa by yu.sun

sunyu::update::update about month card couponName must be empty

parent dc9ebd4d
...@@ -203,16 +203,6 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -203,16 +203,6 @@ public class ShoppingCartMCoffeeServiceImpl {
addCartGoods.setCouponName(couponName); addCartGoods.setCouponName(couponName);
} }
if (Objects.equals(1,addShoppingCartGoodsRequestVo.getIsMonthCard())){
CustomerInfoVo userLoginInfoDto = getCustomerInfoVo(sessionId);
couponName = getCouponNameByCode(addShoppingCartGoodsRequestVo.getMonthCardInfo().getCardCode(),userLoginInfoDto,
BusinessTypeEnum.getByType(addShoppingCartGoodsRequestVo.getMenuType()).getCode(),storeId);
addCartGoods.setCouponName(couponName);
assortmentSdkService.setShoppingCartCouponCode(partnerId, storeId, userId,
addShoppingCartGoodsRequestVo.getMonthCardInfo().getCardCode(), shoppingCartBaseService,
SaveCouponType.MON_COUPON.getCode());
}
// 如果购物车中有商品券,则当前添加的商品是特价商品时,需要提示“已选商品券,与其他优惠商品不同享,商品将恢复原价” // 如果购物车中有商品券,则当前添加的商品是特价商品时,需要提示“已选商品券,与其他优惠商品不同享,商品将恢复原价”
boolean haveCouponProduct = oldCartGoodsList.parallelStream().anyMatch(k -> k.getCartGoodsUid().startsWith(CommonsConstant.COUPON_PREFIX)); boolean haveCouponProduct = oldCartGoodsList.parallelStream().anyMatch(k -> k.getCartGoodsUid().startsWith(CommonsConstant.COUPON_PREFIX));
if (haveCouponProduct && isSpecialGoods(partnerId, storeId, userId, appId, goodsId, orderType)) { if (haveCouponProduct && isSpecialGoods(partnerId, storeId, userId, appId, goodsId, orderType)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment