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 36fb884..03f6618 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 @@ -44,7 +44,7 @@ public interface JournalSongDao extends JpaRepository, JpaSp @Query(value = "select * from tb_journal_song order by rand() limit ?1 ", nativeQuery = true) List random(int limit); - @Query(value = "select * from tb_journal_song where journal_no_song_id in ?1 order by field(id,?1)", nativeQuery = true) + @Query(value = "select * from tb_journal_song where journal_no_song_id in ?1 order by field(journal_no_song_id,?1)", nativeQuery = true) public List orderByField(List idList); List findByJournalNoOrderBySongNo(String journalNo);