fix(我的流程): 修复由于查询不到历史任务信息导致异常bug
This commit is contained in:
@@ -260,7 +260,9 @@ public class WfProcessServiceImpl extends FlowServiceFactory implements IWfProce
|
||||
} else {
|
||||
List<HistoricTaskInstance> historicTaskInstance = historyService.createHistoricTaskInstanceQuery()
|
||||
.processInstanceId(hisIns.getId()).orderByHistoricTaskInstanceEndTime().desc().list();
|
||||
taskVo.setTaskId(historicTaskInstance.get(0).getId());
|
||||
if (CollUtil.isNotEmpty(historicTaskInstance)) {
|
||||
taskVo.setTaskId(historicTaskInstance.get(0).getId());
|
||||
}
|
||||
}
|
||||
taskVoList.add(taskVo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user