|
|
|
@@ -190,12 +190,19 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
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(); |
|
|
|
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)){ |
|
|
|
logger.debug(wxCoupon.getId()+ErrorCode.COUPON_SEND_IS_INVALID_TIME.getMessage()); |
|
|
|
vo.toCouponChannnelVo(wxCoupon,channelId); |
|
|
|
|