|
|
|
@@ -81,6 +81,9 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
WxCouponOrderMapper wxCouponOrderMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
WxCardTransferInfoMapper wxCardTransferInfoMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Qualifier("couponChannelRedisTemplate") |
|
|
|
@@ -765,11 +768,17 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
wxCouponChannelMapper.cardDefer(id, validEndDate); |
|
|
|
|
|
|
|
//更新coupon_order的状态,已过期的变为使用中 5-->4 |
|
|
|
List<Long> couponOrderIds = wxCouponOrderMapper.cardDeferCouponOrderId(id); |
|
|
|
wxCouponOrderMapper.cardDefer(id,validEndDate); |
|
|
|
|
|
|
|
//更新coupon_passwd |
|
|
|
couponPasswordMapper.updateExpiredTime(id, validEndDate); |
|
|
|
|
|
|
|
//更新wx_card_transfer_info |
|
|
|
if (null != couponOrderIds && couponOrderIds.size() > 0 ) { |
|
|
|
wxCardTransferInfoMapper.cardDefer(validEndDate, couponOrderIds); |
|
|
|
} |
|
|
|
|
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
|