Commit 6ac9fe0c by 徐康

批量加车报错修改

parent a5768aaa
......@@ -2089,21 +2089,21 @@ public class ShoppingCartMCoffeeServiceImpl {
}
if (CollectionUtils.isNotEmpty(notFoundSpu)){
toastMsg = toastMsg.concat(CART_PRODUCT_NOT_FOUND.replace("$spuName",StringUtils.join(notFoundSpu,",")));
toastMsgMap.put(CART_PRODUCT_NOT_FOUND, invalidSpu);
toastMsgMap.put(CART_PRODUCT_NOT_FOUND, notFoundSpu);
}
if (CollectionUtils.isNotEmpty(changePriceSpu)){
toastMsg = toastMsg.concat(CART_PRODUCT_PRICE_CHANGE.replace("$spuName",StringUtils.join(changePriceSpu,",")));
toastMsgMap.put(CART_PRODUCT_PRICE_CHANGE, invalidSpu);
toastMsgMap.put(CART_PRODUCT_PRICE_CHANGE, changePriceSpu);
}
if (CollectionUtils.isNotEmpty(numErrorSpu)){
toastMsg = toastMsg.concat("您选择的【$spuName】不满足购买条件".replace("$spuName",StringUtils.join(numErrorSpu,",")));
toastMsgMap.put("您选择的【$spuName】不满足购买条件", invalidSpu);
toastMsgMap.put("您选择的【$spuName】不满足购买条件", numErrorSpu);
}
if (CollectionUtils.isNotEmpty(disableCoupon)){
toastMsg = toastMsg.concat(COUPON_IS_DISABLE.replace("$couponName",StringUtils.join(disableCoupon,",")));
toastMsgMap.put(COUPON_IS_DISABLE, invalidSpu);
toastMsgMap.put(COUPON_IS_DISABLE, disableCoupon);
}
checkCartRequest.getShoppingCartGoodsResponseVo().setToastMsg(toastMsg);
......
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