mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
getCombinedDocumentIdList実装
This commit is contained in:
parent
575df32157
commit
d7bfcd8970
|
@ -342,7 +342,14 @@ public class LacertaLibraryImpl implements LacertaLibrary {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CompletableFuture<ArrayList<String>> getCombinedDocumentIdList(String parentId) {
|
public CompletableFuture<ArrayList<String>> getCombinedDocumentIdList(String parentId) {
|
||||||
|
return CompletableFuture.supplyAsync(() -> {
|
||||||
|
List<ToxiDocumentEntity> toxiDocumentEntities = database.toxiDocumentDao().findByParentId(parentId);
|
||||||
|
ArrayList<String> documentIdList = new ArrayList<>();
|
||||||
|
for (ToxiDocumentEntity toxiDocumentEntity : toxiDocumentEntities) {
|
||||||
|
documentIdList.add(toxiDocumentEntity.childDocumentId);
|
||||||
|
}
|
||||||
|
return documentIdList;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user