Parcourir la source

[投放渠道][修改]:投放渠道开始结束时间修改

release_toaliyun_real
Stormeye Wu il y a 7 ans
Parent
révision
d9b4ddadf9
1 fichiers modifiés avec 9 ajouts et 2 suppressions
  1. +9
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java

+ 9
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java Voir le fichier

@@ -190,12 +190,19 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService {
return vo; return vo;
} }


if(channelId.equals(EnumCouponChannelType.COUPON_CHANNEL_ID_LIST.getCode())){ //列表默认投放结束时间为有效时间之后
// 投放渠道
if(channelId.equals(EnumCouponChannelType.COUPON_CHANNEL_ID_LIST.getCode()) || // 列表
channelId.equals(EnumCouponChannelType.COUPON_CHANNEL_ID_CARD.getCode()) || // 卡频道
channelId.equals(EnumCouponChannelType.COUPON_CHANNEL_ID_PRESS.getCode()) || // 砍价
channelId.equals(EnumCouponChannelType.COUPON_CHANNEL_ID_ORDER_GROUP.getCode()) || // 拼团
channelId.equals(EnumCouponChannelType.COUPON_CHANNEL_ID_CREDIT.getCode()) // 积分商城
){
// 默认投放结束时间为有效时间之后
beginTime = new Date(); beginTime = new Date();
endTime = wxCoupon.getValidEndDate(); endTime = wxCoupon.getValidEndDate();
} }


if(channelId.equals(EnumCouponChannelType.COUPON_CHANNEL_ID_TIMED.getCode())){
if(channelId.equals(EnumCouponChannelType.COUPON_CHANNEL_ID_TIMED.getCode())){ // 限时抢购
if(wxCoupon.getValidEndDate()!=null&&wxCoupon.getValidEndDate().before(endTime)){ if(wxCoupon.getValidEndDate()!=null&&wxCoupon.getValidEndDate().before(endTime)){
logger.debug(wxCoupon.getId()+ErrorCode.COUPON_SEND_IS_INVALID_TIME.getMessage()); logger.debug(wxCoupon.getId()+ErrorCode.COUPON_SEND_IS_INVALID_TIME.getMessage());
vo.toCouponChannnelVo(wxCoupon,channelId); vo.toCouponChannnelVo(wxCoupon,channelId);


Chargement…
Annuler
Enregistrer