From 41b80452a0a3d3c1cef32c99711d111a3e0c181f Mon Sep 17 00:00:00 2001 From: "Stormeye.Wu" Date: Fri, 2 Nov 2018 17:00:48 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=85=8D=E8=B4=B9=E5=88=B8=E6=A0=B8=E9=94=80?= =?UTF-8?q?=E4=B8=8D=E5=8F=91=E6=A8=A1=E6=9D=BF=E6=B6=88=E6=81=AF][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxCouponOrderServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java index 51fd0a411..0af8b15b9 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java @@ -412,6 +412,10 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { logger.error("找不到券信息"); throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); } + if(coupon.getSalePrice().equals(0)) { + logger.info("免费券不发模板消息!"); + return; + } // 3. merchant info WxMerchant merchant = wxMerchantMapper.selectByPrimaryKey(bUser.getMerchantId()); if (merchant == null) {