| | |
| | | public List<ExerciseVideo> getStuCourseOfVideoList(@RequestBody List<Integer> coursePackIds){ |
| | | return pcvService.queryCourseOfVideos(coursePackIds); |
| | | } |
| | | |
| | | @Autowired |
| | | private TCoursePackageDiscountService discountService; |
| | | |
| | |
| | | private CoursePackageStudentService coursePackageStudentService; |
| | | @Autowired |
| | | private TokenUtil tokenUtil; |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/courseVideo/query") |
| | | public List<ExerciseVideo> query(@RequestBody Integer id) throws Exception { |
| | |
| | | List<ExerciseVideo> exerciseVideoList = new ArrayList<>(); |
| | | |
| | | // Integer appUserId = tokenUtil.getUserIdFormRedis(); |
| | | |
| | | |
| | | |
| | | QueryWrapper<CoursePackageStudent> queryWrapper1 = new QueryWrapper<CoursePackageStudent>().eq("studentId", id); |
| | |
| | | exerciseVideo.setVideoName(appUserVideoResponse.getVideoName()); |
| | | exerciseVideo.setCoursePackageId(appUserVideoResponse.getCoursePackageId()); |
| | | exerciseVideo.setVideoUrl(appUserVideoResponse.getCourseVideo()); |
| | | exerciseVideo.setVideoCoverImgUrl(appUserVideoResponse.getCourseVideo());exerciseVideoList.add(exerciseVideo); |
| | | exerciseVideo.setVideoCoverImgUrl(appUserVideoResponse.getCourseVideo()); |
| | | exerciseVideoList.add(exerciseVideo); |
| | | } |
| | | |
| | | |