更新工资发放查询结果时,把支付时间更新到主表

2024年7月4日 16:54:31
This commit is contained in:
xiang2lin 2024-07-04 16:54:37 +08:00
parent 81448dbc47
commit 68083196ee
1 changed files with 3 additions and 1 deletions

View File

@ -371,7 +371,7 @@ public class CbsPluginServiceImpl implements ICbsPluginService {
} else {
result.setPayResult(PayState.payStateGetValue(pay_status));//支付状态 支付状态和支付申请状态用一个
}
agentPaymentService.updateResult(result);
//更新明细表
List<AgentPayQueryDTO> agentDetails = agentPayResultResDTO.getAgentDetails();
for (AgentPayQueryDTO d : agentDetails) {
@ -386,6 +386,8 @@ public class CbsPluginServiceImpl implements ICbsPluginService {
detail.setDataSourceCode(oa_data_source_code);
agentPaymentDetailService.updatePayResult(detail);
}
result.setPayDate(CBSUtil.convertTimestampToString(agentDetails.get(0).getDtlPayTime()));
agentPaymentService.updateResult(result);
}
}
return agentPayResultResDTO;