From 86d0a04ded76aead08c366da9ac992fae61bacfa Mon Sep 17 00:00:00 2001 From: Gary Date: Wed, 6 Mar 2024 18:41:47 +0800 Subject: [PATCH] 1.fix song list in collect jouranl --- luoo_music/src/main/java/com/luoo/music/dao/JournalSongDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luoo_music/src/main/java/com/luoo/music/dao/JournalSongDao.java b/luoo_music/src/main/java/com/luoo/music/dao/JournalSongDao.java index a9fe958..36fb884 100644 --- a/luoo_music/src/main/java/com/luoo/music/dao/JournalSongDao.java +++ b/luoo_music/src/main/java/com/luoo/music/dao/JournalSongDao.java @@ -49,7 +49,7 @@ public interface JournalSongDao extends JpaRepository, JpaSp List 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 orderByJournalIdField(List jouranlIds); List findByJournalNoIn(List journalNos);