From 599af030be88d114af84234168994b48742f3e97 Mon Sep 17 00:00:00 2001 From: zhangjiabao Date: Thu, 8 Feb 2024 20:25:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=9F=E5=88=8A=20desc:=20=E6=9C=9F?= =?UTF-8?q?=E5=88=8A=E4=BF=9D=E5=AD=98=E6=97=B6=E6=AD=8C=E6=9B=B2=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E6=9C=AA=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/luoo/music/service/CMSJournalService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java b/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java index b1ba294..4d359de 100644 --- a/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java +++ b/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java @@ -433,11 +433,7 @@ public class CMSJournalService { if (!CollectionUtils.isEmpty(updateSongs)) { List songList = songDao.orderByField(updateSongs); List journalSongs=journalSongDao.findByJournalNoOrderBySongNo(journalNo); - //如果JournalSong 保存信息与SongInfo 一致,则不更新 - if(isSameContent(songList,journalSongs)) { - return; - } - + Map songId2JournalSongIdMap=journalSongs.stream().collect(Collectors.toMap(JournalSong::getSongId, JournalSong::getId)); List updatedJournalSong = new ArrayList<>();