fix:修改获取章节问题

This commit is contained in:
yangxinyu
2025-12-16 17:42:55 +08:00
parent 040db5dd3d
commit 5b3443330c

View File

@@ -405,7 +405,7 @@ public class StudyServiceImpl implements IStudyService{
if (!courseIds.isEmpty()) {
List<StudyCourse> courses = studyCourseService.findByCourseIds(new ArrayList<>(courseIds));
if (courses != null) {
courseMap = courses.stream().collect(Collectors.toMap(StudyCourse::getId, Function.identity(), (e1, e2) -> e1));
courseMap = courses.stream().collect(Collectors.toMap(StudyCourse::getCourseId, Function.identity(), (e1, e2) -> e1));
}
}
// 4. 为每个 CourseContent 设置 displayName