|
@@ -764,8 +764,8 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
tIeExamInvigilateCallLogService.saveOrUpdate(tIeExamInvigilateCallLog);
|
|
|
} else if (Objects.equals(MqTagEnum.EXCEPTION_LOG.name(), tag)) {//考试断点异常日志
|
|
|
JSONObject jsonObject = JSONObject.parseObject(String.valueOf(mqDto.getBody()));
|
|
|
- ExceptionEnum exceptionEnum = ExceptionEnum.valueOf(
|
|
|
- ExceptionEnum.convertToName(String.valueOf(jsonObject.getJSONObject("reason").get(SystemConstant.TYPE))));
|
|
|
+// ExceptionEnum exceptionEnum = ExceptionEnum.valueOf(
|
|
|
+// ExceptionEnum.convertToName(String.valueOf(jsonObject.getJSONObject("reason").get(SystemConstant.TYPE))));
|
|
|
Long recordId = Long.parseLong(mqDto.getObjId());
|
|
|
Long lastPrepareTime = ExamRecordCacheUtil.getLastPrepareTime(recordId);
|
|
|
Long breakId = ExamRecordCacheUtil.getLastBreakId(recordId);
|
|
@@ -782,7 +782,7 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
String reason = "【异常处理】" + String.valueOf(jsonObject.getJSONObject("reason").get("reason"));
|
|
|
UpdateWrapper<TIeInvigilateExceptionInfo> tIeInvigilateExceptionInfoUpdateWrapper = new UpdateWrapper<>();
|
|
|
tIeInvigilateExceptionInfoUpdateWrapper.lambda().set(TIeInvigilateExceptionInfo::getInfo, reason)
|
|
|
- .set(TIeInvigilateExceptionInfo::getType, exceptionEnum)
|
|
|
+ .set(TIeInvigilateExceptionInfo::getType, ExceptionEnum.EXAM_BREAK.getTitle())
|
|
|
.set(TIeInvigilateExceptionInfo::getDifference, diff)
|
|
|
.set(TIeInvigilateExceptionInfo::getUpdateTime, lastPrepareTime)
|
|
|
.eq(TIeInvigilateExceptionInfo::getObjId, breakId);
|
|
@@ -790,8 +790,8 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
|
|
|
//修改考生轨迹
|
|
|
UpdateWrapper<TEExamStudentLog> teExamStudentLogUpdateWrapper = new UpdateWrapper<>();
|
|
|
- teExamStudentLogUpdateWrapper.lambda().set(TEExamStudentLog::getType, exceptionEnum.name())
|
|
|
- .set(TEExamStudentLog::getInfo, exceptionEnum.getCode())
|
|
|
+ teExamStudentLogUpdateWrapper.lambda().set(TEExamStudentLog::getType, ExceptionEnum.EXAM_BREAK.name())
|
|
|
+ .set(TEExamStudentLog::getInfo, ExceptionEnum.EXAM_BREAK.getCode())
|
|
|
.set(TEExamStudentLog::getRemark, reason)
|
|
|
.set(TEExamStudentLog::getUpdateTime, lastPrepareTime)
|
|
|
.eq(TEExamStudentLog::getObjId, breakId);
|