|
|
|
@ -29,7 +29,7 @@ public interface JournalTagDao extends JpaRepository<JournalTag,String>, JpaSpec
|
|
|
|
|
@Query("DELETE FROM JournalTag jt WHERE jt.journalId = :journalId")
|
|
|
|
|
int deleteByJournalId(@Param("journalId") String journalId);
|
|
|
|
|
|
|
|
|
|
@Query(value = "select journal_id FROM tb_journal_tag where tag_id=?1", nativeQuery = true)
|
|
|
|
|
@Query(value = "select journal_id FROM tb_journal_tag where tag_id=?1 or tag_id in (select id from tb_tag_info where parent_id=?1)", nativeQuery = true)
|
|
|
|
|
List<String> getJournalIdByTagId(String tagId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|