|
@@ -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);
|