From 6b67e40bf2b86b7d0133f768c989623dcebe5c6b Mon Sep 17 00:00:00 2001 From: hupeng Date: Fri, 22 Mar 2019 17:39:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=A3=E4=BC=A0=E9=A1=B5][=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D]:=E5=BD=93=E5=8D=A1=E5=88=B8=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E4=BD=9C=E5=BA=9F=E5=90=8E=E6=88=96=E8=80=85=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E5=86=8D=E6=8A=9B=E5=87=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxCampaignServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java index 39662754d..9ff9f74a7 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java @@ -184,10 +184,10 @@ public class WxCampaignServiceImpl implements WxCampaignService { throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); } if (wxCoupon.getStatus() != EnumCouponStatus.COUPON_STATUS_THROW_IN.getCode()) { - throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF); - } + return; + } if (wxCoupon.getValidEndDate() != null && wxCoupon.getValidEndDate().before(new Date())) { - throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF); + return; } // 已有的couponChannel, 更新