...
|
...
|
@@ -198,13 +198,13 @@ public class InviteSettlementServiceImpl implements IInviteSettlementService { |
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void paid(List<Integer> settleCodes) {
|
|
|
if (CollectionUtils.isEmpty(settleCodes)) {
|
|
|
public void paid(List<Integer> ids) {
|
|
|
if (CollectionUtils.isEmpty(ids)) {
|
|
|
return;
|
|
|
}
|
|
|
List<InviteSettlement> settlements = inviteSettlementMapper.selectBySettleCodes(settleCodes);
|
|
|
List<InviteSettlement> settlements = inviteSettlementMapper.selectByIds(ids);
|
|
|
settlements.stream().forEach(settlement -> {
|
|
|
log.info("mark settlement to paid, settle code is {}", settlement.getSettleCode());
|
|
|
log.info("mark settlement to paid, settle id is {}", settlement.getId());
|
|
|
settlement.setStatus(InviteSettlement.STATUS_PAID);
|
|
|
inviteSettlementMapper.updateByUidAndId(settlement);
|
|
|
inviteSettlementItemMapper.updateStatusByUidAndInviteSettlementId(settlement.getUid(), settlement.getId(), InviteSettlementItem.STATUS_PAID);
|
...
|
...
|
|