Commit 1ec451cd by 徐康

为空不操作

parent ae96c036
...@@ -659,10 +659,6 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -659,10 +659,6 @@ 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));
...@@ -672,7 +668,7 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -672,7 +668,7 @@ public class ShoppingCartMCoffeeServiceImpl {
// check购物车中所有商品 // check购物车中所有商品
List<CartGoods> temList = new ArrayList<>(); List<CartGoods> temList = new ArrayList<>();
for (CartGoods goods : cartGoodsList) { for (CartGoods goods : cartGoodsList) {
if(goods.getMonthCardInfo() != null) { if(shoppingCartInfoRequestVo.getIsUseMonthCard() != null && goods.getMonthCardInfo() != null) {
goods.getMonthCardInfo().setIsUseMonthCard(shoppingCartInfoRequestVo.getIsUseMonthCard()); goods.getMonthCardInfo().setIsUseMonthCard(shoppingCartInfoRequestVo.getIsUseMonthCard());
} }
if (StringUtils.equals(goods.getSkuId(),"9999")){ if (StringUtils.equals(goods.getSkuId(),"9999")){
......
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