Compare commits

..

No commits in common. "10c03265d81c94ced82d17cb14cbe244d924643a" and "af808a80b7bbbea611ddc43ab5a79b7a62e86aba" have entirely different histories.

2 changed files with 3 additions and 28 deletions

View File

@ -27,11 +27,11 @@ public final class EntityLinkConst {
/** 内容类型 */
public static final class TargetType {
private TargetType() {}
// 资源对应资源表包括视频和文档
// 资源对应资源表
public static final String RESOURCE = "resource";
// 作业对应作业表
public static final String HOMEWORK = "homework";
// 考试对应考试表包括考试和练习
// 考试对应考试表
public static final String EXAM = "exam";
// 课程
public static final String COURSE = "course";

View File

@ -82,12 +82,6 @@ public class AiolCourseServiceImpl extends ServiceImpl<AiolCourseMapper, AiolCou
@Autowired
private AiolLearnProgressMapper learnProgressMapper;
@Autowired
private AiolExamMapper examMapper;
@Autowired
private AiolDiscussionMapper discussionMapper;
@Autowired
private RedisUtil redisUtil;
@ -141,14 +135,6 @@ public class AiolCourseServiceImpl extends ServiceImpl<AiolCourseMapper, AiolCou
// 作业章节
targetType = EntityLinkConst.TargetType.HOMEWORK;
break;
case 4:
// 练习章节
targetType = EntityLinkConst.TargetType.EXAM;
break;
case 5:
// 讨论章节
targetType = EntityLinkConst.TargetType.DISCUSSION;
break;
default:
break;
}
@ -171,23 +157,12 @@ public class AiolCourseServiceImpl extends ServiceImpl<AiolCourseMapper, AiolCou
result.add(clazz.cast(resourceMapper.selectById(targetId)));
break;
case 2:
// 考试章节
result.add(clazz.cast(examMapper.selectById(targetId)));
// TODO 考试章节
break;
case 3:
// 作业章节
result.add(clazz.cast(homeworkMapper.selectById(targetId)));
break;
case 4:
// 练习章节
result.add(clazz.cast(examMapper.selectById(targetId)));
break;
case 5:
// 讨论章节
result.add(clazz.cast(discussionMapper.selectById(targetId)));
break;
default:
break;
}
}