|
|
|
@ -172,13 +172,19 @@ public class GoodsController { |
|
|
|
|
CouponDiscountGoodsRel discountGoodsRel = couponDiscountGoodsRel.stream().filter(s -> s.getSpecsId().equals(specs.getId())).findFirst().orElse(null); |
|
|
|
|
if (discountGoodsRel == null) { |
|
|
|
|
specs.setExt1("0"); |
|
|
|
|
} else { |
|
|
|
|
specs.setExt1("1"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// todo 删除没有绑定优惠券的
|
|
|
|
|
goodsSpecs = goodsSpecs.stream().filter(s-> !s.getExt1().equals("0")).collect(Collectors.toList()); |
|
|
|
|
if (discountId != null) { |
|
|
|
|
// todo 删除没有绑定优惠券的
|
|
|
|
|
goodsSpecs = goodsSpecs.stream().filter(s-> !s.getExt1().equals("0")).collect(Collectors.toList()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (goodsSpecs.isEmpty()) { |
|
|
|
|
continue; |
|
|
|
|