|
@@ -398,4 +398,19 @@ public class CourseQwController extends AppBaseController {
|
|
|
return courseVideoService.updateVideo();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("查询课程")
|
|
|
+ @GetMapping("/getCourseByCourseId")
|
|
|
+ public R getCourseByCourseId(@RequestParam Long courseId)
|
|
|
+ {
|
|
|
+ List<FsUserCourseVideoAppletVO> course = courseService.selectFsUserCourseVideoAppletListByCourseId(courseId);
|
|
|
+ if(course != null && !course.isEmpty()){
|
|
|
+ for (FsUserCourseVideoAppletVO appletVO : course) {
|
|
|
+ List<FsUserCourseVideoAppletVO.FsUserCourseVideo> courseVideos = courseService.selectFsUserCourseVideoAppletByCourseId(appletVO.getCourseId());
|
|
|
+ appletVO.setFsUserCourseVideoList(courseVideos);
|
|
|
+ appletVO.setVideoTotal((long) courseVideos.size());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return R.ok().put("data",course);
|
|
|
+ }
|
|
|
+
|
|
|
}
|