|
@@ -464,9 +464,14 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
detailVo.setMusicImg(musicSheet1.getMusicImg());
|
|
detailVo.setMusicImg(musicSheet1.getMusicImg());
|
|
detailVo.setTitleImg(musicSheet1.getMusicCover());
|
|
detailVo.setTitleImg(musicSheet1.getMusicCover());
|
|
detailVo.setPlaySpeed(musicSheet1.getPlaySpeed());
|
|
detailVo.setPlaySpeed(musicSheet1.getPlaySpeed());
|
|
|
|
+ detailVo.setIsMixBeat(musicSheet1.getIsMixBeat());
|
|
List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheet1.getMusicSheetAccompanimentList();
|
|
List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheet1.getMusicSheetAccompanimentList();
|
|
if (CollectionUtils.isNotEmpty(accompanimentList)) {
|
|
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.setXmlFileUrl(musicSheet1.getXmlFileUrl());
|
|
detailVo.setMidiUrl(musicSheet1.getMidiFileUrl());
|
|
detailVo.setMidiUrl(musicSheet1.getMidiFileUrl());
|
|
@@ -488,6 +493,9 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
accompaniment.setSortNumber(sound.getSortNumber());
|
|
accompaniment.setSortNumber(sound.getSortNumber());
|
|
accompaniment.setTrack(sound.getTrack());
|
|
accompaniment.setTrack(sound.getTrack());
|
|
accompaniment.setMusicalInstrumentId(sound.getMusicalInstrumentId());
|
|
accompaniment.setMusicalInstrumentId(sound.getMusicalInstrumentId());
|
|
|
|
+ accompaniment.setMusicPdfUrl(sound.getMusicPdfUrl());
|
|
|
|
+ accompaniment.setFirstPdfUrl(sound.getFirstPdfUrl());
|
|
|
|
+ accompaniment.setJianPdfUrl(sound.getJianPdfUrl());
|
|
background.add(accompaniment);
|
|
background.add(accompaniment);
|
|
}
|
|
}
|
|
//按照sortNumber排序
|
|
//按照sortNumber排序
|
|
@@ -570,8 +578,12 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
}
|
|
}
|
|
sheet.setMusicPrice(musicSheetApplication.getMusicPrice());
|
|
sheet.setMusicPrice(musicSheetApplication.getMusicPrice());
|
|
if (CollectionUtils.isNotEmpty(musicSheetApplication.getMusicSheetAccompanimentList())) {
|
|
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.setXmlFileUrl(musicSheetApplication.getXmlFileUrl());
|
|
sheet.setMidiUrl(musicSheetApplication.getMidiFileUrl());
|
|
sheet.setMidiUrl(musicSheetApplication.getMidiFileUrl());
|
|
@@ -592,10 +604,6 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
if(musicSheetApplication.getMusicSheetExtend() != null){
|
|
if(musicSheetApplication.getMusicSheetExtend() != null){
|
|
sheet.setAddName(musicSheetApplication.getMusicSheetExtend().getUserName());
|
|
sheet.setAddName(musicSheetApplication.getMusicSheetExtend().getUserName());
|
|
}
|
|
}
|
|
- List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheetApplication.getMusicSheetAccompanimentList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(accompanimentList)){
|
|
|
|
- sheet.setMetronomeUrl(accompanimentList.get(0).getAudioFileUrl());
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -908,7 +916,11 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
record.setMusicTagNames(musicSheetApplication.getMusicTagNames());
|
|
record.setMusicTagNames(musicSheetApplication.getMusicTagNames());
|
|
List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheetApplication.getMusicSheetAccompanimentList();
|
|
List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheetApplication.getMusicSheetAccompanimentList();
|
|
if (CollectionUtils.isNotEmpty(accompanimentList)) {
|
|
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.setXmlFileUrl(musicSheetApplication.getXmlFileUrl());
|
|
record.setMidiUrl(musicSheetApplication.getMidiFileUrl());
|
|
record.setMidiUrl(musicSheetApplication.getMidiFileUrl());
|
|
@@ -1661,10 +1673,6 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
if (CollectionUtils.isEmpty(rows)){
|
|
if (CollectionUtils.isEmpty(rows)){
|
|
throw new BizException("查询曲谱信息失败");
|
|
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 =
|
|
Map<Long,CbsMusicSheetWrapper.MusicSheetApplication> musicSheetMap =
|
|
rows.stream().collect(Collectors.toMap(CbsMusicSheetWrapper.MusicSheetApplication::getId, Function.identity()));
|
|
rows.stream().collect(Collectors.toMap(CbsMusicSheetWrapper.MusicSheetApplication::getId, Function.identity()));
|
|
for (MusicSheetDetailVo record : sheetDetailVos) {
|
|
for (MusicSheetDetailVo record : sheetDetailVos) {
|
|
@@ -1696,6 +1704,9 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
for (CbsMusicSheetWrapper.MusicSheetAccompaniment accompaniment : accompanimentList) {
|
|
for (CbsMusicSheetWrapper.MusicSheetAccompaniment accompaniment : accompanimentList) {
|
|
MusicSheetAccompaniment musicSheetAccompaniment = new MusicSheetAccompaniment();
|
|
MusicSheetAccompaniment musicSheetAccompaniment = new MusicSheetAccompaniment();
|
|
musicSheetAccompaniment.setAudioFileUrl(accompaniment.getAudioFileUrl());
|
|
musicSheetAccompaniment.setAudioFileUrl(accompaniment.getAudioFileUrl());
|
|
|
|
+ musicSheetAccompaniment.setMusicPdfUrl(accompaniment.getMusicPdfUrl());
|
|
|
|
+ musicSheetAccompaniment.setFirstPdfUrl(accompaniment.getFirstPdfUrl());
|
|
|
|
+ musicSheetAccompaniment.setJianPdfUrl(accompaniment.getJianPdfUrl());
|
|
background.add(musicSheetAccompaniment);
|
|
background.add(musicSheetAccompaniment);
|
|
}
|
|
}
|
|
}
|
|
}
|