|
|
@@ -2718,6 +2718,14 @@ public class Task {
|
|
|
throw new CustomException("企业不存在,请联系管理员");
|
|
|
}
|
|
|
|
|
|
+ FsUserCourseVideo courseVideo = courseVideoMapper.selectFsUserCourseVideoByVideoId(watchLog.getVideoId());
|
|
|
+ if (courseVideo==null) {
|
|
|
+ throw new CustomException("视频不存在");
|
|
|
+ }
|
|
|
+ if (StringUtils.isBlank(courseVideo.getQuestionBankId())) {
|
|
|
+ throw new CustomException("视频未关联题库");
|
|
|
+ }
|
|
|
+
|
|
|
// List<Long> companyIds = Arrays.stream(Optional.ofNullable(qwCompany.getCompanyIds()).orElse("").split(","))
|
|
|
// .map(String::trim)
|
|
|
// .filter(s -> !s.isEmpty())
|