getCombinedDocumentIdList実装

This commit is contained in:
r-ca 2024-01-28 09:08:56 +09:00
parent 575df32157
commit d7bfcd8970
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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;
});
} }
/** /**