@ -32,6 +32,8 @@ public interface JournalTagDao extends JpaRepository<JournalTag,String>, JpaSpec
@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(StringtagId);
@Query(value="select tb_journal_tag.journal_id FROM tb_journal_tag, tb_tag_info where tb_tag_info.name_ch=?1 and (tb_journal_tag.tag_id=tb_tag_info.id or tb_journal_tag.tag_id in (select tb_tag_info.id from tb_tag_info where tb_tag_info.parent_id=tb_tag_info.id))",nativeQuery=true)
List<String>getJournalIdByTagName(Stringtag);
@Query(value="select journal_id from tb_journal_tag where tag_id in (select tag_id from tb_journal_tag where journal_id=?1) and not journal_id=?1 order by rand() limit ?2",nativeQuery=true)