Browse Source

断点续考type去除,默认为断点续考

wangliang 1 năm trước cách đây
mục cha
commit
cbd37511b9

+ 5 - 5
themis-mq/src/main/java/com/qmth/themis/mq/service/impl/MqLogicServiceImpl.java

@@ -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);