|
@@ -35,6 +35,8 @@ import com.qmth.themis.business.entity.TEExamStudent;
|
|
|
import com.qmth.themis.business.entity.TOeExamAnswer;
|
|
|
import com.qmth.themis.business.entity.TOeExamRecord;
|
|
|
import com.qmth.themis.business.enums.ExamRecordStatusEnum;
|
|
|
+import com.qmth.themis.business.enums.ExamTypeEnum;
|
|
|
+import com.qmth.themis.business.enums.LivenessTypeEnum;
|
|
|
import com.qmth.themis.business.enums.ObjectiveScorePolicyEnum;
|
|
|
import com.qmth.themis.business.enums.VerifyExceptionEnum;
|
|
|
import com.qmth.themis.business.service.TEExamPaperService;
|
|
@@ -341,15 +343,26 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
|
|
|
return UUID.randomUUID().toString().replaceAll("-", "");
|
|
|
}
|
|
|
|
|
|
- /**首次开考验证结果保存
|
|
|
- * @param recordId
|
|
|
- * @param entryAuthenticationId
|
|
|
- * @param entryAuthenticationResult
|
|
|
- */
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void saveFaceVerify(ExamTypeEnum type,Long recordId, Long entryAuthenticationId, VerifyExceptionEnum entryAuthenticationResult) {
|
|
|
+ if(ExamTypeEnum.FIRST.equals(type)) {
|
|
|
+ ExamRecordCacheUtil.setEntryAuthenticationId(recordId, entryAuthenticationId);
|
|
|
+ ExamRecordCacheUtil.setEntryAuthenticationResult(recordId, entryAuthenticationResult);
|
|
|
+ }else if(ExamTypeEnum.PROCESS.equals(type)) {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
- public void saveAuthenticationResultOnStart(Long recordId, Long entryAuthenticationId, VerifyExceptionEnum entryAuthenticationResult) {
|
|
|
- ExamRecordCacheUtil.setEntryAuthenticationId(recordId, entryAuthenticationId);
|
|
|
- ExamRecordCacheUtil.setEntryAuthenticationResult(recordId, entryAuthenticationResult);
|
|
|
+ public void saveLivenessVerify(LivenessTypeEnum type,Long recordId, Long entryAuthenticationId, VerifyExceptionEnum entryAuthenticationResult) {
|
|
|
+ if(LivenessTypeEnum.FIRST_START.equals(type)) {
|
|
|
+ ExamRecordCacheUtil.setEntryAuthenticationId(recordId, entryAuthenticationId);
|
|
|
+ ExamRecordCacheUtil.setEntryAuthenticationResult(recordId, entryAuthenticationResult);
|
|
|
+ }else if(LivenessTypeEnum.IN_PROCESS.equals(type)) {
|
|
|
+ Integer count=ExamRecordCacheUtil.getInProcessLivenessVerifyCount(recordId);
|
|
|
+ ExamRecordCacheUtil.setInProcessLivenessVerifyCount(recordId, (count==null?0:count+1));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|