From a4fa60a306d20609b99f06ca4866f5e405998e79 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Fri, 18 Jan 2019 14:11:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=88=B8][=E4=BF=AE=E6=94=B9]:=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E7=B1=BB=E5=9E=8B=E6=A3=80=E6=9F=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iformall/service/impl/WxCouponServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java index 654b8fe79..0a9bd8312 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java @@ -104,10 +104,10 @@ public class WxCouponServiceImpl implements WxCouponService { } if (record.getValidType() != null) { - if (record.getValidType().equals(EnumCouponValidType.DAYS_AFTER_RECEIVING)) { + if (record.getValidType().equals(EnumCouponValidType.DAYS_AFTER_RECEIVING.getCode())) { record.setValidStartDate(null); record.setValidEndDate(null); - } else if (record.getValidType().equals(EnumCouponValidType.BETWEEN_TWO_TIME)) { + } else if (record.getValidType().equals(EnumCouponValidType.BETWEEN_TWO_TIME.getCode())) { record.setValidDays(null); } else { return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "请填写有效时间类型");