xiatian 4 years ago
parent
commit
07e10cd601

+ 3 - 3
themis-business/src/main/java/com/qmth/themis/business/enums/ExamTypeEnum.java

@@ -9,11 +9,11 @@ package com.qmth.themis.business.enums;
 */ 
 public enum ExamTypeEnum {
 
-    FIRST("初次开考"),
+	FIRST_START("初次开考"),
 
-    RECOVER("恢复开考"),
+	RESUME_START("恢复开考"),
 
-    PROCESS("过程中");
+	IN_PROCESS("过程中");
 
     private String code;
 

+ 2 - 2
themis-business/src/main/java/com/qmth/themis/business/service/impl/TOeExamRecordServiceImpl.java

@@ -358,10 +358,10 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
 	
 	@Override
 	public void saveFaceVerify(ExamTypeEnum type,Long recordId, Long entryAuthenticationId, VerifyExceptionEnum entryAuthenticationResult) {
-		if(ExamTypeEnum.FIRST.equals(type)) {
+		if(ExamTypeEnum.FIRST_START.equals(type)) {
 			ExamRecordCacheUtil.setEntryAuthenticationId(recordId, entryAuthenticationId);
 			ExamRecordCacheUtil.setEntryAuthenticationResult(recordId, entryAuthenticationResult);
-		}else if(ExamTypeEnum.PROCESS.equals(type)) {
+		}else if(ExamTypeEnum.IN_PROCESS.equals(type)) {
 			
 		}
 	}

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/service/impl/TOeFaceVerifyHistoryServiceImpl.java

@@ -58,7 +58,7 @@ public class TOeFaceVerifyHistoryServiceImpl extends ServiceImpl<TOeFaceVerifyHi
 		FaceVerifyBean ret=new FaceVerifyBean();
 		ret.setId(cache.getId());
 		ret.setUpdateTime(new Date().getTime());
-		if(ExamTypeEnum.RECOVER.equals(cache.getType())) {
+		if(ExamTypeEnum.RESUME_START.equals(cache.getType())) {
 			examBreakHistoryService.saveAuthenticationResult(recordId, cache.getId(), cache.getException());
 		}else {
 			examRecordService.saveFaceVerify(cache.getType(),recordId, cache.getId(), cache.getException());