刘俊驰 7 달 전
부모
커밋
5ace1eda15
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetServiceImpl.java

+ 1 - 4
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetServiceImpl.java

@@ -2745,17 +2745,14 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
                         musicSheetDetail.setMusicSheetSoundList(Collections.singletonList(first.get()));
                     }
                 }
-
             }
-            if (CollectionUtils.isEmpty(sheetSoundList)) {
+            if (CollectionUtils.isEmpty(musicSheetDetail.getMusicSheetSoundList()) && CollectionUtils.isNotEmpty(sheetSoundList)) {
                 Optional<CbsMusicSheetWrapper.MusicSheetSound> first = sheetSoundList.stream().findFirst();
                 if (first.isPresent()) {
                     musicSheetDetail.setMp3Url(first.get().getAudioFileUrl());
                     musicSheetDetail.setMusicSheetSoundList(Collections.singletonList(first.get()));
                 }
             }
-
-
         }
         return musicSheetDetail;
     }