Authored by LUOXC

更新支付时间

@@ -2,6 +2,7 @@ package com.yohoufo.order.service.impl; @@ -2,6 +2,7 @@ package com.yohoufo.order.service.impl;
2 2
3 import com.google.common.annotations.VisibleForTesting; 3 import com.google.common.annotations.VisibleForTesting;
4 import com.google.common.collect.Lists; 4 import com.google.common.collect.Lists;
  5 +import com.yohoufo.common.utils.DateUtil;
5 import com.yohoufo.dal.order.InviteSettlementItemMapper; 6 import com.yohoufo.dal.order.InviteSettlementItemMapper;
6 import com.yohoufo.dal.order.InviteSettlementMapper; 7 import com.yohoufo.dal.order.InviteSettlementMapper;
7 import com.yohoufo.dal.order.InviterMapper; 8 import com.yohoufo.dal.order.InviterMapper;
@@ -205,6 +206,7 @@ public class InviteSettlementServiceImpl implements IInviteSettlementService { @@ -205,6 +206,7 @@ public class InviteSettlementServiceImpl implements IInviteSettlementService {
205 List<InviteSettlement> settlements = inviteSettlementMapper.selectByIds(ids); 206 List<InviteSettlement> settlements = inviteSettlementMapper.selectByIds(ids);
206 settlements.stream().forEach(settlement -> { 207 settlements.stream().forEach(settlement -> {
207 log.info("mark settlement to paid, settle id is {}", settlement.getId()); 208 log.info("mark settlement to paid, settle id is {}", settlement.getId());
  209 + settlement.setPaidTime(DateUtil.getCurrentTimeSecond());
208 settlement.setStatus(InviteSettlement.STATUS_PAID); 210 settlement.setStatus(InviteSettlement.STATUS_PAID);
209 inviteSettlementMapper.updateByUidAndId(settlement); 211 inviteSettlementMapper.updateByUidAndId(settlement);
210 inviteSettlementItemMapper.updateStatusByUidAndInviteSettlementId(settlement.getUid(), settlement.getId(), InviteSettlementItem.STATUS_PAID); 212 inviteSettlementItemMapper.updateStatusByUidAndInviteSettlementId(settlement.getUid(), settlement.getId(), InviteSettlementItem.STATUS_PAID);