mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
findByParentIdAndChildId追加
This commit is contained in:
parent
f2bbfca36c
commit
dcfb22f6a0
|
@ -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<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
|
||||
void insert(ToxiDocumentEntity toxiDocument);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user