|
@@ -257,8 +257,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
WebsocketStatusEnum websocketStatusEnum = ExamRecordCacheUtil.getClientWebsocketStatus(recordId);
|
|
WebsocketStatusEnum websocketStatusEnum = ExamRecordCacheUtil.getClientWebsocketStatus(recordId);
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
if (Objects.isNull(examStudentId)) {
|
|
if (Objects.isNull(examStudentId)) {
|
|
- TOeExamRecord tOeExamRecord = tOeExamRecordService.getById(recordId);
|
|
|
|
- Optional.ofNullable(tOeExamRecord).orElseThrow(() -> new BusinessException(ExceptionResultEnum.NOT_FOUND_EXAM_RECORD));
|
|
|
|
|
|
+ TOeExamRecord tOeExamRecord = SystemConstant.getExamRecord(recordId);
|
|
examStudentId = tOeExamRecord.getExamStudentId();
|
|
examStudentId = tOeExamRecord.getExamStudentId();
|
|
}
|
|
}
|
|
if (Objects.nonNull(websocketStatusEnum) && (Objects.equals(websocketStatusEnum, WebsocketStatusEnum.OFF_LINE)
|
|
if (Objects.nonNull(websocketStatusEnum) && (Objects.equals(websocketStatusEnum, WebsocketStatusEnum.OFF_LINE)
|
|
@@ -404,8 +403,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
TEConfig teConfig = teConfigService.getGlobalConfig();
|
|
TEConfig teConfig = teConfigService.getGlobalConfig();
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
if (Objects.isNull(examStudentId)) {
|
|
if (Objects.isNull(examStudentId)) {
|
|
- TOeExamRecord tOeExamRecord = tOeExamRecordService.getById(recordId);
|
|
|
|
- Optional.ofNullable(tOeExamRecord).orElseThrow(() -> new BusinessException(ExceptionResultEnum.NOT_FOUND_EXAM_RECORD));
|
|
|
|
|
|
+ TOeExamRecord tOeExamRecord = SystemConstant.getExamRecord(recordId);
|
|
examStudentId = tOeExamRecord.getExamStudentId();
|
|
examStudentId = tOeExamRecord.getExamStudentId();
|
|
}
|
|
}
|
|
ExamStudentCacheBean examStudentCacheBean = teExamStudentService.getExamStudentCacheBean(examStudentId);
|
|
ExamStudentCacheBean examStudentCacheBean = teExamStudentService.getExamStudentCacheBean(examStudentId);
|
|
@@ -555,8 +553,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
TEConfig teConfig = teConfigService.getGlobalConfig();
|
|
TEConfig teConfig = teConfigService.getGlobalConfig();
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
if (Objects.isNull(examStudentId)) {
|
|
if (Objects.isNull(examStudentId)) {
|
|
- TOeExamRecord tOeExamRecord = tOeExamRecordService.getById(recordId);
|
|
|
|
- Optional.ofNullable(tOeExamRecord).orElseThrow(() -> new BusinessException(ExceptionResultEnum.NOT_FOUND_EXAM_RECORD));
|
|
|
|
|
|
+ TOeExamRecord tOeExamRecord = SystemConstant.getExamRecord(recordId);
|
|
examStudentId = tOeExamRecord.getExamStudentId();
|
|
examStudentId = tOeExamRecord.getExamStudentId();
|
|
}
|
|
}
|
|
ExamStudentCacheBean examStudentCacheBean = teExamStudentService.getExamStudentCacheBean(examStudentId);
|
|
ExamStudentCacheBean examStudentCacheBean = teExamStudentService.getExamStudentCacheBean(examStudentId);
|
|
@@ -881,8 +878,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
Long examActivityId = ExamRecordCacheUtil.getExamActivityId(recordId);
|
|
Long examActivityId = ExamRecordCacheUtil.getExamActivityId(recordId);
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
Long examStudentId = ExamRecordCacheUtil.getExamStudentId(recordId);
|
|
if (Objects.isNull(examStudentId)) {
|
|
if (Objects.isNull(examStudentId)) {
|
|
- TOeExamRecord tOeExamRecord = tOeExamRecordService.getById(recordId);
|
|
|
|
- Optional.ofNullable(tOeExamRecord).orElseThrow(() -> new BusinessException(ExceptionResultEnum.NOT_FOUND_EXAM_RECORD));
|
|
|
|
|
|
+ TOeExamRecord tOeExamRecord = SystemConstant.getExamRecord(recordId);
|
|
examStudentId = tOeExamRecord.getExamStudentId();
|
|
examStudentId = tOeExamRecord.getExamStudentId();
|
|
examActivityId = tOeExamRecord.getExamActivityId();
|
|
examActivityId = tOeExamRecord.getExamActivityId();
|
|
examId = tOeExamRecord.getExamId();
|
|
examId = tOeExamRecord.getExamId();
|