Преглед на файлове

酷乐秀曲目来源改为内容平台

zouxuan преди 1 година
родител
ревизия
3a811de9e6
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetServiceImpl.java

+ 6 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetServiceImpl.java

@@ -603,6 +603,12 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
                     musicSheetService.initMusicSheetDetailVo(addMusicSheet,musicSheetDetailVo);
                     MusicSheetDetailVo result = JSON.parseObject(JSON.toJSONString(musicSheetDetailVo), MusicSheetDetailVo.class);
                     result.setMusicSheetAuthRecordId(record.getId().toString());
+                    //获取标签名称
+                    if(StringUtils.isNotEmpty(result.getMusicTag())){
+                        List<MusicTag> musicTagList = musicTagService.lambdaQuery()
+                                .in(MusicTag::getId, Arrays.stream(result.getMusicTag().split(","))).list();
+                        result.setMusicTagNames(musicTagList.stream().map(MusicTag::getName).collect(Collectors.joining(",")));
+                    }
                     return result;
                 }
             }