1、处理原始日志和报表统计中提示异常信息不准确,而无法定位错误的问题;
2、解决服务发生异常,请求日志记双份的问题;
This commit is contained in:
@@ -326,27 +326,23 @@ public class BaseRestController {
|
|||||||
if (need != opAction) {
|
if (need != opAction) {
|
||||||
switch (need) {
|
switch (need) {
|
||||||
case Constants.OPACTION_POST:
|
case Constants.OPACTION_POST:
|
||||||
throw new RestServiceException(thread, time,
|
throw new RestServiceException("操作行为错误,您使用的是POST请求,POST请求对应的opAction为" + Constants.OPACTION_POST + ",您请求中的opAction为" + opAction
|
||||||
"操作行为错误,您使用的是POST请求,POST请求对应的opAction为" + Constants.OPACTION_POST + ",您请求中的opAction为" + opAction
|
|
||||||
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
|
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
|
||||||
RestBusinessCode.op_action_error.getValue());
|
RestBusinessCode.op_action_error.getValue());
|
||||||
case Constants.OPACTION_PUT:
|
case Constants.OPACTION_PUT:
|
||||||
throw new RestServiceException(thread, time,
|
throw new RestServiceException("操作行为错误,您使用的是PUT请求,PUT请求对应的opAction为" + Constants.OPACTION_PUT + ",您请求中的opAction为" + opAction
|
||||||
"操作行为错误,您使用的是PUT请求,PUT请求对应的opAction为" + Constants.OPACTION_PUT + ",您请求中的opAction为" + opAction
|
|
||||||
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
|
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
|
||||||
RestBusinessCode.op_action_error.getValue());
|
RestBusinessCode.op_action_error.getValue());
|
||||||
case Constants.OPACTION_DELETE:
|
case Constants.OPACTION_DELETE:
|
||||||
throw new RestServiceException(thread, time,
|
throw new RestServiceException("操作行为错误,您使用的是DELETE请求,DELETE请求对应的opAction为" + Constants.OPACTION_DELETE + ",您请求中的opAction为"
|
||||||
"操作行为错误,您使用的是DELETE请求,DELETE请求对应的opAction为" + Constants.OPACTION_DELETE + ",您请求中的opAction为"
|
|
||||||
+ opAction + ",对应的请求方式为" + convertOpAction(opAction) + "!",
|
+ opAction + ",对应的请求方式为" + convertOpAction(opAction) + "!",
|
||||||
RestBusinessCode.op_action_error.getValue());
|
RestBusinessCode.op_action_error.getValue());
|
||||||
case Constants.OPACTION_GET:
|
case Constants.OPACTION_GET:
|
||||||
throw new RestServiceException(thread, time,
|
throw new RestServiceException("操作行为错误,您使用的是GET请求,GET请求对应的opAction为" + Constants.OPACTION_GET + ",您请求中的opAction为" + opAction
|
||||||
"操作行为错误,您使用的是GET请求,GET请求对应的opAction为" + Constants.OPACTION_GET + ",您请求中的opAction为" + opAction
|
|
||||||
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
|
+ ",对应的请求方式为" + convertOpAction(opAction) + "!",
|
||||||
RestBusinessCode.op_action_error.getValue());
|
RestBusinessCode.op_action_error.getValue());
|
||||||
default:
|
default:
|
||||||
throw new RestServiceException(thread, time, "操作行为错误,未找到属性opAction对应业务!",
|
throw new RestServiceException("操作行为错误,未找到属性opAction对应业务!",
|
||||||
RestBusinessCode.op_action_error.getValue());
|
RestBusinessCode.op_action_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import com.nis.restful.RestBusinessCode;
|
import com.nis.restful.RestBusinessCode;
|
||||||
|
import com.nis.restful.RestServiceException;
|
||||||
import com.nis.restful.ServiceRuntimeException;
|
import com.nis.restful.ServiceRuntimeException;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.ExceptionUtil;
|
import com.nis.util.ExceptionUtil;
|
||||||
@@ -57,12 +58,20 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = resultList;
|
list = resultList;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("业务总量汇聚实时统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("业务总量汇聚实时统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("业务总量汇聚实时统计数据检索失败"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"业务总量汇聚实时统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"业务总量汇聚实时统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"业务总量汇聚实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"业务总量汇聚实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "业务总量汇聚实时统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "业务总量汇聚实时统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -88,12 +97,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = resultList;
|
list = resultList;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("动作趋势分析统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("动作趋势分析统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("动作趋势分析统计数据检索失败"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"动作趋势分析统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"动作趋势分析统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"动作趋势分析统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"动作趋势分析统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "动作趋势分析统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "动作趋势分析统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -118,12 +134,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = resultList;
|
list = resultList;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("带宽实时统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("带宽实时统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("带宽实时统计数据检索失败"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"带宽实时统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"带宽实时统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"带宽实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"带宽实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "带宽实时统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "带宽实时统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -148,12 +171,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = resultList;
|
list = resultList;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("带宽实时统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("带宽实时统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("带宽实时统计数据检索失败"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"带宽实时统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"带宽实时统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"带宽实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"带宽实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "带宽实时统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "带宽实时统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -173,12 +203,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("活跃端口实时统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
|
||||||
logger.error("活跃端口实时统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
logger.error("活跃端口实时统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"活跃端口实时统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"活跃端口实时统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"活跃端口实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"活跃端口实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "活跃端口实时统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "活跃端口实时统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,12 +236,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = (java.util.List<HashMap>) JsonMapper.fromJsonList(jsonString,HashMap.class);
|
list = (java.util.List<HashMap>) JsonMapper.fromJsonList(jsonString,HashMap.class);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("协议统计图表数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
|
||||||
logger.error("协议统计图表数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
logger.error("协议统计图表数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"协议统计图表数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"协议统计图表数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"协议统计图表数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"协议统计图表数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "协议统计图表数据检索成功",
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "协议统计图表数据检索成功",
|
||||||
list, 0);
|
list, 0);
|
||||||
}
|
}
|
||||||
@@ -224,13 +268,20 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = (java.util.List<HashMap>) JsonMapper.fromJsonList(jsonString,HashMap.class);
|
list = (java.util.List<HashMap>) JsonMapper.fromJsonList(jsonString,HashMap.class);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("协议统计占比与报表检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("协议统计占比与报表检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("协议统计图表数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"协议统计占比与报表检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"协议统计图表数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"协议统计占比与报表检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"协议统计占比与报表检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "协议统计图表数据检索成功",
|
}
|
||||||
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "协议统计占比与报表检索成功",
|
||||||
list, 0);
|
list, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -251,12 +302,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = ipActiveChart;
|
list = ipActiveChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("活跃IP实时统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
|
||||||
logger.error("活跃IP实时统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
logger.error("活跃IP实时统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"活跃IP实时统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"活跃IP实时统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"活跃IP实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"活跃IP实时统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "活跃IP实时统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "活跃IP实时统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -275,12 +333,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = ipActiveChart;
|
list = ipActiveChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("活跃IP统计一个小时的活跃IP检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("活跃IP统计一个小时的活跃IP检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("活跃IP统计一个小时的活跃IP"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"活跃IP统计一个小时的活跃IP检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"活跃IP统计一个小时的活跃IP检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"活跃IP统计一个小时的活跃IP检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"活跃IP统计一个小时的活跃IP检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "活跃IP统计一个小时的活跃IP检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "活跃IP统计一个小时的活跃IP检索成功",list, 0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -299,12 +364,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = ipActiveChart;
|
list = ipActiveChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("活跃IP最近一个小时的变化趋势统计失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("活跃IP最近一个小时的变化趋势统计失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("活跃IP最近一个小时的变化趋势统计"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"活跃IP最近一个小时的变化趋势统计失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"活跃IP最近一个小时的变化趋势统计失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"活跃IP最近一个小时的变化趋势统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"活跃IP最近一个小时的变化趋势统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "活跃IP最近一个小时的变化趋势统计成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "活跃IP最近一个小时的变化趋势统计成功",list, 0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -323,11 +395,18 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = appChart;
|
list = appChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("App流量统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("App流量统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("App流量分析统计:"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"App流量统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"App流量分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"App流量统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"App流量统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "App流量统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "App流量统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
@@ -347,12 +426,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = (java.util.List<HashMap>) JsonMapper.fromJsonList(jsonString,HashMap.class);
|
list = (java.util.List<HashMap>) JsonMapper.fromJsonList(jsonString,HashMap.class);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("App统计图表数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
|
||||||
logger.error("App统计图表数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
logger.error("App统计图表数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"App统计图表数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"App统计图表数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"App统计图表数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"App统计图表数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "App统计图表数据检索成功",
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "App统计图表数据检索成功",
|
||||||
list, 0);
|
list, 0);
|
||||||
}
|
}
|
||||||
@@ -368,11 +454,18 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = osChart;
|
list = osChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("操作系统流量分析统计检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("操作系统流量分析统计检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("操作系统流量分析统计失败:"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"操作系统流量分析统计检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"操作系统流量分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"操作系统流量分析统计检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"操作系统流量分析统计检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "操作系统流量分析统计检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "操作系统流量分析统计检索成功",list, 0);
|
||||||
}
|
}
|
||||||
@@ -389,11 +482,18 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list=osChart;
|
list=osChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("操作系统下浏览器分类统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("操作系统下浏览器分类统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("操作系统下浏览器流量分析统计失败:"+e);
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"操作系统下浏览器分类统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"操作系统下浏览器流量分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"操作系统下浏览器分类统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"操作系统下浏览器分类统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "操作系统下浏览器分类统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "操作系统下浏览器分类统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
@@ -409,11 +509,18 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = bsChart;
|
list = bsChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("浏览器流量分析统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("浏览器流量分析统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("浏览器流量分析统计失败:"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"浏览器流量分析统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"浏览器流量分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"浏览器流量分析统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"浏览器流量分析统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "浏览器流量分析统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "浏览器流量分析统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
@@ -430,11 +537,18 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = bsChart;
|
list = bsChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("浏览器下操作系统流量统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("浏览器下操作系统流量统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("浏览器下操作系统流量分析统计失败:"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"浏览器下操作系统流量统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"浏览器下操作系统流量分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"浏览器下操作系统流量统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"浏览器下操作系统流量统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "浏览器下操作系统流量统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "浏览器下操作系统流量统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
@@ -452,11 +566,18 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = websiteChart;
|
list = websiteChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("网站流量分析统计数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("网站流量分析统计数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("网站流量分析统计失败:"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"网站流量分析统计数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"网站流量分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"网站流量分析统计数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"网站流量分析统计数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "网站流量分析统计数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "网站流量分析统计数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
@@ -473,12 +594,19 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = websiteChart;
|
list = websiteChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("HTTP网站分类分析统计失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("HTTP网站分类分析统计失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("HTTP网站分类分析统计失败:"+e);
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"HTTP网站分类分析统计失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"HTTP网站分类分析统计失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"HTTP网站分类分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"HTTP网站分类分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "HTTP网站分类分析统计成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "HTTP网站分类分析统计成功",list, 0);
|
||||||
}
|
}
|
||||||
@RequestMapping(value = "trafficTopicAndDomainChart", method = RequestMethod.GET)
|
@RequestMapping(value = "trafficTopicAndDomainChart", method = RequestMethod.GET)
|
||||||
@@ -494,11 +622,18 @@ public class DashboardServiceController extends BaseRestController {
|
|||||||
list = websiteChart;
|
list = websiteChart;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("HTTP网站主题分类分析数据检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("HTTP网站主题分类分析数据检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error("HTTP网站主题分类分析统计失败:"+ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"HTTP网站主题分类分析数据检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"HTTP网站分类分析统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"HTTP网站主题分类分析数据检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"HTTP网站主题分类分析数据检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "HTTP网站主题分类分析数据检索成功",list, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "HTTP网站主题分类分析数据检索成功",list, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,14 +67,17 @@ public class LogController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, dkBehaviorLog, DkBehaviorLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, dkBehaviorLog, DkBehaviorLog.class, page);
|
||||||
logDataService.getData(page, dkBehaviorLog);
|
logDataService.getData(page, dkBehaviorLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("行为识别日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("行为识别日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"行为识别日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"行为识别日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"行为识别日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"行为识别日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "行为识别日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "行为识别日志检索成功", page, 0);
|
||||||
@@ -93,14 +96,17 @@ public class LogController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, pxyHttpLog, PxyHttpLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, pxyHttpLog, PxyHttpLog.class, page);
|
||||||
logDataService.getData(page, pxyHttpLog);
|
logDataService.getData(page, pxyHttpLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("PXY HTTP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("PXY HTTP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"PXY HTTP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"PXY HTTP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"PXY HTTP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"PXY HTTP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "PXY HTTP日志检索成功", page,
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "PXY HTTP日志检索成功", page,
|
||||||
|
|||||||
@@ -74,14 +74,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmAvIpLog, MmAvIpLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmAvIpLog, MmAvIpLog.class, page);
|
||||||
logDataService.getData(page, mmAvIpLog);
|
logDataService.getData(page, mmAvIpLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("音视频IP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("音视频IP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"音视频IP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"音视频IP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"音视频IP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"音视频IP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "音视频IP日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "音视频IP日志检索成功", page, 0);
|
||||||
@@ -100,14 +103,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmAvUrlLog, MmAvUrlLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmAvUrlLog, MmAvUrlLog.class, page);
|
||||||
logDataService.getData(page, mmAvUrlLog);
|
logDataService.getData(page, mmAvUrlLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("音视频URL日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("音视频URL日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"音视频URL日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"音视频URL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"音视频URL日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"音视频URL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "音视频URL日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "音视频URL日志检索成功", page, 0);
|
||||||
@@ -126,14 +132,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmPicIpLog, MmPicIpLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmPicIpLog, MmPicIpLog.class, page);
|
||||||
logDataService.getData(page, mmPicIpLog);
|
logDataService.getData(page, mmPicIpLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("图片IP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("图片IP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"图片IP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"图片IP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"图片IP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"图片IP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "图片IP日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "图片IP日志检索成功", page, 0);
|
||||||
@@ -152,14 +161,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmPicUrlLog, MmPicUrlLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmPicUrlLog, MmPicUrlLog.class, page);
|
||||||
logDataService.getData(page, mmPicUrlLog);
|
logDataService.getData(page, mmPicUrlLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("图片URL日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("图片URL日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"图片URL日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"图片URL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"图片URL日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"图片URL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "图片URL日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "图片URL日志检索成功", page, 0);
|
||||||
@@ -180,14 +192,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
logDataService.getData(page, mmVoipIpLog);
|
logDataService.getData(page, mmVoipIpLog);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("VoIP IP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("VoIP IP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"VoIP IP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"VoIP IP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"VoIP IP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"VoIP IP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "VoIP IP日志检索成功", page,
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "VoIP IP日志检索成功", page,
|
||||||
@@ -235,14 +250,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmSampleAudioLog, MmSampleAudioLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmSampleAudioLog, MmSampleAudioLog.class, page);
|
||||||
logDataService.getData(page, mmSampleAudioLog);
|
logDataService.getData(page, mmSampleAudioLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("音频样例日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("音频样例日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"音频样例日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"音频样例日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"音频样例日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"音频样例日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "音频样例日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "音频样例日志检索成功", page, 0);
|
||||||
@@ -261,14 +279,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmSampleVideoLog, MmSampleVideoLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmSampleVideoLog, MmSampleVideoLog.class, page);
|
||||||
logDataService.getData(page, mmSampleVideoLog);
|
logDataService.getData(page, mmSampleVideoLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("视频样例日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("视频样例日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"视频样例日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"视频样例日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"视频样例日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"视频样例日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "视频样例日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "视频样例日志检索成功", page, 0);
|
||||||
@@ -288,14 +309,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
page);
|
page);
|
||||||
logDataService.getData(page, mmPornAudioLevelLog);
|
logDataService.getData(page, mmPornAudioLevelLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("音频色情日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("音频色情日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"音频色情日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"音频色情日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"音频色情日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"音频色情日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "音频色情日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "音频色情日志检索成功", page, 0);
|
||||||
@@ -315,15 +339,19 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
page);
|
page);
|
||||||
logDataService.getData(page, mmPornVideoLevelLog);
|
logDataService.getData(page, mmPornVideoLevelLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("视频色情日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("视频色情日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"视频色情日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"视频色情日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"视频色情日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"视频色情日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "视频色情日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "视频色情日志检索成功", page, 0);
|
||||||
}
|
}
|
||||||
@@ -341,14 +369,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmSamplePicLog, MmSamplePicLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmSamplePicLog, MmSamplePicLog.class, page);
|
||||||
logDataService.getData(page, mmSamplePicLog);
|
logDataService.getData(page, mmSamplePicLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("图片样例日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("图片样例日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"图片样例日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"图片样例日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"图片样例日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"图片样例日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "图片样例日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "图片样例日志检索成功", page, 0);
|
||||||
@@ -367,14 +398,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmSampleVoipLog, MmSampleVoipLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmSampleVoipLog, MmSampleVoipLog.class, page);
|
||||||
logDataService.getData(page, mmSampleVoipLog);
|
logDataService.getData(page, mmSampleVoipLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("VOIP样例日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("VOIP样例日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"VOIP样例日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"VOIP样例日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"VOIP样例日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"VOIP样例日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "VOIP样例日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "VOIP样例日志检索成功", page, 0);
|
||||||
@@ -394,14 +428,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
MmSpeakerRecognizationLog.class, page);
|
MmSpeakerRecognizationLog.class, page);
|
||||||
logDataService.getData(page, mmSpeakerRecognizationLog);
|
logDataService.getData(page, mmSpeakerRecognizationLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("说话人识别日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("说话人识别日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"说话人识别日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"说话人识别日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"说话人识别日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"说话人识别日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "说话人识别日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "说话人识别日志检索成功", page, 0);
|
||||||
@@ -421,14 +458,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
page);
|
page);
|
||||||
logDataService.getData(page, mmLogoDetectionLog);
|
logDataService.getData(page, mmLogoDetectionLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("台标识别日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("台标识别日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"台标识别日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"台标识别日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"台标识别日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"台标识别日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "台标识别日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "台标识别日志检索成功", page, 0);
|
||||||
@@ -448,14 +488,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
MmFaceRecognizationLog.class, page);
|
MmFaceRecognizationLog.class, page);
|
||||||
logDataService.getData(page, mmFaceRecognizationLog);
|
logDataService.getData(page, mmFaceRecognizationLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("人脸识别日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("人脸识别日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"人脸识别日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"人脸识别日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"人脸识别日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"人脸识别日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "人脸识别日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "人脸识别日志检索成功", page, 0);
|
||||||
@@ -474,14 +517,17 @@ public class MmLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, mmFileDigestLog, MmFileDigestLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, mmFileDigestLog, MmFileDigestLog.class, page);
|
||||||
logDataService.getData(page, mmFileDigestLog);
|
logDataService.getData(page, mmFileDigestLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("文件摘要日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("文件摘要日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"文件摘要日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"文件摘要日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"文件摘要日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"文件摘要日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "文件摘要日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "文件摘要日志检索成功", page, 0);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class NmsInfoController extends BaseRestController {
|
|||||||
thread.setContent("NMS系统上报服务器数量为"+trafficNmsServerStatisticList.getTrafficNmsServerList().size());
|
thread.setContent("NMS系统上报服务器数量为"+trafficNmsServerStatisticList.getTrafficNmsServerList().size());
|
||||||
trafficNmsServerStatisticService.saveNmsInfo(trafficNmsServerStatisticList.getTrafficNmsServerList());
|
trafficNmsServerStatisticService.saveNmsInfo(trafficNmsServerStatisticList.getTrafficNmsServerList());
|
||||||
} else {
|
} else {
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "参数trafficNmsServerList不能为空",
|
throw new RestServiceException("参数trafficNmsServerList不能为空",
|
||||||
RestBusinessCode.missing_args.getValue());
|
RestBusinessCode.missing_args.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ public class NmsInfoController extends BaseRestController {
|
|||||||
thread.setContent("NMS系统上报的di信息数量为"+nmsDiRuleList.getNmsDiRuleList().size());
|
thread.setContent("NMS系统上报的di信息数量为"+nmsDiRuleList.getNmsDiRuleList().size());
|
||||||
nmsDiRuleService.saveNmsDiRuleInfo(nmsDiRuleList.getNmsDiRuleList());
|
nmsDiRuleService.saveNmsDiRuleInfo(nmsDiRuleList.getNmsDiRuleList());
|
||||||
} else {
|
} else {
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "参数nmsDiRuleList不能为空",
|
throw new RestServiceException("参数nmsDiRuleList不能为空",
|
||||||
RestBusinessCode.missing_args.getValue());
|
RestBusinessCode.missing_args.getValue());
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -123,8 +123,7 @@ public class NmsInfoController extends BaseRestController {
|
|||||||
trafficNetflowPortInfoService
|
trafficNetflowPortInfoService
|
||||||
.saveTrafficNetflowPortInfo(trafficNetflowPortInfoList.getTrafficNetflowPortInfoList());
|
.saveTrafficNetflowPortInfo(trafficNetflowPortInfoList.getTrafficNetflowPortInfoList());
|
||||||
} else {
|
} else {
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start,
|
throw new RestServiceException("参数trafficNetflowPortInfoList不能为空", RestBusinessCode.missing_args.getValue());
|
||||||
"参数trafficNetflowPortInfoList不能为空", RestBusinessCode.missing_args.getValue());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -78,14 +78,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcIpLog, NtcIpLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcIpLog, NtcIpLog.class, page);
|
||||||
logDataService.getData(page, ntcIpLog);
|
logDataService.getData(page, ntcIpLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("IP地址日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("IP地址日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"IP地址日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"IP地址日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"IP地址日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"IP地址日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -105,18 +108,18 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcHttpLog, NtcHttpLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcHttpLog, NtcHttpLog.class, page);
|
||||||
logDataService.getData(page, ntcHttpLog);
|
logDataService.getData(page, ntcHttpLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("Http日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("Http日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
if (!(e instanceof RestServiceException)) {
|
"Http日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"Http日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"Http日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"Http日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "Http日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "Http日志检索成功", page, 0);
|
||||||
@@ -135,14 +138,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcDnsLog, NtcDnsLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcDnsLog, NtcDnsLog.class, page);
|
||||||
logDataService.getData(page, ntcDnsLog);
|
logDataService.getData(page, ntcDnsLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("Dns日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("Dns日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"Dns日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"Dns日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"Dns日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"Dns日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,18 +167,21 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcMailLog, NtcMailLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcMailLog, NtcMailLog.class, page);
|
||||||
logDataService.getData(page, ntcMailLog);
|
logDataService.getData(page, ntcMailLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("EMAIL日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("EMAIL日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"EMAIL日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"Mail日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"EMAIL日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"EMAIL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "EMAIL日志检索成功", page, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/ntcSslLogs", method = RequestMethod.GET)
|
@RequestMapping(value = "/ntcSslLogs", method = RequestMethod.GET)
|
||||||
@@ -188,14 +197,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcSslLog, NtcSslLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcSslLog, NtcSslLog.class, page);
|
||||||
logDataService.getData(page, ntcSslLog);
|
logDataService.getData(page, ntcSslLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("SSL日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("SSL日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"SSL日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"SSL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"SSL日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"SSL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,14 +227,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcPptpLog, NtcPptpLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcPptpLog, NtcPptpLog.class, page);
|
||||||
logDataService.getData(page, ntcPptpLog);
|
logDataService.getData(page, ntcPptpLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("PPTP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("PPTP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"PPTP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"PPTP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"PPTP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"PPTP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -242,14 +257,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcL2tpLog, NtcL2tpLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcL2tpLog, NtcL2tpLog.class, page);
|
||||||
logDataService.getData(page, ntcL2tpLog);
|
logDataService.getData(page, ntcL2tpLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("L2TP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("L2TP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"L2TP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"L2TP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"L2TP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"L2TP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,14 +287,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcOpenvpnLog, NtcOpenvpnLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcOpenvpnLog, NtcOpenvpnLog.class, page);
|
||||||
logDataService.getData(page, ntcOpenvpnLog);
|
logDataService.getData(page, ntcOpenvpnLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("Openvpn日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("Openvpn日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"Openvpn日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"Openvpn日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"Openvpn日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"Openvpn日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -297,14 +318,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcIpsecLog, NtcIpsecLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcIpsecLog, NtcIpsecLog.class, page);
|
||||||
logDataService.getData(page, ntcIpsecLog);
|
logDataService.getData(page, ntcIpsecLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("IPSEC日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("IPSEC日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"IPSEC日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"IPSEC日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"IPSEC日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"IPSEC日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,14 +348,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcSshLog, NtcSshLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcSshLog, NtcSshLog.class, page);
|
||||||
logDataService.getData(page, ntcSshLog);
|
logDataService.getData(page, ntcSshLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("SSH日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("SSH日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"SSH日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"SSH日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"SSH日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"SSH日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -353,14 +380,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
logDataService.getData(page, ntcFtpLog);
|
logDataService.getData(page, ntcFtpLog);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("FTP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("FTP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"FTP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"FTP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"FTP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"FTP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "FTP日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "FTP日志检索成功", page, 0);
|
||||||
@@ -378,14 +408,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcAppLog, NtcAppLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcAppLog, NtcAppLog.class, page);
|
||||||
logDataService.getData(page, ntcAppLog);
|
logDataService.getData(page, ntcAppLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("App日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("App日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"App日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"App日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"App日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"App日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "App日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "App日志检索成功", page, 0);
|
||||||
@@ -404,14 +437,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcDdosLog, NtcDdosLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcDdosLog, NtcDdosLog.class, page);
|
||||||
logDataService.getData(page, ntcDdosLog);
|
logDataService.getData(page, ntcDdosLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("DDos日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("DDos日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"DDos日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"DDos日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"DDos日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"DDos日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "DDos日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "DDos日志检索成功", page, 0);
|
||||||
@@ -431,14 +467,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
|
|
||||||
logDataService.getData(page, ntcP2pLog);
|
logDataService.getData(page, ntcP2pLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("P2P日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("P2P日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"P2P日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"P2P日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"P2P日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"P2P日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "P2P日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "P2P日志检索成功", page, 0);
|
||||||
@@ -458,14 +497,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
|
|
||||||
logDataService.getData(page, ntcBgpLog);
|
logDataService.getData(page, ntcBgpLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("BGP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("BGP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"BGP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"BGP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"BGP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"BGP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "BGP日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "BGP日志检索成功", page, 0);
|
||||||
@@ -484,14 +526,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcVoipLog, NtcVoipLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcVoipLog, NtcVoipLog.class, page);
|
||||||
logDataService.getData(page, ntcVoipLog);
|
logDataService.getData(page, ntcVoipLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("NTC VoIP日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("NTC VoIP日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"NTC VoIP日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"NTC VoIP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"NTC VoIP日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"NTC VoIP日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "NTC VoIP日志检索成功", page,
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "NTC VoIP日志检索成功", page,
|
||||||
@@ -512,14 +557,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
page);
|
page);
|
||||||
logDataService.getData(page, ntcStreamMediaLog);
|
logDataService.getData(page, ntcStreamMediaLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("流媒体协议日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("流媒体协议日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"流媒体协议日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"流媒体协议日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"流媒体协议日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"流媒体协议日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "流媒体协议日志检索成功", page, 0);
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "流媒体协议日志检索成功", page, 0);
|
||||||
@@ -538,14 +586,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start, ntcKeywordsUrlLog, NtcKeywordsUrlLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start, ntcKeywordsUrlLog, NtcKeywordsUrlLog.class, page);
|
||||||
logDataService.getData(page, ntcKeywordsUrlLog);
|
logDataService.getData(page, ntcKeywordsUrlLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("NTC关键字转URL日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("NTC关键字转URL日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"NTC关键字转URL日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"NTC关键字转URL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"NTC关键字转URL日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"NTC关键字转URL日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "NTC关键字转URL日志检索成功", page,
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "NTC关键字转URL日志检索成功", page,
|
||||||
@@ -572,14 +623,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.collectConditionCheck(auditLogThread, start,ntcCollectVoipLog, NtcCollectVoipLog.class, page);
|
ntcLogService.collectConditionCheck(auditLogThread, start,ntcCollectVoipLog, NtcCollectVoipLog.class, page);
|
||||||
logDataService.getData(page, ntcCollectVoipLog);
|
logDataService.getData(page, ntcCollectVoipLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("VoIp泛收日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("VoIp泛收日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"VoIp泛收日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"VoIp泛收日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"VoIp泛收日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"VoIp泛收日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "VoIp泛收日志检索成功", page,
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "VoIp泛收日志检索成功", page,
|
||||||
@@ -606,14 +660,17 @@ public class NtcLogSearchController extends BaseRestController {
|
|||||||
ntcLogService.queryConditionCheck(auditLogThread, start,ntcCollectRadiusLog, NtcCollectRadiusLog.class, page);
|
ntcLogService.queryConditionCheck(auditLogThread, start,ntcCollectRadiusLog, NtcCollectRadiusLog.class, page);
|
||||||
logDataService.getData(page, ntcCollectRadiusLog);
|
logDataService.getData(page, ntcCollectRadiusLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
auditLogThread.setExceptionInfo("RADIUS泛收日志检索失败:"+e.getMessage());
|
||||||
auditLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
logger.error("RADIUS泛收日志检索失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(ExceptionUtil.getExceptionMsg(e));
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"RADIUS泛收日志检索失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
"RADIUS泛收日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"RADIUS泛收日志检索失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
}else{
|
} else {
|
||||||
throw ((RestServiceException) e);
|
throw new ServiceRuntimeException(auditLogThread, System.currentTimeMillis() - start,
|
||||||
|
"RADIUS泛收日志检索失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "RADIUS泛收日志检索成功", page,
|
return serviceLogResponse(auditLogThread, System.currentTimeMillis() - start, request, "RADIUS泛收日志检索成功", page,
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import com.nis.restful.RestServiceException;
|
|||||||
import com.nis.restful.ServiceRuntimeException;
|
import com.nis.restful.ServiceRuntimeException;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DateUtils;
|
import com.nis.util.DateUtils;
|
||||||
|
import com.nis.util.ExceptionUtil;
|
||||||
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;
|
||||||
@@ -81,14 +82,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
ntcPzReportPage = ntcReportService.findNtcPzReport(new Page<NtcPzReport>(request, response, NtcPzReport.class),
|
ntcPzReportPage = ntcReportService.findNtcPzReport(new Page<NtcPzReport>(request, response, NtcPzReport.class),
|
||||||
ntcPzReport);
|
ntcPzReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("配置日志总量统计失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("配置日志总量统计失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"配置日志总量统计失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"配置日志总量统计失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"配置日志总量统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"配置日志总量统计失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,14 +122,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
reportPage = ntcReportService.findNtcServiceReport(new Page<NtcServiceReport>(request, response, NtcServiceReport.class),
|
reportPage = ntcReportService.findNtcServiceReport(new Page<NtcServiceReport>(request, response, NtcServiceReport.class),
|
||||||
ntcServiceReport);
|
ntcServiceReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("业务类型统计查询失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("业务类型统计查询失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"业务类型统计查询失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"业务类型统计查询失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"业务类型统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"业务类型统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,14 +166,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
reportPage = ntcReportService.findNtcTagReport(new Page<NtcTagReport>(request, response, NtcTagReport.class),
|
reportPage = ntcReportService.findNtcTagReport(new Page<NtcTagReport>(request, response, NtcTagReport.class),
|
||||||
ntcTagReport);
|
ntcTagReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("标签统计查询失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("标签统计查询失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"标签统计查询失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"标签统计查询失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"标签统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"标签统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,14 +207,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
reportPage = ntcReportService.findNtcAttrTypeReport(new Page<NtcAttrTypeReport>(request, response, NtcAttrTypeReport.class),
|
reportPage = ntcReportService.findNtcAttrTypeReport(new Page<NtcAttrTypeReport>(request, response, NtcAttrTypeReport.class),
|
||||||
ntcAttrTypeReport);
|
ntcAttrTypeReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("性质统计查询失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("性质统计查询失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"性质统计查询失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"性质统计查询失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"性质统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"性质统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,14 +250,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
reportPage = ntcReportService.findNtcLwhhReport(new Page<NtcLwhhReport>(request, response, NtcLwhhReport.class),
|
reportPage = ntcReportService.findNtcLwhhReport(new Page<NtcLwhhReport>(request, response, NtcLwhhReport.class),
|
||||||
ntcLwhhReport);
|
ntcLwhhReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("来文函号统计查询失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("来文函号统计查询失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"来文函号统计查询失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"来文函号统计查询失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"来文函号统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"来文函号统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,14 +291,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
reportPage = ntcReportService.findNtcSrcipDomesticReport(new Page<NtcSrcipDomesticReport>(request, response, NtcSrcipDomesticReport.class),
|
reportPage = ntcReportService.findNtcSrcipDomesticReport(new Page<NtcSrcipDomesticReport>(request, response, NtcSrcipDomesticReport.class),
|
||||||
ntcSrcipDomesticReport);
|
ntcSrcipDomesticReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("境内源IP统计查询失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("境内源IP统计查询失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"境内源IP统计查询失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"境内源IP统计查询失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"境内源IP统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"境内源IP统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -315,14 +334,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
new Page<NtcDestipCountryReport>(request, response, NtcDestipCountryReport.class),
|
new Page<NtcDestipCountryReport>(request, response, NtcDestipCountryReport.class),
|
||||||
ntcDestipCountryReport);
|
ntcDestipCountryReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("各国家目的IP统计查询失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("各国家目的IP统计查询失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"各国家目的IP统计查询失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"各国家目的IP统计查询失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"各国家目的IP统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"各国家目的IP统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,14 +378,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
reportPage = ntcReportService.findNtcEntranceReport(
|
reportPage = ntcReportService.findNtcEntranceReport(
|
||||||
new Page<NtcEntranceReport>(request, response, NtcEntranceReport.class), ntcEntranceReport);
|
new Page<NtcEntranceReport>(request, response, NtcEntranceReport.class), ntcEntranceReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("运营商局点统计查询失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("运营商局点统计查询失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"运营商局点统计查询失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"运营商局点统计查询失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"运营商局点统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"运营商局点统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -385,14 +410,17 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
ntcReportService.checkNtcRadiusReportCondition(saveLogThread, start, ntcRadiusReport);
|
ntcReportService.checkNtcRadiusReportCondition(saveLogThread, start, ntcRadiusReport);
|
||||||
dataList= ntcReportService.findNtcRadiusReport(ntcRadiusReport);
|
dataList= ntcReportService.findNtcRadiusReport(ntcRadiusReport);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
saveLogThread.setExceptionInfo("用户行为统计查询失败:"+e.getMessage());
|
||||||
e.printStackTrace();
|
logger.error("用户行为统计查询失败:"+ExceptionUtil.getExceptionMsg(e));
|
||||||
logger.error(e.getMessage());
|
if (e instanceof RestServiceException) {
|
||||||
if (!(e instanceof RestServiceException)) {
|
throw new RestServiceException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"用户行为统计查询失败:" + e.getMessage(), ((RestServiceException) e).getErrorCode());
|
||||||
|
} else if (e instanceof ServiceRuntimeException) {
|
||||||
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
|
"用户行为统计查询失败:" + e.getMessage(), ((ServiceRuntimeException) e).getErrorCode());
|
||||||
|
} else {
|
||||||
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
throw new ServiceRuntimeException(saveLogThread, System.currentTimeMillis() - start,
|
||||||
"用户行为统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
"用户行为统计查询失败:" + e.getMessage(), RestBusinessCode.service_runtime_error.getValue());
|
||||||
}else{
|
|
||||||
throw ((RestServiceException) e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import com.nis.domain.restful.NtcRadiusReport;
|
|||||||
import com.nis.domain.restful.NtcReportEntity;
|
import com.nis.domain.restful.NtcReportEntity;
|
||||||
import com.nis.restful.RestBusinessCode;
|
import com.nis.restful.RestBusinessCode;
|
||||||
import com.nis.restful.RestServiceException;
|
import com.nis.restful.RestServiceException;
|
||||||
|
import com.nis.restful.ServiceRuntimeException;
|
||||||
|
import com.nis.util.ExceptionUtil;
|
||||||
import com.nis.util.elasticsearch.ElasticsearchSqlDao;
|
import com.nis.util.elasticsearch.ElasticsearchSqlDao;
|
||||||
import com.zdjizhi.utils.StringUtil;
|
import com.zdjizhi.utils.StringUtil;
|
||||||
import org.apache.ibatis.mapping.ResultMap;
|
import org.apache.ibatis.mapping.ResultMap;
|
||||||
@@ -98,8 +100,7 @@ public abstract class BaseLogService {
|
|||||||
}
|
}
|
||||||
if (!StringUtil.isBlank(notExistColumn)) {
|
if (!StringUtil.isBlank(notExistColumn)) {
|
||||||
notExistColumn = notExistColumn.substring(1);
|
notExistColumn = notExistColumn.substring(1);
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start,
|
throw new RestServiceException("fields中" + notExistColumn + "的字段不存在!", RestBusinessCode.param_formate_error.getValue());
|
||||||
"fields中" + notExistColumn + "的字段不存在!", RestBusinessCode.param_formate_error.getValue());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (orderByColoumn != null) {
|
if (orderByColoumn != null) {
|
||||||
@@ -117,8 +118,7 @@ public abstract class BaseLogService {
|
|||||||
}
|
}
|
||||||
if (!StringUtil.isBlank(notExistColumn)) {
|
if (!StringUtil.isBlank(notExistColumn)) {
|
||||||
notExistColumn = notExistColumn.substring(1);
|
notExistColumn = notExistColumn.substring(1);
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start,
|
throw new RestServiceException("orderBy中" + notExistColumn + "的字段不存在!", RestBusinessCode.param_formate_error.getValue());
|
||||||
"orderBy中" + notExistColumn + "的字段不存在!", RestBusinessCode.param_formate_error.getValue());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,14 +141,10 @@ public abstract class BaseLogService {
|
|||||||
Long.parseLong(entity.getSearchCfgId());
|
Long.parseLong(entity.getSearchCfgId());
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchCfgId参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchCfgId参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchCfgId参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchCfgId参数错误");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -156,14 +152,10 @@ public abstract class BaseLogService {
|
|||||||
Integer.parseInt(entity.getSearchDirection());
|
Integer.parseInt(entity.getSearchDirection());
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("getSearchDirection参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "getSearchDirection参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("getSearchDirection参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "getSearchDirection参数错误");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -171,14 +163,10 @@ public abstract class BaseLogService {
|
|||||||
Long.parseLong(entity.getSearchEntranceId());
|
Long.parseLong(entity.getSearchEntranceId());
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchEntranceId参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchEntranceId参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchEntranceId参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchEntranceId参数错误");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -187,14 +175,10 @@ public abstract class BaseLogService {
|
|||||||
sdf.parse(entity.getSearchFoundEndTime());
|
sdf.parse(entity.getSearchFoundEndTime());
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchFoundEndTime参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchFoundEndTime参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchFoundEndTime参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchFoundEndTime参数格式格式");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -203,14 +187,10 @@ public abstract class BaseLogService {
|
|||||||
sdf.parse(entity.getSearchFoundStartTime());
|
sdf.parse(entity.getSearchFoundStartTime());
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchFoundStartTime参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchFoundStartTime参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchFoundStartTime参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchFoundStartTime参数错误");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -218,24 +198,17 @@ public abstract class BaseLogService {
|
|||||||
Integer.parseInt(entity.getSearchService());
|
Integer.parseInt(entity.getSearchService());
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchService参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchService参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchService参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchService参数错误");
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
checkCloumnIsExist(thread, start, clazz, page);
|
checkCloumnIsExist(thread, start, clazz, page);
|
||||||
} catch (RestServiceException e) {
|
} catch (RestServiceException e) {
|
||||||
logger.error(e);
|
|
||||||
throw e;
|
throw e;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new ServiceRuntimeException(ExceptionUtil.getExceptionMsg(e),RestBusinessCode.service_runtime_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "请求参数错误");
|
|
||||||
}
|
}
|
||||||
logger.info("请求参数校验结束----" + System.currentTimeMillis());
|
logger.info("请求参数校验结束----" + System.currentTimeMillis());
|
||||||
|
|
||||||
@@ -257,14 +230,10 @@ public abstract class BaseLogService {
|
|||||||
sdf.parse(entity.getSearchFoundEndTime());
|
sdf.parse(entity.getSearchFoundEndTime());
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchFoundEndTime参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchFoundEndTime参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchFoundEndTime参数格式格式",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchFoundEndTime参数格式格式");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -273,25 +242,18 @@ public abstract class BaseLogService {
|
|||||||
sdf.parse(entity.getSearchFoundStartTime());
|
sdf.parse(entity.getSearchFoundStartTime());
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchFoundStartTime参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchFoundStartTime参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchFoundStartTime参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchFoundStartTime参数错误");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
checkCloumnIsExist(thread, start, clazz, page);
|
checkCloumnIsExist(thread, start, clazz, page);
|
||||||
} catch (RestServiceException e) {
|
} catch (RestServiceException e) {
|
||||||
logger.error(e);
|
|
||||||
throw e;
|
throw e;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new ServiceRuntimeException(ExceptionUtil.getExceptionMsg(e),RestBusinessCode.service_runtime_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "请求参数错误");
|
|
||||||
}
|
}
|
||||||
logger.info("请求参数校验结束----" + System.currentTimeMillis());
|
logger.info("请求参数校验结束----" + System.currentTimeMillis());
|
||||||
|
|
||||||
@@ -311,12 +273,7 @@ public abstract class BaseLogService {
|
|||||||
Page page) {
|
Page page) {
|
||||||
logger.info("实时报表统计查询参数校验开始----" + System.currentTimeMillis());
|
logger.info("实时报表统计查询参数校验开始----" + System.currentTimeMillis());
|
||||||
if (!StringUtil.isBlank(entity.getSearchBusinessType())&&!StringUtil.isNumeric(entity.getSearchBusinessType())) {
|
if (!StringUtil.isBlank(entity.getSearchBusinessType())&&!StringUtil.isNumeric(entity.getSearchBusinessType())) {
|
||||||
logger.error(RestBusinessCode.param_formate_error.getErrorReason()+",searchBusinessType参数格式错误");
|
throw new RestServiceException("searchBusinessType参数格式错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
thread.setExceptionInfo("searchBusinessType参数格式错误");
|
|
||||||
throw new RestServiceException(thread,
|
|
||||||
System.currentTimeMillis() - start,
|
|
||||||
"searchBusinessType参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
|
||||||
}
|
}
|
||||||
//searchService
|
//searchService
|
||||||
checkNumericCondition(thread, start, entity.getSearchService(), "searchService");
|
checkNumericCondition(thread, start, entity.getSearchService(), "searchService");
|
||||||
@@ -326,14 +283,9 @@ public abstract class BaseLogService {
|
|||||||
sdf.parse(entity.getSearchReportStartTime());
|
sdf.parse(entity.getSearchReportStartTime());
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchReportStartTime参数格式错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchReportStartTime参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchReportStartTime参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchReportStartTime参数错误");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -341,21 +293,12 @@ public abstract class BaseLogService {
|
|||||||
sdf.parse(entity.getSearchReportEndTime());
|
sdf.parse(entity.getSearchReportEndTime());
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchReportEndTime参数格式错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchReportEndTime参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchReportEndTime参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchReportEndTime参数错误");
|
|
||||||
}
|
}
|
||||||
if (!StringUtil.isBlank(entity.getSearchBusinessType())&&!StringUtil.isNumeric(entity.getSearchBusinessType())) {
|
if (!StringUtil.isBlank(entity.getSearchBusinessType())&&!StringUtil.isNumeric(entity.getSearchBusinessType())) {
|
||||||
logger.error(RestBusinessCode.param_formate_error.getErrorReason()+",searchBusinessType参数格式错误");
|
throw new RestServiceException("searchBusinessType参数格式错误",
|
||||||
thread.setExceptionInfo("searchBusinessType参数格式错误");
|
|
||||||
throw new RestServiceException(thread,
|
|
||||||
System.currentTimeMillis() - start,
|
|
||||||
"searchBusinessType参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -386,11 +329,7 @@ public abstract class BaseLogService {
|
|||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
if (flag) {
|
if (flag) {
|
||||||
logger.error(RestBusinessCode.param_formate_error.getErrorReason()+","+condName+"参数格式错误");
|
throw new RestServiceException(condName+"参数格式错误",
|
||||||
thread.setExceptionInfo(condName+"参数格式错误");
|
|
||||||
throw new RestServiceException(thread,
|
|
||||||
System.currentTimeMillis() - start,
|
|
||||||
condName+"参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -406,11 +345,7 @@ public abstract class BaseLogService {
|
|||||||
public void checkNtcRadiusReportCondition(AuditLogThread thread, long start, NtcRadiusReport entity) {
|
public void checkNtcRadiusReportCondition(AuditLogThread thread, long start, NtcRadiusReport entity) {
|
||||||
logger.info("用户行为日志统计参数校验开始----" + System.currentTimeMillis());
|
logger.info("用户行为日志统计参数校验开始----" + System.currentTimeMillis());
|
||||||
if (!StringUtil.isBlank(entity.getSearchBusinessType())&&!StringUtil.isNumeric(entity.getSearchBusinessType())) {
|
if (!StringUtil.isBlank(entity.getSearchBusinessType())&&!StringUtil.isNumeric(entity.getSearchBusinessType())) {
|
||||||
logger.error(RestBusinessCode.param_formate_error.getErrorReason()+",searchBusinessType参数格式错误");
|
throw new RestServiceException("searchBusinessType参数格式错误",
|
||||||
thread.setExceptionInfo("searchBusinessType参数格式错误");
|
|
||||||
throw new RestServiceException(thread,
|
|
||||||
System.currentTimeMillis() - start,
|
|
||||||
"searchBusinessType参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -421,14 +356,10 @@ public abstract class BaseLogService {
|
|||||||
timeCount++;
|
timeCount++;
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchReportStartTime参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchReportStartTime参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchReportStartTime参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchReportStartTime参数错误");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -437,42 +368,26 @@ public abstract class BaseLogService {
|
|||||||
timeCount++;
|
timeCount++;
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchReportEndTime参数格式错误",
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchReportEndTime参数格式错误",
|
|
||||||
RestBusinessCode.param_formate_error.getValue());
|
RestBusinessCode.param_formate_error.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
thread.setExceptionInfo(e.getMessage() + " " + e.getCause());
|
throw new RestServiceException("searchReportEndTime参数错误",RestBusinessCode.param_formate_error.getValue());
|
||||||
logger.error(e);
|
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchReportEndTime参数错误");
|
|
||||||
}
|
}
|
||||||
if (timeCount==1) {
|
if (timeCount==1) {
|
||||||
logger.error(RestBusinessCode.config_integrity_error.getErrorReason()+",searchReportStartTime和searchReportEndTime参数必须同时填写");
|
throw new RestServiceException("searchReportStartTime和searchReportEndTime参数必须同时填写",
|
||||||
thread.setExceptionInfo("searchReportStartTime和searchReportEndTime参数必须同时填写");
|
|
||||||
throw new RestServiceException(thread,
|
|
||||||
System.currentTimeMillis() - start,
|
|
||||||
"searchReportStartTime和searchReportEndTime参数必须同时填写",
|
|
||||||
RestBusinessCode.config_integrity_error.getValue());
|
RestBusinessCode.config_integrity_error.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//根据用户查看IP趋势时(searchBusinessType=2),用户名必需填写
|
//根据用户查看IP趋势时(searchBusinessType=2),用户名必需填写
|
||||||
if ("2".equals(entity.getSearchBusinessType())&&StringUtil.isEmpty(entity.getSearchAccount())) {
|
if ("2".equals(entity.getSearchBusinessType())&&StringUtil.isEmpty(entity.getSearchAccount())) {
|
||||||
logger.error(RestBusinessCode.config_integrity_error.getErrorReason()+",searchBusinessType=2时searchAccount参数必须填写");
|
throw new RestServiceException("searchBusinessType=2时searchAccount参数必须填写",
|
||||||
thread.setExceptionInfo("searchBusinessType=2时searchAccount参数必须填写");
|
|
||||||
throw new RestServiceException(thread,
|
|
||||||
System.currentTimeMillis() - start,
|
|
||||||
"searchBusinessType=2时searchAccount参数必须填写",
|
|
||||||
RestBusinessCode.config_integrity_error.getValue());
|
RestBusinessCode.config_integrity_error.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
//根据用户查看IP趋势时(searchBusinessType=3),用户名必需填写
|
//根据用户查看IP趋势时(searchBusinessType=3),用户名必需填写
|
||||||
if ("3".equals(entity.getSearchBusinessType())&&StringUtil.isEmpty(entity.getSearchNasIp())) {
|
if ("3".equals(entity.getSearchBusinessType())&&StringUtil.isEmpty(entity.getSearchNasIp())) {
|
||||||
logger.error(RestBusinessCode.config_integrity_error.getErrorReason()+",searchBusinessType=3时searchNasIp参数必须填写");
|
throw new RestServiceException("searchBusinessType=3时searchNasIp参数必须填写",
|
||||||
thread.setExceptionInfo("searchBusinessType=3时searchNasIp参数必须填写");
|
|
||||||
throw new RestServiceException(thread,
|
|
||||||
System.currentTimeMillis() - start,
|
|
||||||
"searchBusinessType=3时searchNasIp参数必须填写",
|
|
||||||
RestBusinessCode.config_integrity_error.getValue());
|
RestBusinessCode.config_integrity_error.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user