|
@@ -464,9 +464,17 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
detailVo.setMusicImg(musicSheet1.getMusicImg());
|
|
|
detailVo.setTitleImg(musicSheet1.getMusicCover());
|
|
|
detailVo.setPlaySpeed(musicSheet1.getPlaySpeed());
|
|
|
+ detailVo.setIsMixBeat(musicSheet1.getIsMixBeat());
|
|
|
+ detailVo.setMusicPdfUrl(musicSheet1.getMusicPdfUrl());
|
|
|
+ detailVo.setFirstPdfUrl(musicSheet1.getFirstPdfUrl());
|
|
|
+ detailVo.setJianPdfUrl(musicSheet1.getJianPdfUrl());
|
|
|
List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheet1.getMusicSheetAccompanimentList();
|
|
|
if (CollectionUtils.isNotEmpty(accompanimentList)) {
|
|
|
- detailVo.setMetronomeUrl(accompanimentList.get(0).getAudioFileUrl());
|
|
|
+ CbsMusicSheetWrapper.MusicSheetAccompaniment accompaniment = accompanimentList.get(0);
|
|
|
+ detailVo.setMetronomeUrl(accompaniment.getAudioFileUrl());
|
|
|
+ detailVo.setAccMusicPdfUrl(accompaniment.getMusicPdfUrl());
|
|
|
+ detailVo.setAccFirstPdfUrl(accompaniment.getFirstPdfUrl());
|
|
|
+ detailVo.setAccJianPdfUrl(accompaniment.getJianPdfUrl());
|
|
|
}
|
|
|
detailVo.setXmlFileUrl(musicSheet1.getXmlFileUrl());
|
|
|
detailVo.setMidiUrl(musicSheet1.getMidiFileUrl());
|
|
@@ -488,6 +496,9 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
accompaniment.setSortNumber(sound.getSortNumber());
|
|
|
accompaniment.setTrack(sound.getTrack());
|
|
|
accompaniment.setMusicalInstrumentId(sound.getMusicalInstrumentId());
|
|
|
+ accompaniment.setMusicPdfUrl(sound.getMusicPdfUrl());
|
|
|
+ accompaniment.setFirstPdfUrl(sound.getFirstPdfUrl());
|
|
|
+ accompaniment.setJianPdfUrl(sound.getJianPdfUrl());
|
|
|
background.add(accompaniment);
|
|
|
}
|
|
|
//按照sortNumber排序
|
|
@@ -570,8 +581,12 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
}
|
|
|
sheet.setMusicPrice(musicSheetApplication.getMusicPrice());
|
|
|
if (CollectionUtils.isNotEmpty(musicSheetApplication.getMusicSheetAccompanimentList())) {
|
|
|
- sheet.setAudioFileUrl(musicSheetApplication.getMusicSheetAccompanimentList().get(0).getAudioFileUrl());
|
|
|
- sheet.setMetronomeUrl(musicSheetApplication.getMusicSheetAccompanimentList().get(0).getAudioFileUrl());
|
|
|
+ CbsMusicSheetWrapper.MusicSheetAccompaniment accompaniment = musicSheetApplication.getMusicSheetAccompanimentList().get(0);
|
|
|
+ sheet.setAudioFileUrl(accompaniment.getAudioFileUrl());
|
|
|
+ sheet.setMetronomeUrl(accompaniment.getAudioFileUrl());
|
|
|
+ sheet.setAccMusicPdfUrl(accompaniment.getMusicPdfUrl());
|
|
|
+ sheet.setAccFirstPdfUrl(accompaniment.getFirstPdfUrl());
|
|
|
+ sheet.setAccJianPdfUrl(accompaniment.getJianPdfUrl());
|
|
|
}
|
|
|
sheet.setXmlFileUrl(musicSheetApplication.getXmlFileUrl());
|
|
|
sheet.setMidiUrl(musicSheetApplication.getMidiFileUrl());
|
|
@@ -592,10 +607,6 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
if(musicSheetApplication.getMusicSheetExtend() != null){
|
|
|
sheet.setAddName(musicSheetApplication.getMusicSheetExtend().getUserName());
|
|
|
}
|
|
|
- List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheetApplication.getMusicSheetAccompanimentList();
|
|
|
- if (CollectionUtils.isNotEmpty(accompanimentList)){
|
|
|
- sheet.setMetronomeUrl(accompanimentList.get(0).getAudioFileUrl());
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -908,7 +919,11 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
record.setMusicTagNames(musicSheetApplication.getMusicTagNames());
|
|
|
List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheetApplication.getMusicSheetAccompanimentList();
|
|
|
if (CollectionUtils.isNotEmpty(accompanimentList)) {
|
|
|
- record.setMetronomeUrl(accompanimentList.get(0).getAudioFileUrl());
|
|
|
+ CbsMusicSheetWrapper.MusicSheetAccompaniment accompaniment = accompanimentList.get(0);
|
|
|
+ record.setMetronomeUrl(accompaniment.getAudioFileUrl());
|
|
|
+ record.setAccMusicPdfUrl(accompaniment.getMusicPdfUrl());
|
|
|
+ record.setAccFirstPdfUrl(accompaniment.getFirstPdfUrl());
|
|
|
+ record.setAccJianPdfUrl(accompaniment.getJianPdfUrl());
|
|
|
}
|
|
|
record.setXmlFileUrl(musicSheetApplication.getXmlFileUrl());
|
|
|
record.setMidiUrl(musicSheetApplication.getMidiFileUrl());
|
|
@@ -1661,10 +1676,6 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
if (CollectionUtils.isEmpty(rows)){
|
|
|
throw new BizException("查询曲谱信息失败");
|
|
|
}
|
|
|
-// List<Subject> subjects = subjectService.getDao().getByCbsSubjectIds(rows.stream().map(CbsMusicSheetWrapper.MusicSheetApplication::getSubjectIds).
|
|
|
-// filter(StringUtils::isNotEmpty).collect(Collectors.joining(",")));
|
|
|
-// Map<Long, String> subjectMap = subjects.stream().collect(Collectors.toMap(Subject::getCbsSubjectId, Subject::getName));
|
|
|
-
|
|
|
Map<Long,CbsMusicSheetWrapper.MusicSheetApplication> musicSheetMap =
|
|
|
rows.stream().collect(Collectors.toMap(CbsMusicSheetWrapper.MusicSheetApplication::getId, Function.identity()));
|
|
|
for (MusicSheetDetailVo record : sheetDetailVos) {
|
|
@@ -1696,6 +1707,9 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
for (CbsMusicSheetWrapper.MusicSheetAccompaniment accompaniment : accompanimentList) {
|
|
|
MusicSheetAccompaniment musicSheetAccompaniment = new MusicSheetAccompaniment();
|
|
|
musicSheetAccompaniment.setAudioFileUrl(accompaniment.getAudioFileUrl());
|
|
|
+ musicSheetAccompaniment.setMusicPdfUrl(accompaniment.getMusicPdfUrl());
|
|
|
+ musicSheetAccompaniment.setFirstPdfUrl(accompaniment.getFirstPdfUrl());
|
|
|
+ musicSheetAccompaniment.setJianPdfUrl(accompaniment.getJianPdfUrl());
|
|
|
background.add(musicSheetAccompaniment);
|
|
|
}
|
|
|
}
|