Ver a proveniência

[宣传页][修复]:当卡券已经作废后或者过期后不再抛出异常

release_toaliyun_real
hupeng há 7 anos
ascendente
cometimento
6b67e40bf2
1 ficheiros alterados com 3 adições e 3 eliminações
  1. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java

+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java Ver ficheiro

@@ -184,10 +184,10 @@ public class WxCampaignServiceImpl implements WxCampaignService {
throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); throw new MallinkException(ErrorCode.COUPON_IS_EMPTY);
} }
if (wxCoupon.getStatus() != EnumCouponStatus.COUPON_STATUS_THROW_IN.getCode()) { 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())) { if (wxCoupon.getValidEndDate() != null && wxCoupon.getValidEndDate().before(new Date())) {
throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF);
return;
} }


// 已有的couponChannel, 更新 // 已有的couponChannel, 更新


Carregando…
Cancelar
Guardar