update - 处理审批日志中的的 EndTime 字段的赋值

This commit is contained in:
wangli 2024-01-08 16:33:01 +08:00
parent 1281307686
commit fa8149ce2e

View File

@ -315,7 +315,8 @@ public class BpmnProcessTaskServiceImpl implements BpmnProcessTaskService {
// 过滤了多实例或签自动完成的任务
List<BpmnHistoricTaskInstanceVO> vos = historicTaskInstanceConverter.toVosSkipSystemOperation(taskInstances);
Map<String, List<Comment>> commentByTaskIdMap =
taskService.getProcessInstanceComments(processInstanceId).stream().collect(Collectors.groupingBy(Comment::getTaskId));
taskService.getProcessInstanceComments(processInstanceId).stream()
.collect(Collectors.groupingBy(Comment::getTaskId));
Map<String, HistoricVariableInstance> variableInstanceMap =
// 不能使用框架提供的历史变量 API 查询, BUG
@ -358,7 +359,6 @@ public class BpmnProcessTaskServiceImpl implements BpmnProcessTaskService {
.max(Comparator.comparing(Comment::getTime))
.ifPresent(i -> {
vo.setOperationDesc(i.getFullMessage());
vo.setEndTime(i.getTime());
});
List<Attachment> attachments = attachmentByTaskIdMap.getOrDefault(vo.getTaskId(), Collections.emptyList());