feat(training): 完善培训申请审批流程功能

dev
zhaokai 2026-03-10 09:47:51 +08:00
parent 73759034cd
commit 3242542ef7
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class TrainingApplyRecordUpdateExe {
//修改最后一个的审批时间
//将上一个没有审批时间的节点的审批时间设置为当前时间
List<TrainingApplyProcessDO> trainingApplyProcessDOList = trainingApplyProcessRepository.getApproveDetailList(oldTrainingRecord.getTrainingApplyRecordId());
List<TrainingApplyProcessDO> trainingApplyProcessDOList = trainingApplyProcessRepository.getApproveDetailList(trainingApplyRecordUpdateCmd.getTrainingApplyRecordId());
//获取ttrainingApplyProcessDOList 中按照创建时间最后一条数据,将审批时间设置为当前时间
TrainingApplyProcessDO trainingApplyProcessDO = trainingApplyProcessDOList.stream().max((o1, o2) -> o1.getCreateTime().compareTo(o2.getCreateTime())).get();
trainingApplyProcessDO.setApprovalTime(LocalDateTime.now());