|
@@ -29,7 +29,6 @@ import com.qmth.themis.common.enums.ExceptionResultEnum;
|
|
|
import com.qmth.themis.common.exception.BusinessException;
|
|
|
import com.qmth.themis.common.util.FileUtil;
|
|
|
import com.qmth.themis.common.util.GsonUtil;
|
|
|
-import com.qmth.themis.common.util.IpUtil;
|
|
|
import com.qmth.themis.common.util.SimpleBeanUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
@@ -547,15 +546,14 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
|
|
|
@Override
|
|
|
public void sendExamRecordDataSaveMq(Long recordId, Long timestamp) {
|
|
|
try {
|
|
|
- if (Objects.nonNull(ServletUtil.getRequest())) {
|
|
|
- ExamRecordCacheUtil.setClientCurrentIp(recordId, IpUtil.getRemoteIp(ServletUtil.getRequest()));
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- log.error(SystemConstant.LOG_ERROR, e);
|
|
|
- } finally {
|
|
|
+// if (Objects.nonNull(ServletUtil.getRequest())) {
|
|
|
+// ExamRecordCacheUtil.setClientCurrentIp(recordId, IpUtil.getRemoteIp(ServletUtil.getRequest()));
|
|
|
+// }
|
|
|
ExamRecordCacheUtil.setUpdateTime(recordId, timestamp);
|
|
|
MqDto mqDto = new MqDto(mqUtil.getTopic(), MqTagEnum.EXAM_RECORD_UPDATE.name(), recordId.toString(), timestamp);
|
|
|
mqDtoService.assembleSendOneWayMsg(mqDto);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
}
|
|
|
}
|
|
|
|