|
@@ -2,6 +2,7 @@ package com.ym.service.Impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
import com.ym.common.ApiException;
|
|
|
import com.ym.common.BaseResponse;
|
|
|
import com.ym.common.DisplayEnum;
|
|
@@ -230,7 +231,10 @@ public class RoomServiceImpl implements RoomService {
|
|
|
}
|
|
|
//已下载的伴奏列表
|
|
|
if(scheduleStudentMusicScores != null && scheduleStudentMusicScores.size() > 0){
|
|
|
- userResult.setScheduleStudentMusicScores(new ArrayList<>(scheduleStudentMusicScores.stream().filter(e->e.getUserId().equals(sysUser.getId())).collect(Collectors.toList())));
|
|
|
+ List<CourseScheduleStudentMusicScore> musicScores = scheduleStudentMusicScores.stream().filter(e -> e.getUserId().equals(sysUser.getId())).collect(Collectors.toList());
|
|
|
+ String toJSONString = JSON.toJSONString(musicScores, SerializerFeature.DisableCircularReferenceDetect);
|
|
|
+ List<CourseScheduleStudentMusicScore> lists = JSON.parseArray(toJSONString, CourseScheduleStudentMusicScore.class);
|
|
|
+ userResult.setScheduleStudentMusicScores(lists);
|
|
|
}
|
|
|
|
|
|
userResult.setUserName(userName);
|