|
@@ -153,6 +153,8 @@ public class MarkQuestionSubjectiveController extends BaseController {
|
|
|
@RequestMapping(value = "/ai/enable", method = RequestMethod.POST)
|
|
|
public Result aiTaskAuto(@ApiParam(value = "题目ID", required = true) @RequestParam Long questionId,
|
|
|
@ApiParam(value = "ai评卷状态", required = true) @RequestParam Boolean enableAi) {
|
|
|
+ MarkQuestion markQuestion = markQuestionService.getById(questionId);
|
|
|
+ validMarkPaperStatus(markQuestion.getExamId(), markQuestion.getPaperNumber());
|
|
|
return ResultUtil.ok(markQuestionService.enableAi(questionId, enableAi));
|
|
|
}
|
|
|
|