From a7c08eb314ce4094130a4505395abd6d80f9a252 Mon Sep 17 00:00:00 2001 From: 199901012 Date: Tue, 6 Apr 2021 23:02:35 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bweb/controller/HighCouponController.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {