|
@@ -34,7 +34,6 @@ import com.yonge.cooleshow.biz.dal.mapper.TenantAlbumMusicMapper;
|
|
|
import com.yonge.cooleshow.biz.dal.mapper.TenantGroupAlbumMapper;
|
|
|
import com.yonge.cooleshow.biz.dal.mapper.UserTenantAlbumRecordMapper;
|
|
|
import com.yonge.cooleshow.biz.dal.service.*;
|
|
|
-import com.yonge.cooleshow.biz.dal.service.cbs.CbsMusicScoreService;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.*;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.res.OrderCreateRes;
|
|
|
import com.yonge.cooleshow.biz.dal.wrapper.*;
|
|
@@ -139,8 +138,6 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
@Resource
|
|
|
private TenantAlbumMusicService tenantAlbumMusicService;
|
|
|
@Resource
|
|
|
- private CbsMusicScoreService cbsMusicScoreService;
|
|
|
- @Resource
|
|
|
private TenantGroupAlbumMapper tenantGroupAlbumMapper;
|
|
|
@Resource
|
|
|
private TenantAlbumMusicMapper tenantAlbumMusicMapper;
|
|
@@ -303,17 +300,10 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
if (musicSheet == null) {
|
|
|
throw new BizException("未找到曲目信息");
|
|
|
}
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplicationQuery query = new CbsMusicSheetWrapper.MusicSheetApplicationQuery();
|
|
|
- query.setApplicationId(applicationId);
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplicationQuery query = this.getMusicSheetApplicationQuery();
|
|
|
query.setMusicSheetIds(Collections.singletonList(musicSheet.getCbsMusicSheetId()));
|
|
|
- query.setDelFlag(true);
|
|
|
- query.setPage(1);
|
|
|
query.setRows(1);
|
|
|
- R<com.microsvc.toolkit.common.response.paging.PageInfo<CbsMusicSheetWrapper.MusicSheetApplication>> pageInfoR = musicFeignClientService.musicSheetPageByApplication(query);
|
|
|
- if (pageInfoR.getCode() != 200) {
|
|
|
- throw new BizException("获取曲目信息异常,{}", pageInfoR.getMessage());
|
|
|
- }
|
|
|
- List<CbsMusicSheetWrapper.MusicSheetApplication> rows = pageInfoR.feignData().getRows();
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetApplication> rows = this.queryCbsMusicSheetApplication(query);
|
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
|
throw new BizException("获取曲目信息失败");
|
|
|
}
|
|
@@ -434,92 +424,87 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
}
|
|
|
|
|
|
public void initMusicSheetDetailVo(MusicSheetDetailVo detailVo,MusicSheet musicSheet) {
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplicationQuery query = new CbsMusicSheetWrapper.MusicSheetApplicationQuery();
|
|
|
- query.setPage(1);
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplicationQuery query = this.getMusicSheetApplicationQuery();
|
|
|
query.setRows(1);
|
|
|
query.setMusicSheetIds(Collections.singletonList(musicSheet.getCbsMusicSheetId()));
|
|
|
- query.setDetailFlag(true);
|
|
|
- R<PageInfo<CbsMusicSheetWrapper.MusicSheetApplication>> pageInfoR = cbsMusicScoreService.selectPage(query);
|
|
|
- if(pageInfoR.getCode() != 200){
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetApplication> rows = this.queryCbsMusicSheetApplication(query);
|
|
|
+ if(CollectionUtils.isEmpty(rows)){
|
|
|
throw new BizException("获取曲目信息失败");
|
|
|
}
|
|
|
- PageInfo<CbsMusicSheetWrapper.MusicSheetApplication> pageInfo = pageInfoR.getData();
|
|
|
- if(pageInfo != null && CollectionUtils.isNotEmpty(pageInfo.getRows())){
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplication musicSheet1 = pageInfo.getRows().get(0);
|
|
|
- CbsMusicSheetWrapper.MusicSheetExtend musicSheetExtend = musicSheet1.getMusicSheetExtend();
|
|
|
- if (musicSheetExtend != null && musicSheetExtend.getUserId() != null) {
|
|
|
- detailVo.setUserName(musicSheetExtend.getUserName());
|
|
|
- detailVo.setUserId(musicSheetExtend.getUserId());
|
|
|
- //获取用户头像
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserById(musicSheetExtend.getUserId());
|
|
|
- if (sysUser != null) {
|
|
|
- detailVo.setUserAvatar(sysUser.getAvatar());
|
|
|
- }
|
|
|
- }
|
|
|
- detailVo.setMusicPrice(musicSheet1.getMusicPrice());
|
|
|
- detailVo.setSubjectNames(musicSheet1.getSubjectNames());
|
|
|
- detailVo.setCode(musicSheet1.getSubjectCodes());
|
|
|
- detailVo.setId(musicSheet.getId());
|
|
|
- detailVo.setCbsMusicSheetId(musicSheet1.getId());
|
|
|
- detailVo.setMp3Type(AudioTypeEnum.valueOf(musicSheet1.getIsPlayBeat()&&musicSheet1.getIsUseSystemBeat()?"MP3":"MP3_METRONOME"));
|
|
|
- detailVo.setIsPlayBeat(musicSheet1.getIsPlayBeat());
|
|
|
- detailVo.setAudioType(AudioTypeEnum.valueOf(musicSheet1.getPlayMode().getCode()));
|
|
|
- detailVo.setCanEvaluate(musicSheet1.getIsEvaluated() ? YesOrNoEnum.YES : YesOrNoEnum.NO);
|
|
|
- detailVo.setShowFingering(musicSheet1.getIsShowFingering() ? YesOrNoEnum.YES : YesOrNoEnum.NO);
|
|
|
- detailVo.setMusicTagNames(musicSheet1.getMusicTagNames());
|
|
|
- detailVo.setMusicImg(musicSheet1.getMusicImg());
|
|
|
- detailVo.setTitleImg(musicSheet1.getMusicCover());
|
|
|
- detailVo.setPlaySpeed(musicSheet1.getPlaySpeed());
|
|
|
- List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheet1.getMusicSheetAccompanimentList();
|
|
|
- if (CollectionUtils.isNotEmpty(accompanimentList)) {
|
|
|
- detailVo.setMetronomeUrl(accompanimentList.get(0).getAudioFileUrl());
|
|
|
- }
|
|
|
- detailVo.setXmlFileUrl(musicSheet1.getXmlFileUrl());
|
|
|
- detailVo.setMidiUrl(musicSheet1.getMidiFileUrl());
|
|
|
- detailVo.setAuditVersion(musicSheet1.getAppAuditFlag() ? YesOrNoEnum.YES : YesOrNoEnum.NO);
|
|
|
- detailVo.setHasBeat((musicSheet1.getIsPlayBeat() && !musicSheet1.getIsUseSystemBeat()) ? YesOrNoEnum.YES : YesOrNoEnum.NO);
|
|
|
- detailVo.setExtConfigJson(musicSheet1.getExtConfigJson());
|
|
|
- detailVo.setMusicJSON(musicSheet1.getMusicJson());
|
|
|
- detailVo.setMusicJianSvg(musicSheet1.getMusicJianSvg());
|
|
|
- detailVo.setMusicFirstSvg(musicSheet1.getMusicFirstSvg());
|
|
|
- detailVo.setFirstTone(musicSheet1.getMusicFirstImg());
|
|
|
- detailVo.setFixedTone(musicSheet1.getMusicJianImg());
|
|
|
- List<CbsMusicSheetWrapper.MusicSheetSound> soundList = musicSheet1.getMusicSheetSoundList();
|
|
|
- if (CollectionUtils.isNotEmpty(soundList)) {
|
|
|
- List<MusicSheetAccompaniment> background = new ArrayList<>();
|
|
|
- for (CbsMusicSheetWrapper.MusicSheetSound sound : soundList) {
|
|
|
- MusicSheetAccompaniment accompaniment = new MusicSheetAccompaniment();
|
|
|
- accompaniment.setMusicSheetId(musicSheet.getId());
|
|
|
- accompaniment.setAudioFileUrl(sound.getAudioFileUrl());
|
|
|
- accompaniment.setSortNumber(sound.getSortNumber());
|
|
|
- accompaniment.setTrack(sound.getTrack());
|
|
|
- accompaniment.setMusicalInstrumentId(sound.getMusicalInstrumentId());
|
|
|
- background.add(accompaniment);
|
|
|
- }
|
|
|
- //按照sortNumber排序
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplication musicSheet1 = rows.get(0);
|
|
|
+ CbsMusicSheetWrapper.MusicSheetExtend musicSheetExtend = musicSheet1.getMusicSheetExtend();
|
|
|
+ if (musicSheetExtend != null && musicSheetExtend.getUserId() != null) {
|
|
|
+ detailVo.setUserName(musicSheetExtend.getUserName());
|
|
|
+ detailVo.setUserId(musicSheetExtend.getUserId());
|
|
|
+ //获取用户头像
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserById(musicSheetExtend.getUserId());
|
|
|
+ if (sysUser != null) {
|
|
|
+ detailVo.setUserAvatar(sysUser.getAvatar());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ detailVo.setMusicPrice(musicSheet1.getMusicPrice());
|
|
|
+ detailVo.setSubjectNames(musicSheet1.getSubjectNames());
|
|
|
+ detailVo.setCode(musicSheet1.getSubjectCodes());
|
|
|
+ detailVo.setId(musicSheet.getId());
|
|
|
+ detailVo.setCbsMusicSheetId(musicSheet1.getId());
|
|
|
+ detailVo.setMp3Type(AudioTypeEnum.valueOf(musicSheet1.getIsPlayBeat()&&musicSheet1.getIsUseSystemBeat()?"MP3":"MP3_METRONOME"));
|
|
|
+ detailVo.setIsPlayBeat(musicSheet1.getIsPlayBeat());
|
|
|
+ detailVo.setAudioType(AudioTypeEnum.valueOf(musicSheet1.getPlayMode().getCode()));
|
|
|
+ detailVo.setCanEvaluate(musicSheet1.getIsEvaluated() ? YesOrNoEnum.YES : YesOrNoEnum.NO);
|
|
|
+ detailVo.setShowFingering(musicSheet1.getIsShowFingering() ? YesOrNoEnum.YES : YesOrNoEnum.NO);
|
|
|
+ detailVo.setMusicTagNames(musicSheet1.getMusicTagNames());
|
|
|
+ detailVo.setMusicImg(musicSheet1.getMusicImg());
|
|
|
+ detailVo.setTitleImg(musicSheet1.getMusicCover());
|
|
|
+ detailVo.setPlaySpeed(musicSheet1.getPlaySpeed());
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetAccompaniment> accompanimentList = musicSheet1.getMusicSheetAccompanimentList();
|
|
|
+ if (CollectionUtils.isNotEmpty(accompanimentList)) {
|
|
|
+ detailVo.setMetronomeUrl(accompanimentList.get(0).getAudioFileUrl());
|
|
|
+ }
|
|
|
+ detailVo.setXmlFileUrl(musicSheet1.getXmlFileUrl());
|
|
|
+ detailVo.setMidiUrl(musicSheet1.getMidiFileUrl());
|
|
|
+ detailVo.setAuditVersion(musicSheet1.getAppAuditFlag() ? YesOrNoEnum.YES : YesOrNoEnum.NO);
|
|
|
+ detailVo.setHasBeat((musicSheet1.getIsPlayBeat() && !musicSheet1.getIsUseSystemBeat()) ? YesOrNoEnum.YES : YesOrNoEnum.NO);
|
|
|
+ detailVo.setExtConfigJson(musicSheet1.getExtConfigJson());
|
|
|
+ detailVo.setMusicJSON(musicSheet1.getMusicJson());
|
|
|
+ detailVo.setMusicJianSvg(musicSheet1.getMusicJianSvg());
|
|
|
+ detailVo.setMusicFirstSvg(musicSheet1.getMusicFirstSvg());
|
|
|
+ detailVo.setFirstTone(musicSheet1.getMusicFirstImg());
|
|
|
+ detailVo.setFixedTone(musicSheet1.getMusicJianImg());
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetSound> soundList = musicSheet1.getMusicSheetSoundList();
|
|
|
+ if (CollectionUtils.isNotEmpty(soundList)) {
|
|
|
+ List<MusicSheetAccompaniment> background = new ArrayList<>();
|
|
|
+ for (CbsMusicSheetWrapper.MusicSheetSound sound : soundList) {
|
|
|
+ MusicSheetAccompaniment accompaniment = new MusicSheetAccompaniment();
|
|
|
+ accompaniment.setMusicSheetId(musicSheet.getId());
|
|
|
+ accompaniment.setAudioFileUrl(sound.getAudioFileUrl());
|
|
|
+ accompaniment.setSortNumber(sound.getSortNumber());
|
|
|
+ accompaniment.setTrack(sound.getTrack());
|
|
|
+ accompaniment.setMusicalInstrumentId(sound.getMusicalInstrumentId());
|
|
|
+ background.add(accompaniment);
|
|
|
+ }
|
|
|
+ //按照sortNumber排序
|
|
|
// background.sort(Comparator.comparing(MusicSheetAccompaniment::getSortNumber));
|
|
|
- detailVo.setBackground(background);
|
|
|
- //获取乐器名称
|
|
|
- String instrumentIds = background.stream().map(e -> e.getMusicalInstrumentId()).filter(StringUtils::isNotEmpty).collect(Collectors.joining(","));
|
|
|
- if (StringUtils.isNotEmpty(instrumentIds)) {
|
|
|
- List<Long> instrumentIsList = Arrays.stream(instrumentIds.split(",")).map(Long::valueOf).distinct().collect(Collectors.toList());
|
|
|
- List<InstrumentWrapper.Instrument> instruments = instrumentService.getInstruments(instrumentIsList);
|
|
|
- Map<Long,InstrumentWrapper.Instrument> instrumentMap =
|
|
|
- instruments.stream().collect(Collectors.toMap(InstrumentWrapper.Instrument::getId, o -> o, (o1, o2) -> o1));
|
|
|
- for (MusicSheetAccompaniment accompaniment : background) {
|
|
|
- if (StringUtils.isNotEmpty(accompaniment.getMusicalInstrumentId())){
|
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
- for (String s : accompaniment.getMusicalInstrumentId().split(",")) {
|
|
|
- InstrumentWrapper.Instrument instrument = instrumentMap.get(Long.parseLong(s));
|
|
|
- if (instrument != null){
|
|
|
- if(sb.length() > 0) {
|
|
|
- sb.append(",");
|
|
|
- }
|
|
|
- sb.append(instrument.getName());
|
|
|
+ detailVo.setBackground(background);
|
|
|
+ //获取乐器名称
|
|
|
+ String instrumentIds = background.stream().map(e -> e.getMusicalInstrumentId()).filter(StringUtils::isNotEmpty).collect(Collectors.joining(","));
|
|
|
+ if (StringUtils.isNotEmpty(instrumentIds)) {
|
|
|
+ List<Long> instrumentIsList = Arrays.stream(instrumentIds.split(",")).map(Long::valueOf).distinct().collect(Collectors.toList());
|
|
|
+ List<InstrumentWrapper.Instrument> instruments = instrumentService.getInstruments(instrumentIsList);
|
|
|
+ Map<Long,InstrumentWrapper.Instrument> instrumentMap =
|
|
|
+ instruments.stream().collect(Collectors.toMap(InstrumentWrapper.Instrument::getId, o -> o, (o1, o2) -> o1));
|
|
|
+ for (MusicSheetAccompaniment accompaniment : background) {
|
|
|
+ if (StringUtils.isNotEmpty(accompaniment.getMusicalInstrumentId())){
|
|
|
+ StringBuffer sb = new StringBuffer();
|
|
|
+ for (String s : accompaniment.getMusicalInstrumentId().split(",")) {
|
|
|
+ InstrumentWrapper.Instrument instrument = instrumentMap.get(Long.parseLong(s));
|
|
|
+ if (instrument != null){
|
|
|
+ if(sb.length() > 0) {
|
|
|
+ sb.append(",");
|
|
|
}
|
|
|
+ sb.append(instrument.getName());
|
|
|
}
|
|
|
- accompaniment.setMusicalInstrumentName(sb.toString());
|
|
|
}
|
|
|
+ accompaniment.setMusicalInstrumentName(sb.toString());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -851,24 +836,19 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
public void initMusicSheetVos(List<MusicSheetVo> records) {
|
|
|
if(CollectionUtils.isNotEmpty(records)){
|
|
|
List<Long> cbsMusicSheetIds = records.stream().map(e -> e.getCbsMusicSheetId()).collect(Collectors.toList());
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplicationQuery query = new CbsMusicSheetWrapper.MusicSheetApplicationQuery();
|
|
|
- query.setPage(1);
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplicationQuery query = this.getMusicSheetApplicationQuery();
|
|
|
query.setRows(cbsMusicSheetIds.size());
|
|
|
query.setMusicSheetIds(cbsMusicSheetIds);
|
|
|
- query.setDetailFlag(true);
|
|
|
- R<PageInfo<CbsMusicSheetWrapper.MusicSheetApplication>> pageInfoR = cbsMusicScoreService.selectPage(query);
|
|
|
- if(pageInfoR.getCode() != 200){
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetApplication> rows = this.queryCbsMusicSheetApplication(query);
|
|
|
+ if(CollectionUtils.isEmpty(rows)){
|
|
|
throw new BizException("获取曲目信息失败");
|
|
|
}
|
|
|
- PageInfo<CbsMusicSheetWrapper.MusicSheetApplication> pageInfo = pageInfoR.getData();
|
|
|
- if(pageInfo != null && CollectionUtils.isNotEmpty(pageInfo.getRows())){
|
|
|
- Map<Long, CbsMusicSheetWrapper.MusicSheetApplication> musicSheetApplicationMap = pageInfo.getRows()
|
|
|
- .stream().collect(Collectors.toMap(CbsMusicSheetWrapper.MusicSheetApplication::getId, Function.identity()));
|
|
|
- for (MusicSheetVo record : records) {
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplication musicSheetApplication = musicSheetApplicationMap.get(record.getCbsMusicSheetId());
|
|
|
- if(musicSheetApplication != null){
|
|
|
- this.initMusicSheetVo(record,musicSheetApplication);
|
|
|
- }
|
|
|
+ Map<Long, CbsMusicSheetWrapper.MusicSheetApplication> musicSheetApplicationMap = rows
|
|
|
+ .stream().collect(Collectors.toMap(CbsMusicSheetWrapper.MusicSheetApplication::getId, Function.identity()));
|
|
|
+ for (MusicSheetVo record : records) {
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplication musicSheetApplication = musicSheetApplicationMap.get(record.getCbsMusicSheetId());
|
|
|
+ if(musicSheetApplication != null){
|
|
|
+ this.initMusicSheetVo(record,musicSheetApplication);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1031,17 +1011,10 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
if (musicSheet == null) {
|
|
|
throw new BizException("曲目不存在");
|
|
|
}
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplicationQuery query = new CbsMusicSheetWrapper.MusicSheetApplicationQuery();
|
|
|
- query.setApplicationId(applicationId);
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplicationQuery query = this.getMusicSheetApplicationQuery();
|
|
|
query.setMusicSheetIds(Collections.singletonList(musicSheet.getCbsMusicSheetId()));
|
|
|
- query.setDelFlag(true);
|
|
|
- query.setPage(1);
|
|
|
query.setRows(1);
|
|
|
- R<com.microsvc.toolkit.common.response.paging.PageInfo<CbsMusicSheetWrapper.MusicSheetApplication>> pageInfoR = musicFeignClientService.musicSheetPageByApplication(query);
|
|
|
- if (pageInfoR.getCode() != 200) {
|
|
|
- throw new BizException("获取曲目信息异常,{}", pageInfoR.getMessage());
|
|
|
- }
|
|
|
- List<CbsMusicSheetWrapper.MusicSheetApplication> rows = pageInfoR.feignData().getRows();
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetApplication> rows = this.queryCbsMusicSheetApplication(query);
|
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
|
throw new BizException("获取曲目信息失败");
|
|
|
}
|
|
@@ -1533,17 +1506,10 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
List<Long> musicSheets = Arrays.stream(reasonDto.getMusicSheetIds().split(",")).map(Long::parseLong).collect(Collectors.toList());
|
|
|
List<MusicSheet> musicSheetList = musicSheetService.lambdaQuery().in(MusicSheet::getId, musicSheets).list();
|
|
|
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplicationQuery query = new CbsMusicSheetWrapper.MusicSheetApplicationQuery();
|
|
|
- query.setApplicationId(applicationId);
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplicationQuery query = this.getMusicSheetApplicationQuery();
|
|
|
query.setMusicSheetIds(musicSheetList.stream().map(MusicSheet::getCbsMusicSheetId).collect(Collectors.toList()));
|
|
|
- query.setDelFlag(true);
|
|
|
- query.setPage(1);
|
|
|
query.setRows(musicSheets.size());
|
|
|
- R<com.microsvc.toolkit.common.response.paging.PageInfo<CbsMusicSheetWrapper.MusicSheetApplication>> pageInfoR = musicFeignClientService.musicSheetPageByApplication(query);
|
|
|
- if (pageInfoR.getCode() != 200) {
|
|
|
- throw new BizException("获取曲目信息异常,{}", pageInfoR.getMessage());
|
|
|
- }
|
|
|
- List<CbsMusicSheetWrapper.MusicSheetApplication> rows = pageInfoR.feignData().getRows();
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetApplication> rows = this.queryCbsMusicSheetApplication(query);
|
|
|
if (CollectionUtils.isEmpty(rows)) {
|
|
|
throw new BizException("获取曲目信息失败");
|
|
|
}
|
|
@@ -1572,17 +1538,10 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
if(CollectionUtils.isEmpty(sheetDetailVos)){
|
|
|
return;
|
|
|
}
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplicationQuery query = new CbsMusicSheetWrapper.MusicSheetApplicationQuery();
|
|
|
- query.setApplicationId(applicationId);
|
|
|
- query.setMusicSheetIds(sheetDetailVos.stream().map(e->e.getCbsMusicSheetId()).collect(Collectors.toList()));
|
|
|
- query.setDelFlag(true);
|
|
|
- query.setPage(1);
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplicationQuery query = this.getMusicSheetApplicationQuery();
|
|
|
+ query.setMusicSheetIds(sheetDetailVos.stream().map(MusicSheet::getCbsMusicSheetId).collect(Collectors.toList()));
|
|
|
query.setRows(query.getMusicSheetIds().size());
|
|
|
- R<PageInfo<CbsMusicSheetWrapper.MusicSheetApplication>> pageInfoR = musicFeignClientService.musicSheetPageByApplication(query);
|
|
|
- if(pageInfoR.getCode() != 200){
|
|
|
- throw new BizException("查询曲谱信息异常");
|
|
|
- }
|
|
|
- List<CbsMusicSheetWrapper.MusicSheetApplication> rows = pageInfoR.feignData().getRows();
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetApplication> rows = this.queryCbsMusicSheetApplication(query);
|
|
|
if (CollectionUtils.isEmpty(rows)){
|
|
|
throw new BizException("查询曲谱信息失败");
|
|
|
}
|
|
@@ -2385,6 +2344,7 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
query.setDetailFlag(true);
|
|
|
query.setDelFlag(true);
|
|
|
query.setPage(1);
|
|
|
+ query.setAudioPlayTypeFlag(false);
|
|
|
query.setApplicationId(applicationId);
|
|
|
return query;
|
|
|
}
|