findByParentIdAndChildId追加

This commit is contained in:
r-ca 2024-01-29 02:15:00 +09:00
parent f2bbfca36c
commit dcfb22f6a0
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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") @Query("SELECT * FROM toxi_document WHERE parent_document_id = :parentId AND is_active = 1 ORDER BY `order` ASC")
List<ToxiDocumentEntity> findByParentId(String parentId); List<ToxiDocumentEntity> 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 @Insert
void insert(ToxiDocumentEntity toxiDocument); void insert(ToxiDocumentEntity toxiDocument);