学员学习记录表

This commit is contained in:
none
2023-03-20 16:45:03 +08:00
parent 71fcb008ed
commit 84bd4fdb55
16 changed files with 643 additions and 3 deletions

View File

@@ -53,9 +53,9 @@ public class CourseController {
Course course = courseService.findOrFail(id);
HashMap<String, Object> data = new HashMap<>();
data.put("course", course);//线上课
data.put("chapters", chapterService.getChaptersByCourseId(course.getId()));//章节
data.put("hours", hourService.getHoursByCourseId(course.getId()).stream().collect(Collectors.groupingBy(CourseHour::getChapterId)));//课时
data.put("course", course);
data.put("chapters", chapterService.getChaptersByCourseId(course.getId()));
data.put("hours", hourService.getHoursByCourseId(course.getId()).stream().collect(Collectors.groupingBy(CourseHour::getChapterId)));
return JsonResponse.data(data);
}