。。。
This commit is contained in:
parent
115bb063b8
commit
b911e4068e
|
@ -107,6 +107,14 @@ public class TAbilityApplicationController {
|
|||
if (inStanceId == null) {
|
||||
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 =
|
||||
tAbilityApplicationService.getByInstanceId(inStanceId + "");
|
||||
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;
|
||||
}).collect(Collectors.toList());
|
||||
page.setList(list);
|
||||
|
|
Loading…
Reference in New Issue