Commit 17769e14 by 徐康

是否使用月享卡

parent 7752ea7d
......@@ -64,6 +64,13 @@ public class ShoppingCartInfoRequestVo extends BaseRequestVo {
* 优惠券code列表
*/
private List<couponCode> couponCodes;
/**
* 是否使用月享卡2.0
* 1 是
* 0 否
*/
private int isUseMonthCard;
/**
* 优惠券对应的活动号
*/
......
......@@ -668,6 +668,9 @@ public class ShoppingCartMCoffeeServiceImpl {
// check购物车中所有商品
List<CartGoods> temList = new ArrayList<>();
for (CartGoods goods : cartGoodsList) {
if(goods.getMonthCardInfo() != null) {
goods.getMonthCardInfo().setIsUseMonthCard(shoppingCartInfoRequestVo.getIsUseMonthCard());
}
if (StringUtils.equals(goods.getSkuId(),"9999")){
monthCardProduct = goods;
continue;
......
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