This commit is contained in:
wangliwen 2022-12-10 17:03:12 +08:00
parent 180cfcf52c
commit e266885230
1 changed files with 1 additions and 1 deletions

View File

@ -191,8 +191,8 @@ public class ActTaskService extends BaseServiceImpl {
List<Task> tasks = nativeTaskQuery.listPage((curPage - 1) * limit, limit); List<Task> tasks = nativeTaskQuery.listPage((curPage - 1) * limit, limit);
long count = nativeCountTaskQuery.count(); long count = nativeCountTaskQuery.count();
List<CompletableFuture> completableFutures = new ArrayList<CompletableFuture>(); List<CompletableFuture> completableFutures = new ArrayList<CompletableFuture>();
final TaskQuery taskQuery = taskService.createTaskQuery();
List<Task> list_ = tasks.stream().map(index -> { List<Task> list_ = tasks.stream().map(index -> {
TaskQuery taskQuery = taskService.createTaskQuery();
CompletableFuture tempTask = CompletableFuture.supplyAsync(() -> taskQuery.taskId(index.getId()).includeProcessVariables().singleResult(), executor); CompletableFuture tempTask = CompletableFuture.supplyAsync(() -> taskQuery.taskId(index.getId()).includeProcessVariables().singleResult(), executor);
Task temp = null; Task temp = null;
try { try {