|
@@ -2,15 +2,21 @@ package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.dayaedu.cbs.common.enums.music.EMusicAvailableType;
|
|
|
+import com.dayaedu.cbs.domain.wrapper.MusicSheetWrapper;
|
|
|
import com.dayaedu.cbs.openfeign.client.MusicFeignClientService;
|
|
|
import com.dayaedu.cbs.openfeign.wrapper.music.CbsMusicSheetApplicationExtendClientWrapper;
|
|
|
import com.dayaedu.cbs.openfeign.wrapper.music.CbsMusicSheetWrapper;
|
|
|
import com.microsvc.toolkit.common.response.template.R;
|
|
|
-import com.ym.mec.biz.dal.dao.*;
|
|
|
+import com.ym.mec.biz.dal.dao.SysMusicScoreAccompanimentDao;
|
|
|
+import com.ym.mec.biz.dal.dao.SysMusicScoreCategoriesDao;
|
|
|
+import com.ym.mec.biz.dal.dao.SysMusicScoreDao;
|
|
|
import com.ym.mec.biz.dal.dto.MusicScoreDto;
|
|
|
-import com.ym.mec.biz.dal.dto.SysMusicScoreMetronomeTranscod;
|
|
|
-import com.ym.mec.biz.dal.dto.SysMusicScoreTranscod;
|
|
|
-import com.ym.mec.biz.dal.entity.*;
|
|
|
+import com.ym.mec.biz.dal.dto.ReasonDto;
|
|
|
+import com.ym.mec.biz.dal.entity.SysMusicScore;
|
|
|
+import com.ym.mec.biz.dal.entity.SysMusicScoreAccompaniment;
|
|
|
+import com.ym.mec.biz.dal.entity.SysMusicScoreCategories;
|
|
|
+import com.ym.mec.biz.dal.enums.YesOrNoEnum;
|
|
|
import com.ym.mec.biz.dal.page.SysExamSongQueryInfo;
|
|
|
import com.ym.mec.biz.service.*;
|
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
@@ -51,12 +57,8 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
@Resource
|
|
|
private SysMusicScoreCategoriesDao sysMusicScoreCategoriesDao;
|
|
|
@Resource
|
|
|
- private SubjectDao subjectDao;
|
|
|
- @Resource
|
|
|
private SysMusicScoreCategoriesService sysMusicScoreCategoriesService;
|
|
|
@Resource
|
|
|
- private SysMusicScoreChangeLogDao sysMusicScoreChangeLogDao;
|
|
|
- @Resource
|
|
|
private IdGeneratorService idGeneratorService;
|
|
|
@Resource
|
|
|
private UploadFileService uploadFileService;
|
|
@@ -80,49 +82,12 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void updateMusicScore(MusicScoreDto musicScoreDto) {
|
|
|
- SysMusicScore sysMusicScore = musicScoreDto.getSysMusicScore();
|
|
|
- sysMusicScoreDao.update(sysMusicScore);
|
|
|
- List<Integer> delExamSongAccompanimentIds = musicScoreDto.getDelExamSongAccompanimentIds();
|
|
|
- if (delExamSongAccompanimentIds != null && delExamSongAccompanimentIds.size() > 0) {
|
|
|
- sysMusicScoreAccompanimentDao.batchDel(delExamSongAccompanimentIds);
|
|
|
- }
|
|
|
- List<SysMusicScoreAccompaniment> sysMusicScoreAccompaniments = musicScoreDto.getSysMusicScoreAccompaniments();
|
|
|
- if (sysMusicScoreAccompaniments != null && sysMusicScoreAccompaniments.size() > 0) {
|
|
|
- List<Integer> subjectIdList = sysMusicScoreAccompaniments.stream().map(e -> e.getSubjectId()).collect(Collectors.toList());
|
|
|
- subjectIdList.removeAll(Collections.singleton(null));
|
|
|
-
|
|
|
- if (subjectIdList.size() > 0) {
|
|
|
- List<Integer> idList = sysMusicScoreAccompaniments.stream().map(e -> e.getId()).collect(Collectors.toList());
|
|
|
- List<Integer> subjectIds = sysMusicScoreAccompanimentDao.findSubjectByMusicScoreId(sysMusicScore.getId(), idList);
|
|
|
- int subjectSize = subjectIds.size() + subjectIdList.size();
|
|
|
- subjectIdList.addAll(subjectIds);
|
|
|
- int size = new HashSet<>(subjectIdList).size();
|
|
|
- if (size < subjectSize && !musicScoreDto.getMultitrack()) {
|
|
|
- throw new BizException("操作失败:请勿提交重复的伴奏声部");
|
|
|
- }
|
|
|
- }
|
|
|
- //获取需要修改的伴奏
|
|
|
- List<SysMusicScoreAccompaniment> updateCollect = sysMusicScoreAccompaniments.stream().filter(e -> e.getId() != null).collect(Collectors.toList());
|
|
|
- if (updateCollect.size() > 0) {
|
|
|
- sysMusicScoreAccompanimentDao.batchUpdate(updateCollect, sysMusicScore.getIsOpenMetronome());
|
|
|
- }
|
|
|
- //获取需要新增的伴奏
|
|
|
- List<SysMusicScoreAccompaniment> addCollect = sysMusicScoreAccompaniments.stream().filter(e -> e.getId() == null).collect(Collectors.toList());
|
|
|
- if (addCollect.size() > 0) {
|
|
|
- sysMusicScoreAccompanimentDao.batchInsert(addCollect, sysMusicScore.getId(), sysMusicScore.getIsOpenMetronome());
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
public void add(MusicScoreDto musicScoreDto) {
|
|
|
SysMusicScore sysMusicScore = musicScoreDto.getSysMusicScore();
|
|
|
sysMusicScore.setCreateUserId(sysUserService.getUserId());
|
|
|
sysMusicScoreDao.insert(sysMusicScore);
|
|
|
List<SysMusicScoreAccompaniment> sysMusicScoreAccompaniments = musicScoreDto.getSysMusicScoreAccompaniments();
|
|
|
- if (sysMusicScoreAccompaniments != null && sysMusicScoreAccompaniments.size() > 0) {
|
|
|
+ if (CollectionUtils.isNotEmpty(sysMusicScoreAccompaniments)) {
|
|
|
sysMusicScoreAccompaniments.forEach(e -> {
|
|
|
e.setIsOpenMetronome(sysMusicScore.getIsOpenMetronome());
|
|
|
});
|
|
@@ -191,9 +156,9 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<CbsMusicSheetWrapper.MusicSheetApplication> queryCbsMusicSheetApplication(List<Long> cbsMusicSheetIds){
|
|
|
+ public List<CbsMusicSheetWrapper.MusicSheetApplication> queryCbsMusicSheetApplication(List<String> cbsMusicSheetIds){
|
|
|
CbsMusicSheetWrapper.MusicSheetApplicationQuery query = new CbsMusicSheetWrapper.MusicSheetApplicationQuery();
|
|
|
- query.setMusicSheetIds(cbsMusicSheetIds);
|
|
|
+ query.setMusicSheetIds(cbsMusicSheetIds.stream().map(Long::parseLong).collect(Collectors.toList()));
|
|
|
query.setDetailFlag(true);
|
|
|
query.setDelFlag(true);
|
|
|
query.setPage(1);
|
|
@@ -213,60 +178,36 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
|
|
|
private void dealMusicScoreData(List<SysMusicScore> records){
|
|
|
if (CollectionUtils.isNotEmpty(records)) {
|
|
|
- List<Long> cbsMusicSheetIds = records.stream().map(e -> e.getCbsMusicSheetId()).collect(Collectors.toList());
|
|
|
+ List<String> cbsMusicSheetIds = records.stream().map(SysMusicScore::getCbsMusicSheetId).collect(Collectors.toList());
|
|
|
List<CbsMusicSheetWrapper.MusicSheetApplication> applications = this.queryCbsMusicSheetApplication(cbsMusicSheetIds);
|
|
|
if(CollectionUtils.isNotEmpty(applications)){
|
|
|
+ Set<Integer> categoriesIds = records.stream().map(SysMusicScore::getMusicScoreCategoriesId).collect(Collectors.toSet());
|
|
|
+ //获取分部列表
|
|
|
+ Map<Integer, String> organMap = MapUtil.convertMybatisMap(sysMusicScoreCategoriesDao.queryOrganByIds(categoriesIds));
|
|
|
+ Map<Integer, String> map = new HashMap<>(categoriesIds.size());
|
|
|
+ for (Integer categoriesId : categoriesIds) {
|
|
|
+ if(null != categoriesId){
|
|
|
+ map.put(categoriesId, getParentTreeName(categoriesId));
|
|
|
+ }
|
|
|
+ }
|
|
|
Map<Long, CbsMusicSheetWrapper.MusicSheetApplication> musicSheetApplicationMap = applications
|
|
|
.stream().collect(Collectors.toMap(CbsMusicSheetWrapper.MusicSheetApplication::getId, Function.identity()));
|
|
|
- List<Subject> subjects = subjectDao.queryCbsList(null);
|
|
|
- Map<Long, Subject> subjectMap = subjects.stream().collect(Collectors.toMap(Subject::getCbsSubjectId, Function.identity()));
|
|
|
for (SysMusicScore record : records) {
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplication musicSheetApplication = musicSheetApplicationMap.get(record.getCbsMusicSheetId());
|
|
|
+ record.setCategoriesName(map.get(record.getMusicScoreCategoriesId()));
|
|
|
+ record.setOrganName(organMap.get(record.getMusicScoreCategoriesId()));
|
|
|
+ CbsMusicSheetWrapper.MusicSheetApplication musicSheetApplication = musicSheetApplicationMap.get(Long.parseLong(record.getCbsMusicSheetId()));
|
|
|
if(musicSheetApplication != null){
|
|
|
- this.initMusicSheetVo(record,musicSheetApplication,subjectMap);
|
|
|
+ this.initMusicSheetVo(record,musicSheetApplication);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- Set<Integer> categoriesIds = records.stream().map(e -> e.getMusicScoreCategoriesId()).collect(Collectors.toSet());
|
|
|
- //获取分部列表
|
|
|
- Map<Integer, String> organMap = MapUtil.convertMybatisMap(sysMusicScoreCategoriesDao.queryOrganByIds(categoriesIds));
|
|
|
- //获取声部列表
|
|
|
- /*Set<Integer> subjectIds = rows.stream().map(e -> e.getSubjectId()).collect(Collectors.toSet());
|
|
|
- subjectIds.removeAll(Collections.singleton(null));
|
|
|
- Map<Long, String> subjectMap = new HashMap();
|
|
|
- if (subjectIds.size() > 0) {
|
|
|
- String ids = StringUtils.join(subjectIds, ",");
|
|
|
- subjectMap = MapUtil.convertMybatisMap(subjectDao.findBySubjecIds(ids));
|
|
|
- }*/
|
|
|
- Map<Integer, String> map = new HashMap<>(categoriesIds.size());
|
|
|
- for (Integer categoriesId : categoriesIds) {
|
|
|
- if(null != categoriesId){
|
|
|
- map.put(categoriesId, getParentTreeName(categoriesId));
|
|
|
- }
|
|
|
- }
|
|
|
- for (SysMusicScore row : records) {
|
|
|
- row.setCategoriesName(map.get(row.getMusicScoreCategoriesId()));
|
|
|
- row.setOrganName(organMap.get(row.getMusicScoreCategoriesId()));
|
|
|
-// row.setSubjectName(subjectMap.get(row.getSubjectId()));
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void initMusicSheetVo(SysMusicScore record,CbsMusicSheetWrapper.MusicSheetApplication musicSheetApplication,Map<Long, Subject> subjectMap){
|
|
|
- if(StringUtils.isNotEmpty(musicSheetApplication.getSubjectIds())){
|
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
- for (String s : musicSheetApplication.getSubjectIds().split(",")) {
|
|
|
- Subject subject = subjectMap.get(Long.parseLong(s));
|
|
|
- if(subject != null){
|
|
|
- if (sb.length() > 0) {
|
|
|
- sb.append(",");
|
|
|
- }
|
|
|
- sb.append(subject.getName());
|
|
|
- }
|
|
|
- }
|
|
|
- record.setSubjectName(sb.toString());
|
|
|
- }
|
|
|
- record.setCbsMusicSheetId(musicSheetApplication.getId());
|
|
|
+ public void initMusicSheetVo(SysMusicScore record,CbsMusicSheetWrapper.MusicSheetApplication musicSheetApplication){
|
|
|
+ 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()));
|
|
|
record.setExtConfigJson(musicSheetApplication.getExtConfigJson());
|
|
|
record.setExtStyleConfigJson(musicSheetApplication.getExtStyleConfigJson());
|
|
@@ -362,77 +303,6 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void transcod(Integer sysMusicScoreId) {
|
|
|
- SysMusicScoreTranscod obj = sysMusicScoreDao.getTranscod(sysMusicScoreId);
|
|
|
- if (obj == null) {
|
|
|
- throw new BizException("曲目信息不存在");
|
|
|
- }
|
|
|
- List<SysMusicScoreMetronomeTranscod> metronomeTranscod = sysMusicScoreDao.getMetronomeTranscod(sysMusicScoreId);
|
|
|
- obj.setAccompanimentList(metronomeTranscod);
|
|
|
- //
|
|
|
- String old = JSONObject.toJSONString(obj);
|
|
|
- boolean flag = false;
|
|
|
- String url = doTranscod(obj.getUrl());
|
|
|
- if (StringUtils.isNotEmpty(url)) {
|
|
|
- obj.setUrl(url);
|
|
|
- flag = true;
|
|
|
- }
|
|
|
- String metronomeUrl = doTranscod(obj.getMetronomeUrl());
|
|
|
- if (StringUtils.isNotEmpty(metronomeUrl)) {
|
|
|
- obj.setMetronomeUrl(metronomeUrl);
|
|
|
- flag = true;
|
|
|
- }
|
|
|
- if (flag) {
|
|
|
- //更新obj
|
|
|
- SysMusicScore sysMusicScore = new SysMusicScore();
|
|
|
- sysMusicScore.setId(obj.getId());
|
|
|
- sysMusicScore.setUrl(obj.getUrl());
|
|
|
- sysMusicScore.setMetronomeUrl(obj.getMetronomeUrl());
|
|
|
- sysMusicScoreDao.update(sysMusicScore);
|
|
|
- }
|
|
|
-
|
|
|
- for (SysMusicScoreMetronomeTranscod o : metronomeTranscod) {
|
|
|
- Boolean subFlag = false;
|
|
|
- String mp3Url = doTranscod(o.getMp3Url());
|
|
|
- if (StringUtils.isNotEmpty(mp3Url)) {
|
|
|
- o.setMp3Url(mp3Url);
|
|
|
- flag = true;
|
|
|
- subFlag = true;
|
|
|
- }
|
|
|
- String metronomeMp3Url = doTranscod(o.getMetronomeMp3Url());
|
|
|
- if (StringUtils.isNotEmpty(metronomeMp3Url)) {
|
|
|
- o.setMetronomeMp3Url(metronomeMp3Url);
|
|
|
- flag = true;
|
|
|
- subFlag = true;
|
|
|
- }
|
|
|
- if (subFlag) {
|
|
|
- SysMusicScoreAccompaniment accompaniment = new SysMusicScoreAccompaniment();
|
|
|
- accompaniment.setExamSongId(o.getId());
|
|
|
- accompaniment.setMp3Url(o.getMp3Url());
|
|
|
- accompaniment.setMetronomeMp3Url(o.getMetronomeMp3Url());
|
|
|
- sysMusicScoreDao.updateAccompanimentBySongId(accompaniment);
|
|
|
- }
|
|
|
- }
|
|
|
- if (!flag) {
|
|
|
- return;
|
|
|
- }
|
|
|
- obj.setAccompanimentList(metronomeTranscod);
|
|
|
- String now = JSONObject.toJSONString(obj);
|
|
|
-
|
|
|
- //记录日志
|
|
|
- SysMusicScoreChangeLog log = new SysMusicScoreChangeLog();
|
|
|
- log.setSysMusicScoreId(obj.getId());
|
|
|
- log.setChangeBefore(old);
|
|
|
- log.setChangeAfter(now);
|
|
|
- sysMusicScoreChangeLogDao.insert(log);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public int updateExtStyleConfigJson(Integer id, String extStyleConfigJson) {
|
|
|
- return sysMusicScoreDao.updateExtStyleConfigJson(id, extStyleConfigJson);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
public Map<Long, SysMusicScore> getMapByIds(List<Long> musicSheetIds) {
|
|
|
if (CollectionUtils.isEmpty(musicSheetIds)) {
|
|
|
return new HashMap<>();
|
|
@@ -446,33 +316,51 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void enable(Integer sysMusicScoreId, Integer showFlag) {
|
|
|
- SysMusicScore sysMusicScore = this.get(sysMusicScoreId);
|
|
|
- if(sysMusicScore == null){
|
|
|
- throw new BizException("曲目信息不存在");
|
|
|
- }
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplicationQuery query = new CbsMusicSheetWrapper.MusicSheetApplicationQuery();
|
|
|
- query.setApplicationId(applicationId);
|
|
|
- query.setMusicSheetIds(Collections.singletonList(sysMusicScore.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());
|
|
|
+ public Boolean stateList(ReasonDto reasonDto) {
|
|
|
+ List<Integer> musicSheets = Arrays.stream(reasonDto.getMusicSheetIds().split(",")).map(Integer::parseInt).collect(Collectors.toList());
|
|
|
+ List<SysMusicScore> musicSheetList = sysMusicScoreDao.findByIds(musicSheets.stream().map(String::valueOf).collect(Collectors.joining(",")));
|
|
|
+
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetApplication> rows =
|
|
|
+ this.queryCbsMusicSheetApplication(musicSheetList.stream().map(e -> e.getCbsMusicSheetId()).collect(Collectors.toList()));
|
|
|
+ String applicationExtendIds = rows.stream().map(e -> e.getApplicationExtendId().toString()).collect(Collectors.joining(","));
|
|
|
+ CbsMusicSheetApplicationExtendClientWrapper.MusicSheetApplicationExtendStatus extendStatus = new CbsMusicSheetApplicationExtendClientWrapper.MusicSheetApplicationExtendStatus();
|
|
|
+ extendStatus.setIds(applicationExtendIds);
|
|
|
+ extendStatus.setStatus(reasonDto.getState()== YesOrNoEnum.YES);
|
|
|
+ R<JSONObject> jsonObjectR = musicFeignClientService.musicSheetApplicationExtendStatus(extendStatus);
|
|
|
+ if (jsonObjectR.getCode() != 200) {
|
|
|
+ throw new BizException("修改曲目状态失败,{}", jsonObjectR.getMessage());
|
|
|
}
|
|
|
- List<CbsMusicSheetWrapper.MusicSheetApplication> rows = pageInfoR.feignData().getRows();
|
|
|
- if (CollectionUtils.isEmpty(rows)) {
|
|
|
- throw new BizException("获取曲目信息失败");
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Boolean state(Integer id) {
|
|
|
+ SysMusicScore musicScore = sysMusicScoreDao.get(id);
|
|
|
+ if (musicScore == null) {
|
|
|
+ throw new BizException("曲目信息不存在");
|
|
|
}
|
|
|
- CbsMusicSheetWrapper.MusicSheetApplication musicSheetApplication = rows.get(0);
|
|
|
+ List<CbsMusicSheetWrapper.MusicSheetApplication> rows =
|
|
|
+ this.queryCbsMusicSheetApplication(Collections.singletonList(musicScore.getCbsMusicSheetId()));
|
|
|
+ String applicationExtendIds = rows.stream().map(e -> e.getApplicationExtendId().toString()).collect(Collectors.joining(","));
|
|
|
CbsMusicSheetApplicationExtendClientWrapper.MusicSheetApplicationExtendStatus extendStatus = new CbsMusicSheetApplicationExtendClientWrapper.MusicSheetApplicationExtendStatus();
|
|
|
- extendStatus.setIds(musicSheetApplication.getApplicationExtendId().toString());
|
|
|
- extendStatus.setStatus(showFlag == 1);
|
|
|
+ extendStatus.setIds(applicationExtendIds);
|
|
|
+ extendStatus.setStatus(musicScore.getShowFlag() != 1);
|
|
|
R<JSONObject> jsonObjectR = musicFeignClientService.musicSheetApplicationExtendStatus(extendStatus);
|
|
|
if (jsonObjectR.getCode() != 200) {
|
|
|
throw new BizException("修改曲目状态失败,{}", jsonObjectR.getMessage());
|
|
|
}
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void updateCbs(MusicSheetWrapper.MusicSheetApplicationExtendWrapper addMusicSheetApplicationExtend) {
|
|
|
+ CbsMusicSheetApplicationExtendClientWrapper.AddMusicSheetApplicationExtend extend =
|
|
|
+ JSONObject.parseObject(JSONObject.toJSONString(addMusicSheetApplicationExtend), CbsMusicSheetApplicationExtendClientWrapper.AddMusicSheetApplicationExtend.class);
|
|
|
+ extend.setApplicationId(applicationId);
|
|
|
+ R<JSONObject> jsonObjectR = musicFeignClientService.musicSheetApplicationExtendUpdate(extend);
|
|
|
+ if (jsonObjectR.getCode() != 200) {
|
|
|
+ throw new BizException("修改失败,{}",jsonObjectR.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -550,7 +438,7 @@ public class SysMusicScoreServiceImpl extends BaseServiceImpl<Integer, SysMusicS
|
|
|
|
|
|
private void getAllCategoryIdList(List<Integer> categoryIdList, List<SysMusicScoreCategories> sysMusicScoreCategoriesList) {
|
|
|
|
|
|
- if (sysMusicScoreCategoriesList != null && sysMusicScoreCategoriesList.size() > 0) {
|
|
|
+ if (CollectionUtils.isNotEmpty(sysMusicScoreCategoriesList)) {
|
|
|
for (SysMusicScoreCategories sysMusicScoreCategories : sysMusicScoreCategoriesList) {
|
|
|
categoryIdList.add(sysMusicScoreCategories.getId());
|
|
|
getAllCategoryIdList(categoryIdList, sysMusicScoreCategories.getSysMusicScoreCategoriesList());
|