浏览代码

管乐迷曲目来源内容平台

zouxuan 9 月之前
父节点
当前提交
0d3632a3c1
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

+ 1 - 2
mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

@@ -2736,8 +2736,6 @@ public class RoomServiceImpl implements RoomService {
         if (CollectionUtils.isEmpty(soundList)) {
             throw new BizException("曲目原音信息不存在");
         }
-        CbsMusicSheetWrapper.MusicSheetSound sheetSound = soundList.stream().
-                filter(e -> e.getId().toString().equals(musicScoreData.getMusicScoreAccompanimentId())).collect(Collectors.toList()).get(0);
         if (scheduleStudentMusicScores.size() == 0) {
             //第一次下载,生成数据
             List<CourseScheduleStudentPayment> courseScheduleStudentPayments = courseScheduleStudentPaymentDao.findByCourseSchedule(courseScheduleId);
@@ -2759,6 +2757,7 @@ public class RoomServiceImpl implements RoomService {
             scheduleStudentMusicScores.add(musicScore);
             courseScheduleStudentMusicScoreDao.batchInsert(scheduleStudentMusicScores);
         }
+        CbsMusicSheetWrapper.MusicSheetSound sheetSound = soundList.get(0);
         SysMusicScoreAccompaniment accompaniment = sysMusicScoreAccompanimentService.initSysMusicScoreAccompaniment(sheetApplication, sheetSound);
         accompaniment.setId(musicScoreData.getMusicScoreAccompanimentId());
         MusicScoreMessage musicScoreMessage = JSON.parseObject(JSON.toJSONString(accompaniment), MusicScoreMessage.class);