|
|
|
@@ -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(), "请填写有效时间类型"); |
|
|
|
|