分账结果查询,定时任务完善

This commit is contained in:
xiaoyu 2023-03-30 13:43:48 +08:00
parent c87405c3b2
commit 17db78d34b
1 changed files with 3 additions and 7 deletions

View File

@ -125,13 +125,9 @@ public class PayOrderDivisionRecordReissueTask {
if (ChannelRetMsg.ChannelState.CONFIRM_SUCCESS == channelRetMsg.getChannelState() ||
ChannelRetMsg.ChannelState.CONFIRM_FAIL == channelRetMsg.getChannelState()) {
PayOrderDivisionRecord upDivisionRecord = new PayOrderDivisionRecord();
upDivisionRecord.setRecordId(record.getRecordId());
upDivisionRecord.setChannelRespResult(channelRetMsg.getChannelErrMsg());
upDivisionRecord.setState(ChannelRetMsg.ChannelState.CONFIRM_SUCCESS == channelRetMsg.getChannelState() ? PayOrderDivisionRecord.STATE_SUCCESS : PayOrderDivisionRecord.STATE_FAIL);
// payOrderDivisionRecordService.updateRecordSuccessOrFail(upDivisionRecord);
Byte state = ChannelRetMsg.ChannelState.CONFIRM_SUCCESS == channelRetMsg.getChannelState() ? PayOrderDivisionRecord.STATE_SUCCESS : PayOrderDivisionRecord.STATE_FAIL;
// 更新记录状态
payOrderDivisionRecordService.updateRecordSuccessOrFailBySingleItem(record.getRecordId(), state, channelRetMsg.getChannelErrMsg());
}
});