lideyin 5 年之前
父节点
当前提交
d766a3d0c7

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

@@ -219,7 +219,7 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
                     FaceBiopsyEntity faceBiopsy = faceBiopsyRepo.findByExamRecordDataId(examRecordDataEntity.getId());
 
                     //如果活检结果最终为true,则更新考试记录相关属性
-                    if (faceBiopsy != null && faceBiopsy.getResult()) {
+                    if (faceBiopsy != null && faceBiopsy.getResult() != null && faceBiopsy.getResult()) {
                         setExamRecordByFaceVerifyResult(examRecordDataEntity, IsSuccess.SUCCESS);
                         return;
                     }