|
@@ -3,7 +3,6 @@ package cn.com.qmth.examcloud.core.oe.student.api.controller.client;
|
|
|
import cn.com.qmth.examcloud.api.commons.security.bean.User;
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
|
-import cn.com.qmth.examcloud.core.oe.student.base.utils.Check;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.bean.*;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.service.*;
|
|
|
import cn.com.qmth.examcloud.support.Constants;
|
|
@@ -114,7 +113,6 @@ public class ExamProcessController extends ControllerSupport {
|
|
|
@ApiOperation(value = "获取考试记录试卷结构")
|
|
|
@PostMapping("/getExamRecordPaperStruct")
|
|
|
public ExamRecordPaperStruct getExamRecordPaperStruct(@RequestParam Long examRecordDataId) {
|
|
|
- Check.isNull(examRecordDataId, "examRecordDataId不能为空");
|
|
|
return examRecordPaperStructService.getExamRecordPaperStruct(examRecordDataId);
|
|
|
}
|
|
|
|
|
@@ -149,14 +147,12 @@ public class ExamProcessController extends ControllerSupport {
|
|
|
@PostMapping("/getQuestionContent")
|
|
|
public String getQuestionContent(@RequestParam String questionId) {
|
|
|
User user = getAccessUser();
|
|
|
- Check.isBlank(questionId, "questionId不能为空");
|
|
|
return examRecordQuestionsService.getQuestionContentForClient(user.getUserId(), questionId);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考试过程中-考生试题作答")
|
|
|
@PostMapping("/submitQuestionAnswer")
|
|
|
- public void submitQuestionAnswer(@RequestBody List<ExamStudentQuestionInfo> examQuestionInfos,
|
|
|
- HttpServletRequest request) {
|
|
|
+ public void submitQuestionAnswer(@RequestBody List<ExamStudentQuestionInfo> examQuestionInfos, HttpServletRequest request) {
|
|
|
if (LOGGER.isDebugEnabled()) {
|
|
|
String strJosn = JsonUtil.toJson(examQuestionInfos);
|
|
|
LOGGER.debug("ExamQuestionController--submitQuestionAnswer参数信息:" + strJosn);
|
|
@@ -177,6 +173,7 @@ public class ExamProcessController extends ControllerSupport {
|
|
|
@ApiOperation(value = "保存活体检测结果")
|
|
|
@PostMapping("/saveFaceBiopsyResult")
|
|
|
public SaveFaceBiopsyResultResp saveFaceBiopsyResult(@RequestBody SaveFaceBiopsyResultReq req) {
|
|
|
+ // todo
|
|
|
return null;
|
|
|
}
|
|
|
|