修改日志公共类属性名称

This commit is contained in:
dell
2018-07-03 12:46:06 +08:00
parent bc89b010ac
commit 54c8186177
2 changed files with 91 additions and 92 deletions

View File

@@ -9,19 +9,19 @@ public class BaseLogEntity<T> extends BaseEntity<T> {
protected Integer cfgId; protected Integer cfgId;
protected String foundTime; //发现时间timestamp protected String foundTime; //发现时间timestamp
protected String recvTime; //接收时间timestamp protected String recvTime; //接收时间timestamp
protected String protocol; //协议类型从字典LOG_PROTOCOL取值 protected String TransProto; //协议类型从字典LOG_PROTOCOL取值
protected Integer addrType; //ip地址类型从字典IP_TYPE取值 protected Integer addrType; //ip地址类型从字典IP_TYPE取值
protected String serverIp; //服务端ip地址 protected String dIp; //服务端ip地址
protected String clientIp; //客户端ip地址 protected String sIp; //客户端ip地址
protected String serverPort; //服务端ip端口 protected String dPort; //服务端ip端口
protected String clientPort; //客户端ip端口 protected String sPort; //客户端ip端口
protected Integer serviceType; //配置表的serviceId protected Integer service; //配置表的serviceId
protected Integer entranceId; //出入口编号 protected Integer entranceId; //出入口编号
protected Integer deviceId; //串联设备编号 protected Integer deviceId; //串联设备编号
protected Integer direction; //传输方向 0域内->域外1域外->域内从字典LOG_DIRECTION取值 protected Integer direction; //传输方向 0域内->域外1域外->域内从字典LOG_DIRECTION取值
protected Integer streamType; //流类型 0c2s1s2c2double从字典LOG_STREAMTYPE取值 protected Integer streamDir; //流类型 0c2s1s2c2double从字典LOG_STREAMTYPE取值
protected String cljIp; //处理机IP protected String capIp; //处理机IP
protected String nestAddrList; //嵌套地址列表 protected String addrList; //嵌套地址列表
protected String userRegion; //用户自定义 protected String userRegion; //用户自定义
protected Integer functionId; protected Integer functionId;
@@ -32,18 +32,6 @@ public class BaseLogEntity<T> extends BaseEntity<T> {
protected String searchFoundStartTime;//开始时间格式为yyyy-mm-dd hh24:mi:ss protected String searchFoundStartTime;//开始时间格式为yyyy-mm-dd hh24:mi:ss
protected String searchFoundEndTime;//结束时间,格式同上 protected String searchFoundEndTime;//结束时间,格式同上
public Integer getAction() {
return action;
}
public void setAction(Integer action) {
this.action = action;
}
public Integer getFunctionId() {
return functionId;
}
public void setFunctionId(Integer functionId) {
this.functionId = functionId;
}
public String getFoundTime() { public String getFoundTime() {
return foundTime; return foundTime;
} }
@@ -56,35 +44,17 @@ public class BaseLogEntity<T> extends BaseEntity<T> {
public void setRecvTime(String recvTime) { public void setRecvTime(String recvTime) {
this.recvTime = recvTime; this.recvTime = recvTime;
} }
public String getSearchFoundStartTime() {
return searchFoundStartTime;
}
public void setSearchFoundStartTime(String searchFoundStartTime) {
this.searchFoundStartTime = searchFoundStartTime;
}
public String getSearchFoundEndTime() {
return searchFoundEndTime;
}
public void setSearchFoundEndTime(String searchFoundEndTime) {
this.searchFoundEndTime = searchFoundEndTime;
}
public String getSeltype() {
return seltype;
}
public void setSeltype(String seltype) {
this.seltype = seltype;
}
public Integer getCfgId() { public Integer getCfgId() {
return cfgId; return cfgId;
} }
public void setCfgId(Integer cfgId) { public void setCfgId(Integer cfgId) {
this.cfgId = cfgId; this.cfgId = cfgId;
} }
public String getProtocol() { public String getTransProto() {
return protocol; return TransProto;
} }
public void setProtocol(String protocol) { public void setTransProto(String transProto) {
this.protocol = protocol; TransProto = transProto;
} }
public Integer getAddrType() { public Integer getAddrType() {
return addrType; return addrType;
@@ -92,35 +62,35 @@ public class BaseLogEntity<T> extends BaseEntity<T> {
public void setAddrType(Integer addrType) { public void setAddrType(Integer addrType) {
this.addrType = addrType; this.addrType = addrType;
} }
public String getServerIp() { public String getdIp() {
return serverIp; return dIp;
} }
public void setServerIp(String serverIp) { public void setdIp(String dIp) {
this.serverIp = serverIp; this.dIp = dIp;
} }
public String getClientIp() { public String getsIp() {
return clientIp; return sIp;
} }
public void setClientIp(String clientIp) { public void setsIp(String sIp) {
this.clientIp = clientIp; this.sIp = sIp;
} }
public String getServerPort() { public String getdPort() {
return serverPort; return dPort;
} }
public void setServerPort(String serverPort) { public void setdPort(String dPort) {
this.serverPort = serverPort; this.dPort = dPort;
} }
public String getClientPort() { public String getsPort() {
return clientPort; return sPort;
} }
public void setClientPort(String clientPort) { public void setsPort(String sPort) {
this.clientPort = clientPort; this.sPort = sPort;
} }
public Integer getServiceType() { public Integer getService() {
return serviceType; return service;
} }
public void setServiceType(Integer serviceType) { public void setService(Integer service) {
this.serviceType = serviceType; this.service = service;
} }
public Integer getEntranceId() { public Integer getEntranceId() {
return entranceId; return entranceId;
@@ -140,23 +110,23 @@ public class BaseLogEntity<T> extends BaseEntity<T> {
public void setDirection(Integer direction) { public void setDirection(Integer direction) {
this.direction = direction; this.direction = direction;
} }
public Integer getStreamType() { public Integer getStreamDir() {
return streamType; return streamDir;
} }
public void setStreamType(Integer streamType) { public void setStreamDir(Integer streamDir) {
this.streamType = streamType; this.streamDir = streamDir;
} }
public String getCljIp() { public String getCapIp() {
return cljIp; return capIp;
} }
public void setCljIp(String cljIp) { public void setCapIp(String capIp) {
this.cljIp = cljIp; this.capIp = capIp;
} }
public String getNestAddrList() { public String getAddrList() {
return nestAddrList; return addrList;
} }
public void setNestAddrList(String nestAddrList) { public void setAddrList(String addrList) {
this.nestAddrList = nestAddrList; this.addrList = addrList;
} }
public String getUserRegion() { public String getUserRegion() {
return userRegion; return userRegion;
@@ -164,17 +134,46 @@ public class BaseLogEntity<T> extends BaseEntity<T> {
public void setUserRegion(String userRegion) { public void setUserRegion(String userRegion) {
this.userRegion = userRegion; this.userRegion = userRegion;
} }
public Integer getFunctionId() {
return functionId;
}
public void setFunctionId(Integer functionId) {
this.functionId = functionId;
}
public Integer getAction() {
return action;
}
public void setAction(Integer action) {
this.action = action;
}
public String getSeltype() {
return seltype;
}
public void setSeltype(String seltype) {
this.seltype = seltype;
}
public String getSearchFoundStartTime() {
return searchFoundStartTime;
}
public void setSearchFoundStartTime(String searchFoundStartTime) {
this.searchFoundStartTime = searchFoundStartTime;
}
public String getSearchFoundEndTime() {
return searchFoundEndTime;
}
public void setSearchFoundEndTime(String searchFoundEndTime) {
this.searchFoundEndTime = searchFoundEndTime;
}
@Override @Override
public String toString() { public String toString() {
return "BaseLogEntity [cfgId=" + cfgId + ", foundTime=" + foundTime + ", recvTime=" + recvTime + ", protocol=" return "BaseLogEntity [cfgId=" + cfgId + ", foundTime=" + foundTime + ", recvTime=" + recvTime + ", TransProto="
+ protocol + ", addrType=" + addrType + ", serverIp=" + serverIp + ", clientIp=" + clientIp + TransProto + ", addrType=" + addrType + ", dIp=" + dIp + ", sIp=" + sIp + ", dPort=" + dPort
+ ", serverPort=" + serverPort + ", clientPort=" + clientPort + ", serviceType=" + serviceType + ", sPort=" + sPort + ", service=" + service + ", entranceId=" + entranceId + ", deviceId=" + deviceId
+ ", entranceId=" + entranceId + ", deviceId=" + deviceId + ", direction=" + direction + ", streamType=" + ", direction=" + direction + ", streamDir=" + streamDir + ", capIp=" + capIp + ", addrList="
+ streamType + ", cljIp=" + cljIp + ", nestAddrList=" + nestAddrList + ", userRegion=" + userRegion + addrList + ", userRegion=" + userRegion + ", functionId=" + functionId + ", action=" + action
+ ", seltype=" + seltype + ", searchFoundStartTime=" + searchFoundStartTime + ", searchFoundEndTime=" + ", seltype=" + seltype + ", searchFoundStartTime=" + searchFoundStartTime + ", searchFoundEndTime="
+ searchFoundEndTime + "]"; + searchFoundEndTime + "]";
} }
} }

View File

@@ -489,7 +489,7 @@ public class BaseController {
public void setLogAction(BaseLogEntity log) { public void setLogAction(BaseLogEntity log) {
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId()); List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
for (FunctionServiceDict dict : serviceList) { for (FunctionServiceDict dict : serviceList) {
if (dict.getServiceId().intValue() == log.getServiceType().intValue()) { if (dict.getServiceId().intValue() == log.getService().intValue()) {
log.setAction(dict.getAction()); log.setAction(dict.getAction());
} }
} }
@@ -513,20 +513,20 @@ public class BaseController {
entry.setSearchFoundEndTime(endTime); entry.setSearchFoundEndTime(endTime);
} }
if (StringUtils.isNotBlank(entry.getProtocol())) { if (StringUtils.isNotBlank(entry.getTransProto())) {
params.put("searchTransProto", entry.getProtocol()); params.put("searchTransProto", entry.getTransProto());
} }
if (entry.getServiceType()!=null) { if (entry.getService()!=null) {
params.put("searchService", entry.getServiceType()); params.put("searchService", entry.getService());
} }
if (StringUtils.isNotBlank(entry.getServerIp())) { if (StringUtils.isNotBlank(entry.getdIp())) {
params.put("searchDIp", entry.getServerIp()); params.put("searchDIp", entry.getdIp());
} }
if (StringUtils.isNotBlank(entry.getClientIp())) { if (StringUtils.isNotBlank(entry.getsIp())) {
params.put("searchSIp", entry.getClientIp()); params.put("searchSIp", entry.getsIp());
} }
if (StringUtils.isNotBlank(entry.getCljIp())) { if (StringUtils.isNotBlank(entry.getCapIp())) {
params.put("searchCapIp", entry.getCljIp()); params.put("searchCapIp", entry.getCapIp());
} }
if (entry.getDirection()!=null) { if (entry.getDirection()!=null) {
params.put("searchDirection", entry.getDirection()); params.put("searchDirection", entry.getDirection());