语言环境:Java:? jdk1.8
数据库:Mysql: mysql5.7
应用服务器:Tomcat:? tomcat8.5.31
开发工具:IDEA或eclipse
基于SpringBoot+Vue的在线考试系统是一款专为高校设计的在线考试平台,旨在为高校提供一个高效、便捷、安全的在线考试解决方案。系统结合SpringBoot后端框架和Vue前端框架,利用先进的Web技术,实现了一套完整的在线考试流程,包括考试创建、题库管理、学生管理、成绩管理等核心功能。
@Service
public class AnswerServiceImpl implements AnswerService {
@Autowired
private AnswerMapper answerMapper;
@Override
public IPage<AnswerVO> findAll(Page<AnswerVO> page, String subject, String section, String question) {
subject = (subject.equals("@") ? "" : subject);
section = (section.equals("@") ? "" : section);
question = (question.equals("@") ? "" : question);
return answerMapper.findAll(page, subject, section, question);
}
@Override
public QuestionVO findByIdAndType(String type, Long questionId) {
QuestionVO questionVO = new QuestionVO();
questionVO.setType(type);
switch (type) {
case "选择题":
questionVO.setMultiQuestion(answerMapper.findMultiQuestionById(questionId));
break;
case "判断题":
questionVO.setJudgeQuestion(answerMapper.findJudgeQuestionById(questionId));
break;
case "填空题":
questionVO.setFillQuestion(answerMapper.findFillQuestionById(questionId));
break;
}
return questionVO;
}
}