fix(log):日志检索模块,删除历史activesys ,修改logSource数据类型为int。增加NTC_IP_LOG 日志检索测试服务接口。后续删除历史遗留日志检索功能及其相关对象
This commit is contained in:
@@ -219,7 +219,7 @@ public abstract class BaseLogService {
|
||||
/**
|
||||
* wx 报表查询条件检查
|
||||
*
|
||||
* @param className
|
||||
* @param clazz
|
||||
* 需要检验的实体名称[需要保证resultMap的id命名方式为[className]Map]
|
||||
* @param page
|
||||
* 需要校验的page对象
|
||||
|
||||
@@ -19,8 +19,9 @@ import org.apache.log4j.Logger;
|
||||
import com.nis.datasource.CustomerContextHolder;
|
||||
|
||||
/**
|
||||
* 审计日志工作线程
|
||||
* @ClassName: SaveLogThread.java
|
||||
* @Description: TODO
|
||||
* @Description: 用于记录业务操作日志,后期用于审计及相关联调验证工作
|
||||
* @author (dell)
|
||||
* @date 2016年10月14日 下午6:26:41
|
||||
* @version V1.0
|
||||
@@ -66,7 +67,6 @@ public class SaveRequestLogThread implements Runnable {
|
||||
* 创建一个新的实例 SaveRequestLogThread.
|
||||
*
|
||||
* @param service
|
||||
* @param requestAddr
|
||||
* @param requestURI
|
||||
* @param queryString
|
||||
* @param contextPath
|
||||
|
||||
@@ -67,9 +67,6 @@ public class ServicesRequestLogService {
|
||||
* request中的参数
|
||||
* @param contextPath
|
||||
* request中的参数
|
||||
* @param request
|
||||
* 请求
|
||||
* @param response
|
||||
* 响应
|
||||
* @param operator
|
||||
* 操作人
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.nis.web.service.restful;
|
||||
|
||||
import com.beust.jcommander.internal.Lists;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DfIpPortLog;
|
||||
import com.nis.domain.restful.NtcIpLog;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.web.service.BaseLogService;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by darnell on 2018/6/10.
|
||||
* 日志测试业务类,用于接口或临时验证测试使用
|
||||
*/
|
||||
@Service
|
||||
public class LogTestService extends BaseLogService {
|
||||
|
||||
protected final Logger logger = Logger.getLogger(this.getClass());
|
||||
|
||||
|
||||
/**
|
||||
* IP地址日志检索测试业务方法
|
||||
* @param page
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public Page<NtcIpLog> findNtcIpLogPage(Page<NtcIpLog> page, NtcIpLog entity) throws Exception{
|
||||
List<NtcIpLog> ntcIpLogs = Lists.newArrayList();
|
||||
NtcIpLog ntcIpLog = new NtcIpLog();
|
||||
ntcIpLog.setId(35L);
|
||||
ntcIpLog.setCfgId(531L);
|
||||
ntcIpLog.setServiceType(16);
|
||||
ntcIpLog.setFoundTime(new Date());
|
||||
ntcIpLog.setRecvTime(new Date());
|
||||
ntcIpLog.setAddrType(4);
|
||||
ntcIpLog.setProtocol("IPv4_TCP");
|
||||
ntcIpLog.setClientIp("192.168.10.106");
|
||||
ntcIpLog.setClientPort(80);
|
||||
ntcIpLog.setServerIp("202.106.0.20");
|
||||
ntcIpLog.setServerPort(8443);
|
||||
ntcIpLog.setCljIp("10.0.6.240");
|
||||
ntcIpLog.setDeviceId(1356981);
|
||||
ntcIpLog.setDirection(0);
|
||||
ntcIpLog.setStreamType(0);
|
||||
ntcIpLog.setEntranceId(21L);
|
||||
ntcIpLog.setUserRegion("531");
|
||||
ntcIpLog.setClientLocate("本地地址");
|
||||
ntcIpLog.setServerLocate("中国 北京 电信宽带光纤");
|
||||
ntcIpLogs.add(ntcIpLog);
|
||||
|
||||
ntcIpLog = new NtcIpLog();
|
||||
ntcIpLog.setId(36L);
|
||||
ntcIpLog.setCfgId(532L);
|
||||
ntcIpLog.setServiceType(128);
|
||||
ntcIpLog.setFoundTime(new Date());
|
||||
ntcIpLog.setRecvTime(new Date());
|
||||
ntcIpLog.setAddrType(4);
|
||||
ntcIpLog.setProtocol("IPv4_TCP");
|
||||
ntcIpLog.setClientIp("192.168.10.106");
|
||||
ntcIpLog.setClientPort(80);
|
||||
ntcIpLog.setServerIp("202.106.0.20");
|
||||
ntcIpLog.setServerPort(8443);
|
||||
ntcIpLog.setCljIp("10.0.6.240");
|
||||
ntcIpLog.setDeviceId(1356981);
|
||||
ntcIpLog.setDirection(0);
|
||||
ntcIpLog.setStreamType(0);
|
||||
ntcIpLog.setEntranceId(21L);
|
||||
ntcIpLog.setUserRegion("531");
|
||||
ntcIpLog.setClientLocate("本地地址");
|
||||
ntcIpLog.setServerLocate("中国 北京 电信宽带光纤");
|
||||
ntcIpLogs.add(ntcIpLog);
|
||||
page.setCount(ntcIpLogs.size());
|
||||
|
||||
page.setList(ntcIpLogs);
|
||||
|
||||
|
||||
return page;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user