Răsfoiți Sursa

重构考生获取最终分数计算方式

lideyin 5 ani în urmă
părinte
comite
44d812e0c4

+ 2 - 3
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamRecordDataServiceImpl.java

@@ -208,7 +208,6 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
         else {
             Long examId = examRecordDataEntity.getExamId();
             Long rootOrgId = examRecordDataEntity.getRootOrgId();
-            Long orgId = examRecordDataEntity.getOrgId();
             Long studentId = examRecordDataEntity.getStudentId();
 
             //是否进行活体检测
@@ -238,9 +237,9 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
                         }
                     }
                 }
+                //默认更新为失败
+                setExamRecordByFaceVerifyResult(examRecordDataEntity, IsSuccess.FAILED);
             }
-            //默认更新为失败
-            setExamRecordByFaceVerifyResult(examRecordDataEntity, IsSuccess.FAILED);
         }
     }