Commit d4ec6a49 by 周晓航

重新校验一遍 参数

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 46cb98b9
...@@ -571,7 +571,7 @@ public class CouponAdapter { ...@@ -571,7 +571,7 @@ public class CouponAdapter {
// 重新校验一遍 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.isEmpty(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