|
@@ -103,7 +103,7 @@ public class CouponMgrController extends BaseApiController {
|
|
|
@ApiResponse(code = 200, message = "成功", response = Coupon.class)
|
|
|
)
|
|
|
public TableDataInfo listCoupon(@RequestBody CouponParam coupon) {
|
|
|
- if (CouponTypeEnum.SITE_GOODS_VERITY.equals(coupon.getType())) {
|
|
|
+ if (coupon.getIsExcludePurchaseCoupon() !=null && coupon.getIsExcludePurchaseCoupon()) {
|
|
|
// 排除采购商品已绑定的优惠劵
|
|
|
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());
|