...
This commit is contained in:
parent
0e4c61cda1
commit
21a56a4d26
|
@ -275,7 +275,7 @@ public class TAbilityApplicationController {
|
||||||
if (tAbilityApplicationDTOList.get(0).getApproveStatus().equals("审核中")) { // 若处于审核中时 增加当前节点信息
|
if (tAbilityApplicationDTOList.get(0).getApproveStatus().equals("审核中")) { // 若处于审核中时 增加当前节点信息
|
||||||
Task task = taskService.createTaskQuery().processInstanceId(tAbilityApplicationDTOList.get(0).getInstanceId()).active().includeProcessVariables().singleResult();
|
Task task = taskService.createTaskQuery().processInstanceId(tAbilityApplicationDTOList.get(0).getInstanceId()).active().includeProcessVariables().singleResult();
|
||||||
if (task != null && StringUtils.isNotEmpty(task.getId()) && StringUtils.isNumeric(task.getAssignee())) {
|
if (task != null && StringUtils.isNotEmpty(task.getId()) && StringUtils.isNumeric(task.getAssignee())) {
|
||||||
HistoryDetailDTO detailDTO = new HistoryDetailDTO();
|
final HistoryDetailDTO detailDTO = new HistoryDetailDTO();
|
||||||
detailDTO.setId(task.getId());
|
detailDTO.setId(task.getId());
|
||||||
detailDTO.setAssignee(sysUserService.get(Long.valueOf(task.getAssignee())).getRealName());
|
detailDTO.setAssignee(sysUserService.get(Long.valueOf(task.getAssignee())).getRealName());
|
||||||
detailDTO.setActivityName(task.getName());
|
detailDTO.setActivityName(task.getName());
|
||||||
|
@ -285,7 +285,11 @@ public class TAbilityApplicationController {
|
||||||
detailDTO.setDurationInSeconds(null);
|
detailDTO.setDurationInSeconds(null);
|
||||||
detailDTO.setExecutionId(task.getExecutionId());
|
detailDTO.setExecutionId(task.getExecutionId());
|
||||||
detailDTO.setProcessDefinitionId(task.getProcessDefinitionId());
|
detailDTO.setProcessDefinitionId(task.getProcessDefinitionId());
|
||||||
|
detailDTO.setComment("待审核");
|
||||||
|
final List<HistoryDetailDTO> taskHandleDetailInfo_ = taskHandleDetailInfo;
|
||||||
|
taskHandleDetailInfo.clear();
|
||||||
taskHandleDetailInfo.add(detailDTO);
|
taskHandleDetailInfo.add(detailDTO);
|
||||||
|
taskHandleDetailInfo.addAll(taskHandleDetailInfo_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue