|
@@ -17,10 +17,9 @@ import cn.com.qmth.examcloud.core.oe.student.api.request.CalcExamScoreReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.request.CalcFaceBiopsyResultReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.request.GetExamRecordDataIdsReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.request.UpdateExamRecordDataBatchNumReq;
|
|
|
+import cn.com.qmth.examcloud.core.oe.student.api.request.UpdateExamRecordStatusReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.response.CalcExamScoreResp;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.response.CalcFaceBiopsyResultResp;
|
|
|
-import cn.com.qmth.examcloud.support.examing.ExamQuestion;
|
|
|
-import cn.com.qmth.examcloud.support.examing.ExamRecordQuestions;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.base.utils.QuestionTypeUtil;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.dao.ExamFaceLivenessVerifyRepo;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.dao.ExamRecordDataRepo;
|
|
@@ -39,7 +38,9 @@ import cn.com.qmth.examcloud.support.enums.ExamRecordStatus;
|
|
|
import cn.com.qmth.examcloud.support.enums.FaceBiopsyScheme;
|
|
|
import cn.com.qmth.examcloud.support.enums.IsSuccess;
|
|
|
import cn.com.qmth.examcloud.support.enums.SyncStatus;
|
|
|
+import cn.com.qmth.examcloud.support.examing.ExamQuestion;
|
|
|
import cn.com.qmth.examcloud.support.examing.ExamRecordData;
|
|
|
+import cn.com.qmth.examcloud.support.examing.ExamRecordQuestions;
|
|
|
import cn.com.qmth.examcloud.support.examing.ExamingSession;
|
|
|
import cn.com.qmth.examcloud.support.helper.FaceBiopsyHelper;
|
|
|
import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
|
|
@@ -348,4 +349,17 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void updateExamRecordStatus(UpdateExamRecordStatusReq req) {
|
|
|
+ Long id = req.getId();
|
|
|
+ String status = req.getExamRecordStatus();
|
|
|
+ if (id == null) {
|
|
|
+ throw new StatusException("3001", "id 不能为空");
|
|
|
+ }
|
|
|
+ if (status == null) {
|
|
|
+ throw new StatusException("3002", "status 不能为空");
|
|
|
+ }
|
|
|
+ examRecordDataRepo.updateExamRecordStatusById(status, id);
|
|
|
+ }
|
|
|
}
|