| | |
| | | } |
| | | |
| | | /** |
| | | * 获取下一题的题目,并判断上一题的答案,且返回上一题答题结果 |
| | | * |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | @GetMapping("/getSubjectResultInfo") |
| | | @ApiOperation(value = "详情", notes = "传入examSubjectChoices") |
| | | public R<ExamSubjectChoicesVO> getSubjectResultInfo(ExamSubjectChoicesVO examSubjectChoices) { |
| | | //查询下一题题目详情 |
| | | ExamSubjectChoicesVO detail = examSubjectChoicesService.selectExamSubjectChoicesInfo(examSubjectChoices); |
| | | //判断当前题目的答题结果 |
| | | if (examSubjectChoices.getPreSubJectId()!=null) { |
| | | if (null!=examSubjectChoices.getPreResult() && examSubjectChoices.getPreResult()!="" && !examSubjectChoices.getPreResult().equals("")) { |
| | | detail.setResult(examSubjectChoicesService.getAnswerResult(examSubjectChoices.getPreSubJectId(), examSubjectChoices.getPreResult())); |
| | | }else { |
| | | //无 |
| | | detail.setResult(3); |
| | | } |
| | | } |
| | | //返回 |
| | | return R.data(detail); |
| | | } |
| | | |
| | | /** |
| | | * 查询试卷包含的题目 |
| | | */ |
| | | @GetMapping("/getEexPaperChoices") |