。。。

This commit is contained in:
wangliwen 2022-07-18 17:47:28 +08:00
parent 115bb063b8
commit b911e4068e
1 changed files with 8 additions and 4 deletions

View File

@ -107,6 +107,14 @@ public class TAbilityApplicationController {
if (inStanceId == null) { if (inStanceId == null) {
return index; return index;
} }
ExecutionEntity execution = (ExecutionEntity) runtimeService.createExecutionQuery().executionId(inStanceId + "").singleResult();
if (execution != null) {
index.setEnded(execution.isEnded()); // 流程引擎内是否已结束
} else {
if (params.containsKey("ended")) {
index.setEnded(Boolean.valueOf(params.get("ended").toString()));
}
}
List<TAbilityApplicationDTO> dtos = List<TAbilityApplicationDTO> dtos =
tAbilityApplicationService.getByInstanceId(inStanceId + ""); tAbilityApplicationService.getByInstanceId(inStanceId + "");
if (!dtos.isEmpty()) { if (!dtos.isEmpty()) {
@ -124,10 +132,6 @@ public class TAbilityApplicationController {
} }
}); });
} }
ExecutionEntity execution = (ExecutionEntity) runtimeService.createExecutionQuery().executionId(inStanceId + "").singleResult();
if (execution != null) {
index.setEnded(execution.isEnded()); // 流程引擎内是否已结束
}
return index; return index;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
page.setList(list); page.setList(list);