소스 검색

监考端接口

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