|
@@ -107,6 +107,7 @@ public class CouponMgrController extends BaseApiController {
|
|
// 排除采购商品已绑定的优惠劵
|
|
// 排除采购商品已绑定的优惠劵
|
|
List<Goods> goodsList = goodsService.list(new LambdaQueryWrapper<Goods>().eq(Goods::getType, 3));
|
|
List<Goods> goodsList = goodsService.list(new LambdaQueryWrapper<Goods>().eq(Goods::getType, 3));
|
|
List<Long> couponIdList = goodsList.stream().map(Goods::getRefId).map(Long::new).collect(Collectors.toList());
|
|
List<Long> couponIdList = goodsList.stream().map(Goods::getRefId).map(Long::new).collect(Collectors.toList());
|
|
|
|
+ couponIdList.removeIf(c -> c.equals(Long.valueOf(coupon.getCouponId())));
|
|
coupon.setExcludeCouponIds(couponIdList);
|
|
coupon.setExcludeCouponIds(couponIdList);
|
|
}
|
|
}
|
|
List<Coupon> list = new ArrayList<Coupon>();
|
|
List<Coupon> list = new ArrayList<Coupon>();
|