|
|
@ -65,7 +65,32 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
EvaluationRecordVO evaluationRecordVO = evaluationRecordService.convertQuestion(evaluationRecordId, currentQuestionSortNo, userAnswer, currentQuestionSortNo - 1); |
|
|
|
EvaluationRecordVO evaluationRecordVO = evaluationRecordService.convertQuestion(evaluationRecordId, currentQuestionSortNo, userAnswer, currentQuestionSortNo - 1); |
|
|
|
return R.ok().put("data", evaluationRecordVO); |
|
|
|
return R.ok().put("data", evaluationRecordVO); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 备份:上一题/下一题/提交
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @GetMapping("/previous")
|
|
|
|
|
|
|
|
// public R previousQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId,
|
|
|
|
|
|
|
|
// @RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo,
|
|
|
|
|
|
|
|
// @RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException {
|
|
|
|
|
|
|
|
// EvaluationRecordVO evaluationRecordVO = evaluationRecordService.convertQuestion(evaluationRecordId, currentQuestionSortNo, userAnswer, currentQuestionSortNo - 1);
|
|
|
|
|
|
|
|
// return R.ok().put("data", evaluationRecordVO);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @GetMapping("/next")
|
|
|
|
|
|
|
|
// public R nextQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId,
|
|
|
|
|
|
|
|
// @RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo,
|
|
|
|
|
|
|
|
// @RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException {
|
|
|
|
|
|
|
|
// EvaluationRecordVO evaluationRecordVO = evaluationRecordService.convertQuestion(evaluationRecordId, currentQuestionSortNo, userAnswer, currentQuestionSortNo + 1);
|
|
|
|
|
|
|
|
// return R.ok().put("data", evaluationRecordVO);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @GetMapping("/submit")
|
|
|
|
|
|
|
|
// public R submitEvaluation(@RequestParam("evaluationRecordId") Integer evaluationRecordId,
|
|
|
|
|
|
|
|
// @RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo,
|
|
|
|
|
|
|
|
// @RequestParam(value = "userAnswer", required = false) String userAnswer,
|
|
|
|
|
|
|
|
// @RequestParam("userId") Integer userId) throws ExecutionException, InterruptedException {
|
|
|
|
|
|
|
|
// EvaluationRecordSubmitVO recordSubmitVO = evaluationRecordService.submitEvaluation(evaluationRecordId, currentQuestionSortNo, userAnswer, userId);
|
|
|
|
|
|
|
|
// return R.ok().put("data", recordSubmitVO);
|
|
|
|
|
|
|
|
// }
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@GetMapping("/next") |
|
|
|
@GetMapping("/next") |
|
|
|
public R nextQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
public R nextQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|