Explorar el Código

ignore-抓拍队列优先级

deason hace 2 años
padre
commit
e8dd93b9d7

+ 0 - 15
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamControlServiceImpl.java

@@ -810,9 +810,6 @@ public class ExamControlServiceImpl implements ExamControlService {
         examRecordData.setHandInExamType(handInExamType);
 
         Long studentId = examRecordData.getStudentId();
-        Long examId = examRecordData.getExamId();
-        Long rootOrgId = examRecordData.getRootOrgId();
-
         log.info("handInExam start! studentId:{}, examRecordDataId:{}, handInExamType:{}, ip:{}, force:{}",
                 studentId, examRecordDataId, handInExamType.name(), ip, force);
 
@@ -822,18 +819,6 @@ public class ExamControlServiceImpl implements ExamControlService {
             examRecordData.setUsedExamTime(usedExamTime);
             examRecordData.setExamRecordStatus(ExamRecordStatus.EXAM_HAND_IN);
             examRecordData.setEndTime(new Date());
-
-            // 手工手卷时,如果开启人脸检测,则更新抓拍队列优先级
-            if (FaceBiopsyHelper.isFaceEnable(rootOrgId, examId, studentId)) {
-                //更新照片处理的优先级不影响交卷业务
-                try {
-                    // 更新照片抓拍队列优先级为高优先级
-                    examCaptureService.updateExamCaptureQueuePriority(examRecordDataId, Constants.PROCESS_CAPTURE_HIGH_PRIORITY);
-                } catch (Exception e) {
-                    log.error("updateExamCaptureQueuePriority examRecordDataId:{}, error: db deadlock {}", examRecordDataId, e.getMessage());
-                }
-            }
-
             //设置并保存上次活动时间
             setAndSaveActiveTime(examRecordDataId, ip, "handInExam");
         } else if (handInExamType == HandInExamType.AUTO) {