1、根据库表结构设计调整回调类配置入库字段顺序;

2、APP阻断、APP监测和APP DOMAIN特征发现分发到阀门添加额外字段;
3、实现配置日志总量统计接口功能
This commit is contained in:
zhangdongxu
2018-07-12 16:34:17 +08:00
parent e15e431b61
commit 9c5033fc1d
13 changed files with 481 additions and 171 deletions

View File

@@ -222,6 +222,20 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
return timeMap;
}
//实时报表统计默认查询最近5分钟
if("minute".equals(type) && startTime == null && endTime == null){
Calendar cal=Calendar.getInstance();
timeMap.put("startTime", sdf.format(cal.getTime()));
if(localLen != null){
cal.add(Calendar.MINUTE, -localLen.intValue());
}else{
cal.add(Calendar.MINUTE, -5);
}
timeMap.put("endTime", sdf.format(cal.getTime()));
logger.info("实时报表统计默认开始时间条件:"+timeMap.get("startTime"));
logger.info("默认结束时间条件:"+timeMap.get("endTime"));
return timeMap;
}
if(startTime == null && endTime == null && localLen != null){
Calendar cal=Calendar.getInstance();
cal.add(Calendar.HOUR, -localLen.intValue());