diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java b/hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java index 6a7948b5..8817b4c9 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java @@ -239,6 +239,14 @@ public class HighCouponController { } } + // 如果不赠送了 + if (highCoupon.getIsPresent() == false) { + List handselListByCoupon = highCouponHandselService.getHandselListByCoupon(highCoupon.getId()); + for (HighCouponHandsel handsel : handselListByCoupon) { + handsel.setStatus(0); + } + } + // 查询商户 HighMerchant merchant = highMerchantService.getMerchantById(highCoupon.getMerchantId()); if (merchant == null) {