|
|
@ -58,7 +58,7 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@PostMapping("/previous") |
|
|
|
@GetMapping("/previous") |
|
|
|
public R previousQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
public R previousQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException { |
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException { |
|
|
@ -67,7 +67,7 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@PostMapping("/next") |
|
|
|
@GetMapping("/next") |
|
|
|
public R nextQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
public R nextQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException { |
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException { |
|
|
@ -83,7 +83,7 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@PostMapping("/submit") |
|
|
|
@GetMapping("/submit") |
|
|
|
public R submitEvaluation(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
public R submitEvaluation(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer, |
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer, |
|
|
@ -99,6 +99,11 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
return R.ok().put("data", detailVO); |
|
|
|
return R.ok().put("data", detailVO); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 查询是否能够开启实验 |
|
|
|
|
|
|
|
* @param userId |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@GetMapping("/can_experiment") |
|
|
|
@GetMapping("/can_experiment") |
|
|
|
public R isOpenExperiment(Integer userId) { |
|
|
|
public R isOpenExperiment(Integer userId) { |
|
|
|