|
@@ -32,8 +32,6 @@ import cn.com.qmth.am.enums.LockType;
|
|
import cn.com.qmth.am.service.QuestionService;
|
|
import cn.com.qmth.am.service.QuestionService;
|
|
import cn.com.qmth.am.service.StudentScoreService;
|
|
import cn.com.qmth.am.service.StudentScoreService;
|
|
import cn.com.qmth.am.service.StudentService;
|
|
import cn.com.qmth.am.service.StudentService;
|
|
-import cn.com.qmth.am.task.AiMarkingJob;
|
|
|
|
-import cn.com.qmth.am.task.BuildImageJob;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@@ -66,8 +64,8 @@ public class AdminController {
|
|
}
|
|
}
|
|
qsCourse = cset.size();
|
|
qsCourse = cset.size();
|
|
}
|
|
}
|
|
- sb.append("ocr任务是否开启:" + (BuildImageJob.enable ? "是" : "否") + "\r\n");
|
|
|
|
- sb.append("评分任务是否开启:" + (AiMarkingJob.enable ? "是" : "否") + "\r\n");
|
|
|
|
|
|
+ sb.append("ocr任务是否开启:" + (sysProperty.getOcrTaskEnable() ? "是" : "否") + "\r\n");
|
|
|
|
+ sb.append("评分任务是否开启:" + (sysProperty.getMarkingTaskEnable() ? "是" : "否") + "\r\n");
|
|
sb.append("试卷科目总数:" + qsCourse + "\r\n");
|
|
sb.append("试卷科目总数:" + qsCourse + "\r\n");
|
|
sb.append("试卷小题总数:" + qstotal + "\r\n");
|
|
sb.append("试卷小题总数:" + qstotal + "\r\n");
|
|
int total = studentService.countBy(examId, null);
|
|
int total = studentService.countBy(examId, null);
|
|
@@ -179,14 +177,14 @@ public class AdminController {
|
|
@ApiOperation(value = "机评开关")
|
|
@ApiOperation(value = "机评开关")
|
|
@RequestMapping(value = "marking/status", method = RequestMethod.GET)
|
|
@RequestMapping(value = "marking/status", method = RequestMethod.GET)
|
|
public String markingStatus(@RequestParam Boolean enable) {
|
|
public String markingStatus(@RequestParam Boolean enable) {
|
|
- AiMarkingJob.enable = enable;
|
|
|
|
|
|
+ sysProperty.setMarkingTaskEnable(enable);
|
|
return "设置成功:" + enable;
|
|
return "设置成功:" + enable;
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "ocr开关")
|
|
@ApiOperation(value = "ocr开关")
|
|
@RequestMapping(value = "ocr/status", method = RequestMethod.GET)
|
|
@RequestMapping(value = "ocr/status", method = RequestMethod.GET)
|
|
public String ocrStatus(@RequestParam Boolean enable) {
|
|
public String ocrStatus(@RequestParam Boolean enable) {
|
|
- BuildImageJob.enable = enable;
|
|
|
|
|
|
+ sysProperty.setOcrTaskEnable(enable);
|
|
return "设置成功:" + enable;
|
|
return "设置成功:" + enable;
|
|
}
|
|
}
|
|
|
|
|