Commit 56215e49 authored by 赵啸非's avatar 赵啸非

修改查询时间段

parent fc216a78
...@@ -82,7 +82,7 @@ public class AccessMessageConsumerListener { ...@@ -82,7 +82,7 @@ public class AccessMessageConsumerListener {
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;
......
...@@ -38,7 +38,7 @@ public class AccessLogServiceImpl extends AbstractCRUDServiceImpl<AccessLogDao, ...@@ -38,7 +38,7 @@ public class AccessLogServiceImpl extends AbstractCRUDServiceImpl<AccessLogDao,
} }
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