Commit ac9b3966 by 周晓航

修改 bug

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 7307f2d9
...@@ -571,7 +571,7 @@ public class CouponAdapter { ...@@ -571,7 +571,7 @@ public class CouponAdapter {
couponPromotionVO.setUnChooseCouponCode(shoppingCartInfoRequestVo.getUnChooseCouponCode()); couponPromotionVO.setUnChooseCouponCode(shoppingCartInfoRequestVo.getUnChooseCouponCode());
// 重新校验一遍 couponcodes // 重新校验一遍 couponcodes
if (CollectionUtils.isNotEmpty(couponPromotionVO.getCouponCodes())) { if (CollectionUtils.isNotEmpty(couponPromotionVO.getCouponCodes())) {
Set<String> collect = couponPromotionVO.getCouponCodes().stream().filter(s -> !"".equals(s)).collect(Collectors.toSet()); Set<String> collect = couponPromotionVO.getCouponCodes().stream().filter(s -> "".equals(s)).collect(Collectors.toSet());
if (CollectionUtils.isNotEmpty(collect)) { if (CollectionUtils.isNotEmpty(collect)) {
couponPromotionVO.setCouponCodes(new HashSet<>()); couponPromotionVO.setCouponCodes(new HashSet<>());
} }
......
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