浏览代码

监考端接口

wangliang 4 年之前
父节点
当前提交
3a17b8656a
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      themis-mq/src/main/java/com/qmth/themis/mq/service/impl/MqLogicServiceImpl.java

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

@@ -427,7 +427,10 @@ public class MqLogicServiceImpl implements MqLogicService {
                 tIeExamInvigilateCall.setLiveUrl(tIeExamInvigilateCallLog.getLiveUrl());
                 tIeExamInvigilateCall.setStatus(tIeExamInvigilateCallLog.getStatus());
             }
-            tIeExamInvigilateCallService.saveOrUpdate(tIeExamInvigilateCall);
+            long dbtimestamp = tIeExamInvigilateCall.getUpdateTime().getTime();
+            if (mqDto.getTimestamp() > dbtimestamp) {
+                tIeExamInvigilateCallService.saveOrUpdate(tIeExamInvigilateCall);
+            }
             tIeExamInvigilateCallLogService.saveOrUpdate(tIeExamInvigilateCallLog);
         } else if (tag.contains(MqTagEnum.EXCEPTION_LOG.name())) {//考试断点异常日志
             JSONObject jsonObject = JSONObject.parseObject(String.valueOf(mqDto.getBody()));