feat: 期刊

desc: 期刊保存时歌曲顺序未保存问题
main
zhangjiabao 10 months ago
parent 05b92c5565
commit 599af030be

@ -433,10 +433,6 @@ public class CMSJournalService {
if (!CollectionUtils.isEmpty(updateSongs)) { if (!CollectionUtils.isEmpty(updateSongs)) {
List<SongInfo> songList = songDao.orderByField(updateSongs); List<SongInfo> songList = songDao.orderByField(updateSongs);
List<JournalSong> journalSongs=journalSongDao.findByJournalNoOrderBySongNo(journalNo); List<JournalSong> journalSongs=journalSongDao.findByJournalNoOrderBySongNo(journalNo);
//如果JournalSong 保存信息与SongInfo 一致,则不更新
if(isSameContent(songList,journalSongs)) {
return;
}
Map<String,String> songId2JournalSongIdMap=journalSongs.stream().collect(Collectors.toMap(JournalSong::getSongId, JournalSong::getId)); Map<String,String> songId2JournalSongIdMap=journalSongs.stream().collect(Collectors.toMap(JournalSong::getSongId, JournalSong::getId));

Loading…
Cancel
Save