|
@@ -285,7 +285,7 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
Long examId = examRecordData.getExamId();
|
|
|
Long orgId = examRecordData.getOrgId();
|
|
|
|
|
|
- if (FaceBiopsyHelper.isFaceEnable(rootOrgId, examId, orgId, studentId)) {
|
|
|
+ if (FaceBiopsyHelper.isFaceEnable(rootOrgId, examId, studentId)) {
|
|
|
SaveExamCaptureSyncCompareResultReq req = new SaveExamCaptureSyncCompareResultReq();
|
|
|
req.setExamRecordDataId(examRecordData.getId());
|
|
|
req.setStudentId(user.getUserId());
|
|
@@ -410,10 +410,10 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
*/
|
|
|
private Integer getFaceVerifyMinute(Long rootOrgId, Long examId, Long orgId, Long studentId) {
|
|
|
// 如果开启了活体检测
|
|
|
- if (FaceBiopsyHelper.isFaceVerify(rootOrgId, examId, orgId, studentId)) {
|
|
|
+ if (FaceBiopsyHelper.isFaceVerify(rootOrgId, examId, studentId)) {
|
|
|
// 开始分钟数
|
|
|
String startMinuteStr = ExamCacheTransferHelper
|
|
|
- .getCachedExamProperty(examId, orgId, studentId, ExamProperties.FACE_VERIFY_START_MINUTE.name()).getValue();
|
|
|
+ .getCachedExamProperty(examId, studentId, ExamProperties.FACE_VERIFY_START_MINUTE.name()).getValue();
|
|
|
if (CommonUtil.isBlank(startMinuteStr)) {
|
|
|
throw new StatusException("ExamControlServiceImpl-getFaceVerifyMinute-001",
|
|
|
ExamProperties.FACE_VERIFY_START_MINUTE.getDesc() + "未设置");
|
|
@@ -422,7 +422,7 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
|
|
|
// 结束分钟数
|
|
|
String endMinuteStr = ExamCacheTransferHelper
|
|
|
- .getCachedExamProperty(examId, orgId, studentId, ExamProperties.FACE_VERIFY_END_MINUTE.name()).getValue();
|
|
|
+ .getCachedExamProperty(examId, studentId, ExamProperties.FACE_VERIFY_END_MINUTE.name()).getValue();
|
|
|
if (CommonUtil.isBlank(endMinuteStr)) {
|
|
|
throw new StatusException("ExamControlServiceImpl-getFaceVerifyMinute-002",
|
|
|
ExamProperties.FACE_VERIFY_END_MINUTE.getDesc() + "未设置");
|
|
@@ -454,7 +454,7 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
Long studentId = examStudentEntity.getStudentId();
|
|
|
|
|
|
// 学习中心特殊考试配置(是否禁考,开考时间可以特殊设置)
|
|
|
- ExamBean examBean = ExamCacheTransferHelper.getCachedExam(examId, orgId, studentId);
|
|
|
+ ExamBean examBean = ExamCacheTransferHelper.getCachedExam(examId, studentId);
|
|
|
|
|
|
//如果启用了了特殊设置,并且无特殊设置时结束考试 配置 设置为true..且实际未设置特殊设置则不允许考试
|
|
|
ExamPropertyCacheBean limitedIfNoSpecialSettings = ExamCacheTransferHelper.getDefaultCachedExamProperty(examId,
|
|
@@ -480,7 +480,6 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if (!examBean.getEnable() || (examBean.getExamLimit() != null && examBean.getExamLimit())) {
|
|
|
throw new StatusException("ExamControlServiceImpl-checkExam-exception-01", "暂无考试资格,请与学校老师联系");
|
|
|
}
|
|
@@ -521,7 +520,7 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
examSessionInfo.setPaperType(examStudent.getPaperType());
|
|
|
// EXAM_RECONNECT_TIME:断点续考时间
|
|
|
String examReconnectTimeStr = ExamCacheTransferHelper
|
|
|
- .getCachedExamProperty(examBean.getId(), examStudent.getOrgId(), examStudent.getStudentId(),
|
|
|
+ .getCachedExamProperty(examBean.getId(), examStudent.getStudentId(),
|
|
|
ExamProperties.EXAM_RECONNECT_TIME.name()).getValue();
|
|
|
log.debug("11.2 断点时间:" + examReconnectTimeStr);
|
|
|
if (CommonUtil.isBlank(examReconnectTimeStr)) {
|
|
@@ -531,7 +530,7 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
examSessionInfo.setExamReconnectTime(Integer.valueOf(examReconnectTimeStr));
|
|
|
// FREEZE_TIME:冻结时间
|
|
|
String freezeTimeStr = ExamCacheTransferHelper
|
|
|
- .getCachedExamProperty(examBean.getId(), examStudent.getOrgId(), examStudent.getStudentId(),
|
|
|
+ .getCachedExamProperty(examBean.getId(), examStudent.getStudentId(),
|
|
|
ExamProperties.FREEZE_TIME.name()).getValue();
|
|
|
log.debug("11.3 冻结时间:" + freezeTimeStr);
|
|
|
if (CommonUtil.isBlank(freezeTimeStr)) {
|
|
@@ -733,9 +732,8 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
// 手工手卷时,如果开启人脸检测,则更新抓拍队列优先级
|
|
|
Long rootOrgId = examRecordData.getRootOrgId();
|
|
|
Long examId = examRecordData.getExamId();
|
|
|
- Long orgId = examRecordData.getOrgId();
|
|
|
|
|
|
- if (FaceBiopsyHelper.isFaceEnable(rootOrgId, examId, rootOrgId, studentId)) {
|
|
|
+ if (FaceBiopsyHelper.isFaceEnable(rootOrgId, examId, studentId)) {
|
|
|
// 更新照片抓拍队列优先级为高优先级
|
|
|
examCaptureQueueRepo.updateExamCaptureQueuePriority(Constants.PROCESS_CAPTURE_HIGH_PRIORITY,
|
|
|
examRecordData.getId());
|