.
This commit is contained in:
@@ -32,6 +32,9 @@ public class DbExecutors {
|
||||
CompletableFuture<Integer> countFuture = CompletableFuture.supplyAsync(() -> dbKit.queryColumn(sqls[0], int.class));
|
||||
CompletableFuture<List<Map>> listFuture = CompletableFuture.supplyAsync(() -> dbKit.findList(sqls[1], Map.class));
|
||||
|
||||
return PageBean.by(listFuture.get(), countFuture.get());
|
||||
List<Map> rows = listFuture.get();
|
||||
Integer total = countFuture.get();
|
||||
|
||||
return PageBean.by(rows, total);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user