1.fix song list in collect jouranl

main
Gary 9 months ago
parent c90deee5c6
commit 86d0a04ded

@ -49,7 +49,7 @@ public interface JournalSongDao extends JpaRepository<JournalSong,String>, JpaSp
List<JournalSong> findByJournalNoOrderBySongNo(String journalNo);
@Query(value = "select tbjs.song_id from tb_journal_song as tbjs,tb_journal as tbj where tbjs.journal_no=tbj.journal_no and tbj.id in ?1 order by field(tbj.id,?1), tbjs.song_no", nativeQuery = true)
@Query(value = "select tbjs.journal_no_song_id from tb_journal_song as tbjs,tb_journal as tbj where tbjs.journal_no=tbj.journal_no and tbj.id in ?1 order by field(tbj.id,?1), tbjs.song_no", nativeQuery = true)
List<String> orderByJournalIdField(List<String> jouranlIds);
List<JournalSong> findByJournalNoIn(List<String> journalNos);

Loading…
Cancel
Save