|
@@ -125,7 +125,9 @@ public class MusicSheetAuthRecordServiceImpl extends ServiceImpl<MusicSheetAuthR
|
|
|
String musicalInstrumentIds = addMusicSheet.getMusicalInstrumentIds();
|
|
|
List<Instrument> instruments = instrumentService.lambdaQuery().in(Instrument::getId, musicalInstrumentIds.split(",")).list();
|
|
|
addMusicSheet.setMusicalInstrumentIds(musicalInstrumentIds);
|
|
|
- addMusicSheet.setSubjectIds(instruments.stream().map(e->e.getSubjectId().toString()).distinct().collect(Collectors.joining(",")));
|
|
|
+ String subjectIds = instruments.stream().map(e -> e.getSubjectId().toString()).distinct().collect(Collectors.joining(","));
|
|
|
+ List<Subject> subjectList = subjectService.findBySubjectByIdList(subjectIds);
|
|
|
+ addMusicSheet.setSubjectIds(subjectList.stream().map(e -> e.getCbsSubjectId().toString()).distinct().collect(Collectors.joining(",")));
|
|
|
R<Long> longR = musicFeignClientService.musicSheetAdd(addMusicSheet);
|
|
|
if (!longR.getCode().equals(200)) {
|
|
|
throw new BizException("同步到内容平台失败");
|