Commit 3b603b4a by 徐康

Merge branch 'feature/20200915_麦咖啡p2v3活动入机增加TENDERID字段'

parents fd7cfdf0 c33f6f73
......@@ -389,6 +389,18 @@ public class ShoppingCartMCoffeeServiceImpl {
// 当couponCode不为空时,需参与价格计算
List<ActivityCalculationDiscountRequestDto.CalculationDiscountCoupon> coupons = getCoupon(couponCode, null, cartGoodsList,shoppingCartInfoRequestVo.getFreightCouponCode());
//如果用户购物车中已有券,则将券放进购物车中
String moneyCoupon = assortmentSdkService.getShoppingCartCoupon(partnerId,
storeId, userId, shoppingCartBaseService,SaveCouponType.COUPON.getCode());
String deliveryFeeCoupon = assortmentSdkService.getShoppingCartCoupon(partnerId,storeId,
userId,shoppingCartBaseService,SaveCouponType.FREIGHT_COUPON.getCode());
if (StringUtils.isNotEmpty(deliveryFeeCoupon)){
shoppingCartGoodsResponseVo.setFreightCouponCode(deliveryFeeCoupon);
}
if (StringUtils.isNotEmpty(moneyCoupon)){
shoppingCartGoodsResponseVo.setCouponCode(moneyCoupon);
}
// 促销活动的优惠金额计算
calculationService.updateShoppingCartGoodsDiscount(partnerId, storeId, userId, appId, orderType, assortmentCustomerInfoVo.isMemberPaid(), menuType, receiveId, null,
cartGoodsList, coupons, new ArrayList<>(), shoppingCartGoodsResponseVo);
......
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