Commit 4fe34404 by 孙昱

sunyu::update::listcartgoods接口券信息传空,则更新购物车内券信息为空

parent 13966191
...@@ -649,20 +649,20 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -649,20 +649,20 @@ public class ShoppingCartMCoffeeServiceImpl {
* 如果couponCode不为空,则设置到缓存里 * 如果couponCode不为空,则设置到缓存里
*/ */
if(StringUtils.isEmpty(couponCode)) { if(StringUtils.isEmpty(couponCode)) {
couponCode = assortmentSdkService.getShoppingCartCoupon(partnerId, storeId, userId, shoppingCartBaseService, SaveCouponType.COUPON.getCode()); // couponCode = assortmentSdkService.getShoppingCartCoupon(partnerId, storeId, userId, shoppingCartBaseService, SaveCouponType.COUPON.getCode());
} else { // } else {
if("remove".equals(couponCode)) { // if("remove".equals(couponCode)) {
couponCode = ""; // couponCode = "";
} // }
assortmentSdkService.setShoppingCartCouponCode(partnerId, storeId, userId, couponCode, shoppingCartBaseService, SaveCouponType.COUPON.getCode()); assortmentSdkService.setShoppingCartCouponCode(partnerId, storeId, userId, couponCode, shoppingCartBaseService, SaveCouponType.COUPON.getCode());
} }
if(StringUtils.isEmpty(freightCouponCode)) { if(StringUtils.isEmpty(freightCouponCode)) {
freightCouponCode = assortmentSdkService.getShoppingCartCoupon(partnerId, storeId, userId, shoppingCartBaseService, SaveCouponType.FREIGHT_COUPON.getCode()); // freightCouponCode = assortmentSdkService.getShoppingCartCoupon(partnerId, storeId, userId, shoppingCartBaseService, SaveCouponType.FREIGHT_COUPON.getCode());
} else { // } else {
if("remove".equals(freightCouponCode)) { // if("remove".equals(freightCouponCode)) {
freightCouponCode = ""; // freightCouponCode = "";
} // }
assortmentSdkService.setShoppingCartCouponCode(partnerId, storeId, userId, freightCouponCode, shoppingCartBaseService, SaveCouponType.FREIGHT_COUPON.getCode()); assortmentSdkService.setShoppingCartCouponCode(partnerId, storeId, userId, freightCouponCode, shoppingCartBaseService, SaveCouponType.FREIGHT_COUPON.getCode());
} }
......
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