Commit 762e8411 authored by 赵啸非's avatar 赵啸非

修改查询时间段

parent 56215e49
...@@ -81,10 +81,10 @@ public class AccessMessageConsumerListener { ...@@ -81,10 +81,10 @@ public class AccessMessageConsumerListener {
entity.setCreateUserId(1L); entity.setCreateUserId(1L);
entity.setCreateTime(new Date()); entity.setCreateTime(new Date());
//判断 超过一定时间的请求 才记录 //判断 超过一定时间的请求 才记录
if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) { // if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) {
// log.info("Duration:{}",entity.getDuration()); // // log.info("Duration:{}",entity.getDuration());
return null; // return null;
} // }
return entity; return entity;
} catch (Exception e) { } catch (Exception e) {
log.info("反序列化异常", e); log.info("反序列化异常", e);
......
...@@ -37,10 +37,10 @@ public class AccessLogServiceImpl extends AbstractCRUDServiceImpl<AccessLogDao, ...@@ -37,10 +37,10 @@ public class AccessLogServiceImpl extends AbstractCRUDServiceImpl<AccessLogDao,
entity.setCreateTime(new Date()); entity.setCreateTime(new Date());
} }
if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) { // if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) {
// log.info("Duration:{}",entity.getDuration()); // // log.info("Duration:{}",entity.getDuration());
return null; // return null;
} // }
return super.save(entity, context); return super.save(entity, context);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment