|
|
|
@@ -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, 更新 |
|
|
|
|