1、报表统计接口添加按月统计功能 ;

2、将开始时间和结束时间默认值获取方法改为按时间类型,默认为分钟(最近5分钟);
3、0x403	APP字节特征添加APP_SUBSCRIBE_ID域表
This commit is contained in:
zhangdongxu
2018-08-28 17:05:01 +08:00
parent 03b576fa4f
commit d038e3ee1f
7 changed files with 138 additions and 85 deletions

View File

@@ -178,50 +178,22 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
} }
/** /**
* *
* * @Description: 按类型获取默认时间
* @Title: getLocalTime * @author (zdx)
* @Description: (各种业务查询的时间条件默认值) * @date 2018年8月28日 下午4:53:40
* @param @param startTime * @param startTime
* @param @param endTime * @param endTime
* @param @param 本地存储时间长度(小时) * @param localLen
* @param @return * @param type
* @return Map 返回类型 * @return
* @author DDM * @throws Exception
* @version V1.0
*/ */
public static Map<String, String> getLocalTime(String startTime,String endTime,Long localLen,String type)throws Exception { public static Map<String, String> getLocalTime(String startTime,String endTime,Long localLen,String type)throws Exception {
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat sdf2=new SimpleDateFormat("yyyy-MM-dd");
Map<String, String> timeMap=new HashMap<String, String>(); Map<String, String> timeMap=new HashMap<String, String>();
Date date=new Date(); if (StringUtil.isEmpty(type)) {
//日报表默认查询前一天的数据 type = "minute";
if("daily".equals(type) && startTime == null && endTime == null){
Calendar cal=Calendar.getInstance();
cal.add(Calendar.DAY_OF_YEAR, -1);
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
timeMap.put("startTime", sdf.format(cal.getTime()));
timeMap.put("endTime", sdf.format(sdf.parse(sdf2.format(cal.getTime())+" 23:59:59")));
logger.info("日报默认开始时间条件:"+sdf.format(cal.getTime()));
logger.info("日报默认结束时间条件:"+sdf.format(sdf.parse(sdf2.format(cal.getTime())+" 23:59:59")));
return timeMap;
} }
//月报表默认查询前一天的数据
if("month".equals(type) && startTime == null && endTime == null){
Calendar cal=Calendar.getInstance();
cal.add(Calendar.MONTH, date.getMonth()-2);
cal.set(Calendar.DAY_OF_MONTH, 1);
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
timeMap.put("startTime", sdf.format(cal.getTime()));
timeMap.put("endTime", sdf.format(date));
logger.info("月报默认开始时间条件:"+sdf.format(cal.getTime()));
logger.info("月报默认结束时间条件:"+sdf.format(date));
return timeMap;
}
//实时报表统计默认查询最近5分钟 //实时报表统计默认查询最近5分钟
if("minute".equals(type) && startTime == null && endTime == null){ if("minute".equals(type) && startTime == null && endTime == null){
Calendar cal=Calendar.getInstance(); Calendar cal=Calendar.getInstance();
@@ -234,23 +206,30 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
timeMap.put("startTime", sdf.format(cal.getTime())); timeMap.put("startTime", sdf.format(cal.getTime()));
logger.info("实时报表统计默认开始时间条件:"+timeMap.get("startTime")); logger.info("实时报表统计默认开始时间条件:"+timeMap.get("startTime"));
logger.info("默认结束时间条件:"+timeMap.get("endTime")); logger.info("默认结束时间条件:"+timeMap.get("endTime"));
return timeMap;
} }else if("hour".equals(type) && startTime == null && endTime == null){//小时报表默认查询最近一小时的数据
if(startTime == null && endTime == null && localLen != null){
Calendar cal=Calendar.getInstance(); Calendar cal=Calendar.getInstance();
cal.add(Calendar.HOUR, -localLen.intValue()); timeMap.put("endTime", sdf.format(cal.getTime()));
cal.add(Calendar.HOUR_OF_DAY, -1);
timeMap.put("startTime", sdf.format(cal.getTime())); timeMap.put("startTime", sdf.format(cal.getTime()));
timeMap.put("endTime", sdf.format(date)); logger.info("小时报默认开始时间条件:"+timeMap.get("startTime"));
logger.info("默认开始时间条件:"+sdf.format(cal.getTime())); logger.info("小时报默认结束时间条件:"+timeMap.get("endTime"));
logger.info("默认结束时间条件:"+sdf.format(date)); }else if("daily".equals(type) && startTime == null && endTime == null){//日报表默认查询最近一天的数据
return timeMap; Calendar cal=Calendar.getInstance();
}else { timeMap.put("endTime", sdf.format(cal.getTime()));
timeMap.put("startTime", startTime); cal.add(Calendar.DAY_OF_YEAR, -1);
timeMap.put("endTime", endTime); timeMap.put("startTime", sdf.format(cal.getTime()));
logger.info("开始时间条件:"+startTime); logger.info("日报默认开始时间条件:"+timeMap.get("startTime"));
logger.info("结束时间条件:"+endTime); logger.info("日报默认结束时间条件:"+timeMap.get("endTime"));
return timeMap; }else if("month".equals(type) && startTime == null && endTime == null){//月报表默认查询最近一月的数据
Calendar cal=Calendar.getInstance();
timeMap.put("endTime", sdf.format(cal.getTime()));
cal.add(Calendar.MONTH,-1);
timeMap.put("startTime", sdf.format(cal.getTime()));
logger.info("月报默认开始时间条件:"+timeMap.get("startTime"));
logger.info("月报默认结束时间条件:"+timeMap.get("endTime"));
} }
return timeMap;
} }
/** /**

View File

@@ -25,6 +25,7 @@ import com.nis.util.Constants;
import com.nis.util.DateUtils; import com.nis.util.DateUtils;
import com.nis.util.HiveJDBCByDruid; import com.nis.util.HiveJDBCByDruid;
import com.nis.util.JsonMapper; import com.nis.util.JsonMapper;
import com.nis.util.StringUtil;
import com.nis.web.controller.BaseRestController; import com.nis.web.controller.BaseRestController;
import com.nis.web.service.AuditLogThread; import com.nis.web.service.AuditLogThread;
import com.nis.web.service.HiveSqlService; import com.nis.web.service.HiveSqlService;
@@ -168,12 +169,13 @@ public class LogController extends BaseRestController {
* @throws Exception * @throws Exception
*/ */
public void resetTime(LogEntity<?> entity) throws Exception { public void resetTime(LogEntity<?> entity) throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); if (StringUtil.isEmpty(entity.getSearchFoundStartTime())&&StringUtil.isEmpty(entity.getSearchFoundEndTime())) {
Map<String, String> map = DateUtils.getLocalTime(entity.getSearchFoundStartTime(), Map<String, String> map = DateUtils.getLocalTime(entity.getSearchFoundStartTime(),
entity.getSearchFoundEndTime(), Constants.LOG_LOCAL_TIME, "log"); entity.getSearchFoundEndTime(), Constants.LOG_LOCAL_TIME, "minute");
entity.setSearchFoundStartTime(map.get("startTime")); entity.setSearchFoundStartTime(map.get("startTime"));
entity.setSearchFoundEndTime(map.get("endTime")); entity.setSearchFoundEndTime(map.get("endTime"));
} }
}
/** /**
* 将searchFoundStartTime,searchFoundEndTime与foundTime进行关联 * 将searchFoundStartTime,searchFoundEndTime与foundTime进行关联

View File

@@ -1,6 +1,5 @@
package com.nis.web.controller.restful; package com.nis.web.controller.restful;
import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@@ -35,6 +34,7 @@ import com.nis.util.Constants;
import com.nis.util.DateUtils; import com.nis.util.DateUtils;
import com.nis.util.HiveJDBCByDruid; import com.nis.util.HiveJDBCByDruid;
import com.nis.util.JsonMapper; import com.nis.util.JsonMapper;
import com.nis.util.StringUtil;
import com.nis.web.controller.BaseRestController; import com.nis.web.controller.BaseRestController;
import com.nis.web.service.AuditLogThread; import com.nis.web.service.AuditLogThread;
import com.nis.web.service.HiveSqlService; import com.nis.web.service.HiveSqlService;
@@ -708,12 +708,13 @@ public class MmLogSearchController extends BaseRestController {
* @throws Exception * @throws Exception
*/ */
public void resetTime(LogEntity<?> entity) throws Exception { public void resetTime(LogEntity<?> entity) throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); if (StringUtil.isEmpty(entity.getSearchFoundStartTime())&&StringUtil.isEmpty(entity.getSearchFoundEndTime())) {
Map<String, String> map = DateUtils.getLocalTime(entity.getSearchFoundStartTime(), Map<String, String> map = DateUtils.getLocalTime(entity.getSearchFoundStartTime(),
entity.getSearchFoundEndTime(), Constants.LOG_LOCAL_TIME, "log"); entity.getSearchFoundEndTime(), Constants.LOG_LOCAL_TIME, "minute");
entity.setSearchFoundStartTime(map.get("startTime")); entity.setSearchFoundStartTime(map.get("startTime"));
entity.setSearchFoundEndTime(map.get("endTime")); entity.setSearchFoundEndTime(map.get("endTime"));
} }
}
/** /**
* 将searchFoundStartTime,searchFoundEndTime与foundTime进行关联 * 将searchFoundStartTime,searchFoundEndTime与foundTime进行关联

View File

@@ -1,6 +1,5 @@
package com.nis.web.controller.restful; package com.nis.web.controller.restful;
import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@@ -38,6 +37,7 @@ import com.nis.util.Constants;
import com.nis.util.DateUtils; import com.nis.util.DateUtils;
import com.nis.util.HiveJDBCByDruid; import com.nis.util.HiveJDBCByDruid;
import com.nis.util.JsonMapper; import com.nis.util.JsonMapper;
import com.nis.util.StringUtil;
import com.nis.web.controller.BaseRestController; import com.nis.web.controller.BaseRestController;
import com.nis.web.service.AuditLogThread; import com.nis.web.service.AuditLogThread;
import com.nis.web.service.HiveSqlService; import com.nis.web.service.HiveSqlService;
@@ -975,12 +975,13 @@ public class NtcLogSearchController extends BaseRestController {
* @throws Exception * @throws Exception
*/ */
public void resetTime(LogEntity<?> entity) throws Exception { public void resetTime(LogEntity<?> entity) throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); if (StringUtil.isEmpty(entity.getSearchFoundStartTime())&&StringUtil.isEmpty(entity.getSearchFoundEndTime())) {
Map<String, String> map = DateUtils.getLocalTime(entity.getSearchFoundStartTime(), Map<String, String> map = DateUtils.getLocalTime(entity.getSearchFoundStartTime(),
entity.getSearchFoundEndTime(), Constants.LOG_LOCAL_TIME, "log"); entity.getSearchFoundEndTime(), Constants.LOG_LOCAL_TIME, "minute");
entity.setSearchFoundStartTime(map.get("startTime")); entity.setSearchFoundStartTime(map.get("startTime"));
entity.setSearchFoundEndTime(map.get("endTime")); entity.setSearchFoundEndTime(map.get("endTime"));
} }
}
/** /**
* 将searchFoundStartTime,searchFoundEndTime与foundTime进行关联 * 将searchFoundStartTime,searchFoundEndTime与foundTime进行关联

View File

@@ -25,6 +25,7 @@ import com.nis.domain.restful.NtcTagReport;
import com.nis.restful.RestServiceException; import com.nis.restful.RestServiceException;
import com.nis.util.Constants; import com.nis.util.Constants;
import com.nis.util.DateUtils; import com.nis.util.DateUtils;
import com.nis.util.StringUtil;
import com.nis.web.controller.BaseRestController; import com.nis.web.controller.BaseRestController;
import com.nis.web.service.AuditLogThread; import com.nis.web.service.AuditLogThread;
import com.nis.web.service.ServicesRequestLogService; import com.nis.web.service.ServicesRequestLogService;
@@ -62,7 +63,7 @@ public class SingleDimensionReport extends BaseRestController {
Page<?> ntcPzReportPage = null; Page<?> ntcPzReportPage = null;
try { try {
resetReportTime(ntcPzReport); resetReportTime(ntcPzReport,true);
//验证实时报表 //验证实时报表
ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcPzReport, NtcPzReport.class, page); ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcPzReport, NtcPzReport.class, page);
//验证serachCfgId //验证serachCfgId
@@ -100,7 +101,7 @@ public class SingleDimensionReport extends BaseRestController {
Page<?> reportPage = null; Page<?> reportPage = null;
try { try {
resetReportTime(ntcServiceReport); resetReportTime(ntcServiceReport,false);
ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcServiceReport, NtcServiceReport.class, page); ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcServiceReport, NtcServiceReport.class, page);
String orderBy = ""; String orderBy = "";
if (null != page.getOrderBy() && !page.getOrderBy().equals("")) { if (null != page.getOrderBy() && !page.getOrderBy().equals("")) {
@@ -137,7 +138,7 @@ public class SingleDimensionReport extends BaseRestController {
Page<?> reportPage = null; Page<?> reportPage = null;
try { try {
resetReportTime(ntcTagReport); resetReportTime(ntcTagReport,false);
ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcTagReport, NtcTagReport.class, page); ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcTagReport, NtcTagReport.class, page);
//验证serachTag //验证serachTag
ntcReportService.checkNumericCondition(saveLogThread,start,ntcTagReport.getSearchTag(),"searchTag"); ntcReportService.checkNumericCondition(saveLogThread,start,ntcTagReport.getSearchTag(),"searchTag");
@@ -173,7 +174,7 @@ public class SingleDimensionReport extends BaseRestController {
Page<?> reportPage = null; Page<?> reportPage = null;
try { try {
resetReportTime(ntcAttrTypeReport); resetReportTime(ntcAttrTypeReport,false);
ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcAttrTypeReport, NtcAttrTypeReport.class, page); ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcAttrTypeReport, NtcAttrTypeReport.class, page);
//验证searchAttrType //验证searchAttrType
ntcReportService.checkNumericCondition(saveLogThread,start,ntcAttrTypeReport.getSearchAttrType(),"searchAttrType"); ntcReportService.checkNumericCondition(saveLogThread,start,ntcAttrTypeReport.getSearchAttrType(),"searchAttrType");
@@ -210,7 +211,7 @@ public class SingleDimensionReport extends BaseRestController {
Page<?> reportPage = null; Page<?> reportPage = null;
try { try {
resetReportTime(ntcLwhhReport); resetReportTime(ntcLwhhReport,false);
//验证实时报表 //验证实时报表
ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcLwhhReport, NtcLwhhReport.class, page); ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcLwhhReport, NtcLwhhReport.class, page);
//验证serachCfgId //验证serachCfgId
@@ -248,7 +249,7 @@ public class SingleDimensionReport extends BaseRestController {
Page<?> reportPage = null; Page<?> reportPage = null;
try { try {
resetReportTime(ntcSrcipDomesticReport); resetReportTime(ntcSrcipDomesticReport,false);
//验证实时报表 //验证实时报表
ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcSrcipDomesticReport, NtcSrcipDomesticReport.class, page); ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcSrcipDomesticReport, NtcSrcipDomesticReport.class, page);
String orderBy = ""; String orderBy = "";
@@ -287,7 +288,7 @@ public class SingleDimensionReport extends BaseRestController {
Page<?> reportPage = null; Page<?> reportPage = null;
try { try {
resetReportTime(ntcDestipCountryReport); resetReportTime(ntcDestipCountryReport,false);
// 验证实时报表 // 验证实时报表
ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcDestipCountryReport, ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcDestipCountryReport,
NtcDestipCountryReport.class, page); NtcDestipCountryReport.class, page);
@@ -325,7 +326,7 @@ public class SingleDimensionReport extends BaseRestController {
Page<?> reportPage = null; Page<?> reportPage = null;
try { try {
resetReportTime(ntcEntranceReport); resetReportTime(ntcEntranceReport,false);
ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcEntranceReport, NtcEntranceReport.class, ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcEntranceReport, NtcEntranceReport.class,
page); page);
// 验证searchEntrance // 验证searchEntrance
@@ -361,11 +362,32 @@ public class SingleDimensionReport extends BaseRestController {
* @param entity * @param entity
* @throws Exception * @throws Exception
*/ */
public void resetReportTime(NtcReportEntity<?> entity) throws Exception { public void resetReportTime(NtcReportEntity<?> entity,Boolean isTotal) throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); if (StringUtil.isEmpty(entity.getSearchReportStartTime())&&StringUtil.isEmpty(entity.getSearchReportEndTime())) {
String dateType = "minute"; //默认为分钟
if (!isTotal){
if (entity.getSearchBusinessType().equals("2")) {
dateType = "hour";
}else if (entity.getSearchBusinessType().equals("3")) {
dateType = "daily";
}else if (entity.getSearchBusinessType().equals("4")) {
dateType = "month";
}
}else{
if (entity.getSearchBusinessType().equals("3")) {
dateType = "hour";
}else if (entity.getSearchBusinessType().equals("4")) {
dateType = "daily";
}else if (entity.getSearchBusinessType().equals("5")) {
dateType = "month";
}
}
Map<String, String> map = DateUtils.getLocalTime(entity.getSearchReportStartTime(), Map<String, String> map = DateUtils.getLocalTime(entity.getSearchReportStartTime(),
entity.getSearchReportEndTime(), Constants.PZ_REPORT_TIME, "minute"); entity.getSearchReportEndTime(), Constants.PZ_REPORT_TIME, dateType);
entity.setSearchReportStartTime(map.get("startTime")); entity.setSearchReportStartTime(map.get("startTime"));
entity.setSearchReportEndTime(map.get("endTime")); entity.setSearchReportEndTime(map.get("endTime"));
} }
} }
}

View File

@@ -75,6 +75,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_PZ_STAT_DAILY NTC_PZ_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 5 ">
NTC_PZ_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_PZ_REPORT NTC_PZ_REPORT
</otherwise> </otherwise>
@@ -112,6 +115,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_PZ_STAT_DAILY NTC_PZ_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 5 ">
NTC_PZ_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_PZ_REPORT NTC_PZ_REPORT
</otherwise> </otherwise>
@@ -143,6 +149,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_SERVICE_STAT_DAILY NTC_SERVICE_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_SERVICE_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_SERVICE_REPORT NTC_SERVICE_REPORT
</otherwise> </otherwise>
@@ -169,6 +178,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_SERVICE_STAT_DAILY NTC_SERVICE_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_SERVICE_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_SERVICE_REPORT NTC_SERVICE_REPORT
</otherwise> </otherwise>
@@ -202,6 +214,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_TAG_STAT_DAILY NTC_TAG_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_TAG_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_TAG_REPORT NTC_TAG_REPORT
</otherwise> </otherwise>
@@ -230,6 +245,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_TAG_STAT_DAILY NTC_TAG_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_TAG_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_TAG_REPORT NTC_TAG_REPORT
</otherwise> </otherwise>
@@ -263,6 +281,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_ATTR_TYPE_STAT_DAILY NTC_ATTR_TYPE_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_ATTR_TYPE_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_ATTR_TYPE_REPORT NTC_ATTR_TYPE_REPORT
</otherwise> </otherwise>
@@ -292,6 +313,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_ATTR_TYPE_STAT_DAILY NTC_ATTR_TYPE_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_ATTR_TYPE_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_ATTR_TYPE_REPORT NTC_ATTR_TYPE_REPORT
</otherwise> </otherwise>
@@ -324,6 +348,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_LWHH_STAT_DAILY NTC_LWHH_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_LWHH_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_LWHH_REPORT NTC_LWHH_REPORT
</otherwise> </otherwise>
@@ -352,6 +379,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_LWHH_STAT_DAILY NTC_LWHH_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_LWHH_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_LWHH_REPORT NTC_LWHH_REPORT
</otherwise> </otherwise>
@@ -383,6 +413,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_SRCIP_DOMESTIC_STAT_DAILY NTC_SRCIP_DOMESTIC_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_SRCIP_DOMESTIC_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_SRCIP_DOMESTIC_REPORT NTC_SRCIP_DOMESTIC_REPORT
</otherwise> </otherwise>
@@ -408,6 +441,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_SRCIP_DOMESTIC_STAT_DAILY NTC_SRCIP_DOMESTIC_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_SRCIP_DOMESTIC_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_SRCIP_DOMESTIC_REPORT NTC_SRCIP_DOMESTIC_REPORT
</otherwise> </otherwise>
@@ -440,6 +476,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_DESTIP_COUNTRY_STAT_DAILY NTC_DESTIP_COUNTRY_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_DESTIP_COUNTRY_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_DESTIP_COUNTRY_REPORT NTC_DESTIP_COUNTRY_REPORT
</otherwise> </otherwise>
@@ -465,6 +504,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_DESTIP_COUNTRY_STAT_DAILY NTC_DESTIP_COUNTRY_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_DESTIP_COUNTRY_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_DESTIP_COUNTRY_REPORT NTC_DESTIP_COUNTRY_REPORT
</otherwise> </otherwise>
@@ -497,6 +539,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_ENTRANCE_STAT_DAILY NTC_ENTRANCE_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_ENTRANCE_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_ENTRANCE_REPORT NTC_ENTRANCE_REPORT
</otherwise> </otherwise>
@@ -526,6 +571,9 @@
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 "> <when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
NTC_ENTRANCE_STAT_DAILY NTC_ENTRANCE_STAT_DAILY
</when> </when>
<when test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 4 ">
NTC_ENTRANCE_STAT_MONTH
</when>
<otherwise> <otherwise>
NTC_ENTRANCE_REPORT NTC_ENTRANCE_REPORT
</otherwise> </otherwise>

View File

@@ -176,7 +176,7 @@ service=1:128;2:128;16:16;17:16;18:16;19:16;20:16;21:16;22:16;23:16;24:16;26:16;
#0x403 APP字节特征 #0x403 APP字节特征
1027=10:APP_COMPILE;11:APP_GROUP;14:APP_PKT_BIN,APP_SUBSCRIBE_ID;18:NTC_IP_RANGE 1027=10:APP_COMPILE;11:APP_GROUP;14:APP_PKT_BIN,APP_SUBSCRIBE_ID;18:NTC_IP_RANGE
#0x404 APP IP特征 #0x404 APP IP特征
1028=10:APP_COMPILE;11:APP_GROUP;12:APP_STATIC_SEV_IP;18:NTC_IP_RANGE 1028=10:APP_COMPILE;11:APP_GROUP;12:APP_STATIC_SEV_IP;14:APP_SUBSCRIBE_ID;18:NTC_IP_RANGE
#0x405 SSL证书特征 #0x405 SSL证书特征
1029=10:APP_COMPILE;11:APP_GROUP;14:APP_SUBSCRIBE_ID;15:APP_SSL_CERT;18:NTC_IP_RANGE 1029=10:APP_COMPILE;11:APP_GROUP;14:APP_SUBSCRIBE_ID;15:APP_SSL_CERT;18:NTC_IP_RANGE
#0x406 TCP Session特征 #0x406 TCP Session特征