Commit ae96c036 by 徐康

字段默认值

parent 17769e14
...@@ -70,7 +70,7 @@ public class ShoppingCartInfoRequestVo extends BaseRequestVo { ...@@ -70,7 +70,7 @@ public class ShoppingCartInfoRequestVo extends BaseRequestVo {
* 1 是 * 1 是
* 0 否 * 0 否
*/ */
private int isUseMonthCard; private Integer isUseMonthCard = 1;
/** /**
* 优惠券对应的活动号 * 优惠券对应的活动号
*/ */
......
...@@ -659,6 +659,10 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -659,6 +659,10 @@ public class ShoppingCartMCoffeeServiceImpl {
String receiveId = shoppingCartInfoRequestVo.getReceiveId(); String receiveId = shoppingCartInfoRequestVo.getReceiveId();
String buyMonthlyCard = shoppingCartInfoRequestVo.getBuyMonthlyCard(); String buyMonthlyCard = shoppingCartInfoRequestVo.getBuyMonthlyCard();
if(shoppingCartInfoRequestVo.getIsUseMonthCard() == null) {
shoppingCartInfoRequestVo.setIsUseMonthCard(1);
}
// 获取购物车商品 // 获取购物车商品
List<CartGoods> cartGoodsList = assortmentSdkService.getShoppingCart(partnerId, storeId, userId, sessionId, "", shoppingCartBaseService); List<CartGoods> cartGoodsList = assortmentSdkService.getShoppingCart(partnerId, storeId, userId, sessionId, "", shoppingCartBaseService);
log.info("cartGoodsList: {}",JSONObject.toJSONString(cartGoodsList)); log.info("cartGoodsList: {}",JSONObject.toJSONString(cartGoodsList));
......
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