|
@@ -173,7 +173,6 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
|
|
|
public void initMusicSheetVo(SysMusicScore record,CbsMusicSheetWrapper.MusicSheetApplication musicSheetApplication
|
|
|
,Map<Integer,CbsMusicalInstrumentWrapper.MusicalInstrumentQueryDto> musicalInstrumentQueryMap,Map<Integer, String> categoriesMap){
|
|
|
- record.setSubjectName(musicSheetApplication.getSubjectNames());
|
|
|
record.setRankIds(StringUtils.equals("FREE",musicSheetApplication.getPaymentType()) ? "" : "1");
|
|
|
record.setCbsMusicSheetId(musicSheetApplication.getId().toString());
|
|
|
record.setPlayMode(SysMusicScore.PlayMode.valueOf(musicSheetApplication.getPlayMode().getCode()));
|
|
@@ -203,18 +202,22 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
record.setOrder(musicSheetApplication.getSortNo());
|
|
|
record.setEnableEvaluation(musicSheetApplication.getIsEvaluated());
|
|
|
record.setIsOpenMetronome(musicSheetApplication.getIsUseSystemBeat() && musicSheetApplication.getIsPlayBeat());
|
|
|
- if(StringUtils.isNotEmpty(musicSheetApplication.getMusicalInstrumentIds())){
|
|
|
- String[] split = musicSheetApplication.getMusicalInstrumentIds().split(",");
|
|
|
- for (String s : split) {
|
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
- CbsMusicalInstrumentWrapper.MusicalInstrumentQueryDto musicalInstrumentQueryDto = musicalInstrumentQueryMap.get(Integer.parseInt(s));
|
|
|
- if(Objects.nonNull(musicalInstrumentQueryDto)){
|
|
|
- if(sb.length() > 0){
|
|
|
- sb.append(",");
|
|
|
+ if(musicSheetApplication.getMusicSheetType() == EMusicSheetType.CONCERT){
|
|
|
+ record.setSubjectName("");
|
|
|
+ }else {
|
|
|
+ if(StringUtils.isNotEmpty(musicSheetApplication.getMusicalInstrumentIds())){
|
|
|
+ String[] split = musicSheetApplication.getMusicalInstrumentIds().split(",");
|
|
|
+ for (String s : split) {
|
|
|
+ StringBuffer sb = new StringBuffer();
|
|
|
+ CbsMusicalInstrumentWrapper.MusicalInstrumentQueryDto musicalInstrumentQueryDto = musicalInstrumentQueryMap.get(Integer.parseInt(s));
|
|
|
+ if(Objects.nonNull(musicalInstrumentQueryDto)){
|
|
|
+ if(sb.length() > 0){
|
|
|
+ sb.append(",");
|
|
|
+ }
|
|
|
+ sb.append(musicalInstrumentQueryDto.getName());
|
|
|
}
|
|
|
- sb.append(musicalInstrumentQueryDto.getName());
|
|
|
+ record.setSubjectName(sb.toString());
|
|
|
}
|
|
|
- record.setSubjectName(sb.toString());
|
|
|
}
|
|
|
}
|
|
|
}
|