lideyin 5 years ago
parent
commit
4f6aeb98be

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

@@ -123,8 +123,9 @@ public class FaceBiopsyServiceImpl implements FaceBiopsyService {
     public Integer getFaceBiopsyStartMinute(Long examRecordDataId) {
 
         FaceBiopsyEntity faceBiopsyEntity = faceBiopsyRepo.findByExamRecordDataId(examRecordDataId);
+        //如果是一次活检都没有做过,则认为是第一次,否则需要从库里取次数
         if (faceBiopsyEntity == null) {
-            return null;
+            return calculateFaceBiopsyStartMinute(examRecordDataId, 1);
         }
 
         //判断考试记录id是否有效