Commit dff7e16c by 周晓航

修改 bug

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