|
@@ -1379,6 +1379,20 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
return ResponseResult.ok();
|
|
return ResponseResult.ok();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public FsUserCourseVideoQVO selectFsUserCourseVideoByVideoIdVO(Long videoId) {
|
|
|
|
+ FsUserCourseVideoQVO fsUserCourseVideoQVO = new FsUserCourseVideoQVO();
|
|
|
|
+ FsUserCourseVideo courseVideo = fsUserCourseVideoMapper.selectFsUserCourseVideoByVideoId(videoId);
|
|
|
|
+
|
|
|
|
+ BeanCopyUtils.copy(courseVideo,fsUserCourseVideoQVO);
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isNotEmpty(courseVideo.getQuestionBankId())){
|
|
|
|
+ List<FsCourseQuestionBank> fsCourseQuestionBanks = courseQuestionBankMapper.selectFsCourseQuestionBankByIdVO(courseVideo.getQuestionBankId().split(","));
|
|
|
|
+ fsUserCourseVideoQVO.setQuestionBankList(fsCourseQuestionBanks);
|
|
|
|
+ }
|
|
|
|
+ return fsUserCourseVideoQVO;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 生成唯一键
|
|
* 生成唯一键
|
|
*/
|
|
*/
|