Merge branch 'master' into docker_package
This commit is contained in:
commit
beb8fc93d9
|
@ -107,9 +107,13 @@ public class TAbilityApplicationController {
|
|||
if (inStanceId == null) {
|
||||
return index;
|
||||
}
|
||||
ExecutionEntity execution = (ExecutionEntity) runtimeService.createExecutionQuery().executionId(inStanceId + "").singleResult();
|
||||
ExecutionEntity execution = (ExecutionEntity) runtimeService.createExecutionQuery().processInstanceId(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 + "");
|
||||
|
@ -128,9 +132,6 @@ public class TAbilityApplicationController {
|
|||
}
|
||||
});
|
||||
}
|
||||
if (params.containsKey("ended")) {
|
||||
index.setEnded(Boolean.valueOf(params.get("ended").toString()));
|
||||
}
|
||||
return index;
|
||||
}).collect(Collectors.toList());
|
||||
page.setList(list);
|
||||
|
@ -214,7 +215,7 @@ public class TAbilityApplicationController {
|
|||
camera = cameraList;
|
||||
|
||||
List<Object> finalCamera = camera;
|
||||
ExecutionEntity execution = (ExecutionEntity) runtimeService.createExecutionQuery().executionId(tAbilityApplicationDTOList.get(0).getInstanceId() + "").singleResult();
|
||||
ExecutionEntity execution = (ExecutionEntity) runtimeService.createExecutionQuery().processInstanceId(tAbilityApplicationDTOList.get(0).getInstanceId() + "").singleResult();
|
||||
Map<String, Object> resourceApplication = new HashMap<String, Object>() {
|
||||
{
|
||||
put("instanceId", tAbilityApplicationDTOList.get(0).getInstanceId()); // 流程id
|
||||
|
|
Loading…
Reference in New Issue