From dcfb22f6a0ace486ebca1af6de0b313848412a44 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 02:15:00 +0900 Subject: [PATCH] =?UTF-8?q?findByParentIdAndChildId=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/database/dao/ToxiDocumentDao.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/src/main/java/one/nem/lacerta/source/database/dao/ToxiDocumentDao.java b/source/src/main/java/one/nem/lacerta/source/database/dao/ToxiDocumentDao.java index 201a5d37..05923d03 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/dao/ToxiDocumentDao.java +++ b/source/src/main/java/one/nem/lacerta/source/database/dao/ToxiDocumentDao.java @@ -15,6 +15,9 @@ public interface ToxiDocumentDao { @Query("SELECT * FROM toxi_document WHERE parent_document_id = :parentId AND is_active = 1 ORDER BY `order` ASC") List findByParentId(String parentId); + @Query("SELECT * FROM toxi_document WHERE parent_document_id = :parentId AND child_document_id = :childId AND is_active = 1") + ToxiDocumentEntity findByParentIdAndChildId(String parentId, String childId); + @Insert void insert(ToxiDocumentEntity toxiDocument);