From d7bfcd89707273096533eb132ab37cf4794592b7 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 09:08:56 +0900 Subject: [PATCH] =?UTF-8?q?getCombinedDocumentIdList=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/data/impl/LacertaLibraryImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java index 5b54fd93..f072594d 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java @@ -342,7 +342,14 @@ public class LacertaLibraryImpl implements LacertaLibrary { @Override public CompletableFuture> getCombinedDocumentIdList(String parentId) { - + return CompletableFuture.supplyAsync(() -> { + List toxiDocumentEntities = database.toxiDocumentDao().findByParentId(parentId); + ArrayList documentIdList = new ArrayList<>(); + for (ToxiDocumentEntity toxiDocumentEntity : toxiDocumentEntities) { + documentIdList.add(toxiDocumentEntity.childDocumentId); + } + return documentIdList; + }); } /**