Merge branch 'develop' of http://192.168.10.125/k18_web/NFS.git into develop
This commit is contained in:
@@ -34,7 +34,21 @@ public class DnsResStrategy extends BaseCfg<DnsResStrategy> {
|
|||||||
private String miTtlmax;
|
private String miTtlmax;
|
||||||
//仅作导入使用
|
//仅作导入使用
|
||||||
private String ttl;
|
private String ttl;
|
||||||
|
@ExcelField(title="policy_number",sort=0)
|
||||||
|
private String dnsId;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getDnsId() {
|
||||||
|
return dnsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setDnsId(String dnsId) {
|
||||||
|
this.dnsId = dnsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getTtl() {
|
public String getTtl() {
|
||||||
return ttl;
|
return ttl;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.nis.domain.log;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -31,8 +32,32 @@ public class DkBehaviorLog extends BaseLogEntity<DkBehaviorLog> {
|
|||||||
protected String c2sByteNum;
|
protected String c2sByteNum;
|
||||||
@ApiModelProperty(value = "s2c字节数", required = true)
|
@ApiModelProperty(value = "s2c字节数", required = true)
|
||||||
protected String s2cByteNum;
|
protected String s2cByteNum;
|
||||||
|
@ExcelField(title="basic_protocol",sort=8)
|
||||||
|
protected String labelProtoName;
|
||||||
|
@ExcelField(title="behaviour_type",sort=9)
|
||||||
|
protected String labelBehavName;
|
||||||
|
@ExcelField(title="social_app",sort=10)
|
||||||
|
protected String labelAppName;
|
||||||
|
|
||||||
|
|
||||||
|
public String getLabelProtoName() {
|
||||||
|
return labelProtoName;
|
||||||
|
}
|
||||||
|
public void setLabelProtoName(String labelProtoName) {
|
||||||
|
this.labelProtoName = labelProtoName;
|
||||||
|
}
|
||||||
|
public String getLabelBehavName() {
|
||||||
|
return labelBehavName;
|
||||||
|
}
|
||||||
|
public void setLabelBehavName(String labelBehavName) {
|
||||||
|
this.labelBehavName = labelBehavName;
|
||||||
|
}
|
||||||
|
public String getLabelAppName() {
|
||||||
|
return labelAppName;
|
||||||
|
}
|
||||||
|
public void setLabelAppName(String labelAppName) {
|
||||||
|
this.labelAppName = labelAppName;
|
||||||
|
}
|
||||||
public Integer getLabelProtoId() {
|
public Integer getLabelProtoId() {
|
||||||
return labelProtoId;
|
return labelProtoId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -11,18 +12,25 @@ import com.wordnik.swagger.annotations.ApiModelProperty;
|
|||||||
public class MmAvIpLog extends BaseLogEntity<MmAvIpLog> {
|
public class MmAvIpLog extends BaseLogEntity<MmAvIpLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = -6177790560553329386L;
|
private static final long serialVersionUID = -6177790560553329386L;
|
||||||
|
@ExcelField(title="pid",sort=8)
|
||||||
@ApiModelProperty(value="节目ID", required=true)
|
@ApiModelProperty(value="节目ID", required=true)
|
||||||
protected String pid;
|
protected String pid;
|
||||||
|
@ExcelField(title="access_url",sort=9)
|
||||||
@ApiModelProperty(value="节目访问地址", required=true)
|
@ApiModelProperty(value="节目访问地址", required=true)
|
||||||
protected String url;
|
protected String url;
|
||||||
|
@ExcelField(title="log_uri",sort=10)
|
||||||
@ApiModelProperty(value="封堵现场片段路径", required=true)
|
@ApiModelProperty(value="封堵现场片段路径", required=true)
|
||||||
protected String logUri;
|
protected String logUri;
|
||||||
|
@ExcelField(title="referer",sort=11)
|
||||||
@ApiModelProperty(value="入口页面", required=true)
|
@ApiModelProperty(value="入口页面", required=true)
|
||||||
protected String referer;
|
protected String referer;
|
||||||
|
@ExcelField(title="harm_level",sort=12)
|
||||||
@ApiModelProperty(value="有害级别", required=true)
|
@ApiModelProperty(value="有害级别", required=true)
|
||||||
protected Integer level;
|
protected Integer level;
|
||||||
|
@ExcelField(title="fd_type",dictType="FD_TYPE",sort=13)
|
||||||
@ApiModelProperty(value="封堵类型", required=true)
|
@ApiModelProperty(value="封堵类型", required=true)
|
||||||
protected Integer fdType;
|
protected Integer fdType;
|
||||||
|
@ExcelField(title="av_protocol",dictType="AV_PROTOCOL",sort=14)
|
||||||
@ApiModelProperty(value="协议", required=true)
|
@ApiModelProperty(value="协议", required=true)
|
||||||
protected String protocol;
|
protected String protocol;
|
||||||
public String getPid() {
|
public String getPid() {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -11,20 +12,22 @@ import com.wordnik.swagger.annotations.ApiModelProperty;
|
|||||||
public class MmFileDigestLog extends BaseLogEntity<MmFileDigestLog> {
|
public class MmFileDigestLog extends BaseLogEntity<MmFileDigestLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = -6177790560553329386L;
|
private static final long serialVersionUID = -6177790560553329386L;
|
||||||
@ApiModelProperty(value="节目ID", required=true)
|
@ExcelField(title="pid",sort=8)
|
||||||
protected String pid;
|
private String pid;// 节目ID
|
||||||
@ApiModelProperty(value="节目访问地址", required=true)
|
@ExcelField(title="access_url",sort=9)
|
||||||
protected String url;
|
private String url;// 节目访问地址
|
||||||
@ApiModelProperty(value="封堵现场片段路径", required=true)
|
@ExcelField(title="log_uri",sort=10)
|
||||||
protected String logUri;
|
private String logUri;// fd现场片段路径
|
||||||
@ApiModelProperty(value="入口页面", required=true)
|
@ExcelField(title="referer",sort=11)
|
||||||
protected String referer;
|
private String referer;// 入口页面
|
||||||
@ApiModelProperty(value="有害级别", required=true)
|
@ExcelField(title="harm_level",sort=12)
|
||||||
protected Integer level;
|
private Integer level;// 有害级别
|
||||||
@ApiModelProperty(value="封堵类型", required=true)
|
@ExcelField(title="fd_type",dictType="FD_TYPE",sort=13)
|
||||||
protected Integer fdType;
|
private Integer fdType;// fd类型
|
||||||
@ApiModelProperty(value="协议", required=true)
|
@ExcelField(title="av_protocol",dictType="AV_PROTOCOL",sort=14)
|
||||||
protected String protocol;
|
private String protocol;// 传输协议
|
||||||
|
|
||||||
|
|
||||||
public String getPid() {
|
public String getPid() {
|
||||||
return pid;
|
return pid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,24 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class MmSampleAudioLog extends BaseLogEntity<MmSampleAudioLog>{
|
public class MmSampleAudioLog extends BaseLogEntity<MmSampleAudioLog>{
|
||||||
|
|
||||||
private static final long serialVersionUID = -9107324545841909071L;
|
private static final long serialVersionUID = -9107324545841909071L;
|
||||||
|
|
||||||
|
@ExcelField(title="pid",sort=8)
|
||||||
private String pid;// 节目ID
|
private String pid;// 节目ID
|
||||||
|
@ExcelField(title="access_url",sort=9)
|
||||||
private String url;// 节目访问地址
|
private String url;// 节目访问地址
|
||||||
|
@ExcelField(title="log_uri",sort=10)
|
||||||
private String logUri;// fd现场片段路径
|
private String logUri;// fd现场片段路径
|
||||||
|
@ExcelField(title="referer",sort=11)
|
||||||
private String referer;// 入口页面
|
private String referer;// 入口页面
|
||||||
|
@ExcelField(title="harm_level",sort=12)
|
||||||
private Integer level;// 有害级别
|
private Integer level;// 有害级别
|
||||||
|
@ExcelField(title="fd_type",dictType="FD_TYPE",sort=13)
|
||||||
private Integer fdType;// fd类型
|
private Integer fdType;// fd类型
|
||||||
|
@ExcelField(title="av_protocol",dictType="AV_PROTOCOL",sort=14)
|
||||||
private String protocol;// 传输协议
|
private String protocol;// 传输协议
|
||||||
|
|
||||||
public String getPid() {
|
public String getPid() {
|
||||||
|
|||||||
@@ -1,16 +1,26 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class MmSamplePicLog extends BaseLogEntity<MmSamplePicLog>{
|
public class MmSamplePicLog extends BaseLogEntity<MmSamplePicLog>{
|
||||||
|
|
||||||
private static final long serialVersionUID = -8851111472033278357L;
|
private static final long serialVersionUID = -8851111472033278357L;
|
||||||
|
|
||||||
|
@ExcelField(title="pid",sort=8)
|
||||||
private String pid;// 节目ID
|
private String pid;// 节目ID
|
||||||
|
@ExcelField(title="access_url",sort=9)
|
||||||
private String url;// 节目访问地址
|
private String url;// 节目访问地址
|
||||||
|
@ExcelField(title="log_uri",sort=10)
|
||||||
private String logUri;// fd现场片段路径
|
private String logUri;// fd现场片段路径
|
||||||
|
@ExcelField(title="referer",sort=11)
|
||||||
private String referer;// 入口页面
|
private String referer;// 入口页面
|
||||||
|
@ExcelField(title="harm_level",sort=12)
|
||||||
private Integer level;// 有害级别
|
private Integer level;// 有害级别
|
||||||
|
@ExcelField(title="fd_type",dictType="FD_TYPE",sort=13)
|
||||||
private Integer fdType;// fd类型
|
private Integer fdType;// fd类型
|
||||||
|
@ExcelField(title="av_protocol",dictType="AV_PROTOCOL",sort=14)
|
||||||
private String protocol;// 传输协议
|
private String protocol;// 传输协议
|
||||||
|
|
||||||
public String getPid() {
|
public String getPid() {
|
||||||
return pid;
|
return pid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,26 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class MmSampleVideoLog extends BaseLogEntity<MmSampleVideoLog>{
|
public class MmSampleVideoLog extends BaseLogEntity<MmSampleVideoLog>{
|
||||||
|
|
||||||
private static final long serialVersionUID = -1160853324359310439L;
|
private static final long serialVersionUID = -1160853324359310439L;
|
||||||
|
|
||||||
|
@ExcelField(title="pid",sort=8)
|
||||||
private String pid;// 节目ID
|
private String pid;// 节目ID
|
||||||
|
@ExcelField(title="access_url",sort=9)
|
||||||
private String url;// 节目访问地址
|
private String url;// 节目访问地址
|
||||||
|
@ExcelField(title="log_uri",sort=10)
|
||||||
private String logUri;// fd现场片段路径
|
private String logUri;// fd现场片段路径
|
||||||
|
@ExcelField(title="referer",sort=11)
|
||||||
private String referer;// 入口页面
|
private String referer;// 入口页面
|
||||||
|
@ExcelField(title="harm_level",sort=12)
|
||||||
private Integer level;// 有害级别
|
private Integer level;// 有害级别
|
||||||
|
@ExcelField(title="fd_type",dictType="FD_TYPE",sort=13)
|
||||||
private Integer fdType;// fd类型
|
private Integer fdType;// fd类型
|
||||||
|
@ExcelField(title="av_protocol",dictType="AV_PROTOCOL",sort=14)
|
||||||
private String protocol;// 传输协议
|
private String protocol;// 传输协议
|
||||||
|
|
||||||
public String getPid() {
|
public String getPid() {
|
||||||
return pid;
|
return pid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -16,34 +17,62 @@ public class MmVoipLog extends BaseLogEntity<MmVoipLog> {
|
|||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -9218072642855154505L;
|
private static final long serialVersionUID = -9218072642855154505L;
|
||||||
@ApiModelProperty(value="VOIP通话时长(秒)", required=true)
|
@ApiModelProperty(value="VOIP通话时长(秒)", required=true)
|
||||||
|
@ExcelField(title="duation",sort=8)
|
||||||
private String duation;
|
private String duation;
|
||||||
|
|
||||||
@ApiModelProperty(value="VOIP协议", required=true)
|
@ApiModelProperty(value="VOIP协议", required=true)
|
||||||
|
@ExcelField(title="voip_protocol",sort=9)
|
||||||
private String voipProtocol;
|
private String voipProtocol;
|
||||||
|
|
||||||
@ApiModelProperty(value="主叫VOIP账号", required=false)
|
@ApiModelProperty(value="主叫VOIP账号", required=false)
|
||||||
|
@ExcelField(title="calling_account",sort=10)
|
||||||
private String callingAccount;
|
private String callingAccount;
|
||||||
|
|
||||||
@ApiModelProperty(value="被叫VOIP账号", required=false)
|
@ApiModelProperty(value="被叫VOIP账号", required=false)
|
||||||
|
@ExcelField(title="called_account",sort=11)
|
||||||
private String calledAccount;
|
private String calledAccount;
|
||||||
|
|
||||||
@ApiModelProperty(value="VOIP主叫电信号码", required=false)
|
@ApiModelProperty(value="VOIP主叫电信号码", required=false)
|
||||||
|
@ExcelField(title="calling_number",sort=12)
|
||||||
private String callingNumber;
|
private String callingNumber;
|
||||||
|
|
||||||
@ApiModelProperty(value="VOIP被叫电信号码", required=false)
|
@ApiModelProperty(value="VOIP被叫电信号码", required=false)
|
||||||
|
@ExcelField(title="called_number",sort=13)
|
||||||
private String calledNumber;
|
private String calledNumber;
|
||||||
|
|
||||||
@ApiModelProperty(value="主叫VOIP语音文件存放服务器IP", required=true)
|
@ApiModelProperty(value="主叫VOIP语音文件存放服务器IP", required=true)
|
||||||
|
@ExcelField(title="from_to_store_ip",sort=14)
|
||||||
private String fromToStoreIp;
|
private String fromToStoreIp;
|
||||||
|
|
||||||
@ApiModelProperty(value="主叫VOIP语音文件存放服务器URL", required=true)
|
@ApiModelProperty(value="主叫VOIP语音文件存放服务器URL", required=true)
|
||||||
|
@ExcelField(title="from_to_store_url",sort=15)
|
||||||
private String fromToStoreUrl;
|
private String fromToStoreUrl;
|
||||||
|
|
||||||
@ApiModelProperty(value="被叫VOIP语音文件存放服务器IP", required=true)
|
@ApiModelProperty(value="被叫VOIP语音文件存放服务器IP", required=true)
|
||||||
|
@ExcelField(title="to_from_store_ip",sort=16)
|
||||||
private String toFromStoreIp;
|
private String toFromStoreIp;
|
||||||
|
|
||||||
@ApiModelProperty(value="被叫VOIP语音文件存放服务器URL", required=true)
|
@ApiModelProperty(value="被叫VOIP语音文件存放服务器URL", required=true)
|
||||||
|
@ExcelField(title="to_from_store_url",sort=17)
|
||||||
private String toFromStoreUrl;
|
private String toFromStoreUrl;
|
||||||
|
|
||||||
@ApiModelProperty(value="节目ID", required=true)
|
@ApiModelProperty(value="节目ID", required=true)
|
||||||
|
@ExcelField(title="pid",sort=18)
|
||||||
private String pid;
|
private String pid;
|
||||||
|
|
||||||
@ApiModelProperty(value="封堵现场片段路径", required=false)
|
@ApiModelProperty(value="封堵现场片段路径", required=false)
|
||||||
|
@ExcelField(title="log_uri",sort=19)
|
||||||
private String logUri;
|
private String logUri;
|
||||||
|
|
||||||
@ApiModelProperty(value="有害级别", required=false)
|
@ApiModelProperty(value="有害级别", required=false)
|
||||||
|
@ExcelField(title="harm_level",sort=20)
|
||||||
private Integer level;
|
private Integer level;
|
||||||
|
|
||||||
@ApiModelProperty(value="封堵类型", required=false)
|
@ApiModelProperty(value="封堵类型", required=false)
|
||||||
|
@ExcelField(title="fd_type",sort=21)
|
||||||
private Integer fdType;
|
private Integer fdType;
|
||||||
|
|
||||||
|
|
||||||
public String getPid() {
|
public String getPid() {
|
||||||
return pid;
|
return pid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,39 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class NtcBGPLog extends BaseLogEntity<NtcBGPLog> {
|
public class NtcBGPLog extends BaseLogEntity<NtcBGPLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 4597407682545926823L;
|
private static final long serialVersionUID = 4597407682545926823L;
|
||||||
|
@ExcelField(title = "message_type", sort = 78)
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
@ExcelField(title = "as", sort = 79)
|
||||||
private String asNum;
|
private String asNum;
|
||||||
|
@ExcelField(title = "route", sort = 80)
|
||||||
private String route;
|
private String route;
|
||||||
|
|
||||||
public Integer getType() {
|
public Integer getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setType(Integer type) {
|
public void setType(Integer type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAsNum() {
|
public String getAsNum() {
|
||||||
return asNum;
|
return asNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAsNum(String asNum) {
|
public void setAsNum(String asNum) {
|
||||||
this.asNum = asNum;
|
this.asNum = asNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRoute() {
|
public String getRoute() {
|
||||||
return route;
|
return route;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRoute(String route) {
|
public void setRoute(String route) {
|
||||||
this.route = route;
|
this.route = route;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import java.util.Date;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.nis.domain.BaseEntity;
|
import com.nis.domain.BaseEntity;
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -19,80 +20,133 @@ public class NtcCollectVoipLog<T> extends BaseEntity<T> {
|
|||||||
private static final long serialVersionUID = -2189520672838652485L;
|
private static final long serialVersionUID = -2189520672838652485L;
|
||||||
|
|
||||||
@ApiModelProperty(value = "节目ID", required = true)
|
@ApiModelProperty(value = "节目ID", required = true)
|
||||||
|
@ExcelField(title = "pid", sort = 8)
|
||||||
protected String pid;
|
protected String pid;
|
||||||
|
|
||||||
@ApiModelProperty(value = "发现时间", required = true)
|
@ApiModelProperty(value = "发现时间", required = true)
|
||||||
|
@ExcelField(title = "found_time", sort = 8)
|
||||||
protected Date foundTime;
|
protected Date foundTime;
|
||||||
|
|
||||||
@ApiModelProperty(value = "接收时间", required = true)
|
@ApiModelProperty(value = "接收时间", required = true)
|
||||||
|
@ExcelField(title = "recv_time", sort = 8)
|
||||||
protected Date recvTime;
|
protected Date recvTime;
|
||||||
|
|
||||||
@ApiModelProperty(value = "处理机IP", required = true)
|
@ApiModelProperty(value = "处理机IP", required = true)
|
||||||
|
@ExcelField(title = "clj_ip", sort = 8)
|
||||||
protected String capIp;
|
protected String capIp;
|
||||||
|
|
||||||
@ApiModelProperty(value = "VOIP协议", required = true)
|
@ApiModelProperty(value = "VOIP协议", required = true)
|
||||||
|
@ExcelField(title = "voip_protocol", sort = 8)
|
||||||
protected String voipProtocol;
|
protected String voipProtocol;
|
||||||
|
|
||||||
@ApiModelProperty(value = "RTP服务端ip地址", required = true)
|
@ApiModelProperty(value = "RTP服务端ip地址", required = true)
|
||||||
|
@ExcelField(title = "rtp_d_ip", sort = 8)
|
||||||
protected String rtpDIp;
|
protected String rtpDIp;
|
||||||
|
|
||||||
@ApiModelProperty(value = "RTP客户端ip地址", required = true)
|
@ApiModelProperty(value = "RTP客户端ip地址", required = true)
|
||||||
|
@ExcelField(title = "rtp_s_ip", sort = 8)
|
||||||
protected String rtpSIp;
|
protected String rtpSIp;
|
||||||
|
|
||||||
@ApiModelProperty(value = "RTP服务端端口", required = true)
|
@ApiModelProperty(value = "RTP服务端端口", required = true)
|
||||||
|
@ExcelField(title = "rtp_d_port", sort = 8)
|
||||||
protected Integer rtpDPort;
|
protected Integer rtpDPort;
|
||||||
|
|
||||||
@ApiModelProperty(value = "RTP客户端端口", required = true)
|
@ApiModelProperty(value = "RTP客户端端口", required = true)
|
||||||
|
@ExcelField(title = "rtp_s_port", sort = 8)
|
||||||
protected Integer rtpSPort;
|
protected Integer rtpSPort;
|
||||||
|
|
||||||
@ApiModelProperty(value = "主叫VOIP语音文件存放服务器IP", required = true)
|
@ApiModelProperty(value = "主叫VOIP语音文件存放服务器IP", required = true)
|
||||||
|
@ExcelField(title = "from_to_store_ip", sort = 8)
|
||||||
protected String fromToStoreIp;
|
protected String fromToStoreIp;
|
||||||
|
|
||||||
@ApiModelProperty(value = "主叫VOIP语音文件存放服务器URL", required = true)
|
@ApiModelProperty(value = "主叫VOIP语音文件存放服务器URL", required = true)
|
||||||
|
@ExcelField(title = "from_to_store_url", sort = 8)
|
||||||
protected String fromToStoreUrl;
|
protected String fromToStoreUrl;
|
||||||
|
|
||||||
@ApiModelProperty(value = "被叫VOIP语音文件存放服务器IP", required = true)
|
@ApiModelProperty(value = "被叫VOIP语音文件存放服务器IP", required = true)
|
||||||
|
@ExcelField(title = "to_from_store_ip", sort = 8)
|
||||||
protected String toFromStoreIp;
|
protected String toFromStoreIp;
|
||||||
|
|
||||||
@ApiModelProperty(value = "被叫VOIP语音文件存放服务器URL", required = true)
|
@ApiModelProperty(value = "被叫VOIP语音文件存放服务器URL", required = true)
|
||||||
|
@ExcelField(title = "to_from_store_url", sort = 8)
|
||||||
protected String toFromStoreUrl;
|
protected String toFromStoreUrl;
|
||||||
|
|
||||||
@ApiModelProperty(value = "VOIP通话时长(秒)", required = true)
|
@ApiModelProperty(value = "VOIP通话时长(秒)", required = true)
|
||||||
|
@ExcelField(title = "duation", sort = 8)
|
||||||
protected String duation;
|
protected String duation;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP服务端ip地址", required = true)
|
@ApiModelProperty(value = "SIP服务端ip地址", required = true)
|
||||||
|
@ExcelField(title = "sip_d_ip", sort = 8)
|
||||||
protected String sipDIp;
|
protected String sipDIp;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP客户端ip地址", required = true)
|
@ApiModelProperty(value = "SIP客户端ip地址", required = true)
|
||||||
|
@ExcelField(title = "sip_s_ip", sort = 8)
|
||||||
protected String sipSIp;
|
protected String sipSIp;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP服务端端口", required = true)
|
@ApiModelProperty(value = "SIP服务端端口", required = true)
|
||||||
|
@ExcelField(title = "sip_d_port", sort = 8)
|
||||||
protected Integer sipDPort;
|
protected Integer sipDPort;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP客户端端口", required = true)
|
@ApiModelProperty(value = "SIP客户端端口", required = true)
|
||||||
|
@ExcelField(title = "sip_s_port", sort = 8)
|
||||||
protected Integer sipSPort;
|
protected Integer sipSPort;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP会话ID", required = true)
|
@ApiModelProperty(value = "SIP会话ID", required = true)
|
||||||
|
@ExcelField(title = "call_id", sort = 8)
|
||||||
protected String callId;
|
protected String callId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP请求URI", required = true)
|
@ApiModelProperty(value = "SIP请求URI", required = true)
|
||||||
|
@ExcelField(title = "request_uri", sort = 8)
|
||||||
protected String requestUri;
|
protected String requestUri;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP主叫VOIP账号", required = true)
|
@ApiModelProperty(value = "SIP主叫VOIP账号", required = true)
|
||||||
|
@ExcelField(title = "calling_account", sort = 8)
|
||||||
protected String callingAccount;
|
protected String callingAccount;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP被叫VOIP账号", required = true)
|
@ApiModelProperty(value = "SIP被叫VOIP账号", required = true)
|
||||||
|
@ExcelField(title = "called_account", sort = 8)
|
||||||
protected String calledAccount;
|
protected String calledAccount;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP相应字段", required = true)
|
@ApiModelProperty(value = "SIP相应字段", required = true)
|
||||||
|
@ExcelField(title = "Contacts", sort = 8)
|
||||||
protected String contacts;
|
protected String contacts;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP相应字段", required = true)
|
@ApiModelProperty(value = "SIP相应字段", required = true)
|
||||||
|
@ExcelField(title = "Via", sort = 8)
|
||||||
protected String via;
|
protected String via;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP相应字段", required = true)
|
@ApiModelProperty(value = "SIP相应字段", required = true)
|
||||||
|
@ExcelField(title = "Route", sort = 8)
|
||||||
protected String route;
|
protected String route;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP相应字段", required = true)
|
@ApiModelProperty(value = "SIP相应字段", required = true)
|
||||||
|
@ExcelField(title = "Record Route", sort = 8)
|
||||||
protected String recordRoute;
|
protected String recordRoute;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP相应字段", required = true)
|
@ApiModelProperty(value = "SIP相应字段", required = true)
|
||||||
|
@ExcelField(title = "User Agent", sort = 8)
|
||||||
protected String userAgent;
|
protected String userAgent;
|
||||||
|
|
||||||
@ApiModelProperty(value = "SIP相应字段", required = true)
|
@ApiModelProperty(value = "SIP相应字段", required = true)
|
||||||
|
@ExcelField(title = "Server", sort = 8)
|
||||||
protected String server;
|
protected String server;
|
||||||
|
|
||||||
|
|
||||||
protected Integer functionId;
|
protected Integer functionId;
|
||||||
protected Integer action;
|
protected Integer action;
|
||||||
|
|
||||||
protected String date;//配置界面日志总量查询时间
|
protected String date;// 配置界面日志总量查询时间
|
||||||
protected String isLogTotalSearch;//由配置列表点击日志总量进行查询的标识
|
protected String isLogTotalSearch;// 由配置列表点击日志总量进行查询的标识
|
||||||
protected String orderBy;//排序参数
|
protected String orderBy;// 排序参数
|
||||||
|
|
||||||
protected String searchVoipProtocol;//协议类型
|
protected String searchVoipProtocol;// 协议类型
|
||||||
protected String searchRtpDIp;//RTP服务端ip
|
protected String searchRtpDIp;// RTP服务端ip
|
||||||
protected String searchRtpSIp;//RTP客户端ip
|
protected String searchRtpSIp;// RTP客户端ip
|
||||||
protected String searchSipDIp;//SIP服务端ip
|
protected String searchSipDIp;// SIP服务端ip
|
||||||
protected String searchSipSIp;//SIP客户端ip
|
protected String searchSipSIp;// SIP客户端ip
|
||||||
protected String searchCapIp;//处理机IP
|
protected String searchCapIp;// 处理机IP
|
||||||
protected String searchFoundStartTime;//开始发现时间
|
protected String searchFoundStartTime;// 开始发现时间
|
||||||
protected String searchFoundEndTime;//结束发现时间
|
protected String searchFoundEndTime;// 结束发现时间
|
||||||
|
|
||||||
public NtcCollectVoipLog() {
|
public NtcCollectVoipLog() {
|
||||||
super();
|
super();
|
||||||
// TODO Auto-generated constructor stub
|
// TODO Auto-generated constructor stub
|
||||||
@@ -328,6 +382,7 @@ public class NtcCollectVoipLog<T> extends BaseEntity<T> {
|
|||||||
public void setServer(String server) {
|
public void setServer(String server) {
|
||||||
this.server = server;
|
this.server = server;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String getSearchVoipProtocol() {
|
public String getSearchVoipProtocol() {
|
||||||
return searchVoipProtocol;
|
return searchVoipProtocol;
|
||||||
@@ -336,6 +391,7 @@ public class NtcCollectVoipLog<T> extends BaseEntity<T> {
|
|||||||
public void setSearchVoipProtocol(String searchVoipProtocol) {
|
public void setSearchVoipProtocol(String searchVoipProtocol) {
|
||||||
this.searchVoipProtocol = searchVoipProtocol;
|
this.searchVoipProtocol = searchVoipProtocol;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String getSearchRtpDIp() {
|
public String getSearchRtpDIp() {
|
||||||
return searchRtpDIp;
|
return searchRtpDIp;
|
||||||
@@ -344,6 +400,7 @@ public class NtcCollectVoipLog<T> extends BaseEntity<T> {
|
|||||||
public void setSearchRtpDIp(String searchRtpDIp) {
|
public void setSearchRtpDIp(String searchRtpDIp) {
|
||||||
this.searchRtpDIp = searchRtpDIp;
|
this.searchRtpDIp = searchRtpDIp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String getSearchRtpSIp() {
|
public String getSearchRtpSIp() {
|
||||||
return searchRtpSIp;
|
return searchRtpSIp;
|
||||||
@@ -352,6 +409,7 @@ public class NtcCollectVoipLog<T> extends BaseEntity<T> {
|
|||||||
public void setSearchRtpSIp(String searchRtpSIp) {
|
public void setSearchRtpSIp(String searchRtpSIp) {
|
||||||
this.searchRtpSIp = searchRtpSIp;
|
this.searchRtpSIp = searchRtpSIp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String getSearchSipDIp() {
|
public String getSearchSipDIp() {
|
||||||
return searchSipDIp;
|
return searchSipDIp;
|
||||||
@@ -360,7 +418,7 @@ public class NtcCollectVoipLog<T> extends BaseEntity<T> {
|
|||||||
public void setSearchSipDIp(String searchSipDIp) {
|
public void setSearchSipDIp(String searchSipDIp) {
|
||||||
this.searchSipDIp = searchSipDIp;
|
this.searchSipDIp = searchSipDIp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSearchSipSIp() {
|
public String getSearchSipSIp() {
|
||||||
return searchSipSIp;
|
return searchSipSIp;
|
||||||
}
|
}
|
||||||
@@ -377,6 +435,7 @@ public class NtcCollectVoipLog<T> extends BaseEntity<T> {
|
|||||||
public void setSearchCapIp(String searchCapIp) {
|
public void setSearchCapIp(String searchCapIp) {
|
||||||
this.searchCapIp = searchCapIp;
|
this.searchCapIp = searchCapIp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String getSearchFoundStartTime() {
|
public String getSearchFoundStartTime() {
|
||||||
return searchFoundStartTime;
|
return searchFoundStartTime;
|
||||||
@@ -434,5 +493,5 @@ public class NtcCollectVoipLog<T> extends BaseEntity<T> {
|
|||||||
public void setOrderBy(String orderBy) {
|
public void setOrderBy(String orderBy) {
|
||||||
this.orderBy = orderBy;
|
this.orderBy = orderBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,41 +1,61 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class NtcConnRecordLog extends BaseLogEntity<NtcConnRecordLog> {
|
public class NtcConnRecordLog extends BaseLogEntity<NtcConnRecordLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = -4947912502754359817L;
|
private static final long serialVersionUID = -4947912502754359817L;
|
||||||
|
@ExcelField(title = "social_app", sort = 8)
|
||||||
protected Integer appLabel;
|
protected Integer appLabel;
|
||||||
|
|
||||||
|
@ExcelField(title = "c2s_pkt_num", sort = 9)
|
||||||
protected String c2sPktNum;
|
protected String c2sPktNum;
|
||||||
|
|
||||||
|
@ExcelField(title = "s2c_pkt_num", sort = 10)
|
||||||
protected String s2cPktNum;
|
protected String s2cPktNum;
|
||||||
|
|
||||||
|
@ExcelField(title = "c2s_byte_num", sort = 12)
|
||||||
protected String c2sByteNum;
|
protected String c2sByteNum;
|
||||||
|
|
||||||
|
@ExcelField(title = "s2c_byte_num", sort = 13)
|
||||||
protected String s2cByteNum;
|
protected String s2cByteNum;
|
||||||
|
|
||||||
public Integer getAppLabel() {
|
public Integer getAppLabel() {
|
||||||
return appLabel;
|
return appLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAppLabel(Integer appLabel) {
|
public void setAppLabel(Integer appLabel) {
|
||||||
this.appLabel = appLabel;
|
this.appLabel = appLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getC2sPktNum() {
|
public String getC2sPktNum() {
|
||||||
return c2sPktNum;
|
return c2sPktNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setC2sPktNum(String c2sPktNum) {
|
public void setC2sPktNum(String c2sPktNum) {
|
||||||
this.c2sPktNum = c2sPktNum;
|
this.c2sPktNum = c2sPktNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getS2cPktNum() {
|
public String getS2cPktNum() {
|
||||||
return s2cPktNum;
|
return s2cPktNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setS2cPktNum(String s2cPktNum) {
|
public void setS2cPktNum(String s2cPktNum) {
|
||||||
this.s2cPktNum = s2cPktNum;
|
this.s2cPktNum = s2cPktNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getC2sByteNum() {
|
public String getC2sByteNum() {
|
||||||
return c2sByteNum;
|
return c2sByteNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setC2sByteNum(String c2sByteNum) {
|
public void setC2sByteNum(String c2sByteNum) {
|
||||||
this.c2sByteNum = c2sByteNum;
|
this.c2sByteNum = c2sByteNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getS2cByteNum() {
|
public String getS2cByteNum() {
|
||||||
return s2cByteNum;
|
return s2cByteNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setS2cByteNum(String s2cByteNum) {
|
public void setS2cByteNum(String s2cByteNum) {
|
||||||
this.s2cByteNum = s2cByteNum;
|
this.s2cByteNum = s2cByteNum;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.nis.domain.log;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
public class NtcDdosLog extends BaseLogEntity<NtcDdosLog> {
|
public class NtcDdosLog extends BaseLogEntity<NtcDdosLog> {
|
||||||
@@ -11,20 +12,28 @@ public class NtcDdosLog extends BaseLogEntity<NtcDdosLog> {
|
|||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 9080132009178985910L;
|
private static final long serialVersionUID = 9080132009178985910L;
|
||||||
|
|
||||||
|
@ExcelField(title="attack_type",dictType="ATTACK_TYPE",sort=8)
|
||||||
@ApiModelProperty(value = "攻击类型", required = true)
|
@ApiModelProperty(value = "攻击类型", required = true)
|
||||||
protected Integer attackType;
|
protected Integer attackType;
|
||||||
|
@ExcelField(title="attack_start_time",sort=9)
|
||||||
@ApiModelProperty(value = "攻击起始时间", required = true)
|
@ApiModelProperty(value = "攻击起始时间", required = true)
|
||||||
protected Date attackStartTime;
|
protected Date attackStartTime;
|
||||||
|
@ExcelField(title="last_attack_time",sort=10)
|
||||||
@ApiModelProperty(value = "最后一次攻击包时间", required = true)
|
@ApiModelProperty(value = "最后一次攻击包时间", required = true)
|
||||||
protected Date lastAttackTime;
|
protected Date lastAttackTime;
|
||||||
|
@ExcelField(title="attack_max_pps",sort=11)
|
||||||
@ApiModelProperty(value = "攻击最大流量, 包数/秒", required = true)
|
@ApiModelProperty(value = "攻击最大流量, 包数/秒", required = true)
|
||||||
protected String attackMaxPps;
|
protected String attackMaxPps;
|
||||||
|
@ExcelField(title="attack_max_bps",sort=12)
|
||||||
@ApiModelProperty(value = "攻击最大流量, bit数/秒", required = true)
|
@ApiModelProperty(value = "攻击最大流量, bit数/秒", required = true)
|
||||||
protected String attackMaxBps;
|
protected String attackMaxBps;
|
||||||
|
@ExcelField(title="attack_total_pkt",sort=13)
|
||||||
@ApiModelProperty(value = "攻击累积包数", required = true)
|
@ApiModelProperty(value = "攻击累积包数", required = true)
|
||||||
protected String attackTotalPkt;
|
protected String attackTotalPkt;
|
||||||
|
@ExcelField(title="attack_total_byte",sort=14)
|
||||||
@ApiModelProperty(value = "攻击累积字节数", required = true)
|
@ApiModelProperty(value = "攻击累积字节数", required = true)
|
||||||
protected String attackTotalByte;
|
protected String attackTotalByte;
|
||||||
|
@ExcelField(title="is_blcok ",dictType="SYS_YES_NO",sort=15)
|
||||||
@ApiModelProperty(value = "攻击流量是否被丢弃", required = true)
|
@ApiModelProperty(value = "攻击流量是否被丢弃", required = true)
|
||||||
protected Integer isBlock;
|
protected Integer isBlock;
|
||||||
|
|
||||||
|
|||||||
@@ -1,109 +1,157 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class NtcDnsLog extends BaseLogEntity<NtcDnsLog> {
|
public class NtcDnsLog extends BaseLogEntity<NtcDnsLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = -3763888115864065019L;
|
private static final long serialVersionUID = -3763888115864065019L;
|
||||||
|
|
||||||
|
@ExcelField(title = "qr", dictType = "DNS_QR", sort = 8)
|
||||||
private Integer qr;
|
private Integer qr;
|
||||||
|
|
||||||
|
@ExcelField(title = "rd", dictType = "SYS_YES_NO", sort = 9)
|
||||||
private Integer rd;
|
private Integer rd;
|
||||||
|
|
||||||
|
@ExcelField(title = "ra", dictType = "SYS_YES_NO", sort = 10)
|
||||||
private Integer ra;
|
private Integer ra;
|
||||||
|
|
||||||
|
@ExcelField(title = "rr", sort = 11)
|
||||||
private String rr;
|
private String rr;
|
||||||
|
|
||||||
|
@ExcelField(title = "qtype", dictType = "DNS_QTYPE", sort = 12)
|
||||||
private Integer qType;
|
private Integer qType;
|
||||||
|
|
||||||
|
@ExcelField(title = "qclass", dictType = "DNS_QCLASS", sort = 13)
|
||||||
private Integer qclass;
|
private Integer qclass;
|
||||||
|
|
||||||
|
@ExcelField(title = "opcode", dictType = "DNS_OPCODE", sort = 14)
|
||||||
private Integer opcode;
|
private Integer opcode;
|
||||||
|
|
||||||
|
@ExcelField(title = "qname", sort = 15)
|
||||||
private String qname;
|
private String qname;
|
||||||
|
|
||||||
|
@ExcelField(title = "cname", sort = 16)
|
||||||
private String cname;
|
private String cname;
|
||||||
|
|
||||||
|
@ExcelField(title = "dns_sub", dictType = "DNS_SUB", sort = 17)
|
||||||
private Integer dnsSub;
|
private Integer dnsSub;
|
||||||
|
|
||||||
/*以下字段无需反馈到界面*/
|
/* 以下字段无需反馈到界面 */
|
||||||
private String cheatType;
|
private String cheatType;
|
||||||
private Integer cheatRcode;
|
private Integer cheatRcode;
|
||||||
private String cheatStrategy;
|
private String cheatStrategy;
|
||||||
private String cheatRr;
|
private String cheatRr;
|
||||||
|
|
||||||
public Integer getQr() {
|
public Integer getQr() {
|
||||||
return qr;
|
return qr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setQr(Integer qr) {
|
public void setQr(Integer qr) {
|
||||||
this.qr = qr;
|
this.qr = qr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRd() {
|
public Integer getRd() {
|
||||||
return rd;
|
return rd;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRd(Integer rd) {
|
public void setRd(Integer rd) {
|
||||||
this.rd = rd;
|
this.rd = rd;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getRa() {
|
public Integer getRa() {
|
||||||
return ra;
|
return ra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRa(Integer ra) {
|
public void setRa(Integer ra) {
|
||||||
this.ra = ra;
|
this.ra = ra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRr() {
|
public String getRr() {
|
||||||
return rr;
|
return rr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRr(String rr) {
|
public void setRr(String rr) {
|
||||||
this.rr = rr;
|
this.rr = rr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getqType() {
|
public Integer getqType() {
|
||||||
return qType;
|
return qType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setqType(Integer qType) {
|
public void setqType(Integer qType) {
|
||||||
this.qType = qType;
|
this.qType = qType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getQclass() {
|
public Integer getQclass() {
|
||||||
return qclass;
|
return qclass;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setQclass(Integer qclass) {
|
public void setQclass(Integer qclass) {
|
||||||
this.qclass = qclass;
|
this.qclass = qclass;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getOpcode() {
|
public Integer getOpcode() {
|
||||||
return opcode;
|
return opcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOpcode(Integer opcode) {
|
public void setOpcode(Integer opcode) {
|
||||||
this.opcode = opcode;
|
this.opcode = opcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getQname() {
|
public String getQname() {
|
||||||
return qname;
|
return qname;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setQname(String qname) {
|
public void setQname(String qname) {
|
||||||
this.qname = qname;
|
this.qname = qname;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCname() {
|
public String getCname() {
|
||||||
return cname;
|
return cname;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCname(String cname) {
|
public void setCname(String cname) {
|
||||||
this.cname = cname;
|
this.cname = cname;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getDnsSub() {
|
public Integer getDnsSub() {
|
||||||
return dnsSub;
|
return dnsSub;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDnsSub(Integer dnsSub) {
|
public void setDnsSub(Integer dnsSub) {
|
||||||
this.dnsSub = dnsSub;
|
this.dnsSub = dnsSub;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCheatType() {
|
public String getCheatType() {
|
||||||
return cheatType;
|
return cheatType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCheatType(String cheatType) {
|
public void setCheatType(String cheatType) {
|
||||||
this.cheatType = cheatType;
|
this.cheatType = cheatType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getCheatRcode() {
|
public Integer getCheatRcode() {
|
||||||
return cheatRcode;
|
return cheatRcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCheatRcode(Integer cheatRcode) {
|
public void setCheatRcode(Integer cheatRcode) {
|
||||||
this.cheatRcode = cheatRcode;
|
this.cheatRcode = cheatRcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCheatStrategy() {
|
public String getCheatStrategy() {
|
||||||
return cheatStrategy;
|
return cheatStrategy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCheatStrategy(String cheatStrategy) {
|
public void setCheatStrategy(String cheatStrategy) {
|
||||||
this.cheatStrategy = cheatStrategy;
|
this.cheatStrategy = cheatStrategy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCheatRr() {
|
public String getCheatRr() {
|
||||||
return cheatRr;
|
return cheatRr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCheatRr(String cheatRr) {
|
public void setCheatRr(String cheatRr) {
|
||||||
this.cheatRr = cheatRr;
|
this.cheatRr = cheatRr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,30 +1,34 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class NtcFtpLog extends BaseLogEntity<NtcFtpLog> {
|
public class NtcFtpLog extends BaseLogEntity<NtcFtpLog> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 348767275603485504L;
|
private static final long serialVersionUID = 348767275603485504L;
|
||||||
|
|
||||||
private String ftpUrl;//FTP链接
|
@ExcelField(title = "ftp_url", sort = 8)
|
||||||
private String ftpContent;//FTP内容
|
private String ftpUrl;// FTP链接
|
||||||
|
|
||||||
|
@ExcelField(title = "ftp_content", sort = 9)
|
||||||
|
private String ftpContent;// FTP内容
|
||||||
|
|
||||||
public String getFtpUrl() {
|
public String getFtpUrl() {
|
||||||
return ftpUrl;
|
return ftpUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFtpUrl(String ftpUrl) {
|
public void setFtpUrl(String ftpUrl) {
|
||||||
this.ftpUrl = ftpUrl;
|
this.ftpUrl = ftpUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFtpContent() {
|
public String getFtpContent() {
|
||||||
return ftpContent;
|
return ftpContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFtpContent(String ftpContent) {
|
public void setFtpContent(String ftpContent) {
|
||||||
this.ftpContent = ftpContent;
|
this.ftpContent = ftpContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +1,42 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class NtcHttpLog extends BaseLogEntity<NtcHttpLog> {
|
public class NtcHttpLog extends BaseLogEntity<NtcHttpLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = -7697668215327123848L;
|
private static final long serialVersionUID = -7697668215327123848L;
|
||||||
|
|
||||||
|
@ExcelField(title = "URL", sort = 8)
|
||||||
private String url;
|
private String url;
|
||||||
private String reqHdrKey;//请求头转储文件key
|
|
||||||
|
@ExcelField(title = "req_hdr_key", sort = 9)
|
||||||
|
private String reqHdrKey;// 请求头转储文件key
|
||||||
|
|
||||||
|
@ExcelField(title = "req_hdr_file", sort = 10)
|
||||||
private String reqHdrFile;
|
private String reqHdrFile;
|
||||||
private String reqBodyKey;//请求体转储文件key
|
|
||||||
|
@ExcelField(title = "req_body_key", sort = 11)
|
||||||
|
private String reqBodyKey;// 请求体转储文件key
|
||||||
|
|
||||||
|
@ExcelField(title = "req_body_file", sort = 12)
|
||||||
private String reqBodyFile;
|
private String reqBodyFile;
|
||||||
private String resHdrKey;//应答头转储文件key
|
|
||||||
|
@ExcelField(title = "res_hdr_key", sort = 13)
|
||||||
|
private String resHdrKey;// 应答头转储文件key
|
||||||
|
|
||||||
|
@ExcelField(title = "res_hdr_file", sort = 14)
|
||||||
private String resHdrFile;
|
private String resHdrFile;
|
||||||
private String resBodyKey;//应答体转储文件key
|
|
||||||
|
@ExcelField(title = "res_body_key", sort = 15)
|
||||||
|
private String resBodyKey;// 应答体转储文件key
|
||||||
|
|
||||||
|
@ExcelField(title = "res_body_file", sort = 16)
|
||||||
private String resBodyFile;
|
private String resBodyFile;
|
||||||
private String website;//域名
|
|
||||||
|
@ExcelField(title = "website", sort = 17)
|
||||||
|
private String website;// 域名
|
||||||
/*以下字段无需反馈到界面*/
|
|
||||||
|
/* 以下字段无需反馈到界面 */
|
||||||
private Integer c2sIsn;
|
private Integer c2sIsn;
|
||||||
private Integer pxyFlag;
|
private Integer pxyFlag;
|
||||||
private Integer httpSeq;
|
private Integer httpSeq;
|
||||||
@@ -30,143 +50,187 @@ public class NtcHttpLog extends BaseLogEntity<NtcHttpLog> {
|
|||||||
private String contentLen;
|
private String contentLen;
|
||||||
private String contentType;
|
private String contentType;
|
||||||
private String setCookie;
|
private String setCookie;
|
||||||
|
|
||||||
|
|
||||||
public String getReqHdrFile() {
|
public String getReqHdrFile() {
|
||||||
return reqHdrFile;
|
return reqHdrFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReqHdrFile(String reqHdrFile) {
|
public void setReqHdrFile(String reqHdrFile) {
|
||||||
this.reqHdrFile = reqHdrFile;
|
this.reqHdrFile = reqHdrFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getReqBodyFile() {
|
public String getReqBodyFile() {
|
||||||
return reqBodyFile;
|
return reqBodyFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReqBodyFile(String reqBodyFile) {
|
public void setReqBodyFile(String reqBodyFile) {
|
||||||
this.reqBodyFile = reqBodyFile;
|
this.reqBodyFile = reqBodyFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResHdrFile() {
|
public String getResHdrFile() {
|
||||||
return resHdrFile;
|
return resHdrFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResHdrFile(String resHdrFile) {
|
public void setResHdrFile(String resHdrFile) {
|
||||||
this.resHdrFile = resHdrFile;
|
this.resHdrFile = resHdrFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResBodyFile() {
|
public String getResBodyFile() {
|
||||||
return resBodyFile;
|
return resBodyFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResBodyFile(String resBodyFile) {
|
public void setResBodyFile(String resBodyFile) {
|
||||||
this.resBodyFile = resBodyFile;
|
this.resBodyFile = resBodyFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getPxyFlag() {
|
public Integer getPxyFlag() {
|
||||||
return pxyFlag;
|
return pxyFlag;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPxyFlag(Integer pxyFlag) {
|
public void setPxyFlag(Integer pxyFlag) {
|
||||||
this.pxyFlag = pxyFlag;
|
this.pxyFlag = pxyFlag;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCookie() {
|
public String getCookie() {
|
||||||
return cookie;
|
return cookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCookie(String cookie) {
|
public void setCookie(String cookie) {
|
||||||
this.cookie = cookie;
|
this.cookie = cookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRefefer() {
|
public String getRefefer() {
|
||||||
return refefer;
|
return refefer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRefefer(String refefer) {
|
public void setRefefer(String refefer) {
|
||||||
this.refefer = refefer;
|
this.refefer = refefer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUserAgent() {
|
public String getUserAgent() {
|
||||||
return userAgent;
|
return userAgent;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserAgent(String userAgent) {
|
public void setUserAgent(String userAgent) {
|
||||||
this.userAgent = userAgent;
|
this.userAgent = userAgent;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUserDefineKey() {
|
public String getUserDefineKey() {
|
||||||
return userDefineKey;
|
return userDefineKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserDefineKey(String userDefineKey) {
|
public void setUserDefineKey(String userDefineKey) {
|
||||||
this.userDefineKey = userDefineKey;
|
this.userDefineKey = userDefineKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUserDefineValue() {
|
public String getUserDefineValue() {
|
||||||
return userDefineValue;
|
return userDefineValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserDefineValue(String userDefineValue) {
|
public void setUserDefineValue(String userDefineValue) {
|
||||||
this.userDefineValue = userDefineValue;
|
this.userDefineValue = userDefineValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentLen() {
|
public String getContentLen() {
|
||||||
return contentLen;
|
return contentLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setContentLen(String contentLen) {
|
public void setContentLen(String contentLen) {
|
||||||
this.contentLen = contentLen;
|
this.contentLen = contentLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType() {
|
public String getContentType() {
|
||||||
return contentType;
|
return contentType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setContentType(String contentType) {
|
public void setContentType(String contentType) {
|
||||||
this.contentType = contentType;
|
this.contentType = contentType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSetCookie() {
|
public String getSetCookie() {
|
||||||
return setCookie;
|
return setCookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSetCookie(String setCookie) {
|
public void setSetCookie(String setCookie) {
|
||||||
this.setCookie = setCookie;
|
this.setCookie = setCookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getC2sIsn() {
|
public Integer getC2sIsn() {
|
||||||
return c2sIsn;
|
return c2sIsn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setC2sIsn(Integer c2sIsn) {
|
public void setC2sIsn(Integer c2sIsn) {
|
||||||
this.c2sIsn = c2sIsn;
|
this.c2sIsn = c2sIsn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getHttpSeq() {
|
public Integer getHttpSeq() {
|
||||||
return httpSeq;
|
return httpSeq;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHttpSeq(Integer httpSeq) {
|
public void setHttpSeq(Integer httpSeq) {
|
||||||
this.httpSeq = httpSeq;
|
this.httpSeq = httpSeq;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUrl() {
|
public String getUrl() {
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUrl(String url) {
|
public void setUrl(String url) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getReqLine() {
|
public String getReqLine() {
|
||||||
return reqLine;
|
return reqLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReqLine(String reqLine) {
|
public void setReqLine(String reqLine) {
|
||||||
this.reqLine = reqLine;
|
this.reqLine = reqLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResLine() {
|
public String getResLine() {
|
||||||
return resLine;
|
return resLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResLine(String resLine) {
|
public void setResLine(String resLine) {
|
||||||
this.resLine = resLine;
|
this.resLine = resLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getReqHdrKey() {
|
public String getReqHdrKey() {
|
||||||
return reqHdrKey;
|
return reqHdrKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReqHdrKey(String reqHdrKey) {
|
public void setReqHdrKey(String reqHdrKey) {
|
||||||
this.reqHdrKey = reqHdrKey;
|
this.reqHdrKey = reqHdrKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getReqBodyKey() {
|
public String getReqBodyKey() {
|
||||||
return reqBodyKey;
|
return reqBodyKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReqBodyKey(String reqBodyKey) {
|
public void setReqBodyKey(String reqBodyKey) {
|
||||||
this.reqBodyKey = reqBodyKey;
|
this.reqBodyKey = reqBodyKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResHdrKey() {
|
public String getResHdrKey() {
|
||||||
return resHdrKey;
|
return resHdrKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResHdrKey(String resHdrKey) {
|
public void setResHdrKey(String resHdrKey) {
|
||||||
this.resHdrKey = resHdrKey;
|
this.resHdrKey = resHdrKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResBodyKey() {
|
public String getResBodyKey() {
|
||||||
return resBodyKey;
|
return resBodyKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResBodyKey(String resBodyKey) {
|
public void setResBodyKey(String resBodyKey) {
|
||||||
this.resBodyKey = resBodyKey;
|
this.resBodyKey = resBodyKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWebsite() {
|
public String getWebsite() {
|
||||||
return website;
|
return website;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWebsite(String website) {
|
public void setWebsite(String website) {
|
||||||
this.website = website;
|
this.website = website;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +1,29 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class NtcKeywordsUrlLog extends BaseLogEntity<NtcKeywordsUrlLog> {
|
public class NtcKeywordsUrlLog extends BaseLogEntity<NtcKeywordsUrlLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = -7697668215327123848L;
|
private static final long serialVersionUID = -7697668215327123848L;
|
||||||
|
|
||||||
|
@ExcelField(title = "URL", sort = 8)
|
||||||
private String url;
|
private String url;
|
||||||
private String website;//域名
|
|
||||||
|
@ExcelField(title = "website", sort = 9)
|
||||||
|
private String website;// 域名
|
||||||
|
|
||||||
public String getUrl() {
|
public String getUrl() {
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUrl(String url) {
|
public void setUrl(String url) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWebsite() {
|
public String getWebsite() {
|
||||||
return website;
|
return website;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWebsite(String website) {
|
public void setWebsite(String website) {
|
||||||
this.website = website;
|
this.website = website;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,52 +1,74 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class NtcMailLog extends BaseLogEntity<NtcMailLog> {
|
public class NtcMailLog extends BaseLogEntity<NtcMailLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = -2848016592975339617L;
|
private static final long serialVersionUID = -2848016592975339617L;
|
||||||
|
@ExcelField(title = "mail_proto", sort = 8)
|
||||||
private String mailProto; //邮件协议类型,不可空 SMTP/POP3/IMAP4
|
private String mailProto; // 邮件协议类型,不可空 SMTP/POP3/IMAP4
|
||||||
|
|
||||||
|
@ExcelField(title = "mail_from", sort = 9)
|
||||||
private String mailFrom;
|
private String mailFrom;
|
||||||
|
|
||||||
|
@ExcelField(title = "mail_to", sort = 10)
|
||||||
private String mailTo;
|
private String mailTo;
|
||||||
|
|
||||||
|
@ExcelField(title = "subject", sort = 11)
|
||||||
private String subject;
|
private String subject;
|
||||||
|
|
||||||
|
@ExcelField(title = "eml_file", sort = 12)
|
||||||
private String emlFile;
|
private String emlFile;
|
||||||
|
|
||||||
|
@ExcelField(title = "eml_key", sort = 13)
|
||||||
private String emlKey;
|
private String emlKey;
|
||||||
|
|
||||||
|
|
||||||
public String getEmlKey() {
|
public String getEmlKey() {
|
||||||
return emlKey;
|
return emlKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmlKey(String emlKey) {
|
public void setEmlKey(String emlKey) {
|
||||||
this.emlKey = emlKey;
|
this.emlKey = emlKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMailProto() {
|
public String getMailProto() {
|
||||||
return mailProto;
|
return mailProto;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMailProto(String mailProto) {
|
public void setMailProto(String mailProto) {
|
||||||
this.mailProto = mailProto;
|
this.mailProto = mailProto;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMailFrom() {
|
public String getMailFrom() {
|
||||||
return mailFrom;
|
return mailFrom;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMailFrom(String mailFrom) {
|
public void setMailFrom(String mailFrom) {
|
||||||
this.mailFrom = mailFrom;
|
this.mailFrom = mailFrom;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMailTo() {
|
public String getMailTo() {
|
||||||
return mailTo;
|
return mailTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMailTo(String mailTo) {
|
public void setMailTo(String mailTo) {
|
||||||
this.mailTo = mailTo;
|
this.mailTo = mailTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSubject() {
|
public String getSubject() {
|
||||||
return subject;
|
return subject;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSubject(String subject) {
|
public void setSubject(String subject) {
|
||||||
this.subject = subject;
|
this.subject = subject;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEmlFile() {
|
public String getEmlFile() {
|
||||||
return emlFile;
|
return emlFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmlFile(String emlFile) {
|
public void setEmlFile(String emlFile) {
|
||||||
this.emlFile = emlFile;
|
this.emlFile = emlFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,32 +1,45 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
public class NtcP2pLog extends BaseLogEntity<NtcP2pLog>{
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
|
public class NtcP2pLog extends BaseLogEntity<NtcP2pLog> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -826089417186930465L;
|
private static final long serialVersionUID = -826089417186930465L;
|
||||||
|
|
||||||
|
@ExcelField(title = "p2p_proto", sort = 8)
|
||||||
private String p2pProto;
|
private String p2pProto;
|
||||||
|
|
||||||
|
@ExcelField(title = "p2p_file_id", sort = 9)
|
||||||
private String p2pFileId;
|
private String p2pFileId;
|
||||||
|
|
||||||
|
@ExcelField(title = "p2p_keyword", sort = 10)
|
||||||
private String p2pKeyword;
|
private String p2pKeyword;
|
||||||
|
|
||||||
public String getP2pProto() {
|
public String getP2pProto() {
|
||||||
return p2pProto;
|
return p2pProto;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setP2pProto(String p2pProto) {
|
public void setP2pProto(String p2pProto) {
|
||||||
this.p2pProto = p2pProto;
|
this.p2pProto = p2pProto;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getP2pFileId() {
|
public String getP2pFileId() {
|
||||||
return p2pFileId;
|
return p2pFileId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setP2pFileId(String p2pFileId) {
|
public void setP2pFileId(String p2pFileId) {
|
||||||
this.p2pFileId = p2pFileId;
|
this.p2pFileId = p2pFileId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getP2pKeyword() {
|
public String getP2pKeyword() {
|
||||||
return p2pKeyword;
|
return p2pKeyword;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setP2pKeyword(String p2pKeyword) {
|
public void setP2pKeyword(String p2pKeyword) {
|
||||||
this.p2pKeyword = p2pKeyword;
|
this.p2pKeyword = p2pKeyword;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +1,50 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
public class NtcSslLog extends BaseLogEntity<NtcSslLog>{
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
|
public class NtcSslLog extends BaseLogEntity<NtcSslLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 533266057780162781L;
|
private static final long serialVersionUID = 533266057780162781L;
|
||||||
|
|
||||||
|
@ExcelField(title = "version", sort = 8)
|
||||||
private String version;// 版本号
|
private String version;// 版本号
|
||||||
private String sni;// SNI
|
@ExcelField(title = "SNI", sort = 9)
|
||||||
private String san;// SAN
|
private String sni;// SNI
|
||||||
|
@ExcelField(title = "SAN", sort = 10)
|
||||||
|
private String san;// SAN
|
||||||
|
@ExcelField(title = "CN", sort = 11)
|
||||||
private String cn;// CN
|
private String cn;// CN
|
||||||
|
|
||||||
public String getVersion() {
|
public String getVersion() {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(String version) {
|
public void setVersion(String version) {
|
||||||
this.version = version;
|
this.version = version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSni() {
|
public String getSni() {
|
||||||
return sni;
|
return sni;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSni(String sni) {
|
public void setSni(String sni) {
|
||||||
this.sni = sni;
|
this.sni = sni;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSan() {
|
public String getSan() {
|
||||||
return san;
|
return san;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSan(String san) {
|
public void setSan(String san) {
|
||||||
this.san = san;
|
this.san = san;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCn() {
|
public String getCn() {
|
||||||
return cn;
|
return cn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCn(String cn) {
|
public void setCn(String cn) {
|
||||||
this.cn = cn;
|
this.cn = cn;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName:NtcStreamMediaLog
|
* @ClassName:NtcStreamMediaLog
|
||||||
* @Description:TODO(这里用一句话描述这个类的作用)
|
* @Description:TODO(这里用一句话描述这个类的作用)
|
||||||
@@ -10,7 +12,11 @@ package com.nis.domain.log;
|
|||||||
public class NtcStreamMediaLog extends BaseLogEntity<NtcStreamMediaLog> {
|
public class NtcStreamMediaLog extends BaseLogEntity<NtcStreamMediaLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1446933545638550170L;
|
private static final long serialVersionUID = 1446933545638550170L;
|
||||||
|
|
||||||
|
@ExcelField(title="access_url",sort=8)
|
||||||
protected String url;
|
protected String url;
|
||||||
|
|
||||||
|
@ExcelField(title="stream_media_protocol",sort=9)
|
||||||
protected String protocol;
|
protected String protocol;
|
||||||
public String getUrl() {
|
public String getUrl() {
|
||||||
return url;
|
return url;
|
||||||
|
|||||||
@@ -1,22 +1,38 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
public class PxyHttpLog extends BaseLogEntity<NtcIpLog> {
|
public class PxyHttpLog extends BaseLogEntity<NtcIpLog> {
|
||||||
|
|
||||||
private static final long serialVersionUID = -3046458130302949428L;
|
private static final long serialVersionUID = -3046458130302949428L;
|
||||||
|
|
||||||
|
@ExcelField(title="URL",sort=8)
|
||||||
private String url;
|
private String url;
|
||||||
|
@ExcelField(title="req_line",sort=9)
|
||||||
private String reqLine;
|
private String reqLine;
|
||||||
|
@ExcelField(title="res_line",sort=10)
|
||||||
private String resLine;
|
private String resLine;
|
||||||
|
@ExcelField(title="cookie",sort=11)
|
||||||
private String cookie;
|
private String cookie;
|
||||||
|
@ExcelField(title="referer",sort=12)
|
||||||
private String referer;
|
private String referer;
|
||||||
|
@ExcelField(title="user_agent",sort=13)
|
||||||
private String userAgent;
|
private String userAgent;
|
||||||
|
@ExcelField(title="content_len",sort=14)
|
||||||
private String contentLen;
|
private String contentLen;
|
||||||
|
@ExcelField(title="content_type",sort=15)
|
||||||
private String contentType;
|
private String contentType;
|
||||||
|
@ExcelField(title="set_cookie",sort=16)
|
||||||
private String setCookie;
|
private String setCookie;
|
||||||
|
@ExcelField(title="req_header",sort=17)
|
||||||
private String reqHeader;
|
private String reqHeader;
|
||||||
|
@ExcelField(title="resp_header",sort=18)
|
||||||
private String respHeader;
|
private String respHeader;
|
||||||
|
|
||||||
private String reqBody;
|
private String reqBody;
|
||||||
|
|
||||||
private String resBody;
|
private String resBody;
|
||||||
|
@ExcelField(title="website",sort=19)
|
||||||
private String website;
|
private String website;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
31
src/main/java/com/nis/domain/report/NtcAsnRecord.java
Normal file
31
src/main/java/com/nis/domain/report/NtcAsnRecord.java
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
package com.nis.domain.report;
|
||||||
|
|
||||||
|
import com.nis.domain.log.BaseLogEntity;
|
||||||
|
import com.nis.util.excel.ExcelField;
|
||||||
|
|
||||||
|
public class NtcAsnRecord extends BaseLogEntity<NtcAsnRecord>{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -4947912502754359817L;
|
||||||
|
|
||||||
|
|
||||||
|
protected String bps;
|
||||||
|
|
||||||
|
protected String pps;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getBps() {
|
||||||
|
return bps;
|
||||||
|
}
|
||||||
|
public void setBps(String bps) {
|
||||||
|
this.bps = bps;
|
||||||
|
}
|
||||||
|
public String getPps() {
|
||||||
|
return pps;
|
||||||
|
}
|
||||||
|
public void setPps(String pps) {
|
||||||
|
this.pps = pps;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
72
src/main/java/com/nis/domain/report/NtcIpRangeReport.java
Normal file
72
src/main/java/com/nis/domain/report/NtcIpRangeReport.java
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
package com.nis.domain.report;
|
||||||
|
|
||||||
|
import java.math.BigInteger;
|
||||||
|
|
||||||
|
import com.nis.domain.log.BaseLogEntity;
|
||||||
|
|
||||||
|
public class NtcIpRangeReport extends BaseLogEntity<NtcIpRangeReport>{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -4947912502754359817L;
|
||||||
|
|
||||||
|
protected String ipStart;
|
||||||
|
protected String ipEnd;
|
||||||
|
protected BigInteger ipStartNum;
|
||||||
|
protected BigInteger ipEndNum;
|
||||||
|
protected String ipSub;
|
||||||
|
|
||||||
|
protected String searchCountry;//国家
|
||||||
|
protected String searchStartIp;//开始IP
|
||||||
|
protected String searchEndIp;//结束IP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getSearchCountry() {
|
||||||
|
return searchCountry;
|
||||||
|
}
|
||||||
|
public void setSearchCountry(String searchCountry) {
|
||||||
|
this.searchCountry = searchCountry;
|
||||||
|
}
|
||||||
|
public String getSearchStartIp() {
|
||||||
|
return searchStartIp;
|
||||||
|
}
|
||||||
|
public void setSearchStartIp(String searchStartIp) {
|
||||||
|
this.searchStartIp = searchStartIp;
|
||||||
|
}
|
||||||
|
public String getSearchEndIp() {
|
||||||
|
return searchEndIp;
|
||||||
|
}
|
||||||
|
public void setSearchEndIp(String searchEndIp) {
|
||||||
|
this.searchEndIp = searchEndIp;
|
||||||
|
}
|
||||||
|
public String getIpStart() {
|
||||||
|
return ipStart;
|
||||||
|
}
|
||||||
|
public void setIpStart(String ipStart) {
|
||||||
|
this.ipStart = ipStart;
|
||||||
|
}
|
||||||
|
public String getIpEnd() {
|
||||||
|
return ipEnd;
|
||||||
|
}
|
||||||
|
public void setIpEnd(String ipEnd) {
|
||||||
|
this.ipEnd = ipEnd;
|
||||||
|
}
|
||||||
|
public BigInteger getIpStartNum() {
|
||||||
|
return ipStartNum;
|
||||||
|
}
|
||||||
|
public void setIpStartNum(BigInteger ipStartNum) {
|
||||||
|
this.ipStartNum = ipStartNum;
|
||||||
|
}
|
||||||
|
public BigInteger getIpEndNum() {
|
||||||
|
return ipEndNum;
|
||||||
|
}
|
||||||
|
public void setIpEndNum(BigInteger ipEndNum) {
|
||||||
|
this.ipEndNum = ipEndNum;
|
||||||
|
}
|
||||||
|
public String getIpSub() {
|
||||||
|
return ipSub;
|
||||||
|
}
|
||||||
|
public void setIpSub(String ipSub) {
|
||||||
|
this.ipSub = ipSub;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
59
src/main/java/com/nis/domain/report/NtcURLReport.java
Normal file
59
src/main/java/com/nis/domain/report/NtcURLReport.java
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
package com.nis.domain.report;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.nis.domain.log.BaseLogEntity;
|
||||||
|
|
||||||
|
public class NtcURLReport extends BaseLogEntity<NtcURLReport>{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -4947912502754359817L;
|
||||||
|
|
||||||
|
|
||||||
|
protected String url;
|
||||||
|
protected Integer urlCount;
|
||||||
|
protected List<NtcURLReportBase> dataList;
|
||||||
|
|
||||||
|
protected String searchReportStartTime;//开始时间
|
||||||
|
protected String searchReportEndTime;//结束时间
|
||||||
|
protected String searchUrl;//查询条件 url
|
||||||
|
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
public String getSearchReportStartTime() {
|
||||||
|
return searchReportStartTime;
|
||||||
|
}
|
||||||
|
public void setSearchReportStartTime(String searchReportStartTime) {
|
||||||
|
this.searchReportStartTime = searchReportStartTime;
|
||||||
|
}
|
||||||
|
public String getSearchReportEndTime() {
|
||||||
|
return searchReportEndTime;
|
||||||
|
}
|
||||||
|
public void setSearchReportEndTime(String searchReportEndTime) {
|
||||||
|
this.searchReportEndTime = searchReportEndTime;
|
||||||
|
}
|
||||||
|
public String getSearchUrl() {
|
||||||
|
return searchUrl;
|
||||||
|
}
|
||||||
|
public void setSearchUrl(String searchUrl) {
|
||||||
|
this.searchUrl = searchUrl;
|
||||||
|
}
|
||||||
|
public void setUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
public Integer getUrlCount() {
|
||||||
|
return urlCount;
|
||||||
|
}
|
||||||
|
public void setUrlCount(Integer urlCount) {
|
||||||
|
this.urlCount = urlCount;
|
||||||
|
}
|
||||||
|
public List<NtcURLReportBase> getDataList() {
|
||||||
|
return dataList;
|
||||||
|
}
|
||||||
|
public void setDataList(List<NtcURLReportBase> dataList) {
|
||||||
|
this.dataList = dataList;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
26
src/main/java/com/nis/domain/report/NtcURLReportBase.java
Normal file
26
src/main/java/com/nis/domain/report/NtcURLReportBase.java
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
package com.nis.domain.report;
|
||||||
|
|
||||||
|
public class NtcURLReportBase {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -4947912502754359817L;
|
||||||
|
|
||||||
|
|
||||||
|
protected String ipAddr;
|
||||||
|
protected Integer sum;
|
||||||
|
|
||||||
|
|
||||||
|
public String getIpAddr() {
|
||||||
|
return ipAddr;
|
||||||
|
}
|
||||||
|
public void setIpAddr(String ipAddr) {
|
||||||
|
this.ipAddr = ipAddr;
|
||||||
|
}
|
||||||
|
public Integer getSum() {
|
||||||
|
return sum;
|
||||||
|
}
|
||||||
|
public void setSum(Integer sum) {
|
||||||
|
this.sum = sum;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -769,6 +769,9 @@ public final class Constants {
|
|||||||
public static final String NTC_COLLECT_RADIUS_LOG =Configurations.getStringProperty("ntcCollectRadiusLog","");
|
public static final String NTC_COLLECT_RADIUS_LOG =Configurations.getStringProperty("ntcCollectRadiusLog","");
|
||||||
public static final String NTC_CONN_RECORD_LOG =Configurations.getStringProperty("ntcConnRecordLog","");
|
public static final String NTC_CONN_RECORD_LOG =Configurations.getStringProperty("ntcConnRecordLog","");
|
||||||
public static final String NTC_CONN_RECORD_PERCENT =Configurations.getStringProperty("ntcConnRecordPercent","");
|
public static final String NTC_CONN_RECORD_PERCENT =Configurations.getStringProperty("ntcConnRecordPercent","");
|
||||||
|
public static final String NTC_ASN_RECORD =Configurations.getStringProperty("ntcAsnRecord","");
|
||||||
|
public static final String NTC_URL_REPORT =Configurations.getStringProperty("ntcURLReport","");
|
||||||
|
public static final String NTC_IP_RANGE_REPORT =Configurations.getStringProperty("ntcIpRangeReport","");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 每次最大导出条数
|
* 每次最大导出条数
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ public class Reflections {
|
|||||||
getName="sSubscribeId";
|
getName="sSubscribeId";
|
||||||
}else if(getName.equals("DSubscribeId")){
|
}else if(getName.equals("DSubscribeId")){
|
||||||
getName="dSubscribeId";
|
getName="dSubscribeId";
|
||||||
|
}else if(getName.equals("QType")){
|
||||||
|
getName="qType";
|
||||||
}
|
}
|
||||||
String getterMethodName = GETTER_PREFIX + getName;
|
String getterMethodName = GETTER_PREFIX + getName;
|
||||||
object = invokeMethod(object, getterMethodName, new Class[] {}, new Object[] {});
|
object = invokeMethod(object, getterMethodName, new Class[] {}, new Object[] {});
|
||||||
|
|||||||
@@ -384,6 +384,9 @@ public class ExcelCsv {
|
|||||||
String [] datas=data.split(",");
|
String [] datas=data.split(",");
|
||||||
for (String tag : datas) {
|
for (String tag : datas) {
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
|
if("null".equals(tag.trim())){
|
||||||
|
tag=null;
|
||||||
|
}
|
||||||
if(StringUtils.isNotBlank(tag)){
|
if(StringUtils.isNotBlank(tag)){
|
||||||
// 替换值中双引号
|
// 替换值中双引号
|
||||||
if(tag.contains("\"")){
|
if(tag.contains("\"")){
|
||||||
@@ -412,7 +415,7 @@ public class ExcelCsv {
|
|||||||
public static boolean isDate(String strDate) {
|
public static boolean isDate(String strDate) {
|
||||||
Pattern pattern = Pattern
|
Pattern pattern = Pattern
|
||||||
.compile("^((\\d{2}(([02468][048])|([13579][26]))[\\-\\/\\s]?((((0?[13578])|(1[02]))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])))))|(\\d{2}(([02468][1235679])|([13579][01345789]))[\\-\\/\\s]?((((0?[13578])|(1[02]))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\-\\/\\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\\s(((0?[0-9])|([1-2][0-3]))\\:([0-5]?[0-9])((\\s)|(\\:([0-5]?[0-9])))))?$");
|
.compile("^((\\d{2}(([02468][048])|([13579][26]))[\\-\\/\\s]?((((0?[13578])|(1[02]))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])))))|(\\d{2}(([02468][1235679])|([13579][01345789]))[\\-\\/\\s]?((((0?[13578])|(1[02]))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\-\\/\\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\\s(((0?[0-9])|([1-2][0-3]))\\:([0-5]?[0-9])((\\s)|(\\:([0-5]?[0-9])))))?$");
|
||||||
if(strDate.length()>= 10){
|
if(strDate.trim().length()>= 10){
|
||||||
String date=strDate.trim().substring(0, 10);
|
String date=strDate.trim().substring(0, 10);
|
||||||
Matcher m = pattern.matcher(date);
|
Matcher m = pattern.matcher(date);
|
||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
|
|||||||
@@ -1617,20 +1617,20 @@ public class AppCfgController extends BaseController {
|
|||||||
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
/*//导出选中记录
|
List<AppPolicyCfg> ipLists=new ArrayList<AppPolicyCfg>();
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=appCfgService.findAppByPolicyList(ids);
|
||||||
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<AppPolicyCfg> pageInfo=new Page<AppPolicyCfg>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<AppPolicyCfg> page = appCfgService.findAppPolicyList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
for(AppPolicyCfg policy:ipLists){
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppPolicyCfg> pageInfo=new Page<AppPolicyCfg>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<AppPolicyCfg> page = appCfgService.findAppPolicyList(pageInfo, entity);
|
|
||||||
for(AppPolicyCfg policy:page.getList()){
|
|
||||||
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(policy.getSpecServiceId());
|
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(policy.getSpecServiceId());
|
||||||
if(app!=null) {
|
if(app!=null) {
|
||||||
policy.setSocialName(app.getSpecServiceName());
|
policy.setSocialName(app.getSpecServiceName());
|
||||||
@@ -1648,7 +1648,7 @@ public class AppCfgController extends BaseController {
|
|||||||
second.setIsLeaf(1);
|
second.setIsLeaf(1);
|
||||||
List<SpecificServiceCfg> secondList=specificServiceCfgService.findAllSpecificServiceCfg(second, null);
|
List<SpecificServiceCfg> secondList=specificServiceCfgService.findAllSpecificServiceCfg(second, null);
|
||||||
//遍历,找到匹配项后将行为设置进去
|
//遍历,找到匹配项后将行为设置进去
|
||||||
for(AppPolicyCfg policy:page.getList()){
|
for(AppPolicyCfg policy:ipLists){
|
||||||
if(policy.getBehavCode()==null) continue;
|
if(policy.getBehavCode()==null) continue;
|
||||||
for(SpecificServiceCfg secondCfg:secondList) {
|
for(SpecificServiceCfg secondCfg:secondList) {
|
||||||
if(secondCfg.getSpecServiceCode()==null) continue;
|
if(secondCfg.getSpecServiceCode()==null) continue;
|
||||||
@@ -1678,13 +1678,13 @@ public class AppCfgController extends BaseController {
|
|||||||
noExportMap.put("NTC_SUBSCRIBE_ID", subscribeInfoNoExport);
|
noExportMap.put("NTC_SUBSCRIBE_ID", subscribeInfoNoExport);
|
||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
for (AppPolicyCfg cfg : page.getList()) {
|
for (AppPolicyCfg cfg : ipLists) {
|
||||||
AppPolicyCfg cfgIndexInfo=appCfgService.exportIpInfo(cfg);
|
AppPolicyCfg cfgIndexInfo=appCfgService.exportIpInfo(cfg);
|
||||||
ipList.addAll(cfgIndexInfo.getIpPortList());
|
ipList.addAll(cfgIndexInfo.getIpPortList());
|
||||||
subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
||||||
}
|
}
|
||||||
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_IP", ipList);
|
dataMap.put("NTC_IP", ipList);
|
||||||
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
||||||
|
|
||||||
@@ -1707,21 +1707,21 @@ public class AppCfgController extends BaseController {
|
|||||||
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
/*//导出选中记录
|
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
List<AppTopicDomainCfg> ipLists=new ArrayList<AppTopicDomainCfg>();
|
||||||
for(String id:ids.split(",")){
|
//导出选中记录
|
||||||
Long.parseLong(id);
|
if(!StringUtil.isEmpty(ids)){
|
||||||
|
ipLists=appCfgService.findAppByTopicDomainList(ids);
|
||||||
|
}else{
|
||||||
|
Page<AppTopicDomainCfg> pageInfo=new Page<AppTopicDomainCfg>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<AppTopicDomainCfg> page = appCfgService.findAppTopicDomainList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
for (int i = 0; i < ipLists.size(); i++) {
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
AppTopicDomainCfg appTop=ipLists.get(i);
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppTopicDomainCfg> pageInfo=new Page<AppTopicDomainCfg>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<AppTopicDomainCfg> page = appCfgService.findAppTopicDomainList(pageInfo, entity);
|
|
||||||
for (int i = 0; i < page.getList().size(); i++) {
|
|
||||||
AppTopicDomainCfg appTop=page.getList().get(i);
|
|
||||||
appTop.setIsHex(appTop.getIsHexbin());
|
appTop.setIsHex(appTop.getIsHexbin());
|
||||||
appTop.setIsCaseInsenstive(appTop.getIsHexbin());
|
appTop.setIsCaseInsenstive(appTop.getIsHexbin());
|
||||||
}
|
}
|
||||||
@@ -1729,7 +1729,7 @@ public class AppCfgController extends BaseController {
|
|||||||
classMap.put(entity.getMenuNameCode(), AppTopicDomainCfg.class);
|
classMap.put(entity.getMenuNameCode(), AppTopicDomainCfg.class);
|
||||||
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -1750,21 +1750,20 @@ public class AppCfgController extends BaseController {
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<AppIpCfg> ipLists=new ArrayList<AppIpCfg>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=appCfgService.findAppByIpList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
Page<AppIpCfg> pageInfo=new Page<AppIpCfg>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<AppIpCfg> page = appCfgService.findAppIpList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
for(AppIpCfg appIp:ipLists){
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppIpCfg> pageInfo=new Page<AppIpCfg>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<AppIpCfg> page = appCfgService.findAppIpList(pageInfo, entity);
|
|
||||||
for(AppIpCfg appIp:page.getList()){
|
|
||||||
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(appIp.getSpecServiceId());
|
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(appIp.getSpecServiceId());
|
||||||
appIp.setAppName(app.getSpecServiceName());
|
appIp.setAppName(app.getSpecServiceName());
|
||||||
}
|
}
|
||||||
@@ -1772,7 +1771,7 @@ public class AppCfgController extends BaseController {
|
|||||||
classMap.put(entity.getMenuNameCode(), AppIpCfg.class);
|
classMap.put(entity.getMenuNameCode(), AppIpCfg.class);
|
||||||
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(),ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -1792,22 +1791,19 @@ public class AppCfgController extends BaseController {
|
|||||||
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
List<AppHttpCfg> ipLists=new ArrayList<AppHttpCfg>();
|
||||||
|
//导出选中记录
|
||||||
/*//导出选中记录
|
if(!StringUtil.isEmpty(ids)){
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
ipLists=appCfgService.findAppByHttpList(ids);
|
||||||
for(String id:ids.split(",")){
|
}else{
|
||||||
Long.parseLong(id);
|
Page<AppHttpCfg> pageInfo=new Page<AppHttpCfg>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<AppHttpCfg> page = appCfgService.findAppHttpList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
for(AppHttpCfg http:ipLists){
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppHttpCfg> pageInfo=new Page<AppHttpCfg>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<AppHttpCfg> page = appCfgService.findAppHttpList(pageInfo, entity);
|
|
||||||
for(AppHttpCfg http:page.getList()){
|
|
||||||
http.setIsHex(http.getIsHexbin());
|
http.setIsHex(http.getIsHexbin());
|
||||||
http.setIsCaseInsenstive(http.getIsHexbin());
|
http.setIsCaseInsenstive(http.getIsHexbin());
|
||||||
http.setCfgKeywords(Functions.replace(http.getCfgKeywords(), "***and***"," "));
|
http.setCfgKeywords(Functions.replace(http.getCfgKeywords(), "***and***"," "));
|
||||||
@@ -1819,7 +1815,7 @@ public class AppCfgController extends BaseController {
|
|||||||
classMap.put(entity.getMenuNameCode(), AppHttpCfg.class);
|
classMap.put(entity.getMenuNameCode(), AppHttpCfg.class);
|
||||||
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -1840,21 +1836,17 @@ public class AppCfgController extends BaseController {
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<AppDomainCfg> ipLists= new ArrayList<AppDomainCfg>();
|
||||||
/*//导出选中记录
|
if(!StringUtil.isEmpty(ids)){
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
ipLists=appCfgService.findAppByDomainList(ids);
|
||||||
for(String id:ids.split(",")){
|
}else{
|
||||||
Long.parseLong(id);
|
Page<AppDomainCfg> pageInfo=new Page<AppDomainCfg>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<AppDomainCfg> page = appCfgService.findAppDomainList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
for(AppDomainCfg domain:ipLists){
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppDomainCfg> pageInfo=new Page<AppDomainCfg>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<AppDomainCfg> page = appCfgService.findAppDomainList(pageInfo, entity);
|
|
||||||
for(AppDomainCfg domain:page.getList()){
|
|
||||||
domain.setIsHex(domain.getIsHexbin());
|
domain.setIsHex(domain.getIsHexbin());
|
||||||
domain.setIsCaseInsenstive(domain.getIsHexbin());
|
domain.setIsCaseInsenstive(domain.getIsHexbin());
|
||||||
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(domain.getSpecServiceId());
|
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(domain.getSpecServiceId());
|
||||||
@@ -1865,7 +1857,7 @@ public class AppCfgController extends BaseController {
|
|||||||
classMap.put(entity.getMenuNameCode(), AppDomainCfg.class);
|
classMap.put(entity.getMenuNameCode(), AppDomainCfg.class);
|
||||||
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -1886,21 +1878,18 @@ public class AppCfgController extends BaseController {
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<AppSslCertCfg> ipLists= new ArrayList<AppSslCertCfg>();
|
||||||
/*//导出选中记录
|
if(!StringUtil.isEmpty(ids)){
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
ipLists=appCfgService.findAppBySslList(ids);
|
||||||
for(String id:ids.split(",")){
|
}else{
|
||||||
Long.parseLong(id);
|
|
||||||
}
|
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppSslCertCfg> pageInfo=new Page<AppSslCertCfg>(request, response,"r");
|
Page<AppSslCertCfg> pageInfo=new Page<AppSslCertCfg>(request, response,"r");
|
||||||
pageInfo.setPageNo(1);
|
pageInfo.setPageNo(1);
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
Page<AppSslCertCfg> page = appCfgService.findAppSslList(pageInfo, entity);
|
Page<AppSslCertCfg> page = appCfgService.findAppSslList(pageInfo, entity);
|
||||||
for(AppSslCertCfg ssl:page.getList()){
|
ipLists=page.getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
for(AppSslCertCfg ssl:ipLists){
|
||||||
ssl.setIsHex(ssl.getIsHexbin());
|
ssl.setIsHex(ssl.getIsHexbin());
|
||||||
ssl.setIsCaseInsenstive(ssl.getIsHexbin());
|
ssl.setIsCaseInsenstive(ssl.getIsHexbin());
|
||||||
ssl.setCfgKeywords(Functions.replace(ssl.getCfgKeywords(), "***and***"," "));
|
ssl.setCfgKeywords(Functions.replace(ssl.getCfgKeywords(), "***and***"," "));
|
||||||
@@ -1911,7 +1900,7 @@ public class AppCfgController extends BaseController {
|
|||||||
classMap.put(entity.getMenuNameCode(), AppSslCertCfg.class);
|
classMap.put(entity.getMenuNameCode(), AppSslCertCfg.class);
|
||||||
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",letter,whether_area_block,classification,attribute,label,do_log,block_type,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(),ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ import com.nis.domain.configuration.BaseStringCfg;
|
|||||||
import com.nis.domain.configuration.CfgIndexInfo;
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
||||||
|
import com.nis.domain.configuration.PxyObjTrustedCaCert;
|
||||||
import com.nis.domain.configuration.WebsiteDomainTopic;
|
import com.nis.domain.configuration.WebsiteDomainTopic;
|
||||||
import com.nis.domain.maat.ToMaatResult;
|
import com.nis.domain.maat.ToMaatResult;
|
||||||
import com.nis.domain.maat.ToMaatResult.ResponseData;
|
import com.nis.domain.maat.ToMaatResult.ResponseData;
|
||||||
@@ -300,22 +301,19 @@ public class AppFeatureCfgController extends BaseController {
|
|||||||
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
List<AppFeatureIndex> ipLists=new ArrayList<AppFeatureIndex>();
|
||||||
|
//导出选中记录
|
||||||
/*//导出选中记录
|
if(!StringUtil.isEmpty(ids)){
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
ipLists=appMultiFeatureCfgService.findAppByFeatureIndexList(ids);
|
||||||
for(String id:ids.split(",")){
|
}else{
|
||||||
Long.parseLong(id);
|
|
||||||
}
|
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppFeatureIndex> pageInfo=new Page<AppFeatureIndex>(request, response,"r");
|
Page<AppFeatureIndex> pageInfo=new Page<AppFeatureIndex>(request, response,"r");
|
||||||
pageInfo.setPageNo(1);
|
pageInfo.setPageNo(1);
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
Page<AppFeatureIndex> page = appMultiFeatureCfgService.findAppFeatureIndexList(pageInfo, entity);
|
Page<AppFeatureIndex> page = appMultiFeatureCfgService.findAppFeatureIndexList(pageInfo, entity);
|
||||||
for(AppFeatureIndex feature:page.getList()){
|
ipLists=page.getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
for(AppFeatureIndex feature:ipLists){
|
||||||
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(feature.getSpecServiceId());
|
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(feature.getSpecServiceId());
|
||||||
feature.setAppName(app.getSpecServiceName());
|
feature.setAppName(app.getSpecServiceName());
|
||||||
}
|
}
|
||||||
@@ -334,7 +332,7 @@ public class AppFeatureCfgController extends BaseController {
|
|||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<AppComplexFeatureCfg> keywordList=new ArrayList<AppComplexFeatureCfg>();
|
List<AppComplexFeatureCfg> keywordList=new ArrayList<AppComplexFeatureCfg>();
|
||||||
List<AppStringFeatureCfg> strList=new ArrayList<AppStringFeatureCfg>();
|
List<AppStringFeatureCfg> strList=new ArrayList<AppStringFeatureCfg>();
|
||||||
for (AppFeatureIndex cfg : page.getList()) {
|
for (AppFeatureIndex cfg : ipLists) {
|
||||||
Map<String, List> maps=appMultiFeatureCfgService.exportFeature(cfg);
|
Map<String, List> maps=appMultiFeatureCfgService.exportFeature(cfg);
|
||||||
if(entity.getFunctionId()!=567){
|
if(entity.getFunctionId()!=567){
|
||||||
keywordList.addAll(maps.get("APP_KEYWORDS"));
|
keywordList.addAll(maps.get("APP_KEYWORDS"));
|
||||||
@@ -343,7 +341,7 @@ public class AppFeatureCfgController extends BaseController {
|
|||||||
}
|
}
|
||||||
ipList.addAll(maps.get("APP_IP_RANGE"));
|
ipList.addAll(maps.get("APP_IP_RANGE"));
|
||||||
}
|
}
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
if(entity.getFunctionId()!=564 && entity.getFunctionId()!=567 ){
|
if(entity.getFunctionId()!=564 && entity.getFunctionId()!=567 ){
|
||||||
keywordList=replaceKeyList(keywordList);
|
keywordList=replaceKeyList(keywordList);
|
||||||
titleList.add("APP_IP_RANGE");
|
titleList.add("APP_IP_RANGE");
|
||||||
|
|||||||
@@ -258,20 +258,20 @@ public class BasicProtocolController extends BaseController {
|
|||||||
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
/*//导出选中记录
|
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
List<AppPolicyCfg> ipLists=new ArrayList<AppPolicyCfg>();
|
||||||
for(String id:ids.split(",")){
|
//导出选中记录
|
||||||
Long.parseLong(id);
|
if(!StringUtil.isEmpty(ids)){
|
||||||
|
ipLists=appCfgService.findAppByPolicyList(ids);
|
||||||
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<AppPolicyCfg> pageInfo=new Page<AppPolicyCfg>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<AppPolicyCfg> page = appCfgService.findAppPolicyList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
for(AppPolicyCfg policy:ipLists){
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppPolicyCfg> pageInfo=new Page<AppPolicyCfg>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<AppPolicyCfg> page = appCfgService.findAppPolicyList(pageInfo, entity);
|
|
||||||
for(AppPolicyCfg policy:page.getList()){
|
|
||||||
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(policy.getSpecServiceId());
|
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(policy.getSpecServiceId());
|
||||||
if(app!=null) {
|
if(app!=null) {
|
||||||
policy.setAppName(app.getSpecServiceName());
|
policy.setAppName(app.getSpecServiceName());
|
||||||
@@ -298,13 +298,13 @@ public class BasicProtocolController extends BaseController {
|
|||||||
noExportMap.put("NTC_SUBSCRIBE_ID", subscribeInfoNoExport);
|
noExportMap.put("NTC_SUBSCRIBE_ID", subscribeInfoNoExport);
|
||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
for (AppPolicyCfg cfg : page.getList()) {
|
for (AppPolicyCfg cfg : ipLists) {
|
||||||
AppPolicyCfg cfgIndexInfo=appCfgService.exportIpInfo(cfg);
|
AppPolicyCfg cfgIndexInfo=appCfgService.exportIpInfo(cfg);
|
||||||
ipList.addAll(cfgIndexInfo.getIpPortList());
|
ipList.addAll(cfgIndexInfo.getIpPortList());
|
||||||
subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
||||||
}
|
}
|
||||||
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_IP", ipList);
|
dataMap.put("NTC_IP", ipList);
|
||||||
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
||||||
|
|
||||||
|
|||||||
@@ -278,20 +278,19 @@ public class EncryptedTunnelBehaviorController extends BaseController {
|
|||||||
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
/*//导出选中记录
|
List<AppPolicyCfg> ipLists=new ArrayList<AppPolicyCfg>();
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=appCfgService.findAppByPolicyList(ids);
|
||||||
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<AppPolicyCfg> pageInfo=new Page<AppPolicyCfg>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<AppPolicyCfg> page = appCfgService.findAppPolicyList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
for(AppPolicyCfg policy:ipLists){
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<AppPolicyCfg> pageInfo=new Page<AppPolicyCfg>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<AppPolicyCfg> page = appCfgService.findAppPolicyList(pageInfo, entity);
|
|
||||||
for(AppPolicyCfg policy:page.getList()){
|
|
||||||
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(policy.getSpecServiceId());
|
SpecificServiceCfg app = specificServiceCfgService.getBySpecServiceId(policy.getSpecServiceId());
|
||||||
if(app!=null) {
|
if(app!=null) {
|
||||||
policy.setBehaviorName(app.getSpecServiceName());
|
policy.setBehaviorName(app.getSpecServiceName());
|
||||||
@@ -309,7 +308,7 @@ public class EncryptedTunnelBehaviorController extends BaseController {
|
|||||||
second.setIsLeaf(1);
|
second.setIsLeaf(1);
|
||||||
List<SpecificServiceCfg> secondList=specificServiceCfgService.findAllSpecificServiceCfg(second, null);
|
List<SpecificServiceCfg> secondList=specificServiceCfgService.findAllSpecificServiceCfg(second, null);
|
||||||
//遍历,找到匹配项后将行为设置进去
|
//遍历,找到匹配项后将行为设置进去
|
||||||
for(AppPolicyCfg policy:page.getList()){
|
for(AppPolicyCfg policy:ipLists){
|
||||||
if(policy.getBehavCode()==null) continue;
|
if(policy.getBehavCode()==null) continue;
|
||||||
for(SpecificServiceCfg secondCfg:secondList) {
|
for(SpecificServiceCfg secondCfg:secondList) {
|
||||||
if(secondCfg.getSpecServiceCode()==null) continue;
|
if(secondCfg.getSpecServiceCode()==null) continue;
|
||||||
@@ -339,13 +338,13 @@ public class EncryptedTunnelBehaviorController extends BaseController {
|
|||||||
noExportMap.put("NTC_SUBSCRIBE_ID", subscribeInfoNoExport);
|
noExportMap.put("NTC_SUBSCRIBE_ID", subscribeInfoNoExport);
|
||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
for (AppPolicyCfg cfg : page.getList()) {
|
for (AppPolicyCfg cfg : ipLists) {
|
||||||
AppPolicyCfg cfgIndexInfo=appCfgService.exportIpInfo(cfg);
|
AppPolicyCfg cfgIndexInfo=appCfgService.exportIpInfo(cfg);
|
||||||
ipList.addAll(cfgIndexInfo.getIpPortList());
|
ipList.addAll(cfgIndexInfo.getIpPortList());
|
||||||
subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
||||||
}
|
}
|
||||||
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_IP", ipList);
|
dataMap.put("NTC_IP", ipList);
|
||||||
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import com.nis.domain.Page;
|
|||||||
import com.nis.domain.basics.PolicyGroupInfo;
|
import com.nis.domain.basics.PolicyGroupInfo;
|
||||||
import com.nis.domain.basics.ServiceDictInfo;
|
import com.nis.domain.basics.ServiceDictInfo;
|
||||||
import com.nis.domain.configuration.BaseIpCfg;
|
import com.nis.domain.configuration.BaseIpCfg;
|
||||||
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.DnsIpCfg;
|
import com.nis.domain.configuration.DnsIpCfg;
|
||||||
import com.nis.domain.configuration.DnsResStrategy;
|
import com.nis.domain.configuration.DnsResStrategy;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
@@ -212,32 +213,30 @@ public class DnsIpCfgController extends BaseController {
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
/*//导出选中记录
|
List<DnsIpCfg> ipLists=new ArrayList<DnsIpCfg>();
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=dnsIpCfgService.findByPage(ids);
|
||||||
|
}else{
|
||||||
|
Page<DnsIpCfg> pageInfo=new Page<DnsIpCfg>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<DnsIpCfg> page = dnsIpCfgService.findPage(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
for (int i = 0; i < ipLists.size(); i++) {
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
if(StringUtil.isEmpty(ipLists.get(i).getDnsStrategyName())){
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<DnsIpCfg> pageInfo=new Page<DnsIpCfg>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<DnsIpCfg> page = dnsIpCfgService.findPage(pageInfo, entity);
|
|
||||||
for (int i = 0; i < page.getList().size(); i++) {
|
|
||||||
if(StringUtil.isEmpty(page.getList().get(i).getDnsStrategyName())){
|
|
||||||
Properties msgProp = getMsgProp();
|
Properties msgProp = getMsgProp();
|
||||||
page.getList().get(i).setDnsStrategyName(msgProp.getProperty("default_group"));
|
ipLists.get(i).setDnsStrategyName(msgProp.getProperty("default_group"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
classMap.put(entity.getMenuNameCode(), DnsIpCfg.class);
|
classMap.put(entity.getMenuNameCode(), DnsIpCfg.class);
|
||||||
String cfgIndexInfoNoExport=",whether_area_block,client_ip,port_pattern,client_port,server_port,ir_type,direction,protocol,do_log,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",whether_area_block,client_ip,port_pattern,client_port,server_port,ir_type,direction,protocol,do_log,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.basics.PolicyGroupInfo;
|
import com.nis.domain.basics.PolicyGroupInfo;
|
||||||
import com.nis.domain.configuration.AppSslCertCfg;
|
import com.nis.domain.configuration.AppSslCertCfg;
|
||||||
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.DnsResStrategy;
|
import com.nis.domain.configuration.DnsResStrategy;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
import com.nis.domain.specific.SpecificServiceCfg;
|
import com.nis.domain.specific.SpecificServiceCfg;
|
||||||
@@ -184,29 +185,27 @@ public class DnsResStrategyController extends BaseController {
|
|||||||
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
List<DnsResStrategy> ipLists=new ArrayList<DnsResStrategy>();
|
||||||
|
//导出选中记录
|
||||||
/*//导出选中记录
|
if(!StringUtil.isEmpty(ids)){
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
ipLists=dnsResStrategyService.findByPage(ids);
|
||||||
for(String id:ids.split(",")){
|
}else{
|
||||||
Long.parseLong(id);
|
Page<DnsResStrategy> pageInfo=new Page<DnsResStrategy>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<DnsResStrategy> page = dnsResStrategyService.findPage(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
for (int i = 0; i < ipLists.size(); i++) {
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
ipLists.get(i).setMiTtlmax(String.valueOf(ipLists.get(i).getMinTtl())+"-"+String.valueOf(ipLists.get(i).getMaxTtl()));
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
ipLists.get(i).setDnsId( String.valueOf(ipLists.get(i).getCfgId()));
|
||||||
Page<DnsResStrategy> pageInfo=new Page<DnsResStrategy>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<DnsResStrategy> page = dnsResStrategyService.findPage(pageInfo, entity);
|
|
||||||
for (int i = 0; i < page.getList().size(); i++) {
|
|
||||||
page.getList().get(i).setMiTtlmax(String.valueOf(page.getList().get(i).getMinTtl())+"-"+String.valueOf(page.getList().get(i).getMaxTtl()));
|
|
||||||
}
|
}
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
classMap.put(entity.getMenuNameCode(), DnsResStrategy.class);
|
classMap.put(entity.getMenuNameCode(), DnsResStrategy.class);
|
||||||
String cfgIndexInfoNoExport=",valid_identifier,do_log,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",cfg_id,valid_identifier,do_log,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(),ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -148,7 +148,18 @@ public class DdosCfgController extends BaseController {
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<DdosIpCfg> ipLists=new ArrayList<DdosIpCfg>();
|
||||||
|
//导出选中记录
|
||||||
|
if(!StringUtil.isEmpty(ids)){
|
||||||
|
ipLists=ddosCfgService.findByPage(ids);
|
||||||
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<DdosIpCfg> pageInfo=new Page<DdosIpCfg>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<DdosIpCfg> page = ddosCfgService.findPage(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
|
}
|
||||||
/*//导出选中记录
|
/*//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
* if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
for(String id:ids.split(",")){
|
||||||
@@ -157,16 +168,12 @@ public class DdosCfgController extends BaseController {
|
|||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
||||||
}else{*/
|
}else{*/
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
//条件导出数据大于最大导出数,只导出最大导出条数
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<DdosIpCfg> pageInfo=new Page<DdosIpCfg>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<DdosIpCfg> page = ddosCfgService.findPage(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
classMap.put(entity.getMenuNameCode(), DdosIpCfg.class);
|
classMap.put(entity.getMenuNameCode(), DdosIpCfg.class);
|
||||||
String cfgIndexInfoNoExport=",do_log,client_ip,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",do_log,client_ip,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -968,29 +968,27 @@ public class AvContentController extends BaseController {
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
if(entity.getIpPort()== null){
|
||||||
|
entity.setIpPort(new IpPortCfg());
|
||||||
|
}
|
||||||
|
if(entity.getAvContUrlCfgList()== null){
|
||||||
|
entity.setAvContUrlCfg(new AvContUrlCfg());;
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfg()==null){
|
||||||
|
entity.setNtcSubscribeIdCfg(new NtcSubscribeIdCfg());
|
||||||
|
}
|
||||||
|
Page<CfgIndexInfo> page = avContentCfgService.findPage(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
if(entity.getIpPort()== null){
|
|
||||||
entity.setIpPort(new IpPortCfg());
|
|
||||||
}
|
|
||||||
if(entity.getAvContUrlCfgList()== null){
|
|
||||||
entity.setAvContUrlCfg(new AvContUrlCfg());;
|
|
||||||
}
|
|
||||||
if(entity.getNtcSubscribeIdCfg()==null){
|
|
||||||
entity.setNtcSubscribeIdCfg(new NtcSubscribeIdCfg());
|
|
||||||
}
|
|
||||||
Page<CfgIndexInfo> page = avContentCfgService.findPage(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_UNIVERSAL_IP");
|
titleList.add("NTC_UNIVERSAL_IP");
|
||||||
titleList.add("NTC_STREAMING_MEDIA_URL");
|
titleList.add("NTC_STREAMING_MEDIA_URL");
|
||||||
@@ -1021,7 +1019,7 @@ public class AvContentController extends BaseController {
|
|||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
List<BaseStringCfg> streamurlList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> streamurlList=new ArrayList<BaseStringCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=avContentCfgService.exportstream(cfg);
|
Map<String, List> maps=avContentCfgService.exportstream(cfg);
|
||||||
ipList.addAll(maps.get("NTC_UNIVERSAL_IP"));
|
ipList.addAll(maps.get("NTC_UNIVERSAL_IP"));
|
||||||
streamurlList.addAll(maps.get("NTC_STREAMING_MEDIA_URL"));
|
streamurlList.addAll(maps.get("NTC_STREAMING_MEDIA_URL"));
|
||||||
@@ -1029,7 +1027,7 @@ public class AvContentController extends BaseController {
|
|||||||
}
|
}
|
||||||
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
streamurlList=BaseStringCfg.replaceBaseKeyList(streamurlList);
|
streamurlList=BaseStringCfg.replaceBaseKeyList(streamurlList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_UNIVERSAL_IP", ipList);
|
dataMap.put("NTC_UNIVERSAL_IP", ipList);
|
||||||
dataMap.put("NTC_STREAMING_MEDIA_URL", streamurlList);
|
dataMap.put("NTC_STREAMING_MEDIA_URL", streamurlList);
|
||||||
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
||||||
@@ -1054,28 +1052,28 @@ public class AvContentController extends BaseController {
|
|||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
/*//导出选中记录
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
if(entity.getIpPort()== null){
|
||||||
|
entity.setIpPort(new IpPortCfg());
|
||||||
|
}
|
||||||
|
if(entity.getVoipAccount()== null){
|
||||||
|
entity.setVoipAccount(new AvVoipAccountCfg());
|
||||||
|
}
|
||||||
|
if(entity.getNtcSubscribeIdCfg()==null){
|
||||||
|
entity.setNtcSubscribeIdCfg(new NtcSubscribeIdCfg());
|
||||||
|
}
|
||||||
|
Page<CfgIndexInfo> page = avContentCfgService.findPage(new Page<CfgIndexInfo>(request, response,"r"), entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
if(entity.getIpPort()== null){
|
|
||||||
entity.setIpPort(new IpPortCfg());
|
|
||||||
}
|
|
||||||
if(entity.getVoipAccount()== null){
|
|
||||||
entity.setVoipAccount(new AvVoipAccountCfg());
|
|
||||||
}
|
|
||||||
if(entity.getNtcSubscribeIdCfg()==null){
|
|
||||||
entity.setNtcSubscribeIdCfg(new NtcSubscribeIdCfg());
|
|
||||||
}
|
|
||||||
Page<CfgIndexInfo> page = avContentCfgService.findPage(new Page<CfgIndexInfo>(request, response,"r"), entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_UNIVERSAL_IP");
|
titleList.add("NTC_UNIVERSAL_IP");
|
||||||
titleList.add("NTC_VOIP_ACCOUNT");
|
titleList.add("NTC_VOIP_ACCOUNT");
|
||||||
@@ -1106,7 +1104,7 @@ public class AvContentController extends BaseController {
|
|||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
List<BaseStringCfg> countlList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> countlList=new ArrayList<BaseStringCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=avContentCfgService.exportvoip(cfg);
|
Map<String, List> maps=avContentCfgService.exportvoip(cfg);
|
||||||
ipList.addAll(maps.get("NTC_UNIVERSAL_IP"));
|
ipList.addAll(maps.get("NTC_UNIVERSAL_IP"));
|
||||||
countlList.addAll(maps.get("NTC_VOIP_ACCOUNT"));
|
countlList.addAll(maps.get("NTC_VOIP_ACCOUNT"));
|
||||||
@@ -1114,7 +1112,7 @@ public class AvContentController extends BaseController {
|
|||||||
}
|
}
|
||||||
countlList=BaseStringCfg.replaceBaseKeyList(countlList);
|
countlList=BaseStringCfg.replaceBaseKeyList(countlList);
|
||||||
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(),ipLists);
|
||||||
dataMap.put("NTC_UNIVERSAL_IP", ipList);
|
dataMap.put("NTC_UNIVERSAL_IP", ipList);
|
||||||
dataMap.put("NTC_VOIP_ACCOUNT", countlList);
|
dataMap.put("NTC_VOIP_ACCOUNT", countlList);
|
||||||
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
||||||
|
|||||||
@@ -195,19 +195,18 @@ public class BgpCfgController extends BaseController{
|
|||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
/*//导出选中记录
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = bgpCfgService.getBgpList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = bgpCfgService.getBgpList(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_IP");
|
titleList.add("NTC_IP");
|
||||||
titleList.add("NTC_BGP_AS");
|
titleList.add("NTC_BGP_AS");
|
||||||
@@ -236,7 +235,7 @@ public class BgpCfgController extends BaseController{
|
|||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
// List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
// List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
List<BaseStringCfg> asInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> asInfoList=new ArrayList<BaseStringCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
CfgIndexInfo cfgIndexInfo=bgpCfgService.exportbgp(cfg);
|
CfgIndexInfo cfgIndexInfo=bgpCfgService.exportbgp(cfg);
|
||||||
ipList.addAll(cfgIndexInfo.getIpPortList());
|
ipList.addAll(cfgIndexInfo.getIpPortList());
|
||||||
// subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
// subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
||||||
@@ -244,7 +243,7 @@ public class BgpCfgController extends BaseController{
|
|||||||
}
|
}
|
||||||
asInfoList=BaseStringCfg.replaceBaseKeyList(asInfoList);
|
asInfoList=BaseStringCfg.replaceBaseKeyList(asInfoList);
|
||||||
// subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
// subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_IP", ipList);
|
dataMap.put("NTC_IP", ipList);
|
||||||
dataMap.put("NTC_BGP_AS", asInfoList);
|
dataMap.put("NTC_BGP_AS", asInfoList);
|
||||||
// dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
// dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
||||||
|
|||||||
@@ -617,20 +617,19 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = fileTransferCfgService.getFtpList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = fileTransferCfgService.getFtpList(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_UNIVERSAL_IP");
|
titleList.add("NTC_UNIVERSAL_IP");
|
||||||
titleList.add("NTC_FTP_URL");
|
titleList.add("NTC_FTP_URL");
|
||||||
@@ -665,7 +664,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
List<BaseStringCfg> ftpkeyList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> ftpkeyList=new ArrayList<BaseStringCfg>();
|
||||||
List<BaseStringCfg> ftpurlList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> ftpurlList=new ArrayList<BaseStringCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=fileTransferCfgService.exportftp(cfg);
|
Map<String, List> maps=fileTransferCfgService.exportftp(cfg);
|
||||||
ftpkeyList.addAll(maps.get("NTC_FTP_CONTENT"));
|
ftpkeyList.addAll(maps.get("NTC_FTP_CONTENT"));
|
||||||
ftpurlList.addAll(maps.get("NTC_FTP_URL"));
|
ftpurlList.addAll(maps.get("NTC_FTP_URL"));
|
||||||
@@ -675,7 +674,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
ftpkeyList=BaseStringCfg.replaceBaseKeyList(ftpkeyList);
|
ftpkeyList=BaseStringCfg.replaceBaseKeyList(ftpkeyList);
|
||||||
ftpurlList=BaseStringCfg.replaceBaseKeyList(ftpurlList);
|
ftpurlList=BaseStringCfg.replaceBaseKeyList(ftpurlList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_UNIVERSAL_IP", ipList);
|
dataMap.put("NTC_UNIVERSAL_IP", ipList);
|
||||||
dataMap.put("NTC_FTP_URL", ftpurlList);
|
dataMap.put("NTC_FTP_URL", ftpurlList);
|
||||||
dataMap.put("NTC_FTP_CONTENT", ftpkeyList);
|
dataMap.put("NTC_FTP_CONTENT", ftpkeyList);
|
||||||
@@ -701,19 +700,19 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
/*//导出选中记录
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = fileTransferCfgService.getP2pList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = fileTransferCfgService.getP2pList(pageInfo, entity);
|
|
||||||
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_UNIVERSAL_IP");
|
titleList.add("NTC_UNIVERSAL_IP");
|
||||||
@@ -753,7 +752,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
List<BaseStringCfg> hashList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> hashList=new ArrayList<BaseStringCfg>();
|
||||||
List<BaseStringCfg> keywordList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> keywordList=new ArrayList<BaseStringCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=fileTransferCfgService.exportp2p(cfg);
|
Map<String, List> maps=fileTransferCfgService.exportp2p(cfg);
|
||||||
keywordList.addAll(maps.get("NTC_P2P_KEYWORDS"));
|
keywordList.addAll(maps.get("NTC_P2P_KEYWORDS"));
|
||||||
hashList.addAll(maps.get("NTC_P2P_HASH_BIN"));
|
hashList.addAll(maps.get("NTC_P2P_HASH_BIN"));
|
||||||
@@ -763,7 +762,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
keywordList=BaseStringCfg.replaceBaseKeyList(keywordList);
|
keywordList=BaseStringCfg.replaceBaseKeyList(keywordList);
|
||||||
hashList=BaseStringCfg.replaceBaseKeyList(hashList);
|
hashList=BaseStringCfg.replaceBaseKeyList(hashList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_UNIVERSAL_IP", ipList);
|
dataMap.put("NTC_UNIVERSAL_IP", ipList);
|
||||||
dataMap.put("NTC_P2P_KEYWORDS", keywordList);
|
dataMap.put("NTC_P2P_KEYWORDS", keywordList);
|
||||||
dataMap.put("NTC_P2P_HASH_BIN", hashList);
|
dataMap.put("NTC_P2P_HASH_BIN", hashList);
|
||||||
|
|||||||
@@ -435,19 +435,18 @@ public class IpController extends BaseController{
|
|||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
|
||||||
/*//导出选中记录
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = ipCfgService.getIpCfgList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = ipCfgService.getIpCfgList(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_IP");
|
titleList.add("NTC_IP");
|
||||||
titleList.add("asn_policy");
|
titleList.add("asn_policy");
|
||||||
@@ -465,7 +464,7 @@ public class IpController extends BaseController{
|
|||||||
noExportMap.put("asn_policy", asnGroupInfoNoExport);
|
noExportMap.put("asn_policy", asnGroupInfoNoExport);
|
||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<ConfigGroupInfo> groupInfoList=new ArrayList<ConfigGroupInfo>();
|
List<ConfigGroupInfo> groupInfoList=new ArrayList<ConfigGroupInfo>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
CfgIndexInfo cfgIndexInfo=ipCfgService.exportIpInfo(cfg);
|
CfgIndexInfo cfgIndexInfo=ipCfgService.exportIpInfo(cfg);
|
||||||
ipList.addAll(cfgIndexInfo.getIpPortList());
|
ipList.addAll(cfgIndexInfo.getIpPortList());
|
||||||
if(!StringUtil.isEmpty(cfgIndexInfo.getAsnIpGroupName())){
|
if(!StringUtil.isEmpty(cfgIndexInfo.getAsnIpGroupName())){
|
||||||
@@ -475,7 +474,7 @@ public class IpController extends BaseController{
|
|||||||
groupInfoList.add(group);
|
groupInfoList.add(group);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_IP", ipList);
|
dataMap.put("NTC_IP", ipList);
|
||||||
dataMap.put("asn_policy", groupInfoList);
|
dataMap.put("asn_policy", groupInfoList);
|
||||||
|
|
||||||
|
|||||||
@@ -234,20 +234,19 @@ public class MailCfgController extends BaseController{
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = mailCfgService.getMailList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = mailCfgService.getMailList(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
String cfgIndexInfoNoExport=",policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
String ipPortInfoNoExport=",do_log,action,config_describe,valid_identifier,is_audit,creator,creator"
|
String ipPortInfoNoExport=",do_log,action,config_describe,valid_identifier,is_audit,creator,creator"
|
||||||
@@ -287,7 +286,7 @@ public class MailCfgController extends BaseController{
|
|||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
List<ComplexkeywordCfg> mailBodyList=new ArrayList<ComplexkeywordCfg>();
|
List<ComplexkeywordCfg> mailBodyList=new ArrayList<ComplexkeywordCfg>();
|
||||||
List<ComplexkeywordCfg> mailReqHdrList=new ArrayList<ComplexkeywordCfg>();
|
List<ComplexkeywordCfg> mailReqHdrList=new ArrayList<ComplexkeywordCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=mailCfgService.exportmail(cfg);
|
Map<String, List> maps=mailCfgService.exportmail(cfg);
|
||||||
mailReqHdrList.addAll(maps.get("NTC_MAIL_HDR"));
|
mailReqHdrList.addAll(maps.get("NTC_MAIL_HDR"));
|
||||||
mailBodyList.addAll(maps.get("NTC_MAIL_BODY"));
|
mailBodyList.addAll(maps.get("NTC_MAIL_BODY"));
|
||||||
@@ -304,7 +303,7 @@ public class MailCfgController extends BaseController{
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_MAIL_HDR", mailReqHdrList);
|
dataMap.put("NTC_MAIL_HDR", mailReqHdrList);
|
||||||
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
||||||
/*}*/
|
/*}*/
|
||||||
|
|||||||
@@ -638,18 +638,19 @@ public class WebsiteController extends BaseController{
|
|||||||
|
|
||||||
List<FunctionRegionDict> regionList = DictUtils.getFunctionRegionDictList(entity.getFunctionId());
|
List<FunctionRegionDict> regionList = DictUtils.getFunctionRegionDictList(entity.getFunctionId());
|
||||||
|
|
||||||
/*//导出选中记录
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
|
}else{
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = httpRedirectCfgService.getHttpRedirectList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
//条件导出数据大于最大导出数,只导出最大导出条数
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = httpRedirectCfgService.getHttpRedirectList(pageInfo, entity);
|
|
||||||
String cfgIndexInfoNoExport=",policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
String httpUrlCfgNoExport=",do_log,action,config_describe,valid_identifier,is_audit,creator,creator"
|
String httpUrlCfgNoExport=",do_log,action,config_describe,valid_identifier,is_audit,creator,creator"
|
||||||
+ ",config_time,editor,edit_time,auditor,audit_time"
|
+ ",config_time,editor,edit_time,auditor,audit_time"
|
||||||
@@ -686,7 +687,7 @@ public class WebsiteController extends BaseController{
|
|||||||
List<BaseStringCfg> httpResBodyList = new ArrayList<>();
|
List<BaseStringCfg> httpResBodyList = new ArrayList<>();
|
||||||
List<IpPortCfg> ipPortList = new ArrayList<>();
|
List<IpPortCfg> ipPortList = new ArrayList<>();
|
||||||
List<BaseStringCfg> subscribeIdList = new ArrayList<>();
|
List<BaseStringCfg> subscribeIdList = new ArrayList<>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=websiteCfgService.exportHttpCfg(cfg);
|
Map<String, List> maps=websiteCfgService.exportHttpCfg(cfg);
|
||||||
httpUrlList.addAll(maps.get("NTC_HTTP_URL"));
|
httpUrlList.addAll(maps.get("NTC_HTTP_URL"));
|
||||||
httpReqHdrList.addAll(maps.get("NTC_HTTP_REQ_HDR"));
|
httpReqHdrList.addAll(maps.get("NTC_HTTP_REQ_HDR"));
|
||||||
@@ -705,7 +706,7 @@ public class WebsiteController extends BaseController{
|
|||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
classMap.put(entity.getMenuNameCode(), CfgIndexInfo.class);
|
classMap.put(entity.getMenuNameCode(), CfgIndexInfo.class);
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(),ipLists);
|
||||||
|
|
||||||
if(entity.getFunctionId()!=635){
|
if(entity.getFunctionId()!=635){
|
||||||
titleList.add("NTC_HTTP_URL");
|
titleList.add("NTC_HTTP_URL");
|
||||||
@@ -759,36 +760,35 @@ public class WebsiteController extends BaseController{
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = websiteCfgService.getWebsiteList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
for (int i = 0; i < ipLists.size(); i++) {
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = websiteCfgService.getWebsiteList(pageInfo, entity);
|
|
||||||
for (int i = 0; i < page.getList().size(); i++) {
|
|
||||||
Properties msgProp = getMsgProp();
|
Properties msgProp = getMsgProp();
|
||||||
if(page.getList().get(i).getDnsStrategyId()!=null && page.getList().get(i).getDnsStrategyId()!=0){
|
if(ipLists.get(i).getDnsStrategyId()!=null && ipLists.get(i).getDnsStrategyId()!=0){
|
||||||
List<DnsResStrategy> resStrategys=dnsResStrategyService.findDnsResStrategys(page.getList().get(i).getDnsStrategyId(), 1,1);
|
List<DnsResStrategy> resStrategys=dnsResStrategyService.findDnsResStrategys(ipLists.get(i).getDnsStrategyId(), 1,1);
|
||||||
if(resStrategys!=null && resStrategys.size()>0){
|
if(resStrategys!=null && resStrategys.size()>0){
|
||||||
String msg= msgProp.getProperty(resStrategys.get(0).getCfgDesc());
|
String msg= msgProp.getProperty(resStrategys.get(0).getCfgDesc());
|
||||||
if(!StringUtil.isEmpty(msg)){
|
if(!StringUtil.isEmpty(msg)){
|
||||||
page.getList().get(i).setDnsStrategyName(msg);
|
ipLists.get(i).setDnsStrategyName(msg);
|
||||||
}else{
|
}else{
|
||||||
page.getList().get(i).setDnsStrategyName(resStrategys.get(0).getCfgDesc());
|
ipLists.get(i).setDnsStrategyName(resStrategys.get(0).getCfgDesc());
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
page.getList().get(i).setDnsStrategyName(msgProp.getProperty("no_strategy"));
|
ipLists.get(i).setDnsStrategyName(msgProp.getProperty("no_strategy"));
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
page.getList().get(i).setDnsStrategyName(msgProp.getProperty("no_strategy"));
|
ipLists.get(i).setDnsStrategyName(msgProp.getProperty("no_strategy"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
@@ -819,7 +819,7 @@ public class WebsiteController extends BaseController{
|
|||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeInfoList=new ArrayList<BaseStringCfg>();
|
||||||
List<ComplexkeywordCfg> regionInfoList=new ArrayList<ComplexkeywordCfg>();
|
List<ComplexkeywordCfg> regionInfoList=new ArrayList<ComplexkeywordCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
CfgIndexInfo cfgIndexInfo=websiteCfgService.exportdns(cfg);
|
CfgIndexInfo cfgIndexInfo=websiteCfgService.exportdns(cfg);
|
||||||
ipList.addAll(cfgIndexInfo.getIpPortList());
|
ipList.addAll(cfgIndexInfo.getIpPortList());
|
||||||
subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
subscribeInfoList.addAll(cfgIndexInfo.getNtcSubscribeIdCfgList());
|
||||||
@@ -827,7 +827,7 @@ public class WebsiteController extends BaseController{
|
|||||||
}
|
}
|
||||||
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
subscribeInfoList=BaseStringCfg.baseHexList(subscribeInfoList);
|
||||||
regionInfoList=ComplexkeywordCfg.replaceComplexKeyList(regionInfoList);
|
regionInfoList=ComplexkeywordCfg.replaceComplexKeyList(regionInfoList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(),ipLists);
|
||||||
dataMap.put("NTC_IP", ipList);
|
dataMap.put("NTC_IP", ipList);
|
||||||
dataMap.put("NTC_DNS_REGION", regionInfoList);
|
dataMap.put("NTC_DNS_REGION", regionInfoList);
|
||||||
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
dataMap.put("NTC_SUBSCRIBE_ID", subscribeInfoList);
|
||||||
@@ -854,18 +854,18 @@ public class WebsiteController extends BaseController{
|
|||||||
|
|
||||||
List<FunctionRegionDict> regionList = DictUtils.getFunctionRegionDictList(entity.getFunctionId());
|
List<FunctionRegionDict> regionList = DictUtils.getFunctionRegionDictList(entity.getFunctionId());
|
||||||
|
|
||||||
/*//导出选中记录
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
|
}else{
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = websiteCfgService.getWebsiteList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = websiteCfgService.getWebsiteList(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_UNIVERSAL_IP");
|
titleList.add("NTC_UNIVERSAL_IP");
|
||||||
titleList.add("NTC_SSL_SNI");
|
titleList.add("NTC_SSL_SNI");
|
||||||
@@ -903,7 +903,7 @@ public class WebsiteController extends BaseController{
|
|||||||
List<BaseStringCfg> sslCnList = new ArrayList<>();
|
List<BaseStringCfg> sslCnList = new ArrayList<>();
|
||||||
List<IpPortCfg> ipPortList = new ArrayList<>();
|
List<IpPortCfg> ipPortList = new ArrayList<>();
|
||||||
List<BaseStringCfg> subscribeIdList = new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> subscribeIdList = new ArrayList<BaseStringCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=websiteCfgService.exportssl(cfg);
|
Map<String, List> maps=websiteCfgService.exportssl(cfg);
|
||||||
sslSniList.addAll(maps.get("NTC_SSL_SNI"));
|
sslSniList.addAll(maps.get("NTC_SSL_SNI"));
|
||||||
sslSnaList.addAll(maps.get("NTC_SSL_SAN"));
|
sslSnaList.addAll(maps.get("NTC_SSL_SAN"));
|
||||||
@@ -915,7 +915,7 @@ public class WebsiteController extends BaseController{
|
|||||||
sslSnaList=BaseStringCfg.replaceBaseKeyList(sslSnaList);
|
sslSnaList=BaseStringCfg.replaceBaseKeyList(sslSnaList);
|
||||||
sslCnList=BaseStringCfg.replaceBaseKeyList(sslCnList);
|
sslCnList=BaseStringCfg.replaceBaseKeyList(sslCnList);
|
||||||
subscribeIdList=BaseStringCfg.baseHexList(subscribeIdList);
|
subscribeIdList=BaseStringCfg.baseHexList(subscribeIdList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_UNIVERSAL_IP", ipPortList);
|
dataMap.put("NTC_UNIVERSAL_IP", ipPortList);
|
||||||
dataMap.put("NTC_SSL_SNI", sslSniList);
|
dataMap.put("NTC_SSL_SNI", sslSniList);
|
||||||
dataMap.put("NTC_SSL_SAN", sslSnaList);
|
dataMap.put("NTC_SSL_SAN", sslSnaList);
|
||||||
|
|||||||
@@ -343,20 +343,18 @@ public class WhiteListController extends CommonController{
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = ipCfgService.getIpCfgList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = ipCfgService.getIpCfgList(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_IP");
|
titleList.add("NTC_IP");
|
||||||
classMap.put(entity.getMenuNameCode(), CfgIndexInfo.class);
|
classMap.put(entity.getMenuNameCode(), CfgIndexInfo.class);
|
||||||
@@ -369,11 +367,11 @@ public class WhiteListController extends CommonController{
|
|||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
noExportMap.put("NTC_IP", ipPortInfoNoExport);
|
noExportMap.put("NTC_IP", ipPortInfoNoExport);
|
||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg :ipLists) {
|
||||||
CfgIndexInfo cfgIndexInfo=ipCfgService.exportIpInfo(cfg);
|
CfgIndexInfo cfgIndexInfo=ipCfgService.exportIpInfo(cfg);
|
||||||
ipList.addAll(cfgIndexInfo.getIpPortList());
|
ipList.addAll(cfgIndexInfo.getIpPortList());
|
||||||
}
|
}
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_IP", ipList);
|
dataMap.put("NTC_IP", ipList);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
@@ -394,20 +392,19 @@ public class WhiteListController extends CommonController{
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = domainService.getDomainList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = domainService.getDomainList(pageInfo, entity);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
titleList.add("NTC_HTTP_URL");
|
titleList.add("NTC_HTTP_URL");
|
||||||
classMap.put(entity.getMenuNameCode(), CfgIndexInfo.class);
|
classMap.put(entity.getMenuNameCode(), CfgIndexInfo.class);
|
||||||
@@ -420,12 +417,12 @@ public class WhiteListController extends CommonController{
|
|||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
noExportMap.put("NTC_HTTP_URL", httpUrlInfoNoExport);
|
noExportMap.put("NTC_HTTP_URL", httpUrlInfoNoExport);
|
||||||
List<BaseStringCfg> httpurlList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> httpurlList=new ArrayList<BaseStringCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
CfgIndexInfo cfgIndexInfo=domainService.exportDomainInfo(cfg);
|
CfgIndexInfo cfgIndexInfo=domainService.exportDomainInfo(cfg);
|
||||||
httpurlList.addAll(cfgIndexInfo.getHttpUrlList());
|
httpurlList.addAll(cfgIndexInfo.getHttpUrlList());
|
||||||
}
|
}
|
||||||
httpurlList=BaseStringCfg.replaceBaseKeyList(httpurlList);
|
httpurlList=BaseStringCfg.replaceBaseKeyList(httpurlList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_HTTP_URL", httpurlList);
|
dataMap.put("NTC_HTTP_URL", httpurlList);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
|
|||||||
@@ -292,21 +292,20 @@ public class HttpRedirectPolicyController extends BaseController{
|
|||||||
|
|
||||||
List<FunctionRegionDict> regionList = DictUtils.getFunctionRegionDictList(entity.getFunctionId());
|
List<FunctionRegionDict> regionList = DictUtils.getFunctionRegionDictList(entity.getFunctionId());
|
||||||
|
|
||||||
/*//导出选中记录
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
if(!StringUtil.isEmpty(ids)){
|
//导出选中记录
|
||||||
for(String id:ids.split(",")){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
Long.parseLong(id);
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
|
}else{
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = httpRedirectCfgService.getHttpRedirectList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
|
|
||||||
Page<CfgIndexInfo> page = httpRedirectCfgService.getHttpRedirectList(pageInfo, entity);
|
|
||||||
Properties prop = getMsgProp();
|
Properties prop = getMsgProp();
|
||||||
for (CfgIndexInfo str : page.getList()) {
|
for (CfgIndexInfo str :ipLists) {
|
||||||
if(entity.getFunctionId()!=210 && entity.getFunctionId()!=211){
|
if(entity.getFunctionId()!=210 && entity.getFunctionId()!=211){
|
||||||
String type="RESPONSE_CODE";
|
String type="RESPONSE_CODE";
|
||||||
if(entity.getFunctionId()==207){
|
if(entity.getFunctionId()==207){
|
||||||
@@ -377,7 +376,7 @@ public class HttpRedirectPolicyController extends BaseController{
|
|||||||
List<BaseStringCfg> httpResBodyList = new ArrayList<>();
|
List<BaseStringCfg> httpResBodyList = new ArrayList<>();
|
||||||
List<IpPortCfg> ipPortList = new ArrayList<>();
|
List<IpPortCfg> ipPortList = new ArrayList<>();
|
||||||
List<BaseStringCfg> subscribeIdList = new ArrayList<>();
|
List<BaseStringCfg> subscribeIdList = new ArrayList<>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=httpRedirectCfgService.exportHttpCfg(cfg);
|
Map<String, List> maps=httpRedirectCfgService.exportHttpCfg(cfg);
|
||||||
httpUrlList.addAll(maps.get("NTC_HTTP_URL"));
|
httpUrlList.addAll(maps.get("NTC_HTTP_URL"));
|
||||||
httpReqHdrList.addAll(maps.get("NTC_HTTP_REQ_HDR"));
|
httpReqHdrList.addAll(maps.get("NTC_HTTP_REQ_HDR"));
|
||||||
@@ -402,7 +401,7 @@ public class HttpRedirectPolicyController extends BaseController{
|
|||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
noExportMap.put("NTC_HTTP_URL", httpUrlCfgNoExport);
|
noExportMap.put("NTC_HTTP_URL", httpUrlCfgNoExport);
|
||||||
noExportMap.put("NTC_HTTP_REQ_HDR", httpReqHeadCfgNoExport);
|
noExportMap.put("NTC_HTTP_REQ_HDR", httpReqHeadCfgNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
dataMap.put("NTC_HTTP_URL", httpUrlList);
|
dataMap.put("NTC_HTTP_URL", httpUrlList);
|
||||||
dataMap.put("NTC_HTTP_REQ_HDR", httpReqHdrList);
|
dataMap.put("NTC_HTTP_REQ_HDR", httpReqHdrList);
|
||||||
if(entity.getFunctionId()!=208 && entity.getFunctionId()!=211){
|
if(entity.getFunctionId()!=208 && entity.getFunctionId()!=211){
|
||||||
|
|||||||
@@ -241,21 +241,18 @@ public class InterceptController extends CommonController{
|
|||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
Map<String, String> replaceExportMap=new HashMap<String, String>();
|
Map<String, String> replaceExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<CfgIndexInfo> ipLists=new ArrayList<CfgIndexInfo>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=ipCfgService.getByIdsList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<CfgIndexInfo> page = ipCfgService.getIpCfgList(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<CfgIndexInfo> pageInfo=new Page<CfgIndexInfo>(request, response,"a");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<CfgIndexInfo> page = ipCfgService.getIpCfgList(pageInfo, entity);
|
|
||||||
|
|
||||||
//获取证书信息
|
//获取证书信息
|
||||||
List<PxyObjKeyring> certificateList=new ArrayList<PxyObjKeyring>();
|
List<PxyObjKeyring> certificateList=new ArrayList<PxyObjKeyring>();
|
||||||
if(entity.getFunctionId().equals(200)){
|
if(entity.getFunctionId().equals(200)){
|
||||||
@@ -264,7 +261,7 @@ public class InterceptController extends CommonController{
|
|||||||
if(entity.getFunctionId().equals(201)){
|
if(entity.getFunctionId().equals(201)){
|
||||||
certificateList=pxyObjKeyringService.findPxyObjKeyrings(null, 1, 1, "domain");
|
certificateList=pxyObjKeyringService.findPxyObjKeyrings(null, 1, 1, "domain");
|
||||||
}
|
}
|
||||||
for (CfgIndexInfo str : page.getList()) {
|
for (CfgIndexInfo str : ipLists) {
|
||||||
if(!StringUtil.isEmpty(str.getUserRegion5())){
|
if(!StringUtil.isEmpty(str.getUserRegion5())){
|
||||||
Properties prop = getMsgProp();
|
Properties prop = getMsgProp();
|
||||||
String cs= DictUtils.getDictLabel("INTERCEPT_DOMAIN_INTENSITY", str.getUserRegion5());
|
String cs= DictUtils.getDictLabel("INTERCEPT_DOMAIN_INTENSITY", str.getUserRegion5());
|
||||||
@@ -308,7 +305,7 @@ public class InterceptController extends CommonController{
|
|||||||
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
List<IpPortCfg> ipList=new ArrayList<IpPortCfg>();
|
||||||
List<BaseStringCfg> httpUrlList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> httpUrlList=new ArrayList<BaseStringCfg>();
|
||||||
List<BaseStringCfg> pktBinList=new ArrayList<BaseStringCfg>();
|
List<BaseStringCfg> pktBinList=new ArrayList<BaseStringCfg>();
|
||||||
for (CfgIndexInfo cfg : page.getList()) {
|
for (CfgIndexInfo cfg : ipLists) {
|
||||||
Map<String, List> maps=interceptCfgService.exportIpInfo(cfg);
|
Map<String, List> maps=interceptCfgService.exportIpInfo(cfg);
|
||||||
httpUrlList.addAll(maps.get("NTC_HTTP_URL"));
|
httpUrlList.addAll(maps.get("NTC_HTTP_URL"));
|
||||||
ipList.addAll(maps.get("PXY_INTERCEPT_IP"));
|
ipList.addAll(maps.get("PXY_INTERCEPT_IP"));
|
||||||
@@ -316,7 +313,7 @@ public class InterceptController extends CommonController{
|
|||||||
}
|
}
|
||||||
pktBinList=BaseStringCfg.replaceBaseKeyList(pktBinList);
|
pktBinList=BaseStringCfg.replaceBaseKeyList(pktBinList);
|
||||||
httpUrlList=BaseStringCfg.baseHexList(httpUrlList);
|
httpUrlList=BaseStringCfg.baseHexList(httpUrlList);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
if(entity.getFunctionId()==212){ //IP Payload
|
if(entity.getFunctionId()==212){ //IP Payload
|
||||||
cfgIndexInfoNoExport=",do_log,log_total,policy_name,group_name,userregion4,userregion5,&userregion1:replace_zone-userregion2:replaced_content-userregion3:replace_content-";
|
cfgIndexInfoNoExport=",do_log,log_total,policy_name,group_name,userregion4,userregion5,&userregion1:replace_zone-userregion2:replaced_content-userregion3:replace_content-";
|
||||||
titleList.add("PXY_INTERCEPT_IP");
|
titleList.add("PXY_INTERCEPT_IP");
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.basics.PolicyGroupInfo;
|
import com.nis.domain.basics.PolicyGroupInfo;
|
||||||
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.DnsResStrategy;
|
import com.nis.domain.configuration.DnsResStrategy;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
import com.nis.domain.configuration.PxyObjKeyring;
|
import com.nis.domain.configuration.PxyObjKeyring;
|
||||||
@@ -410,29 +411,27 @@ public class PxyObjKeyringController extends BaseController {
|
|||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
|
||||||
|
List<PxyObjKeyring> ipLists=new ArrayList<PxyObjKeyring>();
|
||||||
/*//导出选中记录
|
//导出选中记录
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
for(String id:ids.split(",")){
|
ipLists=pxyObjKeyringService.findByList(ids);
|
||||||
Long.parseLong(id);
|
}else{
|
||||||
|
entity.setTableName(IpPortCfg.getTablename());
|
||||||
|
Page<PxyObjKeyring> pageInfo=new Page<PxyObjKeyring>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<PxyObjKeyring> page = pxyObjKeyringService.findPage(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
|
||||||
}else{*/
|
for (int i = 0; i <ipLists.size(); i++) {
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
ipLists.get(i).setKeyringName(ipLists.get(i).getCfgDesc());
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<PxyObjKeyring> pageInfo=new Page<PxyObjKeyring>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<PxyObjKeyring> page = pxyObjKeyringService.findPage(pageInfo, entity);
|
|
||||||
for (int i = 0; i <page.getList().size(); i++) {
|
|
||||||
page.getList().get(i).setKeyringName(page.getList().get(i).getCfgDesc());
|
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
classMap.put(entity.getMenuNameCode(), PxyObjKeyring.class);
|
classMap.put(entity.getMenuNameCode(), PxyObjKeyring.class);
|
||||||
String cfgIndexInfoNoExport=",config_describe,whether_area_block,block_type,valid_identifier,do_log,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
String cfgIndexInfoNoExport=",config_describe,whether_area_block,block_type,valid_identifier,do_log,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -452,32 +451,27 @@ public class PxyObjKeyringController extends BaseController {
|
|||||||
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
Map<String, List> dataMap=new HashMap<String, List>();
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
Map<String, String> noExportMap=new HashMap<String, String>();
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
List<PxyObjTrustedCaCert> ipLists=new ArrayList<PxyObjTrustedCaCert>();
|
||||||
|
//导出选中记录
|
||||||
/*//导出选中记录
|
if(!StringUtil.isEmpty(ids)){
|
||||||
* if(!StringUtil.isEmpty(ids)){
|
ipLists=pxyObjKeyringService.findByCertList(ids);
|
||||||
for(String id:ids.split(",")){
|
}else{
|
||||||
Long.parseLong(id);
|
Page<PxyObjTrustedCaCert> pageInfo=new Page<PxyObjTrustedCaCert>(request, response,"r");
|
||||||
|
pageInfo.setPageNo(1);
|
||||||
|
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
||||||
|
Page<PxyObjTrustedCaCert> page = pxyObjKeyringService.findTrustedCertPage(pageInfo, entity);
|
||||||
|
ipLists=page.getList();
|
||||||
}
|
}
|
||||||
//List<CfgIndexInfo> list=ipCfgService.getListByCfgIdWithName(IpPortCfg.getTablename(), entity.getFunctionId(), ids);
|
for (PxyObjTrustedCaCert cert:ipLists) {
|
||||||
}else{*/
|
|
||||||
//条件导出数据大于最大导出数,只导出最大导出条数
|
|
||||||
entity.setTableName(IpPortCfg.getTablename());
|
|
||||||
Page<PxyObjTrustedCaCert> pageInfo=new Page<PxyObjTrustedCaCert>(request, response,"r");
|
|
||||||
pageInfo.setPageNo(1);
|
|
||||||
pageInfo.setPageSize(Constants.MAX_EXPORT_SIZE);
|
|
||||||
Page<PxyObjTrustedCaCert> page = pxyObjKeyringService.findTrustedCertPage(pageInfo, entity);
|
|
||||||
for (PxyObjTrustedCaCert cert:page.getList()) {
|
|
||||||
if(!StringUtil.isEmpty(cert.getCompileId())){
|
if(!StringUtil.isEmpty(cert.getCompileId())){
|
||||||
cert.setCrlFile(ConfigDictUtils.getTrustedCrlByCerId(cert.getCompileId()));
|
cert.setCrlFile(ConfigDictUtils.getTrustedCrlByCerId(cert.getCompileId()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
|
||||||
titleList.add(entity.getMenuNameCode());
|
titleList.add(entity.getMenuNameCode());
|
||||||
classMap.put(entity.getMenuNameCode(), PxyObjTrustedCaCert.class);
|
classMap.put(entity.getMenuNameCode(), PxyObjTrustedCaCert.class);
|
||||||
String cfgIndexInfoNoExport=",whether_area_block,block_type,valid_identifier,do_log,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,&config_describe:cert_name-";
|
String cfgIndexInfoNoExport=",whether_area_block,block_type,valid_identifier,do_log,client_port,ir_type,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,&config_describe:cert_name-";
|
||||||
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
noExportMap.put(entity.getMenuNameCode(),cfgIndexInfoNoExport);
|
||||||
dataMap.put(entity.getMenuNameCode(), page.getList());
|
dataMap.put(entity.getMenuNameCode(), ipLists);
|
||||||
/*}*/
|
/*}*/
|
||||||
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
this._export(model, request, response, redirectAttributes,entity.getMenuNameCode(),titleList,classMap,dataMap,noExportMap);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
package com.nis.web.controller.dashboard;
|
package com.nis.web.controller.dashboard;
|
||||||
|
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.Comparator;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -35,10 +38,13 @@ import com.google.gson.JsonParseException;
|
|||||||
import com.google.gson.LongSerializationPolicy;
|
import com.google.gson.LongSerializationPolicy;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysDataDictionaryItem;
|
||||||
|
import com.nis.domain.configuration.WebsiteDomainTopic;
|
||||||
import com.nis.domain.dashboard.TrafficIpActiveStatistic;
|
import com.nis.domain.dashboard.TrafficIpActiveStatistic;
|
||||||
import com.nis.util.CodeDicUtils;
|
import com.nis.util.CodeDicUtils;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DateUtil;
|
import com.nis.util.DateUtil;
|
||||||
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.StringUtil;
|
import com.nis.util.StringUtil;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
@@ -382,4 +388,100 @@ public class TrafficStatisticsInfoController extends BaseController {
|
|||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 网址类型列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("webTypeList")
|
||||||
|
public String webTypeList(Model model){
|
||||||
|
Calendar cal = Calendar. getInstance ();
|
||||||
|
cal.setTime(new Date());
|
||||||
|
String now = new SimpleDateFormat( "yyyy-MM-dd HH:mm:00" ).format(cal.getTime());//获取到完整的时间
|
||||||
|
cal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 1);
|
||||||
|
String oneHoursAgo = new SimpleDateFormat( "yyyy-MM-dd HH:mm:00" ).format(cal.getTime());
|
||||||
|
model.addAttribute("beginDate", oneHoursAgo);
|
||||||
|
model.addAttribute("endDate", now);
|
||||||
|
return "/dashboard/trafficWebTypeList";
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 网站统计图跟表
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="websiteList")
|
||||||
|
@ResponseBody
|
||||||
|
public List websiteList(Model model,@RequestParam(required=false)String beginDate,@RequestParam(required=false)String endDate){
|
||||||
|
Map<String, Object> fromJsonList = new HashMap<String, Object>();
|
||||||
|
List list = new ArrayList();
|
||||||
|
String url = Constants.DASHBOARD_URL+Constants.TRAFFIC_WEBSITELIST;
|
||||||
|
// String url = "http://192.168.11.87:8088/galaxy-service/service/log/v1/"+Constants.TRAFFIC_WEBSITELIST;
|
||||||
|
try {
|
||||||
|
url=urlAddDate(url,beginDate,endDate);
|
||||||
|
String string = HttpClientUtil.get(url);
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
|
||||||
|
logger.debug("website接口数据"+fromJsonList);
|
||||||
|
list = (ArrayList) fromJsonList.get("data");
|
||||||
|
BigDecimal divisor=new BigDecimal(1024*1024*1024);
|
||||||
|
DecimalFormat df = new DecimalFormat("0.00");
|
||||||
|
DecimalFormat dl = new DecimalFormat("0");
|
||||||
|
DecimalFormat pf = new DecimalFormat("0.00%");
|
||||||
|
Double totalLink=0d;
|
||||||
|
Double totalGbyte=0d;
|
||||||
|
Double totalPackets=0d;
|
||||||
|
for (Object object : list) {
|
||||||
|
Map m=(Map)object;
|
||||||
|
Double count=(Double)m.get("count");
|
||||||
|
totalGbyte+=count;
|
||||||
|
totalLink+=(Double)m.get("linkNum");
|
||||||
|
totalPackets+=(Double)m.get("packets");
|
||||||
|
String format = df.format(count/1024/1024/1024);
|
||||||
|
m.put("Gbyte", format);
|
||||||
|
}
|
||||||
|
List<WebsiteDomainTopic> codeList = appCfgService.getDomainDict(new WebsiteDomainTopic());
|
||||||
|
Map<Long, String> map = new HashMap<Long,String>();
|
||||||
|
for (WebsiteDomainTopic websiteDomainTopic : codeList) {
|
||||||
|
if(!map.containsKey(websiteDomainTopic.getWebsiteServiceId())){
|
||||||
|
map.put(websiteDomainTopic.getId(),websiteDomainTopic.getDomain());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (Object object : list) {
|
||||||
|
Map m=(Map)object;
|
||||||
|
Double perLink = ((Double)m.get("linkNum"))/totalLink;
|
||||||
|
m.put("perLink",pf.format(perLink));
|
||||||
|
Double perPackets = ((Double)m.get("packets"))/totalPackets;
|
||||||
|
m.put("perPackets", pf.format(perPackets));
|
||||||
|
Double perGbyte = ((Double)m.get("count"))/totalGbyte;
|
||||||
|
m.put("perGbyte", pf.format(perGbyte));
|
||||||
|
if(map.containsKey(Long.parseLong(dl.format(m.get("webId"))))){
|
||||||
|
m.put("website", map.get(Long.parseLong(dl.format(m.get("webId")))));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Collections.sort(list, new Comparator<Object>() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int compare(Object o1, Object o2) {
|
||||||
|
if(o1==null&&o2!=null){
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if(o1!=null&&o2==null){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if(o1==null&&o2==null){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
Map m1=(Map)o1;
|
||||||
|
Map m2=(Map)o2;
|
||||||
|
if((Double)m1.get("count")==(Double)m2.get("count")){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
int result=((Double)m1.get("count")-(Double)m2.get("count"))>0?-1:1;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.error("网站域名数据获取错误"+e);
|
||||||
|
list.add(Maps.newHashMap("error","request_service_failed"));
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,23 @@
|
|||||||
package com.nis.web.controller.log.manipulation;
|
package com.nis.web.controller.log.manipulation;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.http.client.ClientProtocolException;
|
import org.apache.http.client.ClientProtocolException;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -21,8 +25,8 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.DkBehaviorLog;
|
import com.nis.domain.log.DkBehaviorLog;
|
||||||
import com.nis.domain.log.NtcHttpLog;
|
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.CodeDicUtils;
|
import com.nis.util.CodeDicUtils;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
@@ -31,6 +35,7 @@ import com.nis.util.StringUtil;
|
|||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
import com.nis.web.dao.dashboard.codedic.CodeResult;
|
import com.nis.web.dao.dashboard.codedic.CodeResult;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/manipulation/dkbehaviorLogs")
|
@RequestMapping(value = "${adminPath}/log/manipulation/dkbehaviorLogs")
|
||||||
@@ -101,5 +106,110 @@ public class DkBehaviorLogController extends BaseController{
|
|||||||
return "/log/manipulation/dkBehaviorList";
|
return "/log/manipulation/dkBehaviorList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Stream配置导出
|
||||||
|
@RequestMapping(value = "exportStream")
|
||||||
|
public void exportStream(@ModelAttribute("log") DkBehaviorLog entry, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
String name= "Stream";
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<DkBehaviorLog> page = new PageLog<DkBehaviorLog>(request, response);
|
||||||
|
Map<String, Object> params=new HashMap<>();
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
if(StringUtil.isEmpty(entry.getAction())){
|
||||||
|
for(int i=0;i<serviceList.size();i++){
|
||||||
|
if(serviceList.get(i).getServiceId()!=32 && serviceList.get(i).getServiceId()!=128){
|
||||||
|
entry.setAction(serviceList.get(i).getAction());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
//查询值判断
|
||||||
|
initLogSearchValue(entry,params);
|
||||||
|
|
||||||
|
//获取字典信息
|
||||||
|
List<CodeResult> protocolList=CodeDicUtils.getCodeList("protocolCode");
|
||||||
|
List<CodeResult> behaviorList=CodeDicUtils.getCodeList("behaviorCode");
|
||||||
|
List<CodeResult> appList=CodeDicUtils.getCodeList("appCode");
|
||||||
|
String url = "";
|
||||||
|
url = Constants.LOG_BASE_URL+Constants.NTC_DKBEHAVIOR_LOG;
|
||||||
|
String jsonString = HttpClientUtil.getMsg(url,params,request);
|
||||||
|
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
//gson泛型支持
|
||||||
|
LogRecvData<DkBehaviorLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<DkBehaviorLog>>(){}.getType());
|
||||||
|
List<DkBehaviorLog> list=new ArrayList<DkBehaviorLog>();
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<DkBehaviorLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
for (DkBehaviorLog l : list) {
|
||||||
|
l.setFunctionId(entry.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
if(l.getLabelProtoId()!=null){
|
||||||
|
l.setLabelProtoName(getName(l.getLabelProtoId(),protocolList));
|
||||||
|
}
|
||||||
|
if(l.getLabelBehavId()!=null){
|
||||||
|
l.setLabelBehavName(getName(l.getLabelBehavId(),behaviorList));
|
||||||
|
}
|
||||||
|
if(l.getLabelAppId()!=null){
|
||||||
|
l.setLabelAppName(getName(l.getLabelAppId(),appList));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(entry.getFunctionId()==407){
|
||||||
|
hColumns+=",behaviour_type,";
|
||||||
|
name="protocol_identify";
|
||||||
|
}else if(entry.getFunctionId()==63){
|
||||||
|
name="social_app_control";
|
||||||
|
}else if(entry.getFunctionId()==408){
|
||||||
|
name="encrypted_tunnel_behavior";
|
||||||
|
}
|
||||||
|
titleList.add(name);
|
||||||
|
classMap.put(name, DkBehaviorLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put(name, cfgIndexInfoNoExport);
|
||||||
|
dataMap.put(name, list);
|
||||||
|
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, name, titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, name, titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error(name +" export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName(Integer id,List<CodeResult> list){
|
||||||
|
String name="";
|
||||||
|
Properties msgProp = getMsgProp();
|
||||||
|
for (int i = 0; i < list.size(); i++) {
|
||||||
|
if(String.valueOf(id).equals(list.get(i).getCode())){
|
||||||
|
name=msgProp.getProperty(list.get(i).getItem(),list.get(i).getItem());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -13,6 +14,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -20,20 +22,24 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.NtcAppLog;
|
import com.nis.domain.log.NtcAppLog;
|
||||||
import com.nis.domain.log.NtcBGPLog;
|
import com.nis.domain.log.NtcBGPLog;
|
||||||
|
import com.nis.domain.log.NtcCollectRadiusLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/other/bgpLogs")
|
@RequestMapping("${adminPath}/log/ntc/other/bgpLogs")
|
||||||
public class BgpLogController extends BaseController {
|
public class BgpLogController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = {"list", ""})
|
@RequestMapping(value = { "list", "" })
|
||||||
public String list(@ModelAttribute("log") NtcBGPLog log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
public String list(@ModelAttribute("log") NtcBGPLog log, Model model, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
PageLog<NtcBGPLog> page = new PageLog<NtcBGPLog>(request, response);
|
PageLog<NtcBGPLog> page = new PageLog<NtcBGPLog>(request, response);
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
@@ -43,22 +49,23 @@ public class BgpLogController extends BaseController {
|
|||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = Constants.LOG_BASE_URL + Constants.NTC_BGP_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.NTC_BGP_LOG;
|
||||||
String recv = HttpClientUtil.getMsg(url, params, request);
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
if (StringUtils.isNotBlank(recv)) {
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
LogRecvData<NtcBGPLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcBGPLog>>(){}.getType());
|
LogRecvData<NtcBGPLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcBGPLog>>() {
|
||||||
|
}.getType());
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcBGPLog> data=fromJson.getData();
|
Page<NtcBGPLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
page.setLast(data.getLast());
|
page.setLast(data.getLast());
|
||||||
page.setList(data.getList());
|
page.setList(data.getList());
|
||||||
List<NtcBGPLog> list = page.getList();
|
List<NtcBGPLog> list = page.getList();
|
||||||
for (NtcBGPLog l : list) {
|
for (NtcBGPLog l : list) {
|
||||||
l.setFunctionId(log.getFunctionId());
|
l.setFunctionId(log.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
@@ -67,8 +74,67 @@ public class BgpLogController extends BaseController {
|
|||||||
logger.error("查询失败", e);
|
logger.error("查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/ntc/bgpList";
|
return "/log/ntc/bgpList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// radius配置导出
|
||||||
|
@RequestMapping(value = "exportBgp")
|
||||||
|
public void exportBgp(@ModelAttribute("log") NtcBGPLog log, Model model, String hColumns, String types,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了bgp");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcBGPLog> page = new PageLog<NtcBGPLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_BGP_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcBGPLog> list = new ArrayList<NtcBGPLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcBGPLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcBGPLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcBGPLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
titleList.add("bgp_control");
|
||||||
|
classMap.put("bgp_control", NtcBGPLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("bgp_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("bgp_control", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(types)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "bgp_control", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "bgp_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("bgp_control export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -17,6 +18,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -28,7 +30,11 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.NtcBGPLog;
|
import com.nis.domain.log.NtcBGPLog;
|
||||||
|
import com.nis.domain.log.NtcCollectRadiusLog;
|
||||||
|
import com.nis.domain.log.NtcCollectVoipLog;
|
||||||
|
import com.nis.domain.log.NtcCollectVoipLog;
|
||||||
import com.nis.domain.log.NtcCollectVoipLog;
|
import com.nis.domain.log.NtcCollectVoipLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.CodeDicUtils;
|
import com.nis.util.CodeDicUtils;
|
||||||
@@ -38,13 +44,15 @@ import com.nis.util.DictUtils;
|
|||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
import com.nis.web.dao.dashboard.codedic.CodeResult;
|
import com.nis.web.dao.dashboard.codedic.CodeResult;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/ntcCollectVoipLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/ntcCollectVoipLogs")
|
||||||
public class CollectVoipLogController extends BaseController{
|
public class CollectVoipLogController extends BaseController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* voip泛收日志
|
* voip泛收日志
|
||||||
|
*
|
||||||
* @param model
|
* @param model
|
||||||
* @param entry
|
* @param entry
|
||||||
* @param request
|
* @param request
|
||||||
@@ -53,16 +61,17 @@ public class CollectVoipLogController extends BaseController{
|
|||||||
* @throws ClientProtocolException
|
* @throws ClientProtocolException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value={"list",""})
|
@RequestMapping(value = { "list", "" })
|
||||||
public String list(Model model,@ModelAttribute("log")NtcCollectVoipLog entry,HttpServletRequest request, HttpServletResponse response) throws ClientProtocolException, IOException {
|
public String list(Model model, @ModelAttribute("log") NtcCollectVoipLog entry, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) throws ClientProtocolException, IOException {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
PageLog<NtcCollectVoipLog> page = new PageLog<NtcCollectVoipLog>(request, response);
|
PageLog<NtcCollectVoipLog> page = new PageLog<NtcCollectVoipLog>(request, response);
|
||||||
Map<String, Object> params=new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
//查询值判断
|
// 查询值判断
|
||||||
if (StringUtils.isNotBlank(entry.getSearchFoundStartTime())
|
if (StringUtils.isNotBlank(entry.getSearchFoundStartTime())
|
||||||
&& StringUtils.isNotBlank(entry.getSearchFoundEndTime())) {
|
&& StringUtils.isNotBlank(entry.getSearchFoundEndTime())) {
|
||||||
params.put("searchFoundStartTime", entry.getSearchFoundStartTime());
|
params.put("searchFoundStartTime", entry.getSearchFoundStartTime());
|
||||||
@@ -118,19 +127,19 @@ public class CollectVoipLogController extends BaseController{
|
|||||||
}
|
}
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
//获取字典信息
|
// 获取字典信息
|
||||||
List<CodeResult> protocolList=CodeDicUtils.getCodeList("protocolCode");
|
List<CodeResult> protocolList = CodeDicUtils.getCodeList("protocolCode");
|
||||||
List<CodeResult> behaviorList=CodeDicUtils.getCodeList("behaviorCode");
|
List<CodeResult> behaviorList = CodeDicUtils.getCodeList("behaviorCode");
|
||||||
List<CodeResult> appList=CodeDicUtils.getCodeList("appCode");
|
List<CodeResult> appList = CodeDicUtils.getCodeList("appCode");
|
||||||
model.addAttribute("protocolList", protocolList);
|
model.addAttribute("protocolList", protocolList);
|
||||||
model.addAttribute("behaviorList", behaviorList);
|
model.addAttribute("behaviorList", behaviorList);
|
||||||
model.addAttribute("appList", appList);
|
model.addAttribute("appList", appList);
|
||||||
|
|
||||||
String url = "";
|
String url = "";
|
||||||
url = Constants.LOG_BASE_URL+Constants.NTC_COLLECT_VOIP_LOG;
|
url = Constants.LOG_BASE_URL + Constants.NTC_COLLECT_VOIP_LOG;
|
||||||
String jsonString = HttpClientUtil.getMsg(url,params,request);
|
String jsonString = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
GsonBuilder builder = new GsonBuilder();
|
GsonBuilder builder = new GsonBuilder();
|
||||||
builder.registerTypeAdapter(Date.class, new JsonDeserializer<Date>() {
|
builder.registerTypeAdapter(Date.class, new JsonDeserializer<Date>() {
|
||||||
|
|
||||||
@@ -140,9 +149,11 @@ public class CollectVoipLogController extends BaseController{
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
Gson gson = builder.setDateFormat("yyyy-MM-dd HH:mm:ss").create();
|
Gson gson = builder.setDateFormat("yyyy-MM-dd HH:mm:ss").create();
|
||||||
//gson泛型支持
|
// gson泛型支持
|
||||||
LogRecvData<NtcCollectVoipLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<NtcCollectVoipLog>>(){}.getType());
|
LogRecvData<NtcCollectVoipLog> fromJson = gson.fromJson(jsonString,
|
||||||
|
new TypeToken<LogRecvData<NtcCollectVoipLog>>() {
|
||||||
|
}.getType());
|
||||||
|
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcCollectVoipLog> data = fromJson.getData();
|
Page<NtcCollectVoipLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -157,5 +168,147 @@ public class CollectVoipLogController extends BaseController{
|
|||||||
}
|
}
|
||||||
return "/log/ntc/collectVoipList";
|
return "/log/ntc/collectVoipList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VoipCollect配置导出
|
||||||
|
@RequestMapping(value = "exportVoipCollect")
|
||||||
|
public void exportVoipCollect(@ModelAttribute("log") NtcCollectVoipLog entry, Model model, String hColumns,
|
||||||
|
String type, HttpServletRequest request, HttpServletResponse response,
|
||||||
|
RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
PageLog<NtcCollectVoipLog> page = new PageLog<NtcCollectVoipLog>(request, response);
|
||||||
|
Map<String, Object> params = new HashMap<>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
// 查询值判断
|
||||||
|
List<NtcCollectVoipLog> list = new ArrayList<NtcCollectVoipLog>();
|
||||||
|
if (StringUtils.isNotBlank(entry.getSearchFoundStartTime())
|
||||||
|
&& StringUtils.isNotBlank(entry.getSearchFoundEndTime())) {
|
||||||
|
params.put("searchFoundStartTime", entry.getSearchFoundStartTime());
|
||||||
|
params.put("searchFoundEndTime", entry.getSearchFoundEndTime());
|
||||||
|
} else {
|
||||||
|
// 判断是否是从配置界面过来的日志查询
|
||||||
|
if (StringUtils.isNotBlank(entry.getIsLogTotalSearch())) {
|
||||||
|
Calendar time = Calendar.getInstance();
|
||||||
|
time.add(Calendar.MINUTE, -5);
|
||||||
|
String searchEndTime = DateUtils.formatDateTime(time.getTime());
|
||||||
|
params.put("searchFoundEndTime", searchEndTime);
|
||||||
|
entry.setSearchFoundEndTime(searchEndTime);
|
||||||
|
|
||||||
|
time.add(Calendar.MINUTE, -5);
|
||||||
|
String searchStartTime = DateUtils.formatDateTime(time.getTime());
|
||||||
|
params.put("searchFoundStartTime", searchStartTime);
|
||||||
|
entry.setSearchFoundStartTime(searchStartTime);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// 设置默认查询当前时间及前五分钟
|
||||||
|
String endTime = DateUtils.getDateTime();
|
||||||
|
Date dateStart = new Date(new Date().getTime() - Constants.LOG_TIME_INTERVAL);
|
||||||
|
String startTime = DateUtils.formatDateTime(dateStart);
|
||||||
|
params.put("searchFoundStartTime", startTime);
|
||||||
|
params.put("searchFoundEndTime", endTime);
|
||||||
|
entry.setSearchFoundStartTime(startTime);
|
||||||
|
entry.setSearchFoundEndTime(endTime);
|
||||||
|
}
|
||||||
|
logger.info("searchFoundStartTime:" + params.get("searchFoundStartTime"));
|
||||||
|
logger.info("searchFoundEndTime:" + params.get("searchFoundEndTime"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(entry.getVoipProtocol())) {
|
||||||
|
params.put("searchVoipProtocol", entry.getVoipProtocol());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(entry.getRtpDIp())) {
|
||||||
|
params.put("searchRtpDIp", entry.getRtpDIp());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(entry.getCapIp())) {
|
||||||
|
params.put("searchCapIp", entry.getCapIp());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(entry.getRtpSIp())) {
|
||||||
|
params.put("searchRtpSIp", entry.getRtpSIp());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(entry.getSipDIp())) {
|
||||||
|
params.put("searchSipDIp", entry.getSipDIp());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(entry.getSipSIp())) {
|
||||||
|
params.put("searchSipSIp", entry.getSipSIp());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(entry.getOrderBy())) {
|
||||||
|
params.put("orderBy", entry.getOrderBy());
|
||||||
|
}
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = "";
|
||||||
|
url = Constants.LOG_BASE_URL + Constants.NTC_COLLECT_VOIP_LOG;
|
||||||
|
String jsonString = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
|
GsonBuilder builder = new GsonBuilder();
|
||||||
|
builder.registerTypeAdapter(Date.class, new JsonDeserializer<Date>() {
|
||||||
|
|
||||||
|
public Date deserialize(JsonElement json, java.lang.reflect.Type typeOfT,
|
||||||
|
JsonDeserializationContext context) throws JsonParseException {
|
||||||
|
return new Date(json.getAsJsonPrimitive().getAsLong());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Gson gson = builder.setDateFormat("yyyy-MM-dd HH:mm:ss").create();
|
||||||
|
// gson泛型支持
|
||||||
|
LogRecvData<NtcCollectVoipLog> fromJson = gson.fromJson(jsonString,
|
||||||
|
new TypeToken<LogRecvData<NtcCollectVoipLog>>() {
|
||||||
|
}.getType());
|
||||||
|
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcCollectVoipLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
// list = getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
|
||||||
|
titleList.add("collect_voip");
|
||||||
|
classMap.put("collect_voip", NtcCollectVoipLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = ",cfg_id,action," + hColumns;
|
||||||
|
noExportMap.put("collect_voip", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("collect_voip", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "collect_voip", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "collect_voip", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("collect_voip export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<NtcCollectVoipLog> getList() {
|
||||||
|
List<NtcCollectVoipLog> list = new ArrayList<NtcCollectVoipLog>();
|
||||||
|
for (int i = 0; i < 100; i++) {
|
||||||
|
NtcCollectVoipLog ntcCollectVoipLog = new NtcCollectVoipLog();
|
||||||
|
ntcCollectVoipLog.setAction(i);
|
||||||
|
ntcCollectVoipLog.setCalledAccount("-" + i);
|
||||||
|
ntcCollectVoipLog.setCallId("11" + i);
|
||||||
|
ntcCollectVoipLog.setDate(new Date().toString());
|
||||||
|
ntcCollectVoipLog.setId(1L);
|
||||||
|
ntcCollectVoipLog.setSearchRtpDIp("123");
|
||||||
|
ntcCollectVoipLog.setCallId("199199");
|
||||||
|
ntcCollectVoipLog.setAction(1);
|
||||||
|
ntcCollectVoipLog.setCapIp("11");
|
||||||
|
ntcCollectVoipLog.setContacts("aa");
|
||||||
|
ntcCollectVoipLog.setFromToStoreUrl("tocal");
|
||||||
|
list.add(ntcCollectVoipLog);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -15,6 +16,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -26,13 +28,16 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.NtcCollectVoipLog;
|
import com.nis.domain.log.NtcCollectVoipLog;
|
||||||
import com.nis.domain.log.NtcDdosLog;
|
import com.nis.domain.log.NtcDdosLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
|
import com.nis.util.StringUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/ntcDdosLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/ntcDdosLogs")
|
||||||
@@ -104,4 +109,69 @@ public class DdosLogController extends BaseController{
|
|||||||
return "/log/ntc/ddosList";
|
return "/log/ntc/ddosList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Ddos配置导出
|
||||||
|
@RequestMapping(value = "exportDdos")
|
||||||
|
public void exportDdos(@ModelAttribute("log") NtcDdosLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcDdosLog> page = new PageLog<NtcDdosLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
System.out.print(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_DDOS_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcDdosLog> list = new ArrayList<NtcDdosLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcDdosLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcDdosLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcDdosLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcDdosLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("target_ip_protect");
|
||||||
|
classMap.put("target_ip_protect", NtcDdosLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("target_ip_protect", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("target_ip_protect", list);
|
||||||
|
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "target_ip_protect", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "target_ip_protect", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("DDOS export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -13,6 +14,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -21,20 +23,23 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
import com.nis.domain.log.NtcDdosLog;
|
import com.nis.domain.SysUser;
|
||||||
|
import com.nis.domain.log.NtcCollectRadiusLog;
|
||||||
import com.nis.domain.log.NtcDnsLog;
|
import com.nis.domain.log.NtcDnsLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/dns")
|
@RequestMapping("${adminPath}/log/ntc/dns")
|
||||||
public class DnsLogController extends BaseController {
|
public class DnsLogController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping("list")
|
@RequestMapping("list")
|
||||||
public String list(@ModelAttribute("log") NtcDnsLog log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
public String list(@ModelAttribute("log") NtcDnsLog log, Model model, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
PageLog<NtcDnsLog> page = new PageLog<NtcDnsLog>(request, response);
|
PageLog<NtcDnsLog> page = new PageLog<NtcDnsLog>(request, response);
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
@@ -44,16 +49,17 @@ public class DnsLogController extends BaseController {
|
|||||||
params.put("searchQname", log.getQname());
|
params.put("searchQname", log.getQname());
|
||||||
}
|
}
|
||||||
initLogSearchValue(log, params);
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = Constants.LOG_BASE_URL + Constants.NTC_DNS_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.NTC_DNS_LOG;
|
||||||
String recv = HttpClientUtil.getMsg(url, params, request);
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
|
|
||||||
LogRecvData<NtcDnsLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcDnsLog>>(){}.getType());
|
LogRecvData<NtcDnsLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcDnsLog>>() {
|
||||||
|
}.getType());
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcDnsLog> data = fromJson.getData();
|
Page<NtcDnsLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -62,7 +68,7 @@ public class DnsLogController extends BaseController {
|
|||||||
List<NtcDnsLog> list = page.getList();
|
List<NtcDnsLog> list = page.getList();
|
||||||
for (NtcDnsLog l : list) {
|
for (NtcDnsLog l : list) {
|
||||||
l.setFunctionId(log.getFunctionId());
|
l.setFunctionId(log.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
@@ -70,7 +76,71 @@ public class DnsLogController extends BaseController {
|
|||||||
logger.error("查询失败", e);
|
logger.error("查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/ntc/dnsList";
|
return "/log/ntc/dnsList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dns配置导出
|
||||||
|
@RequestMapping(value = "exportDns")
|
||||||
|
public void exportDns(@ModelAttribute("log") NtcDnsLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了dns");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcDnsLog> page = new PageLog<NtcDnsLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_DNS_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcDnsLog> list = new ArrayList<NtcDnsLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcDnsLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcDnsLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcDnsLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcDnsLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("DNS");
|
||||||
|
classMap.put("DNS", NtcDnsLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("DNS", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("DNS", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "DNS", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "DNS", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("DNS export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -8,12 +9,14 @@ import java.util.Map;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.http.client.ClientProtocolException;
|
import org.apache.http.client.ClientProtocolException;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -21,18 +24,21 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.NtcDnsLog;
|
import com.nis.domain.log.NtcDnsLog;
|
||||||
import com.nis.domain.log.NtcFtpLog;
|
import com.nis.domain.log.NtcFtpLog;
|
||||||
|
import com.nis.domain.log.NtcFtpLog;
|
||||||
import com.nis.domain.log.NtcOpenVpnLog;
|
import com.nis.domain.log.NtcOpenVpnLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/NtcFtpLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/NtcFtpLogs")
|
||||||
public class FtpLogController extends BaseController{
|
public class FtpLogController extends BaseController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param model
|
* @param model
|
||||||
@@ -43,29 +49,31 @@ public class FtpLogController extends BaseController{
|
|||||||
* @throws ClientProtocolException
|
* @throws ClientProtocolException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value={"list",""})
|
@RequestMapping(value = { "list", "" })
|
||||||
public String list(Model model,@ModelAttribute("log")NtcFtpLog entry,HttpServletRequest request, HttpServletResponse response) throws ClientProtocolException, IOException {
|
public String list(Model model, @ModelAttribute("log") NtcFtpLog entry, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) throws ClientProtocolException, IOException {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
PageLog<NtcFtpLog> page = new PageLog<NtcFtpLog>(request, response);
|
PageLog<NtcFtpLog> page = new PageLog<NtcFtpLog>(request, response);
|
||||||
Map<String, Object> params=new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
//查询值判断
|
// 查询值判断
|
||||||
initLogSearchValue(entry,params);
|
initLogSearchValue(entry, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = "";
|
String url = "";
|
||||||
url = Constants.LOG_BASE_URL+Constants.NTC_FTP_LOG;
|
url = Constants.LOG_BASE_URL + Constants.NTC_FTP_LOG;
|
||||||
String jsonString = HttpClientUtil.getMsg(url,params,request);
|
String jsonString = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
//gson泛型支持
|
// gson泛型支持
|
||||||
LogRecvData<NtcFtpLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<NtcFtpLog>>(){}.getType());
|
LogRecvData<NtcFtpLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<NtcFtpLog>>() {
|
||||||
|
}.getType());
|
||||||
|
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcFtpLog> data = fromJson.getData();
|
Page<NtcFtpLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -74,7 +82,7 @@ public class FtpLogController extends BaseController{
|
|||||||
List<NtcFtpLog> list = page.getList();
|
List<NtcFtpLog> list = page.getList();
|
||||||
for (NtcFtpLog l : list) {
|
for (NtcFtpLog l : list) {
|
||||||
l.setFunctionId(entry.getFunctionId());
|
l.setFunctionId(entry.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
logger.info("查询Ftp日志成功");
|
logger.info("查询Ftp日志成功");
|
||||||
@@ -85,5 +93,68 @@ public class FtpLogController extends BaseController{
|
|||||||
}
|
}
|
||||||
return "/log/ntc/ftpList";
|
return "/log/ntc/ftpList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ftp配置导出
|
||||||
|
@RequestMapping(value = "exportFtp")
|
||||||
|
public void exportFtp(@ModelAttribute("log") NtcFtpLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了Ftp");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcFtpLog> page = new PageLog<NtcFtpLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_FTP_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcFtpLog> list = new ArrayList<NtcFtpLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcFtpLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcFtpLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcFtpLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcFtpLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("ftp_control");
|
||||||
|
classMap.put("ftp_control", NtcFtpLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("ftp_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("ftp_control", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "ftp_control", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "ftp_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("ftp_control export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -13,6 +14,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -20,21 +22,24 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.NtcFtpLog;
|
import com.nis.domain.log.NtcFtpLog;
|
||||||
import com.nis.domain.log.NtcHttpLog;
|
import com.nis.domain.log.NtcKeywordsUrlLog;
|
||||||
import com.nis.domain.log.NtcKeywordsUrlLog;
|
import com.nis.domain.log.NtcKeywordsUrlLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/httpkey")
|
@RequestMapping("${adminPath}/log/ntc/httpkey")
|
||||||
public class HttpKeyLogController extends BaseController {
|
public class HttpKeyLogController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping("list")
|
@RequestMapping("list")
|
||||||
public String list(@ModelAttribute("log") NtcKeywordsUrlLog log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
public String list(@ModelAttribute("log") NtcKeywordsUrlLog log, Model model, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
PageLog<NtcKeywordsUrlLog> page = new PageLog<NtcKeywordsUrlLog>(request, response);
|
PageLog<NtcKeywordsUrlLog> page = new PageLog<NtcKeywordsUrlLog>(request, response);
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
@@ -44,16 +49,18 @@ public class HttpKeyLogController extends BaseController {
|
|||||||
params.put("searchUrl", log.getUrl());
|
params.put("searchUrl", log.getUrl());
|
||||||
}
|
}
|
||||||
initLogSearchValue(log, params);
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = Constants.LOG_BASE_URL + Constants.NTC_KEYWORDS_URL_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.NTC_KEYWORDS_URL_LOG;
|
||||||
String recv = HttpClientUtil.getMsg(url, params, request);
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
|
|
||||||
LogRecvData<NtcKeywordsUrlLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcKeywordsUrlLog>>(){}.getType());
|
LogRecvData<NtcKeywordsUrlLog> fromJson = gson.fromJson(recv,
|
||||||
|
new TypeToken<LogRecvData<NtcKeywordsUrlLog>>() {
|
||||||
|
}.getType());
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcKeywordsUrlLog> data = fromJson.getData();
|
Page<NtcKeywordsUrlLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -62,7 +69,7 @@ public class HttpKeyLogController extends BaseController {
|
|||||||
List<NtcKeywordsUrlLog> list = page.getList();
|
List<NtcKeywordsUrlLog> list = page.getList();
|
||||||
for (NtcKeywordsUrlLog l : list) {
|
for (NtcKeywordsUrlLog l : list) {
|
||||||
l.setFunctionId(log.getFunctionId());
|
l.setFunctionId(log.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
@@ -70,7 +77,72 @@ public class HttpKeyLogController extends BaseController {
|
|||||||
logger.error("查询失败", e);
|
logger.error("查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/ntc/httpKeyList";
|
return "/log/ntc/httpKeyList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// httpKey配置导出
|
||||||
|
@RequestMapping(value = "exportHttpKey")
|
||||||
|
public void exportHttpKey(@ModelAttribute("log") NtcKeywordsUrlLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了httpKey");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcKeywordsUrlLog> page = new PageLog<NtcKeywordsUrlLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_KEYWORDS_URL_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcKeywordsUrlLog> list = new ArrayList<NtcKeywordsUrlLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcKeywordsUrlLog> fromJson = gson.fromJson(recv,
|
||||||
|
new TypeToken<LogRecvData<NtcKeywordsUrlLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcKeywordsUrlLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcKeywordsUrlLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("http_keyword");
|
||||||
|
classMap.put("http_keyword", NtcKeywordsUrlLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("http_keyword", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("http_keyword", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "http_keyword", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "http_keyword", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("http_keyword export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -12,6 +13,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -19,19 +21,23 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
|
import com.nis.domain.log.NtcHttpLog;
|
||||||
import com.nis.domain.log.NtcHttpLog;
|
import com.nis.domain.log.NtcHttpLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/http")
|
@RequestMapping("${adminPath}/log/ntc/http")
|
||||||
public class HttpLogController extends BaseController {
|
public class HttpLogController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping("list")
|
@RequestMapping("list")
|
||||||
public String list(@ModelAttribute("log") NtcHttpLog log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
public String list(@ModelAttribute("log") NtcHttpLog log, Model model, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
PageLog<NtcHttpLog> page = new PageLog<NtcHttpLog>(request, response);
|
PageLog<NtcHttpLog> page = new PageLog<NtcHttpLog>(request, response);
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
@@ -41,32 +47,33 @@ public class HttpLogController extends BaseController {
|
|||||||
params.put("searchUrl", log.getUrl());
|
params.put("searchUrl", log.getUrl());
|
||||||
}
|
}
|
||||||
initLogSearchValue(log, params);
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
serviceList.addAll(DictUtils.getFunctionServiceDictList(635));
|
serviceList.addAll(DictUtils.getFunctionServiceDictList(635));
|
||||||
for (FunctionServiceDict serviceDict : serviceList) {
|
for (FunctionServiceDict serviceDict : serviceList) {
|
||||||
if(serviceDict.getFunctionId() == log.getFunctionId()){
|
if (serviceDict.getFunctionId() == log.getFunctionId()) {
|
||||||
if(serviceDict.getAction() == Constants.MONIT_ACTION){
|
if (serviceDict.getAction() == Constants.MONIT_ACTION) {
|
||||||
serviceDict.setActionCode("log_search_http_monit");
|
serviceDict.setActionCode("log_search_http_monit");
|
||||||
}else if(serviceDict.getAction() == Constants.REJECT_ACTION){
|
} else if (serviceDict.getAction() == Constants.REJECT_ACTION) {
|
||||||
serviceDict.setActionCode("log_search_http_reject");
|
serviceDict.setActionCode("log_search_http_reject");
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
if(serviceDict.getAction() == Constants.MONIT_ACTION){
|
if (serviceDict.getAction() == Constants.MONIT_ACTION) {
|
||||||
serviceDict.setActionCode("log_search_keyword_monit");
|
serviceDict.setActionCode("log_search_keyword_monit");
|
||||||
}else if(serviceDict.getAction() == Constants.REJECT_ACTION){
|
} else if (serviceDict.getAction() == Constants.REJECT_ACTION) {
|
||||||
serviceDict.setActionCode("log_search_keyword_reject");
|
serviceDict.setActionCode("log_search_keyword_reject");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = Constants.LOG_BASE_URL + Constants.NTC_HTTP_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.NTC_HTTP_LOG;
|
||||||
String recv = HttpClientUtil.getMsg(url, params, request);
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
|
|
||||||
LogRecvData<NtcHttpLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcHttpLog>>(){}.getType());
|
LogRecvData<NtcHttpLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcHttpLog>>() {
|
||||||
|
}.getType());
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcHttpLog> data = fromJson.getData();
|
Page<NtcHttpLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -75,7 +82,7 @@ public class HttpLogController extends BaseController {
|
|||||||
List<NtcHttpLog> list = page.getList();
|
List<NtcHttpLog> list = page.getList();
|
||||||
for (NtcHttpLog l : list) {
|
for (NtcHttpLog l : list) {
|
||||||
l.setFunctionId(log.getFunctionId());
|
l.setFunctionId(log.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
@@ -83,7 +90,70 @@ public class HttpLogController extends BaseController {
|
|||||||
logger.error("查询失败", e);
|
logger.error("查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/ntc/httpList";
|
return "/log/ntc/httpList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// http配置导出
|
||||||
|
@RequestMapping(value = "exportHttp")
|
||||||
|
public void exportHttp(@ModelAttribute("log") NtcHttpLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcHttpLog> page = new PageLog<NtcHttpLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_HTTP_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcHttpLog> list = new ArrayList<NtcHttpLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcHttpLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcHttpLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcHttpLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcHttpLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("HTTP");
|
||||||
|
classMap.put("HTTP", NtcHttpLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",req_hdr_key,req_hdr_file,req_body_key,req_body_file,res_hdr_key,res_hdr_file,res_body_key,res_body_file,scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("HTTP", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("HTTP", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "HTTP", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "HTTP", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("HTTP export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.nis.web.controller.log.ntc;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -17,6 +18,7 @@ import org.springframework.ui.Model;
|
|||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -24,14 +26,17 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.NtcHttpLog;
|
import com.nis.domain.log.NtcHttpLog;
|
||||||
import com.nis.domain.log.NtcIpLog;
|
import com.nis.domain.log.NtcIpLog;
|
||||||
|
import com.nis.domain.log.NtcIpLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.exceptions.MaatConvertException;
|
import com.nis.exceptions.MaatConvertException;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/ip")
|
@RequestMapping("${adminPath}/log/ntc/ip")
|
||||||
@@ -111,4 +116,69 @@ public class IpLogController extends BaseController {
|
|||||||
return "/log/ntc/ipList";
|
return "/log/ntc/ipList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ip配置导出
|
||||||
|
@RequestMapping(value = "exportIp")
|
||||||
|
public void exportIp(@ModelAttribute("log") NtcIpLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcIpLog> page = new PageLog<NtcIpLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_IP_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcIpLog> list = new ArrayList<NtcIpLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcIpLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcIpLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcIpLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcIpLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
|
||||||
|
titleList.add("Ip");
|
||||||
|
classMap.put("Ip", NtcIpLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("Ip", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("Ip", list);
|
||||||
|
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "Ip", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "Ip", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("Ip" +" export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -14,6 +15,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -21,27 +23,31 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.NtcIpLog;
|
import com.nis.domain.log.NtcIpLog;
|
||||||
import com.nis.domain.log.NtcMailLog;
|
import com.nis.domain.log.NtcMailLog;
|
||||||
|
import com.nis.domain.log.NtcMailLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/mail")
|
@RequestMapping("${adminPath}/log/ntc/mail")
|
||||||
public class MailLogController extends BaseController {
|
public class MailLogController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping("list")
|
@RequestMapping("list")
|
||||||
public String list(@ModelAttribute("log") NtcMailLog log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
public String list(@ModelAttribute("log") NtcMailLog log, Model model, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
PageLog<NtcMailLog> page = new PageLog<NtcMailLog>(request, response);
|
PageLog<NtcMailLog> page = new PageLog<NtcMailLog>(request, response);
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
initLogSearchValue(log, params);
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
// 增加收/发件人、邮件主题查询
|
// 增加收/发件人、邮件主题查询
|
||||||
if (StringUtils.isNotBlank(log.getMailTo())) {
|
if (StringUtils.isNotBlank(log.getMailTo())) {
|
||||||
params.put("searchMailTo", StringEscapeUtils.unescapeHtml(log.getMailTo()));
|
params.put("searchMailTo", StringEscapeUtils.unescapeHtml(log.getMailTo()));
|
||||||
@@ -52,16 +58,17 @@ public class MailLogController extends BaseController {
|
|||||||
if (StringUtils.isNotBlank(log.getSubject())) {
|
if (StringUtils.isNotBlank(log.getSubject())) {
|
||||||
params.put("searchSubject", StringEscapeUtils.unescapeHtml(log.getSubject()));
|
params.put("searchSubject", StringEscapeUtils.unescapeHtml(log.getSubject()));
|
||||||
}
|
}
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = Constants.LOG_BASE_URL + Constants.NTC_MAIL_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.NTC_MAIL_LOG;
|
||||||
String recv = HttpClientUtil.getMsg(url, params, request);
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
if (StringUtils.isNotBlank(recv)) {
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
LogRecvData<NtcMailLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcMailLog>>(){}.getType());
|
LogRecvData<NtcMailLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcMailLog>>() {
|
||||||
|
}.getType());
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcMailLog> data = fromJson.getData();
|
Page<NtcMailLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -70,7 +77,7 @@ public class MailLogController extends BaseController {
|
|||||||
List<NtcMailLog> list = page.getList();
|
List<NtcMailLog> list = page.getList();
|
||||||
for (NtcMailLog l : list) {
|
for (NtcMailLog l : list) {
|
||||||
l.setFunctionId(log.getFunctionId());
|
l.setFunctionId(log.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
@@ -79,7 +86,71 @@ public class MailLogController extends BaseController {
|
|||||||
logger.error("查询失败", e);
|
logger.error("查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/ntc/mailList";
|
return "/log/ntc/mailList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mail配置导出
|
||||||
|
@RequestMapping(value = "exportMail")
|
||||||
|
public void exportMail(@ModelAttribute("log") NtcMailLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了Mail");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcMailLog> page = new PageLog<NtcMailLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_MAIL_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcMailLog> list = new ArrayList<NtcMailLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcMailLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcMailLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcMailLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcMailLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("mail_control");
|
||||||
|
classMap.put("mail_control", NtcMailLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("mail_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("mail_control", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "mail_control", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "mail_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("mail_control export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -8,12 +9,14 @@ import java.util.Map;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.http.client.ClientProtocolException;
|
import org.apache.http.client.ClientProtocolException;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -21,20 +24,24 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.MmAvIpLog;
|
import com.nis.domain.log.MmAvIpLog;
|
||||||
import com.nis.domain.log.NtcStreamMediaLog;
|
import com.nis.domain.log.NtcStreamMediaLog;
|
||||||
|
import com.nis.domain.log.NtcStreamMediaLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/mmAvUrlLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/mmAvUrlLogs")
|
||||||
public class MmAvUrlLogController extends BaseController{
|
public class MmAvUrlLogController extends BaseController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 音视频url日志
|
* 音视频url日志
|
||||||
|
*
|
||||||
* @param model
|
* @param model
|
||||||
* @param entry
|
* @param entry
|
||||||
* @param request
|
* @param request
|
||||||
@@ -43,29 +50,32 @@ public class MmAvUrlLogController extends BaseController{
|
|||||||
* @throws ClientProtocolException
|
* @throws ClientProtocolException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value={"list",""})
|
@RequestMapping(value = { "list", "" })
|
||||||
public String list(Model model,@ModelAttribute("log")NtcStreamMediaLog entry,HttpServletRequest request, HttpServletResponse response) throws ClientProtocolException, IOException {
|
public String list(Model model, @ModelAttribute("log") NtcStreamMediaLog entry, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) throws ClientProtocolException, IOException {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
PageLog<NtcStreamMediaLog> page = new PageLog<NtcStreamMediaLog>(request, response);
|
PageLog<NtcStreamMediaLog> page = new PageLog<NtcStreamMediaLog>(request, response);
|
||||||
Map<String, Object> params=new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
//查询值判断
|
// 查询值判断
|
||||||
initLogSearchValue(entry,params);
|
initLogSearchValue(entry, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = "";
|
String url = "";
|
||||||
url = Constants.LOG_BASE_URL+Constants.NTC_STREAMMEDIA_LOG;
|
url = Constants.LOG_BASE_URL + Constants.NTC_STREAMMEDIA_LOG;
|
||||||
String jsonString = HttpClientUtil.getMsg(url,params,request);
|
String jsonString = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
//gson泛型支持
|
// gson泛型支持
|
||||||
LogRecvData<NtcStreamMediaLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<NtcStreamMediaLog>>(){}.getType());
|
LogRecvData<NtcStreamMediaLog> fromJson = gson.fromJson(jsonString,
|
||||||
|
new TypeToken<LogRecvData<NtcStreamMediaLog>>() {
|
||||||
|
}.getType());
|
||||||
|
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcStreamMediaLog> data = fromJson.getData();
|
Page<NtcStreamMediaLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -74,7 +84,7 @@ public class MmAvUrlLogController extends BaseController{
|
|||||||
List<NtcStreamMediaLog> list = page.getList();
|
List<NtcStreamMediaLog> list = page.getList();
|
||||||
for (NtcStreamMediaLog l : list) {
|
for (NtcStreamMediaLog l : list) {
|
||||||
l.setFunctionId(entry.getFunctionId());
|
l.setFunctionId(entry.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
logger.info("查询音视频url日志成功");
|
logger.info("查询音视频url日志成功");
|
||||||
@@ -85,5 +95,70 @@ public class MmAvUrlLogController extends BaseController{
|
|||||||
}
|
}
|
||||||
return "/log/ntc/ntcStreamMedia";
|
return "/log/ntc/ntcStreamMedia";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AvUrl配置导出
|
||||||
|
@RequestMapping(value = "exportAvUrl")
|
||||||
|
public void exportAvUrl(@ModelAttribute("log") NtcStreamMediaLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了AvUrl");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcStreamMediaLog> page = new PageLog<NtcStreamMediaLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_STREAMMEDIA_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcStreamMediaLog> list = new ArrayList<NtcStreamMediaLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcStreamMediaLog> fromJson = gson.fromJson(recv,
|
||||||
|
new TypeToken<LogRecvData<NtcStreamMediaLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcStreamMediaLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcStreamMediaLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("streaming_media");
|
||||||
|
classMap.put("streaming_media", NtcStreamMediaLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("streaming_media", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("streaming_media", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "streaming_media", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "streaming_media", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("streaming_media export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -14,6 +15,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -21,20 +23,24 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.MmFileDigestLog;
|
import com.nis.domain.log.MmFileDigestLog;
|
||||||
import com.nis.domain.log.NtcStreamMediaLog;
|
import com.nis.domain.log.NtcStreamMediaLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
|
import com.nis.util.StringUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/mmFileDigestLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/mmFileDigestLogs")
|
||||||
public class MmFileDigestLogController extends BaseController{
|
public class MmFileDigestLogController extends BaseController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 音视频url日志
|
* 音视频url日志
|
||||||
|
*
|
||||||
* @param model
|
* @param model
|
||||||
* @param entry
|
* @param entry
|
||||||
* @param request
|
* @param request
|
||||||
@@ -43,29 +49,32 @@ public class MmFileDigestLogController extends BaseController{
|
|||||||
* @throws ClientProtocolException
|
* @throws ClientProtocolException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value={"list",""})
|
@RequestMapping(value = { "list", "" })
|
||||||
public String list(Model model,@ModelAttribute("log")MmFileDigestLog entry,HttpServletRequest request, HttpServletResponse response) throws ClientProtocolException, IOException {
|
public String list(Model model, @ModelAttribute("log") MmFileDigestLog entry, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) throws ClientProtocolException, IOException {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
PageLog<MmFileDigestLog> page = new PageLog<MmFileDigestLog>(request, response);
|
PageLog<MmFileDigestLog> page = new PageLog<MmFileDigestLog>(request, response);
|
||||||
Map<String, Object> params=new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
//查询值判断
|
// 查询值判断
|
||||||
initLogSearchValue(entry,params);
|
initLogSearchValue(entry, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = "";
|
String url = "";
|
||||||
url = Constants.LOG_BASE_URL+Constants.NTC_MMFILEDIGEST_LOG;
|
url = Constants.LOG_BASE_URL + Constants.NTC_MMFILEDIGEST_LOG;
|
||||||
String jsonString = HttpClientUtil.getMsg(url,params,request);
|
String jsonString = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
//gson泛型支持
|
// gson泛型支持
|
||||||
LogRecvData<MmFileDigestLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<MmFileDigestLog>>(){}.getType());
|
LogRecvData<MmFileDigestLog> fromJson = gson.fromJson(jsonString,
|
||||||
|
new TypeToken<LogRecvData<MmFileDigestLog>>() {
|
||||||
|
}.getType());
|
||||||
|
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<MmFileDigestLog> data = fromJson.getData();
|
Page<MmFileDigestLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -74,7 +83,7 @@ public class MmFileDigestLogController extends BaseController{
|
|||||||
List<MmFileDigestLog> list = page.getList();
|
List<MmFileDigestLog> list = page.getList();
|
||||||
for (MmFileDigestLog l : list) {
|
for (MmFileDigestLog l : list) {
|
||||||
l.setFunctionId(entry.getFunctionId());
|
l.setFunctionId(entry.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
logger.info("查询文件摘要日志成功");
|
logger.info("查询文件摘要日志成功");
|
||||||
@@ -85,5 +94,69 @@ public class MmFileDigestLogController extends BaseController{
|
|||||||
}
|
}
|
||||||
return "/log/ntc/mmFileDigestList";
|
return "/log/ntc/mmFileDigestList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FileDigest配置导出
|
||||||
|
@RequestMapping(value = "exportFileDigest")
|
||||||
|
public void exportFileDigest(@ModelAttribute("log") MmFileDigestLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<MmFileDigestLog> page = new PageLog<MmFileDigestLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
System.out.print(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_MMFILEDIGEST_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<MmFileDigestLog> list = new ArrayList<MmFileDigestLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<MmFileDigestLog> fromJson = gson.fromJson(recv,
|
||||||
|
new TypeToken<LogRecvData<MmFileDigestLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<MmFileDigestLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (MmFileDigestLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("file_digest_control");
|
||||||
|
classMap.put("file_digest_control", MmFileDigestLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = ",log_uri,direction," + hColumns;
|
||||||
|
noExportMap.put("file_digest_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("file_digest_control", list);
|
||||||
|
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "file_digest_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "file_digest_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("FileDiges export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -12,6 +13,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -19,13 +21,16 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.MmAvIpLog;
|
import com.nis.domain.log.MmAvIpLog;
|
||||||
import com.nis.domain.log.MmPicUrlLog;
|
import com.nis.domain.log.MmPicUrlLog;
|
||||||
|
import com.nis.domain.log.MmSampleVideoLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc")
|
@RequestMapping(value = "${adminPath}/log/ntc")
|
||||||
@@ -115,4 +120,66 @@ public class MmPornAvSampleController extends BaseController {
|
|||||||
}
|
}
|
||||||
return "/log/ntc/mmPornVideoSampleList";
|
return "/log/ntc/mmPornVideoSampleList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Video配置导出
|
||||||
|
@RequestMapping(value = "mmSampleVideoLevelLogs/exportVideo")
|
||||||
|
public void exportVideo(@ModelAttribute("log") MmAvIpLog log, Model model,String hColumns,String type, HttpServletRequest request, HttpServletResponse response,RedirectAttributes redirectAttributes){
|
||||||
|
try {
|
||||||
|
//export data info
|
||||||
|
List<String> titleList=new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
//---------------------------
|
||||||
|
|
||||||
|
PageLog<MmAvIpLog> page = new PageLog<MmAvIpLog>(request, response);
|
||||||
|
Map<String, Object> params=new HashMap<>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
//查询值判断
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
List<MmAvIpLog> list=new ArrayList<MmAvIpLog>();
|
||||||
|
String url = "";
|
||||||
|
url = Constants.LOG_BASE_URL + Constants.NTC_MMPORNVIDEOSAMPLE_LOG;
|
||||||
|
String jsonString = HttpClientUtil.getMsg(url,params,request);
|
||||||
|
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
//gson泛型支持
|
||||||
|
LogRecvData<MmAvIpLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<MmAvIpLog>>(){}.getType());
|
||||||
|
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<MmAvIpLog> data = fromJson.getData();
|
||||||
|
list= data.getList();
|
||||||
|
}
|
||||||
|
for (MmAvIpLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l,serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("av_sample_video_porn_control");
|
||||||
|
classMap.put("av_sample_video_porn_control", MmSampleVideoLog.class);
|
||||||
|
SysUser user =UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()){
|
||||||
|
hColumns+=",scene_file,";
|
||||||
|
}else{
|
||||||
|
hColumns+=",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport=","+hColumns;
|
||||||
|
noExportMap.put("av_sample_video_porn_control",cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("av_sample_video_porn_control",list);
|
||||||
|
/*}*/
|
||||||
|
if("csv".equals(type)){
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes,"av_sample_video_porn_control",titleList,classMap,dataMap,noExportMap);
|
||||||
|
}else{
|
||||||
|
this._export(model, request, response, redirectAttributes,"av_sample_video_porn_control",titleList,classMap,dataMap,noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("Video export failed",e);
|
||||||
|
addMessage(redirectAttributes,"error","export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -12,6 +13,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -19,13 +21,16 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.MmAvIpLog;
|
import com.nis.domain.log.MmAvIpLog;
|
||||||
import com.nis.domain.log.MmSampleAudioLog;
|
import com.nis.domain.log.MmSampleAudioLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
|
import com.nis.util.StringUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/mmSampleAudioLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/mmSampleAudioLogs")
|
||||||
@@ -71,4 +76,69 @@ public class MmSampleAudioController extends BaseController{
|
|||||||
|
|
||||||
return "/log/ntc/mmSampleAudioList";
|
return "/log/ntc/mmSampleAudioList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SampleAudio配置导出
|
||||||
|
@RequestMapping(value = "exportSampleAudio")
|
||||||
|
public void exportSampleAudio(@ModelAttribute("log") MmSampleAudioLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<MmSampleAudioLog> page = new PageLog<MmSampleAudioLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
System.out.print(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_DDOS_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<MmSampleAudioLog> list = new ArrayList<MmSampleAudioLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<MmSampleAudioLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<MmSampleAudioLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<MmSampleAudioLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (MmSampleAudioLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("av_sample_audio_control");
|
||||||
|
classMap.put("av_sample_audio_control", MmSampleAudioLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = ",direction," + hColumns;
|
||||||
|
noExportMap.put("av_sample_audio_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("av_sample_audio_control", list);
|
||||||
|
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "av_sample_audio_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "av_sample_audio_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("SampleAudio export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -13,6 +14,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -20,12 +22,15 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.MmSamplePicLog;
|
import com.nis.domain.log.MmSamplePicLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
|
import com.nis.util.StringUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/mmSamplePicLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/mmSamplePicLogs")
|
||||||
@@ -71,4 +76,64 @@ public class MmSamplePicController extends BaseController{
|
|||||||
|
|
||||||
return "/log/ntc/mmSamplePicList";
|
return "/log/ntc/mmSamplePicList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SamplePic配置导出
|
||||||
|
@RequestMapping(value = "exportSamplePic")
|
||||||
|
public void exportSamplePic(@ModelAttribute("log") MmSamplePicLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
|
||||||
|
PageLog<MmSamplePicLog> page = new PageLog<MmSamplePicLog>(request,response);
|
||||||
|
Map<String, Object> params = new HashMap<String,Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
|
||||||
|
// 请求参数判断
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
List<MmSamplePicLog> list=new ArrayList<MmSamplePicLog>();
|
||||||
|
// 请求接口
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_MMSAMPLEPIC_LOG;
|
||||||
|
String resJson = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<MmSamplePicLog> fromJson = gson.fromJson(resJson, new TypeToken<LogRecvData<MmSamplePicLog>>() {}.getType());
|
||||||
|
if(fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<MmSamplePicLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
for (MmSamplePicLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("SamplePic");
|
||||||
|
classMap.put("SamplePic", MmSamplePicLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = ",direction," + hColumns;
|
||||||
|
noExportMap.put("av_sample_picture_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("av_sample_picture_control", list);
|
||||||
|
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "av_sample_picture_control", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "av_sample_picture_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("SamplePic export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +1,32 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
import com.nis.domain.log.MmSamplePicLog;
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.MmSampleVideoLog;
|
import com.nis.domain.log.MmSampleVideoLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/mmSampleVideoLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/mmSampleVideoLogs")
|
||||||
@@ -71,4 +72,69 @@ public class MmSampleVideoController extends BaseController{
|
|||||||
|
|
||||||
return "/log/ntc/mmSampleVideoList";
|
return "/log/ntc/mmSampleVideoList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SampleVideo配置导出
|
||||||
|
@RequestMapping(value = "exportSampleVideo")
|
||||||
|
public void exportSampleVideo(@ModelAttribute("log") MmSampleVideoLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<MmSampleVideoLog> page = new PageLog<MmSampleVideoLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
System.out.print(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_DDOS_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<MmSampleVideoLog> list = new ArrayList<MmSampleVideoLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<MmSampleVideoLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<MmSampleVideoLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<MmSampleVideoLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (MmSampleVideoLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("av_sample_video_control");
|
||||||
|
classMap.put("av_sample_video_control", MmSampleVideoLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = ",direction," + hColumns;
|
||||||
|
noExportMap.put("av_sample_video_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("av_sample_video_control", list);
|
||||||
|
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "av_sample_video_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "av_sample_video_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("SampleVideo export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -8,12 +9,14 @@ import java.util.Map;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.http.client.ClientProtocolException;
|
import org.apache.http.client.ClientProtocolException;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -21,13 +24,14 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
import com.nis.domain.log.MmSampleVideoLog;
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.MmVoipLog;
|
import com.nis.domain.log.MmVoipLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/mmSampleVoipLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/mmSampleVoipLogs")
|
||||||
@@ -75,4 +79,67 @@ public class MmSampleVoipLogController extends BaseController {
|
|||||||
}
|
}
|
||||||
return "/log/ntc/mmSampleVoipList";
|
return "/log/ntc/mmSampleVoipList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//exportVoip配置导出
|
||||||
|
@RequestMapping(value = "exportVoip")
|
||||||
|
public void exportVoip(@ModelAttribute("log") MmVoipLog log, Model model,String hColumns,String type, HttpServletRequest request, HttpServletResponse response,RedirectAttributes redirectAttributes){
|
||||||
|
try {
|
||||||
|
//export data info
|
||||||
|
List<String> titleList=new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap=new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap=new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap=new HashMap<String, String>();
|
||||||
|
//---------------------------
|
||||||
|
|
||||||
|
PageLog<MmVoipLog> page = new PageLog<MmVoipLog>(request, response);
|
||||||
|
Map<String, Object> params=new HashMap<>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
//查询值判断
|
||||||
|
initLogSearchValue(log,params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
List<MmVoipLog> list=new ArrayList<MmVoipLog>();
|
||||||
|
String url = Constants.LOG_BASE_URL+Constants.NTC_MMSAMPLE_VOIP_LOG;
|
||||||
|
String jsonString = HttpClientUtil.getMsg(url,params,request);
|
||||||
|
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
//gson泛型支持
|
||||||
|
LogRecvData<MmVoipLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<MmVoipLog>>(){}.getType());
|
||||||
|
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<MmVoipLog> data = fromJson.getData();
|
||||||
|
list= data.getList();
|
||||||
|
}
|
||||||
|
for (MmVoipLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l,serviceList);
|
||||||
|
}
|
||||||
|
|
||||||
|
titleList.add("av_sample_voip_control");
|
||||||
|
classMap.put("av_sample_voip_control", MmVoipLog.class);
|
||||||
|
SysUser user =UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()){
|
||||||
|
hColumns+=",scene_file,";
|
||||||
|
}else{
|
||||||
|
hColumns+=",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport=","+hColumns;
|
||||||
|
noExportMap.put("av_sample_voip_control",cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("av_sample_voip_control",list);
|
||||||
|
/*}*/
|
||||||
|
if("csv".equals(type)){
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes,"av_sample_voip_control",titleList,classMap,dataMap,noExportMap);
|
||||||
|
}else{
|
||||||
|
this._export(model, request, response, redirectAttributes,"av_sample_voip_control",titleList,classMap,dataMap,noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("voip export failed",e);
|
||||||
|
addMessage(redirectAttributes,"error","export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -8,12 +9,14 @@ import java.util.Map;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.http.client.ClientProtocolException;
|
import org.apache.http.client.ClientProtocolException;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -21,16 +24,19 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
|
import com.nis.domain.log.MmVoipLog;
|
||||||
import com.nis.domain.log.MmVoipLog;
|
import com.nis.domain.log.MmVoipLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.util.Constants;
|
import com.nis.util.Constants;
|
||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value = "${adminPath}/log/ntc/mmVoipIpLogs")
|
@RequestMapping(value = "${adminPath}/log/ntc/mmVoipIpLogs")
|
||||||
public class MmVoipIpLogController extends BaseController{
|
public class MmVoipIpLogController extends BaseController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param model
|
* @param model
|
||||||
@@ -41,29 +47,31 @@ public class MmVoipIpLogController extends BaseController{
|
|||||||
* @throws ClientProtocolException
|
* @throws ClientProtocolException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value={"list",""})
|
@RequestMapping(value = { "list", "" })
|
||||||
public String list(Model model,@ModelAttribute("log")MmVoipLog entry,HttpServletRequest request, HttpServletResponse response) throws ClientProtocolException, IOException {
|
public String list(Model model, @ModelAttribute("log") MmVoipLog entry, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) throws ClientProtocolException, IOException {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
PageLog<MmVoipLog> page = new PageLog<MmVoipLog>(request, response);
|
PageLog<MmVoipLog> page = new PageLog<MmVoipLog>(request, response);
|
||||||
Map<String, Object> params=new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
//查询值判断
|
// 查询值判断
|
||||||
initLogSearchValue(entry,params);
|
initLogSearchValue(entry, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = "";
|
String url = "";
|
||||||
url = Constants.LOG_BASE_URL+Constants.NTC_MMVOIP_LOG;
|
url = Constants.LOG_BASE_URL + Constants.NTC_MMVOIP_LOG;
|
||||||
String jsonString = HttpClientUtil.getMsg(url,params,request);
|
String jsonString = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
//gson泛型支持
|
// gson泛型支持
|
||||||
LogRecvData<MmVoipLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<MmVoipLog>>(){}.getType());
|
LogRecvData<MmVoipLog> fromJson = gson.fromJson(jsonString, new TypeToken<LogRecvData<MmVoipLog>>() {
|
||||||
|
}.getType());
|
||||||
|
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<MmVoipLog> data = fromJson.getData();
|
Page<MmVoipLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -72,7 +80,7 @@ public class MmVoipIpLogController extends BaseController{
|
|||||||
List<MmVoipLog> list = page.getList();
|
List<MmVoipLog> list = page.getList();
|
||||||
for (MmVoipLog l : list) {
|
for (MmVoipLog l : list) {
|
||||||
l.setFunctionId(entry.getFunctionId());
|
l.setFunctionId(entry.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
logger.info("查询Voip日志成功");
|
logger.info("查询Voip日志成功");
|
||||||
@@ -83,5 +91,69 @@ public class MmVoipIpLogController extends BaseController{
|
|||||||
}
|
}
|
||||||
return "/log/ntc/mmVoipIpList";
|
return "/log/ntc/mmVoipIpList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Voip配置导出
|
||||||
|
@RequestMapping(value = "exportVoip")
|
||||||
|
public void exportVoip(@ModelAttribute("log") MmVoipLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了Voip");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<MmVoipLog> page = new PageLog<MmVoipLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_MMVOIP_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<MmVoipLog> list = new ArrayList<MmVoipLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<MmVoipLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<MmVoipLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<MmVoipLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (MmVoipLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("av_voip_control");
|
||||||
|
classMap.put("av_voip_control", MmVoipLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",duation,from_to_store_ip,from_to_store_url,to_from_store_ip,to_from_store_url,log_uri,direction,scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("av_voip_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("av_voip_control", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "av_voip_control", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "av_voip_control", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("av_voip_control export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import org.springframework.ui.Model;
|
|||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -26,10 +27,12 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.IrDnatLog;
|
import com.nis.domain.log.IrDnatLog;
|
||||||
import com.nis.domain.log.IrSnatLog;
|
import com.nis.domain.log.IrSnatLog;
|
||||||
import com.nis.domain.log.NtcCollectRadiusLog;
|
import com.nis.domain.log.NtcCollectRadiusLog;
|
||||||
import com.nis.domain.log.NtcConnRecordLog;
|
import com.nis.domain.log.NtcConnRecordLog;
|
||||||
|
import com.nis.domain.log.NtcConnRecordLog;
|
||||||
import com.nis.domain.log.SearchReport;
|
import com.nis.domain.log.SearchReport;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
import com.nis.domain.report.NtcServiceReport;
|
import com.nis.domain.report.NtcServiceReport;
|
||||||
@@ -42,43 +45,48 @@ import com.nis.util.StringUtil;
|
|||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
import com.nis.web.dao.dashboard.codedic.CodeResult;
|
import com.nis.web.dao.dashboard.codedic.CodeResult;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
import net.sf.json.JSONObject;
|
import net.sf.json.JSONObject;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/connRecordLogs")
|
@RequestMapping("${adminPath}/log/ntc/connRecordLogs")
|
||||||
public class NtcConnRecordLogController extends BaseController {
|
public class NtcConnRecordLogController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = {"/list", ""})
|
@RequestMapping(value = { "/list", "" })
|
||||||
public String connRecordLogs(@ModelAttribute("log") NtcConnRecordLog log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
public String connRecordLogs(@ModelAttribute("log") NtcConnRecordLog log, Model model, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
PageLog<NtcConnRecordLog> page = new PageLog<NtcConnRecordLog>(request, response);
|
PageLog<NtcConnRecordLog> page = new PageLog<NtcConnRecordLog>(request, response);
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
initLogSearchValue(log, params);
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
List<CodeResult> appList=CodeDicUtils.getCodeList("appCode");
|
List<CodeResult> appList = CodeDicUtils.getCodeList("appCode");
|
||||||
model.addAttribute("appList", appList);
|
model.addAttribute("appList", appList);
|
||||||
|
|
||||||
String url =Constants.LOG_BASE_URL + Constants.NTC_CONN_RECORD_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.NTC_CONN_RECORD_LOG;
|
||||||
String recv = HttpClientUtil.getMsg(url, params, request);
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
if (StringUtils.isNotBlank(recv)) {
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
LogRecvData<NtcConnRecordLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcConnRecordLog>>(){}.getType());
|
LogRecvData<NtcConnRecordLog> fromJson = gson.fromJson(recv,
|
||||||
|
new TypeToken<LogRecvData<NtcConnRecordLog>>() {
|
||||||
|
}.getType());
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcConnRecordLog> data = fromJson.getData();
|
Page<NtcConnRecordLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
page.setLast(data.getLast());
|
page.setLast(data.getLast());
|
||||||
page.setList(data.getList());
|
page.setList(data.getList());
|
||||||
/*List<NtcCollectRadiusLog> list = page.getList();
|
/*
|
||||||
for (NtcConnRecordLog l : list) {
|
* List<NtcCollectRadiusLog> list = page.getList(); for
|
||||||
l.setFunctionId(log.getFunctionId());
|
* (NtcConnRecordLog l : list) {
|
||||||
setLogAction(l,serviceList);
|
* l.setFunctionId(log.getFunctionId());
|
||||||
}*/
|
* setLogAction(l,serviceList); }
|
||||||
|
*/
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -86,41 +94,102 @@ public class NtcConnRecordLogController extends BaseController {
|
|||||||
logger.error("查询失败", e);
|
logger.error("查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/ntc/connRecordLogList";
|
return "/log/ntc/connRecordLogList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping("/ajaxConnRecordPercent")
|
@RequestMapping("/ajaxConnRecordPercent")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JSONObject ajaxConnRecordPercent(String searchFoundStartTime,
|
public JSONObject ajaxConnRecordPercent(String searchFoundStartTime, String searchFoundEndTime,
|
||||||
String searchFoundEndTime,
|
String searchStreamDir, HttpServletRequest request, HttpServletResponse response) {
|
||||||
String searchStreamDir,
|
JSONObject resultAllJson = new JSONObject();
|
||||||
HttpServletRequest request,
|
JSONObject result = new JSONObject();
|
||||||
HttpServletResponse response) {
|
Map<String, Object> params = new HashMap<>();
|
||||||
JSONObject resultAllJson=new JSONObject();
|
|
||||||
JSONObject result=new JSONObject();
|
|
||||||
Map<String, Object> params=new HashMap<>();
|
|
||||||
try {
|
try {
|
||||||
params.put("searchFoundStartTime", searchFoundStartTime);
|
params.put("searchFoundStartTime", searchFoundStartTime);
|
||||||
params.put("searchFoundEndTime", searchFoundEndTime);
|
params.put("searchFoundEndTime", searchFoundEndTime);
|
||||||
StringBuffer url=new StringBuffer(Constants.LOG_BASE_URL+Constants.NTC_CONN_RECORD_PERCENT);
|
StringBuffer url = new StringBuffer(Constants.LOG_BASE_URL + Constants.NTC_CONN_RECORD_PERCENT);
|
||||||
String json=HttpClientUtil.getMsg(url.toString(), params,request);
|
String json = HttpClientUtil.getMsg(url.toString(), params, request);
|
||||||
if(!StringUtil.isEmpty(json)) {
|
if (!StringUtil.isEmpty(json)) {
|
||||||
resultAllJson=JSONObject.fromObject(json);
|
resultAllJson = JSONObject.fromObject(json);
|
||||||
if(!StringUtil.isEmpty(resultAllJson)) {
|
if (!StringUtil.isEmpty(resultAllJson)) {
|
||||||
result=(JSONObject) resultAllJson.get("data");
|
result = (JSONObject) resultAllJson.get("data");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result.put("success","success");
|
result.put("success", "success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
logger.error("ajaxConnRecordPercent检索失败",e);
|
logger.error("ajaxConnRecordPercent检索失败", e);
|
||||||
result.put("error",getMsgProp().get("request_service_failed"));
|
result.put("error", getMsgProp().get("request_service_failed"));
|
||||||
}catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("ajaxConnRecordPercent检索失败",e);
|
logger.error("ajaxConnRecordPercent检索失败", e);
|
||||||
result.put("error",getMsgProp().get("search_error"));
|
result.put("error", getMsgProp().get("search_error"));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ConnRecord配置导出
|
||||||
|
@RequestMapping(value = "exportConnRecord")
|
||||||
|
public void exportConnRecord(@ModelAttribute("log") NtcConnRecordLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了ConnRecord");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcConnRecordLog> page = new PageLog<NtcConnRecordLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_CONN_RECORD_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcConnRecordLog> list = new ArrayList<NtcConnRecordLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcConnRecordLog> fromJson = gson.fromJson(recv,
|
||||||
|
new TypeToken<LogRecvData<NtcConnRecordLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcConnRecordLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcConnRecordLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("conn_record");
|
||||||
|
classMap.put("conn_record", NtcConnRecordLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = ",cfg_id,action," + hColumns;
|
||||||
|
noExportMap.put("conn_record", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("conn_record", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "conn_record", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "conn_record", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("conn_record export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -13,6 +14,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -20,6 +22,8 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
|
import com.nis.domain.log.NtcP2pLog;
|
||||||
import com.nis.domain.log.NtcOpenVpnLog;
|
import com.nis.domain.log.NtcOpenVpnLog;
|
||||||
import com.nis.domain.log.NtcP2pLog;
|
import com.nis.domain.log.NtcP2pLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
@@ -27,13 +31,15 @@ import com.nis.util.Constants;
|
|||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/p2pLogs")
|
@RequestMapping("${adminPath}/log/ntc/p2pLogs")
|
||||||
public class P2pLogController extends BaseController {
|
public class P2pLogController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = {"list", ""})
|
@RequestMapping(value = { "list", "" })
|
||||||
public String list(@ModelAttribute("log") NtcP2pLog log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
public String list(@ModelAttribute("log") NtcP2pLog log, Model model, HttpServletRequest request,
|
||||||
|
HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
PageLog<NtcP2pLog> page = new PageLog<NtcP2pLog>(request, response);
|
PageLog<NtcP2pLog> page = new PageLog<NtcP2pLog>(request, response);
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
@@ -43,13 +49,14 @@ public class P2pLogController extends BaseController {
|
|||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = Constants.LOG_BASE_URL + Constants.NTC_P2P_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.NTC_P2P_LOG;
|
||||||
String recv = HttpClientUtil.getMsg(url, params, request);
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
logger.error("查询结果:" + recv);
|
logger.error("查询结果:" + recv);
|
||||||
if (StringUtils.isNotBlank(recv)) {
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
LogRecvData<NtcP2pLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcP2pLog>>(){}.getType());
|
LogRecvData<NtcP2pLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcP2pLog>>() {
|
||||||
|
}.getType());
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcP2pLog> data = fromJson.getData();
|
Page<NtcP2pLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -58,7 +65,7 @@ public class P2pLogController extends BaseController {
|
|||||||
List<NtcP2pLog> list = page.getList();
|
List<NtcP2pLog> list = page.getList();
|
||||||
for (NtcP2pLog l : list) {
|
for (NtcP2pLog l : list) {
|
||||||
l.setFunctionId(log.getFunctionId());
|
l.setFunctionId(log.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
@@ -67,8 +74,72 @@ public class P2pLogController extends BaseController {
|
|||||||
logger.error("查询失败", e);
|
logger.error("查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/ntc/p2pList";
|
return "/log/ntc/p2pList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// p2p配置导出
|
||||||
|
@RequestMapping(value = "exportP2p")
|
||||||
|
public void exportP2p(@ModelAttribute("log") NtcP2pLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了P2p");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcP2pLog> page = new PageLog<NtcP2pLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_P2P_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcP2pLog> list = new ArrayList<NtcP2pLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcP2pLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcP2pLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcP2pLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcP2pLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("p2p_control");
|
||||||
|
classMap.put("p2p_control", NtcP2pLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("p2p_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("p2p_control", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "p2p_control", titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "p2p_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("p2p_control export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.ntc;
|
package com.nis.web.controller.log.ntc;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -12,6 +13,7 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
@@ -20,6 +22,8 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
|
import com.nis.domain.log.NtcSslLog;
|
||||||
import com.nis.domain.log.NtcSshLog;
|
import com.nis.domain.log.NtcSshLog;
|
||||||
import com.nis.domain.log.NtcSslLog;
|
import com.nis.domain.log.NtcSslLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
@@ -28,35 +32,39 @@ import com.nis.util.DictUtils;
|
|||||||
import com.nis.util.StringUtils;
|
import com.nis.util.StringUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/ntc/sslLogs")
|
@RequestMapping("${adminPath}/log/ntc/sslLogs")
|
||||||
|
@SuppressWarnings("all")
|
||||||
public class SslLogController extends BaseController {
|
public class SslLogController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = {"/list"})
|
@RequestMapping(value = { "/list" })
|
||||||
public String list(HttpServletRequest request, HttpServletResponse response, Model model, @ModelAttribute("log")NtcSslLog ntcSslLog) {
|
public String list(HttpServletRequest request, HttpServletResponse response, Model model,
|
||||||
|
@ModelAttribute("log") NtcSslLog ntcSslLog) {
|
||||||
PageLog<NtcSslLog> page = new PageLog<NtcSslLog>(request,response);
|
|
||||||
Map<String, Object> params = new HashMap<String,Object>();
|
PageLog<NtcSslLog> page = new PageLog<NtcSslLog>(request, response);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
|
|
||||||
// 请求参数判断
|
// 请求参数判断
|
||||||
initLogSearchValue(ntcSslLog, params);
|
initLogSearchValue(ntcSslLog, params);
|
||||||
if(StringUtils.isNotBlank(ntcSslLog.getSni())) {
|
if (StringUtils.isNotBlank(ntcSslLog.getSni())) {
|
||||||
params.put("SearchSni", ntcSslLog.getSni());
|
params.put("SearchSni", ntcSslLog.getSni());
|
||||||
}
|
}
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(ntcSslLog.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(ntcSslLog.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 请求接口
|
// 请求接口
|
||||||
String url = Constants.LOG_BASE_URL + Constants.NTC_SSL_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.NTC_SSL_LOG;
|
||||||
String resJson = HttpClientUtil.getMsg(url, params, request);
|
String resJson = HttpClientUtil.getMsg(url, params, request);
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
LogRecvData<NtcSslLog> fromJson = gson.fromJson(resJson, new TypeToken<LogRecvData<NtcSslLog>>() {}.getType());
|
LogRecvData<NtcSslLog> fromJson = gson.fromJson(resJson, new TypeToken<LogRecvData<NtcSslLog>>() {
|
||||||
if(fromJson.getStatus().intValue() == 200) {
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<NtcSslLog> data = fromJson.getData();
|
Page<NtcSslLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
page.setLast(data.getLast());
|
page.setLast(data.getLast());
|
||||||
@@ -64,7 +72,7 @@ public class SslLogController extends BaseController {
|
|||||||
List<NtcSslLog> list = page.getList();
|
List<NtcSslLog> list = page.getList();
|
||||||
for (NtcSslLog log : list) {
|
for (NtcSslLog log : list) {
|
||||||
log.setFunctionId(ntcSslLog.getFunctionId());
|
log.setFunctionId(ntcSslLog.getFunctionId());
|
||||||
setLogAction(log,serviceList);
|
setLogAction(log, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
@@ -72,7 +80,71 @@ public class SslLogController extends BaseController {
|
|||||||
logger.error("SSL日志查询失败", e);
|
logger.error("SSL日志查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/ntc/sslLogList";
|
return "/log/ntc/sslLogList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ssl配置导出
|
||||||
|
@RequestMapping(value = "exportSsl")
|
||||||
|
public void exportSsl(@ModelAttribute("log") NtcSslLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
System.out.println("进来了ssl");
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<NtcSslLog> page = new PageLog<NtcSslLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.NTC_SSL_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<NtcSslLog> list = new ArrayList<NtcSslLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcSslLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcSslLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcSslLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (NtcSslLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
titleList.add("ssl_control");
|
||||||
|
classMap.put("ssl_control", NtcSslLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put("ssl_control", cfgIndexInfoNoExport);
|
||||||
|
dataMap.put("ssl_control", list);
|
||||||
|
/* } */
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, "ssl_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, "ssl_control", titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("ssl_control export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.nis.web.controller.log.pxy;
|
package com.nis.web.controller.log.pxy;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -7,11 +8,13 @@ import java.util.Map;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
import org.springframework.web.servlet.support.RequestContext;
|
import org.springframework.web.servlet.support.RequestContext;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
@@ -20,6 +23,8 @@ import com.google.gson.reflect.TypeToken;
|
|||||||
import com.nis.domain.FunctionServiceDict;
|
import com.nis.domain.FunctionServiceDict;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.PageLog;
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
|
import com.nis.domain.log.NtcCollectRadiusLog;
|
||||||
import com.nis.domain.log.NtcSslLog;
|
import com.nis.domain.log.NtcSslLog;
|
||||||
import com.nis.domain.log.PxyHttpLog;
|
import com.nis.domain.log.PxyHttpLog;
|
||||||
import com.nis.domain.maat.LogRecvData;
|
import com.nis.domain.maat.LogRecvData;
|
||||||
@@ -27,33 +32,35 @@ import com.nis.util.Constants;
|
|||||||
import com.nis.util.DictUtils;
|
import com.nis.util.DictUtils;
|
||||||
import com.nis.util.httpclient.HttpClientUtil;
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/log/pxy")
|
@RequestMapping("${adminPath}/log/pxy")
|
||||||
public class PxyHttpLogController extends BaseController {
|
public class PxyHttpLogController extends BaseController {
|
||||||
|
@RequestMapping(value = { "list", "ipInterceptlogs", "domainInterceptlogs", "httpBlocklogs", "httpRedirectlogs",
|
||||||
@RequestMapping(value = {"list", "ipInterceptlogs", "domainInterceptlogs", "httpBlocklogs",
|
"httpReplacelogs", "httpMonitogs" })
|
||||||
"httpRedirectlogs", "httpReplacelogs", "httpMonitogs"})
|
public String list(@ModelAttribute("log") PxyHttpLog log, Model model, HttpServletRequest request,
|
||||||
public String list(@ModelAttribute("log") PxyHttpLog log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
setLogInfo(request, model, log);
|
setLogInfo(request, model, log);
|
||||||
|
|
||||||
PageLog<PxyHttpLog> page = new PageLog<PxyHttpLog>(request, response);
|
PageLog<PxyHttpLog> page = new PageLog<PxyHttpLog>(request, response);
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
params.put("pageSize", page.getPageSize());
|
params.put("pageSize", page.getPageSize());
|
||||||
params.put("pageNo", page.getPageNo());
|
params.put("pageNo", page.getPageNo());
|
||||||
|
|
||||||
initLogSearchValue(log, params);
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
model.addAttribute("serviceList", serviceList);
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
String url = Constants.LOG_BASE_URL + Constants.PXY_HTTP_LOG;
|
String url = Constants.LOG_BASE_URL + Constants.PXY_HTTP_LOG;
|
||||||
String recv = HttpClientUtil.getMsg(url, params, request);
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().create();
|
Gson gson = new GsonBuilder().create();
|
||||||
|
|
||||||
LogRecvData<PxyHttpLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<PxyHttpLog>>(){}.getType());
|
LogRecvData<PxyHttpLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<PxyHttpLog>>() {
|
||||||
|
}.getType());
|
||||||
if (fromJson.getStatus().intValue() == 200) {
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
Page<PxyHttpLog> data = fromJson.getData();
|
Page<PxyHttpLog> data = fromJson.getData();
|
||||||
page.setCount(data.getCount());
|
page.setCount(data.getCount());
|
||||||
@@ -62,24 +69,24 @@ public class PxyHttpLogController extends BaseController {
|
|||||||
List<PxyHttpLog> list = page.getList();
|
List<PxyHttpLog> list = page.getList();
|
||||||
for (PxyHttpLog l : list) {
|
for (PxyHttpLog l : list) {
|
||||||
l.setFunctionId(log.getFunctionId());
|
l.setFunctionId(log.getFunctionId());
|
||||||
setLogAction(l,serviceList);
|
setLogAction(l, serviceList);
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("查询失败", e);
|
logger.error("查询失败", e);
|
||||||
addMessageLog(model, e.getMessage());
|
addMessageLog(model, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return "/log/pxy/pxyHttpList";
|
return "/log/pxy/pxyHttpList";
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setLogInfo(HttpServletRequest request, Model model, PxyHttpLog log) {
|
private void setLogInfo(HttpServletRequest request, Model model, PxyHttpLog log) {
|
||||||
int functionId = log.getFunctionId();
|
int functionId = log.getFunctionId();
|
||||||
|
|
||||||
RequestContext requestContext = new RequestContext(request);
|
RequestContext requestContext = new RequestContext(request);
|
||||||
|
|
||||||
if (functionId == 200) {
|
if (functionId == 200) {
|
||||||
model.addAttribute("logTitle", requestContext.getMessage("ip_intercept"));
|
model.addAttribute("logTitle", requestContext.getMessage("ip_intercept"));
|
||||||
log.setAction(1);
|
log.setAction(1);
|
||||||
@@ -100,4 +107,81 @@ public class PxyHttpLogController extends BaseController {
|
|||||||
log.setAction(1);
|
log.setAction(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// proxy配置导出
|
||||||
|
@RequestMapping(value = "exportPxy")
|
||||||
|
public void exportPxy(@ModelAttribute("log") PxyHttpLog log, Model model, String hColumns, String type,
|
||||||
|
HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
|
||||||
|
String name= "pxy";
|
||||||
|
try {
|
||||||
|
// export data info
|
||||||
|
setLogInfo(request, model, log);
|
||||||
|
List<String> titleList = new ArrayList<String>();
|
||||||
|
Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
|
||||||
|
Map<String, List> dataMap = new HashMap<String, List>();
|
||||||
|
Map<String, String> noExportMap = new HashMap<String, String>();
|
||||||
|
// ---------------------------
|
||||||
|
PageLog<PxyHttpLog> page = new PageLog<PxyHttpLog>(request, response);
|
||||||
|
page.setPageNo(1);
|
||||||
|
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
initLogSearchValue(log, params);
|
||||||
|
|
||||||
|
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(log.getFunctionId());
|
||||||
|
System.out.print(log.getFunctionId());
|
||||||
|
model.addAttribute("serviceList", serviceList);
|
||||||
|
|
||||||
|
|
||||||
|
String url = Constants.LOG_BASE_URL + Constants.PXY_HTTP_LOG;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
List<PxyHttpLog> list = new ArrayList<PxyHttpLog>();
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<PxyHttpLog> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<PxyHttpLog>>() {
|
||||||
|
}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<PxyHttpLog> data = fromJson.getData();
|
||||||
|
list = data.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (PxyHttpLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l, serviceList);
|
||||||
|
}
|
||||||
|
if(log.getFunctionId()==210){
|
||||||
|
name="http_monit";
|
||||||
|
}else if(log.getFunctionId()==207){
|
||||||
|
name="http_block";
|
||||||
|
}else if(log.getFunctionId()==208){
|
||||||
|
name="http_redirect";
|
||||||
|
}else if(log.getFunctionId()==209){
|
||||||
|
name="http_replace";
|
||||||
|
}
|
||||||
|
|
||||||
|
titleList.add(name);
|
||||||
|
classMap.put(name, PxyHttpLog.class);
|
||||||
|
SysUser user = UserUtils.getUser();
|
||||||
|
if (!user.isAdmin()) {
|
||||||
|
hColumns += ",scene_file,";
|
||||||
|
} else {
|
||||||
|
hColumns += ",";
|
||||||
|
}
|
||||||
|
String cfgIndexInfoNoExport = "," + hColumns;
|
||||||
|
noExportMap.put(name, cfgIndexInfoNoExport);
|
||||||
|
dataMap.put(name, list);
|
||||||
|
|
||||||
|
if ("csv".equals(type)) {
|
||||||
|
this._exportCsv(model, request, response, redirectAttributes, name, titleList, classMap,
|
||||||
|
dataMap, noExportMap);
|
||||||
|
} else {
|
||||||
|
this._export(model, request, response, redirectAttributes, name, titleList, classMap, dataMap,
|
||||||
|
noExportMap);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error(name +" export failed", e);
|
||||||
|
addMessage(redirectAttributes, "error", "export_failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,39 @@
|
|||||||
package com.nis.web.controller.report;
|
package com.nis.web.controller.report;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||||
|
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.google.gson.GsonBuilder;
|
||||||
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
import com.nis.domain.Page;
|
||||||
|
import com.nis.domain.PageLog;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
import com.nis.domain.log.SearchReport;
|
import com.nis.domain.log.SearchReport;
|
||||||
|
import com.nis.domain.maat.LogRecvData;
|
||||||
|
import com.nis.domain.report.NtcAsnRecord;
|
||||||
|
import com.nis.domain.report.NtcIpRangeReport;
|
||||||
|
import com.nis.domain.report.NtcURLReport;
|
||||||
|
import com.nis.util.Constants;
|
||||||
|
import com.nis.util.DateUtils;
|
||||||
|
import com.nis.util.DictUtils;
|
||||||
|
import com.nis.util.httpclient.HttpClientUtil;
|
||||||
import com.nis.web.controller.BaseController;
|
import com.nis.web.controller.BaseController;
|
||||||
|
import com.nis.web.security.UserUtils;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("${adminPath}/report")
|
@RequestMapping("${adminPath}/report")
|
||||||
@@ -19,4 +43,170 @@ public class ReportController extends BaseController {
|
|||||||
initReportCondition(model, bean);
|
initReportCondition(model, bean);
|
||||||
return "/report/list";
|
return "/report/list";
|
||||||
}
|
}
|
||||||
|
//asn
|
||||||
|
@RequestMapping(value = {"/asnConnList", ""})
|
||||||
|
public String asnConnLists(@ModelAttribute("log") NtcAsnRecord log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
try {
|
||||||
|
PageLog<NtcAsnRecord> page = new PageLog<NtcAsnRecord>(request, response);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
//判断请求参数
|
||||||
|
if (StringUtils.isNotBlank(log.getSearchFoundStartTime())
|
||||||
|
&& StringUtils.isNotBlank(log.getSearchFoundEndTime())) {
|
||||||
|
params.put("searchFoundStartTime", log.getSearchFoundStartTime());
|
||||||
|
params.put("searchFoundEndTime", log.getSearchFoundEndTime());
|
||||||
|
} else {
|
||||||
|
Calendar time = Calendar.getInstance();
|
||||||
|
String searchEndTime = DateUtils.formatDateTime(time.getTime());
|
||||||
|
time.add(Calendar.HOUR_OF_DAY, -1);
|
||||||
|
String searchStartTime = DateUtils.formatDateTime(time.getTime());
|
||||||
|
|
||||||
|
params.put("searchFoundStartTime", searchStartTime);
|
||||||
|
params.put("searchFoundEndTime", searchEndTime);
|
||||||
|
log.setSearchFoundStartTime(searchStartTime);
|
||||||
|
log.setSearchFoundEndTime(searchEndTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
String url =Constants.LOG_BASE_URL + Constants.NTC_ASN_RECORD;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
// String recv="{\"status\":200,\"businessCode\":2001000,\"reason\":\"数据获取操作成功\",\"msg\":\"ASN通联关系(源,目的)检索成功\",\"fromuri\":\"/galaxy-service/service/log/v1/ntcAsnRecord\",\"logSource\":0,\"traceCode\":\"2018121609404451375322\",\"data\":"
|
||||||
|
// +"{\"pageNo\":1,\"pageSize\":30,\"count\":66564,\"last\":2219,\"list\":[{\"bps\":\"8.56\",\"pps\":\"0.07\",\"sAsn\":\"9198\",\"dAsn\":\"40545_26836\"},"+
|
||||||
|
// "{\"bps\":\"3.68\",\"pps\":\"0.12\",\"sAsn\":\"9198\",\"dAsn\":\"19506\"},{\"bps\":\"1.77\",\"pps\":\"0.08\",\"sAsn\":\"38266\",\"dAsn\":\"N/A\"},"+
|
||||||
|
// "{\"bps\":\"493.55\",\"pps\":\"0.76\",\"sAsn\":\"30922\",\"dAsn\":\"29555\"},{\"bps\":\"26.63\",\"pps\":\"0.04\",\"sAsn\":\"44546\",\"dAsn\":\"197482\"},"+
|
||||||
|
// "{\"bps\":\"25.43\",\"pps\":\"0.45\",\"sAsn\":\"44391\",\"dAsn\":\"9198\"},{\"bps\":\"52.96\",\"pps\":\"0.08\",\"sAsn\":\"29555\",\"dAsn\":\"14080\"}]}}";
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcAsnRecord> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcAsnRecord>>(){}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcAsnRecord> data = fromJson.getData();
|
||||||
|
page.setCount(data.getCount());
|
||||||
|
page.setLast(data.getLast());
|
||||||
|
page.setList(data.getList());
|
||||||
|
/*List<NtcCollectRadiusLog> list = page.getList();
|
||||||
|
for (NtcConnRecordLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l,serviceList);
|
||||||
|
}*/
|
||||||
|
model.addAttribute("page", page);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("查询失败", e);
|
||||||
|
addMessageLog(model, e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
return "/report/asnRecordList";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
@RequestMapping(value = {"/httpsUrlList", ""})
|
||||||
|
public String httpsUrlLists(@ModelAttribute("log") NtcURLReport log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
try {
|
||||||
|
PageLog<NtcURLReport> page = new PageLog<NtcURLReport>(request, response);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
//判断请求参数
|
||||||
|
if (StringUtils.isNotBlank(log.getSearchReportStartTime())
|
||||||
|
&& StringUtils.isNotBlank(log.getSearchReportEndTime())) {
|
||||||
|
params.put("searchReportStartTime", log.getSearchReportStartTime());
|
||||||
|
params.put("searchReportEndTime", log.getSearchReportEndTime());
|
||||||
|
} else {
|
||||||
|
Calendar time = Calendar.getInstance();
|
||||||
|
String searchEndTime = DateUtils.formatDateTime(time.getTime());
|
||||||
|
time.add(Calendar.HOUR_OF_DAY, -1);
|
||||||
|
String searchStartTime = DateUtils.formatDateTime(time.getTime());
|
||||||
|
|
||||||
|
params.put("searchReportStartTime", searchStartTime);
|
||||||
|
params.put("searchReportEndTime", searchEndTime);
|
||||||
|
log.setSearchReportStartTime(searchStartTime);
|
||||||
|
log.setSearchReportEndTime(searchEndTime);
|
||||||
|
}
|
||||||
|
//url参数
|
||||||
|
if (StringUtils.isNotBlank(log.getSearchUrl())) {
|
||||||
|
params.put("searchUrl", log.getSearchUrl());
|
||||||
|
}
|
||||||
|
|
||||||
|
String url =Constants.LOG_BASE_URL + Constants.NTC_URL_REPORT;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
// String recv="{\"status\":200,\"businessCode\":2001000,\"reason\":\"数据获取操作成功\",\"msg\":\"URL统计查询成功\",\"fromuri\":\"/galaxy-service/service/log/v1/ntcURLReport\",\"logSource\":0,\"traceCode\":\"2018121610374649425419\",\"data\":{\"pageNo\":1,\"pageSize\":30,\"count\":174,\"last\":6,\"list\":[{\"url\":\"142.44.167.226/eventproxy/v1/bulk\",\"urlCount\":1686,\"dataList\":[{\"sum\":1686,\"ipAddr\":\"100.101.129.6\"}]},{\"url\":\"188.0.145.98/YZ/e1cib/dlist?cmd=query\",\"urlCount\":2652,\"dataList\":[{\"sum\":1248,\"ipAddr\":\"188.0.145.98\"},{\"sum\":1404,\"ipAddr\":\"89.218.9.2\"}]},{\"url\":\"cdn7.alpha-ag.ru/1c1233923d1a6/c51e872ab5861be256408f6cafa99ed8/luckypatcher_v7.5.9.apk\",\"urlCount\":882,\"dataList\":[{\"sum\":882,\"ipAddr\":\"100.81.118.193\"}]}]}}";
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcURLReport> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcURLReport>>(){}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcURLReport> data = fromJson.getData();
|
||||||
|
page.setCount(data.getCount());
|
||||||
|
page.setLast(data.getLast());
|
||||||
|
page.setList(data.getList());
|
||||||
|
/*List<NtcCollectRadiusLog> list = page.getList();
|
||||||
|
for (NtcConnRecordLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l,serviceList);
|
||||||
|
}*/
|
||||||
|
model.addAttribute("page", page);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("查询失败", e);
|
||||||
|
addMessageLog(model, e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
return "/report/urlReportList";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//IP范围统计
|
||||||
|
@RequestMapping(value = {"/ipRangeList", ""})
|
||||||
|
public String ipRangeLists(@ModelAttribute("log") NtcIpRangeReport log, Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
try {
|
||||||
|
PageLog<NtcIpRangeReport> page = new PageLog<NtcIpRangeReport>(request, response);
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
params.put("pageSize", page.getPageSize());
|
||||||
|
params.put("pageNo", page.getPageNo());
|
||||||
|
//判断请求参数
|
||||||
|
//查询国家
|
||||||
|
if (StringUtils.isNotBlank(log.getSearchCountry())) {
|
||||||
|
params.put("searchCountry", log.getSearchCountry());
|
||||||
|
}
|
||||||
|
//查询开始IP
|
||||||
|
if (StringUtils.isNotBlank(log.getSearchStartIp())) {
|
||||||
|
params.put("searchStartIp", log.getSearchStartIp());
|
||||||
|
}
|
||||||
|
//查询结束IP
|
||||||
|
if (StringUtils.isNotBlank(log.getSearchEndIp())) {
|
||||||
|
params.put("searchEndIp", log.getSearchEndIp());
|
||||||
|
}
|
||||||
|
|
||||||
|
String url =Constants.LOG_BASE_URL + Constants.NTC_IP_RANGE_REPORT;
|
||||||
|
String recv = HttpClientUtil.getMsg(url, params, request);
|
||||||
|
// String recv="{\"status\":200,\"businessCode\":2001000,\"reason\":\"数据获取操作成功\",\"msg\":\"URL统计查询成功\",\"fromuri\":\"/galaxy-service/service/log/v1/ntcIpRangeReport\",\"logSource\":0,\"traceCode\":\"2018121616062785920271\",\"data\":{\"pageNo\":1,\"pageSize\":30,\"count\":0,\"last\":1,\"list\":[{\"ipStart\":\"192.168.10.121\",\"ipEnd\":\"192.168.10.122\",\"ipStartNum\":3232238201,\"ipEndNum\":3232238202,\"ipSub\":\"255.255.255.252\"}]}}";
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(recv)) {
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
LogRecvData<NtcIpRangeReport> fromJson = gson.fromJson(recv, new TypeToken<LogRecvData<NtcIpRangeReport>>(){}.getType());
|
||||||
|
if (fromJson.getStatus().intValue() == 200) {
|
||||||
|
Page<NtcIpRangeReport> data = fromJson.getData();
|
||||||
|
page.setCount(data.getCount());
|
||||||
|
page.setLast(data.getLast());
|
||||||
|
page.setList(data.getList());
|
||||||
|
/*List<NtcCollectRadiusLog> list = page.getList();
|
||||||
|
for (NtcConnRecordLog l : list) {
|
||||||
|
l.setFunctionId(log.getFunctionId());
|
||||||
|
setLogAction(l,serviceList);
|
||||||
|
}*/
|
||||||
|
model.addAttribute("page", page);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("查询失败", e);
|
||||||
|
addMessageLog(model, e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
return "/report/ipRangeReportList";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,8 +35,11 @@ import com.nis.web.dao.MyBatisDao;
|
|||||||
*/
|
*/
|
||||||
@MyBatisDao
|
@MyBatisDao
|
||||||
public interface AppCfgDao {
|
public interface AppCfgDao {
|
||||||
//app策略配置增删改查
|
|
||||||
public List<AppPolicyCfg> findAppPolicyList(AppPolicyCfg entity) ;
|
public List<AppPolicyCfg> findAppPolicyList(AppPolicyCfg entity) ;
|
||||||
|
|
||||||
|
|
||||||
|
//app策略配置增删改查
|
||||||
|
public List<AppPolicyCfg> findAppByPolicyList(@Param("ids")String ids) ;
|
||||||
public AppPolicyCfg getAppPolicyCfg(@Param("cfgId")Long cfgId,@Param("compileId")Integer compileId) ;
|
public AppPolicyCfg getAppPolicyCfg(@Param("cfgId")Long cfgId,@Param("compileId")Integer compileId) ;
|
||||||
public IpPortCfg getAppPolicyIpCfg(AppPolicyCfg entity) ;
|
public IpPortCfg getAppPolicyIpCfg(AppPolicyCfg entity) ;
|
||||||
public List<IpPortCfg> getAppPolicyIpList(AppPolicyCfg entity);
|
public List<IpPortCfg> getAppPolicyIpList(AppPolicyCfg entity);
|
||||||
@@ -106,4 +109,17 @@ public interface AppCfgDao {
|
|||||||
// 导入配置时数据批量入库使用
|
// 导入配置时数据批量入库使用
|
||||||
public void insertAppDomainCfgBatch(AppDomainCfg cfg);
|
public void insertAppDomainCfgBatch(AppDomainCfg cfg);
|
||||||
public void insertAppHttpCfgBatch(AppHttpCfg cfg);
|
public void insertAppHttpCfgBatch(AppHttpCfg cfg);
|
||||||
|
|
||||||
|
//app 主题网站配置查
|
||||||
|
public List<AppTopicDomainCfg> findAppByTopicDomainList(@Param("ids")String ids) ;
|
||||||
|
//app协议IP配置查
|
||||||
|
public List<AppIpCfg> findAppByIpList(@Param("ids")String ids) ;
|
||||||
|
//app http特征查
|
||||||
|
public List<AppHttpCfg> findAppByHttpList(@Param("ids")String ids) ;
|
||||||
|
|
||||||
|
//app 域名配置增删改查
|
||||||
|
public List<AppDomainCfg> findAppByDomainList(@Param("ids")String ids) ;
|
||||||
|
|
||||||
|
//app ssl证书特征配置CRUD
|
||||||
|
public List<AppSslCertCfg> findAppBySslList(@Param("ids")String ids);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3004,4 +3004,95 @@
|
|||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
<select id="findAppByPolicyList" resultMap="AppPolicyCfgMap" parameterType="com.nis.domain.configuration.AppPolicyCfg" >
|
||||||
|
select
|
||||||
|
<include refid="AppPolicyCfg_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_policy_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 主题网站列表 -->
|
||||||
|
<select id="findAppByTopicDomainList" resultMap="AppTopicDomainCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="AppTopicDomainCfg_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_topic_domain_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findAppByIpList" resultMap="AppIpCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="AppIpCfg_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_ip_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findAppByHttpList" resultMap="AppHttpCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="AppHttpCfg_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_http_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findAppByDomainList" resultMap="AppDomainCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="AppDomainCfg_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_domain_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findAppBySslList" resultMap="AppSslCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="AppSslCfg_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_ssl_cert_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -62,4 +62,6 @@ public interface AppMultiFeatureCfgDao {
|
|||||||
public List<AppIpCfg> getAppIpRangeCfg(@Param("compileId")Integer compileId,@Param("functionId")Integer functionId) ;
|
public List<AppIpCfg> getAppIpRangeCfg(@Param("compileId")Integer compileId,@Param("functionId")Integer functionId) ;
|
||||||
public int insertAppIpRangeCfg(AppIpCfg entity);
|
public int insertAppIpRangeCfg(AppIpCfg entity);
|
||||||
public void deleteAppIpRangeCfg(BaseCfg entity);
|
public void deleteAppIpRangeCfg(BaseCfg entity);
|
||||||
|
|
||||||
|
public List<AppFeatureIndex> findAppByFeatureIndexList(@Param("ids")String ids);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -521,4 +521,21 @@
|
|||||||
<delete id="deleteAppComplexFeatureCfg" >
|
<delete id="deleteAppComplexFeatureCfg" >
|
||||||
delete from app_complex_feature_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
delete from app_complex_feature_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<select id="findAppByFeatureIndexList" resultMap="AppFeatureIndexMap">
|
||||||
|
select
|
||||||
|
<include refid="AppFeatureIndex_Column"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from app_feature_index r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -13,4 +13,6 @@ import com.nis.web.dao.MyBatisDao;
|
|||||||
public interface DdosCfgDao extends CrudDao<DdosIpCfg> {
|
public interface DdosCfgDao extends CrudDao<DdosIpCfg> {
|
||||||
List<DdosIpCfg> findPage(DdosIpCfg cfg);
|
List<DdosIpCfg> findPage(DdosIpCfg cfg);
|
||||||
DdosIpCfg getDdosIpCfg(@Param("cfgId")Long cfgId,@Param("compileId")Integer compileId);
|
DdosIpCfg getDdosIpCfg(@Param("cfgId")Long cfgId,@Param("compileId")Integer compileId);
|
||||||
|
List<DdosIpCfg> findByPage(@Param("ids")String ids);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -372,4 +372,19 @@
|
|||||||
</where>
|
</where>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<select id="findByPage" resultMap="ddosIpCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="columns"></include>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
,s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
from ddos_ip_cfg r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -14,4 +14,5 @@ public interface DnsIpCfgDao extends CrudDao<DnsIpCfg> {
|
|||||||
DnsIpCfg getDnsIpCfg(Long cfgId);
|
DnsIpCfg getDnsIpCfg(Long cfgId);
|
||||||
List<DnsIpCfg> findDnsIpCfg(DnsIpCfg entity);
|
List<DnsIpCfg> findDnsIpCfg(DnsIpCfg entity);
|
||||||
List<DnsIpCfg> getValidCfgInfo(DnsIpCfg cfg);
|
List<DnsIpCfg> getValidCfgInfo(DnsIpCfg cfg);
|
||||||
|
List<DnsIpCfg> findByPage(@Param("ids")String ids);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -377,4 +377,21 @@
|
|||||||
</where>
|
</where>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findByPage" resultMap="dnsIpCfgMap">
|
||||||
|
select
|
||||||
|
<include refid="columns"></include>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
,s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName,dns.group_name as dns_strategy_name
|
||||||
|
</trim>
|
||||||
|
from dns_ip_cfg r
|
||||||
|
left join policy_group_info dns on dns.group_id=r.dns_strategy_id
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -18,4 +18,6 @@ public interface DnsResStrategyDao extends CrudDao<DnsResStrategy> {
|
|||||||
,@Param("isAudit")Integer isAudit
|
,@Param("isAudit")Integer isAudit
|
||||||
,@Param("isValid")Integer isValid);
|
,@Param("isValid")Integer isValid);
|
||||||
|
|
||||||
|
List<DnsResStrategy> findByPage(@Param("ids")String ids);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -368,4 +368,21 @@ LEFT JOIN dns_res_strategy r ON a.dns_strategy_id=r.res_group_1_id
|
|||||||
</where>
|
</where>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查出所有 有效数据-->
|
||||||
|
<select id="findByPage" resultMap="DnsResStrategyMap">
|
||||||
|
SELECT
|
||||||
|
<include refid="DnsResStrategyColumns"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, a.group_name group_1_name,s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
FROM dns_res_strategy r
|
||||||
|
left join policy_group_info a on r.res_group_1_id=a.group_Id
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -46,5 +46,7 @@ public interface IpCfgDao extends CrudDao<BaseIpCfg>{
|
|||||||
public void updateCfgValid(BaseCfg entity);
|
public void updateCfgValid(BaseCfg entity);
|
||||||
public void auditCfg(BaseCfg entity);
|
public void auditCfg(BaseCfg entity);
|
||||||
public List<CfgIndexInfo> getIpCfgList(CfgIndexInfo entity);
|
public List<CfgIndexInfo> getIpCfgList(CfgIndexInfo entity);
|
||||||
|
|
||||||
|
public List<CfgIndexInfo> getByIdsList(@Param("ids")String ids);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1143,4 +1143,20 @@
|
|||||||
</choose>
|
</choose>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="getByIdsList" resultMap="CfgIndexInfoMap" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
|
||||||
|
SELECT
|
||||||
|
<include refid="ConfigIndex_Column" />
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
, s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName,dns.cfg_desc as dns_strategy_name
|
||||||
|
</trim>
|
||||||
|
FROM cfg_index_info a
|
||||||
|
left join dns_res_strategy dns on a.dns_strategy_id=dns.cfg_id
|
||||||
|
left join sys_user s on a.creator_id=s.id
|
||||||
|
left join sys_user e on a.editor_id=e.id
|
||||||
|
left join sys_user u on a.auditor_id=u.id
|
||||||
|
left join request_info ri on a.request_id=ri.id
|
||||||
|
where a.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -13,6 +13,10 @@ import com.nis.web.dao.MyBatisDao;
|
|||||||
@MyBatisDao
|
@MyBatisDao
|
||||||
public interface PxyObjKeyringDao extends CrudDao<PxyObjKeyring>{
|
public interface PxyObjKeyringDao extends CrudDao<PxyObjKeyring>{
|
||||||
List<PxyObjKeyring> findPage( PxyObjKeyring pxyObjKeyring);
|
List<PxyObjKeyring> findPage( PxyObjKeyring pxyObjKeyring);
|
||||||
|
|
||||||
|
List<PxyObjKeyring> findByList(@Param("ids")String ids);
|
||||||
|
List<PxyObjTrustedCaCert> findByCertList(@Param("ids")String ids);
|
||||||
|
|
||||||
List<PxyObjTrustedCaCert> findTrustedCertPage( PxyObjTrustedCaCert PxyObjTrustedCaCert);
|
List<PxyObjTrustedCaCert> findTrustedCertPage( PxyObjTrustedCaCert PxyObjTrustedCaCert);
|
||||||
List<PxyObjKeyring> findList(@Param("cfgId")Long cfgId
|
List<PxyObjKeyring> findList(@Param("cfgId")Long cfgId
|
||||||
,@Param("isAudit")Integer isAudit
|
,@Param("isAudit")Integer isAudit
|
||||||
|
|||||||
@@ -797,4 +797,38 @@
|
|||||||
</where>
|
</where>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 查出所有 有效数据-->
|
||||||
|
<select id="findByList" resultMap="PxyObjKeyringMap">
|
||||||
|
SELECT
|
||||||
|
<include refid="PxyObjKeyringColumns"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
,s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
FROM pxy_obj_keyring r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查出所有 有效数据-->
|
||||||
|
<select id="findByCertList" resultMap="PxyObjTrustedCaCertMap">
|
||||||
|
SELECT
|
||||||
|
<include refid="PxyObjTrustedCaCertColumns"/>
|
||||||
|
<trim prefix="," prefixOverrides=",">
|
||||||
|
,s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||||
|
,ri.request_title as requestName
|
||||||
|
</trim>
|
||||||
|
FROM pxy_obj_trusted_ca_cert r
|
||||||
|
left join sys_user s on r.creator_id=s.id
|
||||||
|
left join sys_user e on r.editor_id=e.id
|
||||||
|
left join sys_user u on r.auditor_id=u.id
|
||||||
|
left join request_info ri on r.request_id=ri.id
|
||||||
|
where r.CFG_ID in (${ids})
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -30,6 +30,7 @@ import com.nis.domain.configuration.AppTopicDomainCfg;
|
|||||||
import com.nis.domain.configuration.AreaIpCfg;
|
import com.nis.domain.configuration.AreaIpCfg;
|
||||||
import com.nis.domain.configuration.BaseIpCfg;
|
import com.nis.domain.configuration.BaseIpCfg;
|
||||||
import com.nis.domain.configuration.BaseStringCfg;
|
import com.nis.domain.configuration.BaseStringCfg;
|
||||||
|
import com.nis.domain.configuration.CfgIndexInfo;
|
||||||
import com.nis.domain.configuration.ComplexkeywordCfg;
|
import com.nis.domain.configuration.ComplexkeywordCfg;
|
||||||
import com.nis.domain.configuration.IpPortCfg;
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
import com.nis.domain.configuration.NtcSubscribeIdCfg;
|
||||||
@@ -94,6 +95,12 @@ public class AppCfgService extends BaseService {
|
|||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<AppPolicyCfg> findAppByPolicyList(String ids) {
|
||||||
|
List<AppPolicyCfg> list = appCfgDao.findAppByPolicyList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public Page<AppIpCfg> findAppIpList(Page<AppIpCfg> page, AppIpCfg entity) {
|
public Page<AppIpCfg> findAppIpList(Page<AppIpCfg> page, AppIpCfg entity) {
|
||||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||||
entity.setPage(page);
|
entity.setPage(page);
|
||||||
@@ -101,6 +108,11 @@ public class AppCfgService extends BaseService {
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<AppIpCfg> findAppByIpList(String ids) {
|
||||||
|
List<AppIpCfg> list = appCfgDao.findAppByIpList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
public Page<AppHttpCfg> findAppHttpList(Page<AppHttpCfg> page, AppHttpCfg entity) {
|
public Page<AppHttpCfg> findAppHttpList(Page<AppHttpCfg> page, AppHttpCfg entity) {
|
||||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||||
@@ -109,6 +121,11 @@ public class AppCfgService extends BaseService {
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<AppHttpCfg> findAppByHttpList(String ids ) {
|
||||||
|
List<AppHttpCfg> list = appCfgDao.findAppByHttpList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
public Page<AppDomainCfg> findAppDomainList(Page<AppDomainCfg> page, AppDomainCfg entity) {
|
public Page<AppDomainCfg> findAppDomainList(Page<AppDomainCfg> page, AppDomainCfg entity) {
|
||||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||||
@@ -118,6 +135,11 @@ public class AppCfgService extends BaseService {
|
|||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<AppDomainCfg> findAppByDomainList(String ids) {
|
||||||
|
List<AppDomainCfg> list = appCfgDao.findAppByDomainList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
public AppPolicyCfg exportIpInfo(AppPolicyCfg policy){
|
public AppPolicyCfg exportIpInfo(AppPolicyCfg policy){
|
||||||
List<IpPortCfg> ipPortList = appCfgDao.getAppPolicyIpList(policy);
|
List<IpPortCfg> ipPortList = appCfgDao.getAppPolicyIpList(policy);
|
||||||
policy.setIpPortList(ipPortList);
|
policy.setIpPortList(ipPortList);
|
||||||
@@ -136,6 +158,14 @@ public class AppCfgService extends BaseService {
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 主题网站列表
|
||||||
|
public List<AppTopicDomainCfg> findAppByTopicDomainList(String ids) {
|
||||||
|
List<AppTopicDomainCfg> list = appCfgDao.findAppByTopicDomainList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Page<AppByteCfg> findAppByteList(Page<AppByteCfg> page, AppByteCfg entity) {
|
public Page<AppByteCfg> findAppByteList(Page<AppByteCfg> page, AppByteCfg entity) {
|
||||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||||
@@ -152,6 +182,11 @@ public class AppCfgService extends BaseService {
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<AppSslCertCfg> findAppBySslList(String ids) {
|
||||||
|
List<AppSslCertCfg> list = appCfgDao.findAppBySslList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
public Page<AppTcpCfg> findAppTcpList(Page<AppTcpCfg> page, AppTcpCfg entity) {
|
public Page<AppTcpCfg> findAppTcpList(Page<AppTcpCfg> page, AppTcpCfg entity) {
|
||||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||||
|
|||||||
@@ -60,6 +60,14 @@ public class AppMultiFeatureCfgService extends BaseService {
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//分页查询
|
||||||
|
public List<AppFeatureIndex> findAppByFeatureIndexList(String ids) {
|
||||||
|
List<AppFeatureIndex> list = appMultiFeatureCfgDao.findAppByFeatureIndexList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public AppFeatureIndex getAppFeatureIndex(Long cfgId) {
|
public AppFeatureIndex getAppFeatureIndex(Long cfgId) {
|
||||||
return appMultiFeatureCfgDao.getAppFeatureIndex(cfgId);
|
return appMultiFeatureCfgDao.getAppFeatureIndex(cfgId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ public class DdosCfgService extends BaseService{
|
|||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<DdosIpCfg> findByPage(String ids) {
|
||||||
|
List<DdosIpCfg> list=ddosCfgDao.findByPage(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
public DdosIpCfg getDdosIpCfg(Long cfgId,Integer compileId) {
|
public DdosIpCfg getDdosIpCfg(Long cfgId,Integer compileId) {
|
||||||
return ddosCfgDao.getDdosIpCfg(cfgId,compileId);
|
return ddosCfgDao.getDdosIpCfg(cfgId,compileId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,11 @@ public class DnsIpCfgService extends BaseService{
|
|||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<DnsIpCfg> findByPage(String ids) {
|
||||||
|
List<DnsIpCfg> list=dnsIpCfgDao.findByPage(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
public List<DnsIpCfg> findDnsIpCfg(DnsIpCfg entity) {
|
public List<DnsIpCfg> findDnsIpCfg(DnsIpCfg entity) {
|
||||||
return dnsIpCfgDao.findDnsIpCfg(entity);
|
return dnsIpCfgDao.findDnsIpCfg(entity);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,13 @@ public class DnsResStrategyService extends BaseService{
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<DnsResStrategy> findByPage(String ids ) {
|
||||||
|
List<DnsResStrategy> list=dnsResStrategyDao.findByPage(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<DnsResStrategy> findDnsResStrategys(Long cfgId,Integer isValid,Integer isAudit) {
|
public List<DnsResStrategy> findDnsResStrategys(Long cfgId,Integer isValid,Integer isAudit) {
|
||||||
List<DnsResStrategy> list=dnsResStrategyDao.findList(cfgId,isValid,isAudit);
|
List<DnsResStrategy> list=dnsResStrategyDao.findList(cfgId,isValid,isAudit);
|
||||||
return list;
|
return list;
|
||||||
|
|||||||
@@ -932,4 +932,9 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<CfgIndexInfo> getByIdsList(String ids) {
|
||||||
|
List<CfgIndexInfo> list = ipCfgDao.getByIdsList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,6 +56,17 @@ public class PxyObjKeyringService extends BaseService{
|
|||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
public List<PxyObjKeyring> findByList(String ids) {
|
||||||
|
List<PxyObjKeyring> list=pxyObjKeyringDao.findByList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PxyObjTrustedCaCert> findByCertList(String ids) {
|
||||||
|
List<PxyObjTrustedCaCert> list=pxyObjKeyringDao.findByCertList(ids);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询分页数据
|
* 查询分页数据
|
||||||
* @param page 分页对象
|
* @param page 分页对象
|
||||||
|
|||||||
@@ -1375,4 +1375,20 @@ pps_percent=pps Percent
|
|||||||
spoofing_ip_object=Spoofing Policy Object
|
spoofing_ip_object=Spoofing Policy Object
|
||||||
spoofing_ip_policy=Spoofing Policy
|
spoofing_ip_policy=Spoofing Policy
|
||||||
action_spoofing=Spoofing
|
action_spoofing=Spoofing
|
||||||
spoofing=spoofing
|
spoofing=spoofing
|
||||||
|
service=Service
|
||||||
|
s_asn=SASN
|
||||||
|
d_asn=DASN
|
||||||
|
asn_conn_report=ANS Report
|
||||||
|
https_url_report=HTTP(s) URL Report
|
||||||
|
url=URL
|
||||||
|
sum=SUM
|
||||||
|
url_count=URL Count
|
||||||
|
ip_range_report=ip Range Report
|
||||||
|
ip_start=Start IP
|
||||||
|
ip_end=End IP
|
||||||
|
ip_start_num=IP Start Num
|
||||||
|
ip_end_num=IP End Num
|
||||||
|
ip_sub=IP Subnet
|
||||||
|
start_ip=Start IP
|
||||||
|
end_ip=End IP
|
||||||
@@ -1379,4 +1379,20 @@ pps_percent=pps Percent
|
|||||||
spoofing_ip_object=Spoofing Policy Object
|
spoofing_ip_object=Spoofing Policy Object
|
||||||
spoofing_ip_policy=Spoofing Policy
|
spoofing_ip_policy=Spoofing Policy
|
||||||
action_spoofing=Spoofing
|
action_spoofing=Spoofing
|
||||||
spoofing=spoofing
|
spoofing=spoofing
|
||||||
|
service=Service
|
||||||
|
s_asn=SASN
|
||||||
|
d_asn=DASN
|
||||||
|
asn_conn_report=ANS Report
|
||||||
|
https_url_report=HTTP(s) URL Report
|
||||||
|
url=URL
|
||||||
|
sum=SUM
|
||||||
|
url_count=URL Count
|
||||||
|
ip_range_report=ip Range Report
|
||||||
|
ip_start=Start IP
|
||||||
|
ip_end=End IP
|
||||||
|
ip_start_num=IP Start Num
|
||||||
|
ip_end_num=IP End Num
|
||||||
|
ip_sub=IP Subnet
|
||||||
|
start_ip=Start IP
|
||||||
|
end_ip=End IP
|
||||||
@@ -1375,4 +1375,20 @@ pps_percent=pps Percent
|
|||||||
spoofing_ip_object=Spoofing Policy Object
|
spoofing_ip_object=Spoofing Policy Object
|
||||||
spoofing_ip_policy=Spoofing Policy
|
spoofing_ip_policy=Spoofing Policy
|
||||||
action_spoofing=Spoofing
|
action_spoofing=Spoofing
|
||||||
spoofing=spoofing
|
spoofing=spoofing
|
||||||
|
service=Service
|
||||||
|
s_asn=SASN
|
||||||
|
d_asn=DASN
|
||||||
|
asn_conn_report=ANS Report
|
||||||
|
https_url_report=HTTP(s) URL Report
|
||||||
|
url=URL
|
||||||
|
sum=SUM
|
||||||
|
url_count=URL Count
|
||||||
|
ip_range_report=ip Range Report
|
||||||
|
ip_start=Start IP
|
||||||
|
ip_end=End IP
|
||||||
|
ip_start_num=IP Start Num
|
||||||
|
ip_end_num=IP End Num
|
||||||
|
ip_sub=IP Subnet
|
||||||
|
start_ip=Start IP
|
||||||
|
end_ip=End IP
|
||||||
@@ -589,4 +589,7 @@ ntcConnRecordPercent=ntcConnRecordPercent
|
|||||||
#\u5BFC\u51FA\u6700\u5927\u6761\u6570
|
#\u5BFC\u51FA\u6700\u5927\u6761\u6570
|
||||||
maxLogExportSize=2000
|
maxLogExportSize=2000
|
||||||
pxy_crtl_subscribe_id_region=PXY_CTRL_SUBSCRIBE_ID
|
pxy_crtl_subscribe_id_region=PXY_CTRL_SUBSCRIBE_ID
|
||||||
ntc_subscribe_id_region=NTC_SUBSCRIBE_ID
|
ntc_subscribe_id_region=NTC_SUBSCRIBE_ID
|
||||||
|
ntcAsnRecord=ntcAsnRecord
|
||||||
|
ntcURLReport=ntcURLReport
|
||||||
|
ntcIpRangeReport=ntcIpRangeReport
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#日志查询-封堵类型
|
||||||
|
INSERT INTO `sys_data_dictionary_name` (`id`, `module_name`, `mark`, `remark`, `revision`, `create_time`, `modify_time`, `status`) VALUES ('152', '日志查询-封堵类型', 'FD_TYPE', '日志查询-封堵类型', '', '2018-12-17 06:06:23', '2018-12-17 06:06:23', '1');
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO `sys_data_dictionary_item` (`id`, `item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) VALUES ('4059', '0', 'black_block_list', '动态黑名单FD', '0', '1', '1', '152');
|
||||||
|
INSERT INTO `sys_data_dictionary_item` (`id`, `item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) VALUES ('4060', '1', 'static_cfg_block', '静态配置FD', '0', '1', '1', '152');
|
||||||
|
INSERT INTO `sys_data_dictionary_item` (`id`, `item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) VALUES ('4061', '2', 'first_hit', '首次分析命中', '0', '1', '1', '152');
|
||||||
@@ -31,12 +31,12 @@
|
|||||||
</a>
|
</a>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:when test="${label eq 'excel'}">
|
<c:when test="${label eq 'excel'}">
|
||||||
<a href="javascript:void(0);" onclick="exportData('${url}',${fns:getStringProperty('maxExportSize',1000000)},'${searchUrl}')" data-toggle="tooltip" data-placement="top">
|
<a href="javascript:void(0);" onclick="exportData('${url}',${fns:getStringProperty('maxLogExportSize',2000)},'${searchUrl}')" data-toggle="tooltip" data-placement="top">
|
||||||
<i class="fa fa-download"> <spring:message code="Excel"/></i>
|
<i class="fa fa-download"> <spring:message code="Excel"/></i>
|
||||||
</a>
|
</a>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:when test="${label eq 'csv'}">
|
<c:when test="${label eq 'csv'}">
|
||||||
<a href="javascript:void(0);" onclick="exportData('${url}',${fns:getStringProperty('maxExportSize',1000000)},'${searchUrl}')" data-toggle="tooltip" data-placement="top">
|
<a href="javascript:void(0);" onclick="exportData('${url}',${fns:getStringProperty('maxLogExportSize',2000)},'${searchUrl}')" data-toggle="tooltip" data-placement="top">
|
||||||
<i class="fa fa-download"> <spring:message code="CSV"/></i>
|
<i class="fa fa-download"> <spring:message code="CSV"/></i>
|
||||||
</a>
|
</a>
|
||||||
</c:when>
|
</c:when>
|
||||||
|
|||||||
@@ -196,7 +196,7 @@
|
|||||||
<div class="main_center1 fl">
|
<div class="main_center1 fl">
|
||||||
<div class="bottom_web fl">
|
<div class="bottom_web fl">
|
||||||
<div class="main_title_web">
|
<div class="main_title_web">
|
||||||
<spring:message code="traffic_website_list"/> <%-- <a href="${ctx}/dashboard/webTypeList"><i class="fa fa-list-ul"></i></a> --%>
|
<spring:message code="traffic_website_list"/> <a href="${ctx}/dashboard/traffic/webTypeList"><i class="fa fa-line-chart"></i></a>
|
||||||
<a href="javascipt:void(0)" onclick="websiteList();return false;"><i class="fa fa-refresh"></i></a>
|
<a href="javascipt:void(0)" onclick="websiteList();return false;"><i class="fa fa-refresh"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_table_web">
|
<div class="main_table_web">
|
||||||
|
|||||||
@@ -3,118 +3,185 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>网站主题服务分类</title>
|
<title>网站主题服务分类</title>
|
||||||
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/pages/css/dashboard.css">
|
<link rel="stylesheet"
|
||||||
|
href="${pageContext.request.contextPath}/static/pages/css/dashboard.css">
|
||||||
|
<link rel="stylesheet"
|
||||||
|
href="${pageContext.request.contextPath}/static/pages/css/pagination.css">
|
||||||
|
|
||||||
|
<script
|
||||||
|
src="${pageContext.request.contextPath}/static/pages/scripts/jquery.pagination.js"></script>
|
||||||
|
<script
|
||||||
|
src="${ctxStatic }/global/plugins/tableExport-3.3.13/xlsx.core.js"></script>
|
||||||
|
<script
|
||||||
|
src="${ctxStatic }/global/plugins/tableExport-3.3.13/FileSaver.js"></script>
|
||||||
|
<script
|
||||||
|
src="${ctxStatic }/global/plugins/tableExport-3.3.13/tableexport.js"></script>
|
||||||
|
<script
|
||||||
|
src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/highcharts.js"></script>
|
||||||
|
<script
|
||||||
|
src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting.js"></script>
|
||||||
|
<script
|
||||||
|
src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/series-label.js"></script>
|
||||||
|
<script
|
||||||
|
src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
</style>
|
||||||
</style>
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<button type="button" class="btn btn-default" onClick="javascript:window.location='${ctx}/dashboard/webTypeList'"><spring:message code="refresh"/></button>
|
<button type="button" class="btn btn-default"
|
||||||
<button type="button" class="btn btn-default" onClick="javascript:window.location='${ctx}/dashboard/logChart'"><spring:message code="back"/></button>
|
onClick="javascript:window.location='${ctx}/dashboard/webTypeList'">
|
||||||
</div>
|
<spring:message code="refresh" />
|
||||||
<h3 class="page-title">
|
</button>
|
||||||
<spring:message code="网站分类"></spring:message>
|
<button type="button" class="btn btn-default"
|
||||||
</h3>
|
onClick="javascript:window.location='${ctx}/dashboard/logChart'">
|
||||||
<h5 class="page-header"></h5>
|
<spring:message code="back" />
|
||||||
<ul class="nav nav-tabs">
|
</button>
|
||||||
<li class="active"><a href="${ctx}/dashboard/ipActiveList">网站</a></li>
|
</div>
|
||||||
|
<h3 class="page-title">
|
||||||
|
<spring:message code="traffic_website_type_chart"></spring:message>
|
||||||
|
</h3>
|
||||||
|
<h5 class="page-header"></h5>
|
||||||
|
<form:form id="searchForm"
|
||||||
|
action="${ctx}/dashboard/traffic/websiteList" method="get"
|
||||||
|
class="form-search">
|
||||||
|
<input id="beginDateh" type="hidden" value="${beginDate}" />
|
||||||
|
<input id="endDateh" type="hidden" value="${endDate}" />
|
||||||
|
<!-- 搜索内容与操作按钮栏 -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="pull-left">
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-btn">
|
||||||
|
<span class="selectpicker form-control"><spring:message
|
||||||
|
code="begin_date" /></span>
|
||||||
|
</div>
|
||||||
|
<input id="beginDate" name="beginDate" type="text"
|
||||||
|
readonly="readonly" class="form-control Wdate input-medium"
|
||||||
|
value=""
|
||||||
|
onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'${beginDate}'});" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-btn">
|
||||||
|
<span class="selectpicker form-control"><spring:message
|
||||||
|
code="end_date" /></span>
|
||||||
|
</div>
|
||||||
|
<input id="endDate" name="endDate" type="text" readonly="readonly"
|
||||||
|
class="form-control Wdate input-medium" value=""
|
||||||
|
onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'${endDate}'});" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pull-left">
|
||||||
|
<button type="button" class="btn blue"
|
||||||
|
onClick="return searchList()">
|
||||||
|
<i class="fa fa-search"></i>
|
||||||
|
<spring:message code="search" />
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-default" id="resetBtn">
|
||||||
|
<i class="fa fa-refresh"></i>
|
||||||
|
<spring:message code="reset" />
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
<button type="button" class="btn btn-default" id="export-btn" >
|
||||||
|
<i class="fa fa-download"> <spring:message code="export" /></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 搜索内容与操作按钮栏 -->
|
||||||
|
</form:form>
|
||||||
|
<%-- <ul class="nav nav-tabs">
|
||||||
|
<li class="active"><a href="#">网站</a></li>
|
||||||
<li><a href="${ctx}/dashboard/ipActiveList">主题</a></li>
|
<li><a href="${ctx}/dashboard/ipActiveList">主题</a></li>
|
||||||
<li><a href="${ctx}/dashboard/ipActiveList">服务</a></li>
|
<li><a href="${ctx}/dashboard/ipActiveList">服务</a></li>
|
||||||
</ul>
|
</ul> --%>
|
||||||
|
<%--
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<%--
|
|
||||||
<embed width="700px" height="500px" src="${pageContext.request.contextPath}/static/global/plugins/highcharts/svg.svg"></embed>
|
<embed width="700px" height="500px" src="${pageContext.request.contextPath}/static/global/plugins/highcharts/svg.svg"></embed>
|
||||||
--%>
|
--%>
|
||||||
|
<!-- -->
|
||||||
|
<!-- <div id="chart" style="width:100%;height:400px;"></div> -->
|
||||||
|
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="portlet">
|
||||||
|
<div class="portlet-body">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
<!-- -->
|
<form:form id="searchForm" modelAttribute="entry"
|
||||||
<div id="chart" style="width:100%;height:400px;"></div>
|
action="${ctx}/dashboard/websiteList" method="post"
|
||||||
|
class="form-search">
|
||||||
<div class="col-md-12">
|
<input id="pageNo" name="pageNo" type="hidden"
|
||||||
<div class="portlet">
|
value="${page.pageNo}" />
|
||||||
<div class="portlet-body">
|
<input id="pageSize" name="pageSize" type="hidden"
|
||||||
|
value="${page.pageSize}" />
|
||||||
<div class="row" >
|
</form:form>
|
||||||
<form:form id="searchForm" modelAttribute="entry" action="${ctx}/dashboard/webTypeList" method="post" class="form-search">
|
</div>
|
||||||
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
<style>
|
||||||
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
.show-two {
|
||||||
</form:form>
|
display: inline-block;
|
||||||
</div>
|
}
|
||||||
<style>
|
|
||||||
.show-two{
|
.title-num {
|
||||||
display: inline-block;
|
margin-right: 8px;
|
||||||
}
|
border-radius: 40px !important;
|
||||||
.title-num{
|
background-color: #f34b60;
|
||||||
margin-right:8px;
|
color: #fff;
|
||||||
border-radius:40px !important;
|
width: 40px;
|
||||||
background-color: #f34b60;
|
text-align: center;
|
||||||
color:#fff;
|
font-size: 20px;
|
||||||
width:40px;
|
}
|
||||||
text-align: center;
|
|
||||||
font-size: 20px;
|
.tbody .tr:active {
|
||||||
}
|
background: rgb(210, 232, 251, 0.8);
|
||||||
.tbody .tr:active{
|
}
|
||||||
background: rgb(210, 232, 251, 0.8);
|
</style>
|
||||||
}
|
<script type="text/javascript">
|
||||||
</style>
|
$(function() {
|
||||||
<script type="text/javascript">
|
$("#contentTable tbody tr").bind(
|
||||||
$(function(){
|
'click',
|
||||||
$("#contentTable tbody tr").bind('click',function(){
|
function() {
|
||||||
$("tbody tr").removeClass("active");
|
$("tbody tr").removeClass("active");
|
||||||
$(this).addClass("active");
|
$(this).addClass("active");
|
||||||
$("span[class='title-num']").html(' '+($(this).index()+1)+' ')
|
$("span[class='title-num']").html(
|
||||||
});
|
' '
|
||||||
});
|
+ ($(this).index() + 1)
|
||||||
</script>
|
+ ' ')
|
||||||
<sys:message content="${message}" type="${messageType }"/>
|
});
|
||||||
<div class="table-responsive show-two">
|
});
|
||||||
<table id="contentTable" style="width: 35%;" class="table table-hover table-striped table-bordered table-condensed text-nowrap">
|
</script>
|
||||||
<thead>
|
<sys:message content="${message}" type="${messageType }" />
|
||||||
<tr>
|
|
||||||
<th><spring:message code="sort"/></th>
|
<div class="table-responsive">
|
||||||
<th><spring:message code="网站"/></th>
|
<table id="contentTable" style="width: 100%;"
|
||||||
<%-- <th><spring:message code="area_id"/></th> --%>
|
class="table table-hover table-striped table-bordered table-condensed text-nowrap">
|
||||||
<th><spring:message code="访问次数"/></th>
|
<thead>
|
||||||
<th><spring:message code="c2s_pkt_num"/></th>
|
|
||||||
<th><spring:message code="s2c_pkt_num"/></th>
|
|
||||||
<th><spring:message code="c2s_byte_len"/></th>
|
|
||||||
<th><spring:message code="s2c_byte_len"/></th>
|
|
||||||
<th><spring:message code="stat_time"/></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<c:forEach var="entry" items="${page.list }" varStatus="status">
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>${entry.id }</td>
|
<th><spring:message code="Domain" /></th>
|
||||||
<td>${entry.ipAddr }</td>
|
<th><spring:message code="Link Times" /></th>
|
||||||
<%-- <td>${entry.areaId }</td> --%>
|
<th><spring:message code="Percentage(Link Times)" /></th>
|
||||||
<td>${entry.linkNum }</td>
|
<th><spring:message code="Packets" /></th>
|
||||||
<td>${entry.c2sPktNum }</td>
|
<th><spring:message code="Percentage(Packets)" /></th>
|
||||||
<td>${entry.s2cPktNum }</td>
|
<th><spring:message code="Gbyte" /></th>
|
||||||
<td>${entry.c2sByteLen }</td>
|
<th><spring:message code="Percentage(Gbyte)" /></th>
|
||||||
<td>${entry.s2cByteLen }</td>
|
|
||||||
<td><fmt:formatDate value="${entry.statTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</c:forEach>
|
</thead>
|
||||||
</tbody>
|
<tbody id="tableData"></tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="page">${page}</div>
|
|
||||||
</div>
|
<div id="page">
|
||||||
<div class="right-table" style="width: 30%;float: right;" >
|
<div class="M-box" style="float: right"></div>
|
||||||
|
</div>
|
||||||
|
<div class="none-data">
|
||||||
|
<i class="fa fa-warning font-red-flamingo"></i>
|
||||||
|
<spring:message code="noneData" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<%-- <div class="right-table" style="width: 30%;float: right;" >
|
||||||
<h3>
|
<h3>
|
||||||
<span class="title-num"> 1 </span>
|
<span class="title-num"> 1 </span>
|
||||||
<label>分类流量统计</label>
|
<label>分类流量统计</label>
|
||||||
@@ -132,70 +199,361 @@
|
|||||||
<tr><td><spring:message code="。。"/></td><td>33456</td></tr>
|
<tr><td><spring:message code="。。"/></td><td>33456</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<div id="page"><div class="M-box" style="float: right"></div></div>
|
||||||
|
<div class="none-data"><i class="fa fa-warning font-red-flamingo"></i> <spring:message code="noneData"/></div>
|
||||||
|
</div> --%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<script
|
||||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/highcharts.js"></script>
|
src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/highcharts.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
/* $(document).ready(function(){
|
||||||
var chart = Highcharts.chart('chart', {
|
var chart = Highcharts.chart('chart', {
|
||||||
title: {
|
title: {
|
||||||
text: '网站分类'
|
text: '网站分类'
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
title: {
|
title: {
|
||||||
text: 'bps'
|
text: 'bps'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
layout: 'vertical',
|
layout: 'vertical',
|
||||||
align: 'right',
|
align: 'right',
|
||||||
verticalAlign: 'middle'
|
verticalAlign: 'middle'
|
||||||
},
|
},
|
||||||
xAxis:{
|
xAxis:{
|
||||||
type:'datetime',
|
type:'datetime',
|
||||||
dateTimeLabelFormats:{
|
dateTimeLabelFormats:{
|
||||||
day:'%Y-%m-%d %h'
|
day:'%Y-%m-%d %h'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
plotOptions: {
|
||||||
|
series: {
|
||||||
|
pointStart: Date.UTC(2018, 8, 16,1),
|
||||||
|
pointInterval: 3600*1000,
|
||||||
|
// pointIntervalUnit:'day'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
series: [{
|
||||||
|
name: 'Installation',
|
||||||
|
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
|
||||||
|
}],
|
||||||
|
|
||||||
|
responsive: {
|
||||||
|
rules: [{
|
||||||
|
condition: {
|
||||||
|
maxWidth: 500
|
||||||
|
},
|
||||||
|
chartOptions: {
|
||||||
|
legend: {
|
||||||
|
layout: 'horizontal',
|
||||||
|
align: 'center',
|
||||||
|
verticalAlign: 'bottom'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}); */
|
||||||
|
|
||||||
|
$(document).ready(
|
||||||
|
function() {
|
||||||
|
var starth = $("#beginDateh").val();
|
||||||
|
var endh = $("#endDateh").val();
|
||||||
|
$("#beginDate").val(starth);
|
||||||
|
$("#endDate").val(endh);
|
||||||
|
ajaxWebTypeList(starth, endh);
|
||||||
|
|
||||||
|
setInterval(function() {
|
||||||
|
ajaxWebTypeList(starth, new Date()
|
||||||
|
.Format("yyyy-MM-dd HH:mm:00"));
|
||||||
|
}, 500000);// 五分钟调用一次
|
||||||
|
});
|
||||||
|
function searchList() {
|
||||||
|
loading();
|
||||||
|
var start = $("#beginDate").val();
|
||||||
|
var end = $("#endDate").val();
|
||||||
|
if (start == '' || end == '' || end == null || start == null) {
|
||||||
|
window.location.reload();
|
||||||
|
} else {
|
||||||
|
ajaxWebTypeList(start, end);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function ajaxWebTypeList(start, end) {
|
||||||
|
loading();
|
||||||
|
$
|
||||||
|
.ajax({
|
||||||
|
url : '${ctx}/dashboard/traffic/websiteList',
|
||||||
|
type : 'get',
|
||||||
|
dataType : "json",
|
||||||
|
data : {
|
||||||
|
"beginDate" : start,
|
||||||
|
"endDate" : end
|
||||||
|
},
|
||||||
|
async : false,
|
||||||
|
timeout : 10000,
|
||||||
|
success : function(data) {
|
||||||
|
if (data != null && data.length > 0
|
||||||
|
&& data[0].error != null) {
|
||||||
|
top.$.jBox
|
||||||
|
.tip(
|
||||||
|
"<spring:message code='request_service_failed'/>",
|
||||||
|
"<spring:message code='info'/>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
console.log(JSON.stringify(data));
|
||||||
|
fileData = data;
|
||||||
|
getPageData(1, 10);//初始化第一页的数据
|
||||||
|
pageJuan(10);//初始化分页
|
||||||
|
closeTip();
|
||||||
|
if (data != null && data.length < 1) {
|
||||||
|
$(".none-data").show();
|
||||||
|
$('.M-box').hide();
|
||||||
|
} else {
|
||||||
|
$('.none-data').hide();
|
||||||
|
$('.M-box').show();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error : function(data, textStatus, errorThrown) {
|
||||||
|
closeTip();
|
||||||
|
},
|
||||||
|
complete : function(XMLHttpRequest, status) {//超时设置
|
||||||
|
closeTip();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 导出列表
|
||||||
|
$("#export-btn").click(function() {
|
||||||
|
getPageData(1, 999999);// 设置导出页条数
|
||||||
|
var te = $("#contentTable").tableExport({
|
||||||
|
headings : true,
|
||||||
|
footers : true,
|
||||||
|
formats : [ "xlsx" ],
|
||||||
|
fileName : "website",
|
||||||
|
bootstrap : false
|
||||||
|
});
|
||||||
|
$("#myexport").click();
|
||||||
|
$("caption").remove();
|
||||||
|
getPageData(1, 10);
|
||||||
|
});
|
||||||
|
/**
|
||||||
|
* 获取本页数据
|
||||||
|
* @param currentPage 当前页数 【初次查数据,默认第1页】
|
||||||
|
*/
|
||||||
|
var fileData;
|
||||||
|
function getPageData(currentPage, pageNumber) {
|
||||||
|
if (typeof (fileData) != "undefined" && fileData != null ) {
|
||||||
|
//计算每页数据起始和终止数据编号
|
||||||
|
// var pageNumber = 10;
|
||||||
|
var maxLength = currentPage * pageNumber - 1;
|
||||||
|
var minLength = currentPage * pageNumber - pageNumber;
|
||||||
|
var pageData = [];
|
||||||
|
for (var i = minLength; i < fileData.length; i++) {
|
||||||
|
if (maxLength < i) {
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
pageData.push(fileData[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
htmlData(pageData);
|
||||||
plotOptions: {
|
} else {
|
||||||
series: {
|
//把空数据传到页面中去
|
||||||
pointStart: Date.UTC(2018, 8, 16,1),
|
htmlData(fileData);
|
||||||
pointInterval: 3600*1000,
|
}
|
||||||
// pointIntervalUnit:'day'
|
}
|
||||||
}
|
// 处理接口数据
|
||||||
},
|
function htmlData(fileDataS) {
|
||||||
|
$("#tableData").html("");
|
||||||
|
if (fileDataS == null || fileData == '') {
|
||||||
|
$(".none-data").show();
|
||||||
|
$('.M-box').hide();
|
||||||
|
} else {
|
||||||
|
$('.none-data').hide();
|
||||||
|
$('.M-box').show();
|
||||||
|
$.each(fileDataS, function(index, data) {
|
||||||
|
if (data != null) {
|
||||||
|
|
||||||
series: [{
|
var html = "<tr>";
|
||||||
name: 'Installation',
|
html += "<td class='tc'>"
|
||||||
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
|
+ data.website + "</td>";
|
||||||
}],
|
html += "<td class='tc'>" + data.linkNum + "</td>";
|
||||||
|
html += "<td class='tc'>" + data.perLink + "</td>";
|
||||||
|
html += "<td class='tc'>" + data.packets + "</td>";
|
||||||
|
html += "<td class='tc'>" + data.perPackets + "</td>";
|
||||||
|
html += "<td class='tc'>" + data.Gbyte + "</td>";
|
||||||
|
html += "<td class='tc'>" + data.perGbyte + "</td>";
|
||||||
|
html += "</tr>"
|
||||||
|
}
|
||||||
|
$("#tableData").append(html);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
responsive: {
|
function chartData(websiteId) {
|
||||||
rules: [{
|
loading();
|
||||||
condition: {
|
$
|
||||||
maxWidth: 500
|
.ajax({
|
||||||
},
|
url : '${ctx}/dashboard/traffic/websiteChart',
|
||||||
chartOptions: {
|
type : 'get',
|
||||||
legend: {
|
dataType : "json",
|
||||||
layout: 'horizontal',
|
data : {
|
||||||
align: 'center',
|
"websiteId" : websiteId
|
||||||
verticalAlign: 'bottom'
|
},
|
||||||
}
|
async : false,
|
||||||
}
|
timeout : 10000,
|
||||||
}]
|
success : function(data) {
|
||||||
}
|
if (data != null && data.length > 0
|
||||||
|
&& data[0].error != null) {
|
||||||
});
|
top.$.jBox
|
||||||
|
.tip(
|
||||||
});
|
"<spring:message code='request_service_failed'/>",
|
||||||
|
"<spring:message code='info'/>");
|
||||||
function showIpActiveChart(){
|
return;
|
||||||
|
}
|
||||||
}
|
webTypeChart(data);
|
||||||
|
},
|
||||||
</script>
|
error : function(data, textStatus, errorThrown) {
|
||||||
|
closeTip();
|
||||||
|
},
|
||||||
|
complete : function(XMLHttpRequest, status) {//超时设置
|
||||||
|
closeTip();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 分页控件处理
|
||||||
|
*/
|
||||||
|
function pageJuan(showData) {
|
||||||
|
if (typeof (fileData) != "undefined" && fileData != null) {
|
||||||
|
var totalData = fileData.length;
|
||||||
|
// var showData = 10;
|
||||||
|
if (showData > totalData) {
|
||||||
|
showData = totalData;
|
||||||
|
}
|
||||||
|
$('.M-box').pagination({
|
||||||
|
totalData : totalData,
|
||||||
|
showData : showData,
|
||||||
|
coping : true,
|
||||||
|
callback : function(index) {
|
||||||
|
//改变显示开始和结束数据编号
|
||||||
|
getPageData(index.getCurrent(), showData);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 比例协议统计图
|
||||||
|
/* function webTypeChart(rs){
|
||||||
|
//终端用户 分操作系统与浏览器
|
||||||
|
var data=new Array();
|
||||||
|
$(rs).each(function(i, d) {
|
||||||
|
data.push({
|
||||||
|
name: d.website,
|
||||||
|
y: d.count,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
// 创建图例
|
||||||
|
var chart = Highcharts.chart('chart',{
|
||||||
|
chart: {
|
||||||
|
plotBackgroundColor:null,
|
||||||
|
plotBorderWidth:null,
|
||||||
|
plotShadow:false,
|
||||||
|
type: 'pie'
|
||||||
|
},
|
||||||
|
navigation: {
|
||||||
|
buttonOptions: {
|
||||||
|
x:-25,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
exporting: {
|
||||||
|
allowHTML:true,
|
||||||
|
filename:"Website",
|
||||||
|
scale:1,
|
||||||
|
sourceWidth: 1280,
|
||||||
|
sourceHeight: 500,
|
||||||
|
},
|
||||||
|
noData:{
|
||||||
|
style: {//设置字体颜色
|
||||||
|
color: '#000',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// legend:{// 底部平鋪图例
|
||||||
|
// width:1280,
|
||||||
|
// x:40,
|
||||||
|
// itemWidth:100,
|
||||||
|
// itemDistance:2,
|
||||||
|
// itemHoverStyle:{
|
||||||
|
// color:'#61D2F7',
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
legend: {
|
||||||
|
// layout: 'vertical',
|
||||||
|
align: 'right',
|
||||||
|
verticalAlign: 'middle',
|
||||||
|
width:380,
|
||||||
|
itemWidth:100,
|
||||||
|
itemDistance:2,
|
||||||
|
itemHoverStyle:{
|
||||||
|
color:'#61D2F7',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#964CEC','#32B0ED','#2b6ed7','#7278DD','#2DA9D8','#C66FE6'],
|
||||||
|
title: {
|
||||||
|
text: null,
|
||||||
|
},
|
||||||
|
plotOptions: {
|
||||||
|
series: {
|
||||||
|
dataLabels: {
|
||||||
|
enabled: true,
|
||||||
|
softConnector: true, // 是否使用曲线
|
||||||
|
formatter: function () {
|
||||||
|
// 通过函数判断是否显示数据标签,为了防止数据标签过于密集
|
||||||
|
return this.percentage > 1 ? '<b>' + this.point.name + ' :</b> ' +this.percentage.toFixed(2)+' %' : null;
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pie:{
|
||||||
|
allowPointSelect: true,
|
||||||
|
showInLegend: true,
|
||||||
|
point: {
|
||||||
|
events: {
|
||||||
|
mouseOver: function(e) {
|
||||||
|
this.slice();
|
||||||
|
},
|
||||||
|
// 鼠标移出时,收回突出显示
|
||||||
|
mouseOut: function() {
|
||||||
|
this.slice();
|
||||||
|
},
|
||||||
|
// 默认是点击突出,这里屏蔽掉
|
||||||
|
click: function() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
credits:{//是否有highcharts水印
|
||||||
|
enabled:false
|
||||||
|
},
|
||||||
|
tooltip: {
|
||||||
|
headerFormat: '{series.name}<br>',
|
||||||
|
pointFormat: '{point.name}: <b>{point.percentage:.2f}%</b>'
|
||||||
|
},
|
||||||
|
series: [{
|
||||||
|
name: "Website",
|
||||||
|
colorByPoint: true,
|
||||||
|
data: data
|
||||||
|
}],
|
||||||
|
});
|
||||||
|
} */
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -143,12 +143,21 @@ $(document).ready(function(){
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<a class="btn btn-icon-only btn-default setfields tooltips"
|
<div class="btn-group">
|
||||||
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||||
<i class="icon-wrench"></i>
|
<i class="fa fa-wrench"></i> <spring:message code="export"></spring:message>
|
||||||
</a>
|
<i class="fa fa-angle-down"></i>
|
||||||
</div>
|
</button>
|
||||||
</div>
|
<ul class="dropdown-menu pull-right" style="min-width: 110px;" >
|
||||||
|
<li><sys:delRow url="${ctx}/log/manipulation/dkbehaviorLogs/exportStream?type=excel" searchUrl="${ctx}/log/manipulation/dkbehaviorLogs" id="contentTable" maxRow="10000" label="excel"></sys:delRow></li>
|
||||||
|
<li><sys:delRow url="${ctx}/log/manipulation/dkbehaviorLogs/exportStream?type=csv" searchUrl="${ctx}/log/manipulation/dkbehaviorLogs" id="contentTable" maxRow="10000" label="csv"></sys:delRow></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||||
|
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
||||||
|
<i class="icon-wrench"></i>
|
||||||
|
</a>
|
||||||
|
</div> </div>
|
||||||
|
|
||||||
<!-- 筛选搜索内容栏默认隐藏-->
|
<!-- 筛选搜索内容栏默认隐藏-->
|
||||||
<div class="col-md-12 filter-action-select-panle hide" >
|
<div class="col-md-12 filter-action-select-panle hide" >
|
||||||
@@ -223,46 +232,46 @@ $(document).ready(function(){
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><spring:message code="log"/></th>
|
<th><spring:message code="log"/></th>
|
||||||
<th class="sort-column cfg_id " isVisible="false" ><spring:message code="cfg_id"/></th>
|
<th class="sort-column cfg_id " isVisible="false" column="cfg_id" ><spring:message code="cfg_id"/></th>
|
||||||
<th class="sort-column service" isVisible="false"><spring:message code="action"/></th>
|
<th class="sort-column service" isVisible="false" column="action" ><spring:message code="action"/></th>
|
||||||
<th class="sort-column found_time"><spring:message code="found_time"/></th>
|
<th class="sort-column found_time" column="cfg_id" ><spring:message code="found_time"/></th>
|
||||||
<th class="sort-column recv_time" isVisible="false"><spring:message code="recv_time"/></th>
|
<th class="sort-column recv_time" isVisible="false" column="recv_time" ><spring:message code="recv_time"/></th>
|
||||||
|
|
||||||
<th class="sort-column entrance_id" isVisible="false"><spring:message code="entrance_id"/></th>
|
<th class="sort-column entrance_id" isVisible="false" column="entrance_id" ><spring:message code="entrance_id"/></th>
|
||||||
|
|
||||||
<th class="sort-column label_proto_id"><spring:message code='basic_protocol'/></th>
|
<th class="sort-column label_proto_id" column="basic_protocol" ><spring:message code='basic_protocol'/></th>
|
||||||
<%-- <th class="sort-column label_proto_source" isVisible="false"><spring:message code='label_proto_source'/></th> --%>
|
<%-- <th class="sort-column label_proto_source" isVisible="false"><spring:message code='label_proto_source'/></th> --%>
|
||||||
<c:if test="${functionID ne 407}">
|
<c:if test="${functionID ne 407}">
|
||||||
<th class="sort-column label_behav_id"><spring:message code='behaviour_type'/></th>
|
<th class="sort-column label_behav_id" column="behaviour_type" ><spring:message code='behaviour_type'/></th>
|
||||||
</c:if>
|
</c:if>
|
||||||
<%-- <th class="sort-column label_behav_source" isVisible="false"><spring:message code='label_behav_source'/></th> --%>
|
<%-- <th class="sort-column label_behav_source" isVisible="false"><spring:message code='label_behav_source'/></th> --%>
|
||||||
<th class="sort-column label_app_id"><spring:message code='social_app'/></th>
|
<th class="sort-column label_app_id" column="social_app" ><spring:message code='social_app'/></th>
|
||||||
<%-- <th class="sort-column label_app_source" isVisible="false"><spring:message code='label_app_source'/></th> --%>
|
<%-- <th class="sort-column label_app_source" isVisible="false"><spring:message code='label_app_source'/></th> --%>
|
||||||
<th class="sort-column cap_ip" isVisible="false"><spring:message code="clj_ip"/></th>
|
<th class="sort-column cap_ip" isVisible="false" column="clj_ip" ><spring:message code="clj_ip"/></th>
|
||||||
<th class="sort-column trans_proto"><spring:message code="transport_layer_protocol"/></th>
|
<th class="sort-column trans_proto" column="transport_layer_protocol" ><spring:message code="transport_layer_protocol"/></th>
|
||||||
<th class="sort-column addr_type"><spring:message code='addr_type'/></th>
|
<th class="sort-column addr_type" column="addr_type" ><spring:message code='addr_type'/></th>
|
||||||
<th class="sort-column d_ip"><spring:message code="server_ip"/></th>
|
<th class="sort-column d_ip" column="server_ip" ><spring:message code="server_ip"/></th>
|
||||||
<th class="sort-column s_ip"><spring:message code="client_ip"/></th>
|
<th class="sort-column s_ip" column="client_ip" ><spring:message code="client_ip"/></th>
|
||||||
<th class="sort-column d_port"><spring:message code="server_port"/></th>
|
<th class="sort-column d_port" column="server_port" ><spring:message code="server_port"/></th>
|
||||||
<th class="sort-column s_port"><spring:message code="client_port"/></th>
|
<th class="sort-column s_port" column="client_port" ><spring:message code="client_port"/></th>
|
||||||
|
|
||||||
<th class="sort-column device_id" isVisible="false"><spring:message code="deviceid"/></th>
|
<th class="sort-column device_id" isVisible="false" column="deviceid" ><spring:message code="deviceid"/></th>
|
||||||
<th class="sort-column link_id" isVisible="false"><spring:message code="link_id"/></th>
|
<th class="sort-column link_id" isVisible="false" column="link_id" ><spring:message code="link_id"/></th>
|
||||||
<th class="sort-column encap_type"><spring:message code="encap_type"/></th>
|
<th class="sort-column encap_type" column="encap_type" ><spring:message code="encap_type"/></th>
|
||||||
<th class="sort-column direction"><spring:message code="direction"/></th>
|
<th class="sort-column direction" column="direction" ><spring:message code="direction"/></th>
|
||||||
<th class="sort-column inner_smac"><spring:message code="inner_smac"/></th>
|
<th class="sort-column inner_smac" column="inner_smac" ><spring:message code="inner_smac"/></th>
|
||||||
<th class="sort-column inner_dmac"><spring:message code="inner_dmac"/></th>
|
<th class="sort-column inner_dmac" column="inner_dmac" ><spring:message code="inner_dmac"/></th>
|
||||||
<th class="sort-column stream_dir"><spring:message code="stream_type"/></th>
|
<th class="sort-column stream_dir" column="stream_type" ><spring:message code="stream_type"/></th>
|
||||||
|
|
||||||
<th class="sort-column addr_list"><spring:message code="nest_addr_list"/></th>
|
<th class="sort-column addr_list" column="nest_addr_list" ><spring:message code="nest_addr_list"/></th>
|
||||||
<th class="sort-column server_locate"><spring:message code='server_locate'/></th>
|
<th class="sort-column server_locate" column="server_locate" ><spring:message code='server_locate'/></th>
|
||||||
<th class="sort-column client_locate"><spring:message code='client_locate'/></th>
|
<th class="sort-column client_locate" column="client_locate" ><spring:message code='client_locate'/></th>
|
||||||
<th class="sort-column s_asn" isVisible="false"><spring:message code='s_asn'/></th>
|
<th class="sort-column s_asn" isVisible="false" column="s_asn" ><spring:message code='s_asn'/></th>
|
||||||
<th class="sort-column d_asn" isVisible="false"><spring:message code='d_asn'/></th>
|
<th class="sort-column d_asn" isVisible="false" column="d_asn" ><spring:message code='d_asn'/></th>
|
||||||
<th class="sort-column s_subscribe_id" isVisible="false"><spring:message code='s_subscribe_id'/></th>
|
<th class="sort-column s_subscribe_id" isVisible="false" column="s_subscribe_id" ><spring:message code='s_subscribe_id'/></th>
|
||||||
<th class="sort-column d_subscribe_id" isVisible="false"><spring:message code='d_subscribe_id'/></th>
|
<th class="sort-column d_subscribe_id" isVisible="false" column="d_subscribe_id" ><spring:message code='d_subscribe_id'/></th>
|
||||||
<th class="sort-column user_region" isVisible="false"><spring:message code='user_region'/></th>
|
<th class="sort-column user_region" isVisible="false" column="user_region" ><spring:message code='user_region'/></th>
|
||||||
<c:if test="${fns:getUser().isAdmin()}"><th class="sort-column scene_file"><spring:message code='scene_file'/></th></c:if>
|
<c:if test="${fns:getUser().isAdmin()}"><th class="sort-column scene_file" column="scene_file" ><spring:message code='scene_file'/></th></c:if>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -127,6 +127,16 @@
|
|||||||
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"/><i class="fa fa-angle-double-down"></i></button>
|
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"/><i class="fa fa-angle-double-down"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||||
|
<i class="fa fa-wrench"></i> <spring:message code="export"></spring:message>
|
||||||
|
<i class="fa fa-angle-down"></i>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu pull-right" style="min-width: 110px;" >
|
||||||
|
<li><sys:delRow url="${ctx}/log/ntc/other/bgpLogs/exportBgp?types=excel" searchUrl="${ctx}/log/ntc/other/bgpLogs" id="contentTable" maxRow="10000" label="excel"></sys:delRow></li>
|
||||||
|
<li><sys:delRow url="${ctx}/log/ntc/other/bgpLogs/exportBgp?types=csv" searchUrl="${ctx}/log/ntc/other/bgpLogs" id="contentTable" maxRow="10000" label="csv"></sys:delRow></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<a class="btn btn-icon-only btn-default setfields tooltips"
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||||
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
||||||
<i class="icon-wrench"></i>
|
<i class="icon-wrench"></i>
|
||||||
@@ -211,40 +221,40 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><spring:message code="log"/></th>
|
<th><spring:message code="log"/></th>
|
||||||
<th class="sort-column cfg_id " isVisible="false" ><spring:message code="cfg_id"/></th>
|
<th class="sort-column cfg_id " isVisible="false" column="cfg_id" ><spring:message code="cfg_id"/></th>
|
||||||
<th class="sort-column service" isVisible="false"><spring:message code="action"/></th>
|
<th class="sort-column service" isVisible="false" column="action"><spring:message code="action"/></th>
|
||||||
<th class="sort-column found_time"><spring:message code="found_time"/></th>
|
<th class="sort-column found_time" column="found_time"><spring:message code="found_time"/></th>
|
||||||
<th class="sort-column recv_time" isVisible="false"><spring:message code="recv_time"/></th>
|
<th class="sort-column recv_time" isVisible="false" column="recv_time"><spring:message code="recv_time"/></th>
|
||||||
|
|
||||||
<th class="sort-column entrance_id" isVisible="false"><spring:message code="entrance_id"/></th>
|
<th class="sort-column entrance_id" isVisible="false" column="entrance_id"><spring:message code="entrance_id"/></th>
|
||||||
<th class="sort-column cap_ip" isVisible="false"><spring:message code="clj_ip"/></th>
|
<th class="sort-column cap_ip" isVisible="false" column="clj_ip"><spring:message code="clj_ip"/></th>
|
||||||
<th class="sort-column trans_proto"><spring:message code="transport_layer_protocol"/></th>
|
<th class="sort-column trans_proto" column="transport_layer_protocol"><spring:message code="transport_layer_protocol"/></th>
|
||||||
<th class="sort-column addr_type"><spring:message code='addr_type'/></th>
|
<th class="sort-column addr_type" column="addr_type"><spring:message code='addr_type'/></th>
|
||||||
<th class="sort-column d_ip"><spring:message code="server_ip"/></th>
|
<th class="sort-column d_ip" column="server_ip"><spring:message code="server_ip"/></th>
|
||||||
<th class="sort-column s_ip"><spring:message code="client_ip"/></th>
|
<th class="sort-column s_ip" column="client_ip"><spring:message code="client_ip"/></th>
|
||||||
<th class="sort-column d_port"><spring:message code="server_port"/></th>
|
<th class="sort-column d_port" column="server_port"><spring:message code="server_port"/></th>
|
||||||
<th class="sort-column s_port"><spring:message code="client_port"/></th>
|
<th class="sort-column s_port" column="client_port"><spring:message code="client_port"/></th>
|
||||||
|
|
||||||
<th class="sort-column device_id" isVisible="false"><spring:message code="deviceid"/></th>
|
<th class="sort-column device_id" isVisible="false" column="deviceid"><spring:message code="deviceid"/></th>
|
||||||
<th class="sort-column link_id" isVisible="false"><spring:message code="link_id"/></th>
|
<th class="sort-column link_id" isVisible="false" column="link_id"><spring:message code="link_id"/></th>
|
||||||
<th class="sort-column encap_type"><spring:message code="encap_type"/></th>
|
<th class="sort-column encap_type" column="encap_type"><spring:message code="encap_type"/></th>
|
||||||
<th class="sort-column direction"><spring:message code="direction"/></th>
|
<th class="sort-column direction" column="direction"><spring:message code="direction"/></th>
|
||||||
<th class="sort-column inner_smac"><spring:message code="inner_smac"/></th>
|
<th class="sort-column inner_smac" column="inner_smac"><spring:message code="inner_smac"/></th>
|
||||||
<th class="sort-column inner_dmac"><spring:message code="inner_dmac"/></th>
|
<th class="sort-column inner_dmac" column="inner_dmac"><spring:message code="inner_dmac"/></th>
|
||||||
<th class="sort-column stream_dir"><spring:message code="stream_type"/></th>
|
<th class="sort-column stream_dir" column="stream_type"><spring:message code="stream_type"/></th>
|
||||||
|
|
||||||
<th class="sort-column addr_list"><spring:message code="nest_addr_list"/></th>
|
<th class="sort-column addr_list" column="nest_addr_list"><spring:message code="nest_addr_list"/></th>
|
||||||
<th class="sort-column server_locate"><spring:message code='server_locate'/></th>
|
<th class="sort-column server_locate" column="server_locate"><spring:message code='server_locate'/></th>
|
||||||
<th class="sort-column client_locate"><spring:message code='client_locate'/></th>
|
<th class="sort-column client_locate" column="client_locate"><spring:message code='client_locate'/></th>
|
||||||
<th class="sort-column s_asn" isVisible="false"><spring:message code='s_asn'/></th>
|
<th class="sort-column s_asn" isVisible="false" column="s_asn"><spring:message code='s_asn'/></th>
|
||||||
<th class="sort-column d_asn" isVisible="false"><spring:message code='d_asn'/></th>
|
<th class="sort-column d_asn" isVisible="false" column="d_asn"><spring:message code='d_asn'/></th>
|
||||||
<th class="sort-column s_subscribe_id" isVisible="false"><spring:message code='s_subscribe_id'/></th>
|
<th class="sort-column s_subscribe_id" isVisible="false" column="s_subscribe_id"><spring:message code='s_subscribe_id'/></th>
|
||||||
<th class="sort-column d_subscribe_id" isVisible="false"><spring:message code='d_subscribe_id'/></th>
|
<th class="sort-column d_subscribe_id" isVisible="false" column="d_subscribe_id"><spring:message code='d_subscribe_id'/></th>
|
||||||
<th class="sort-column user_region" isVisible="false"><spring:message code='user_region'/></th>
|
<th class="sort-column user_region" isVisible="false" column="user_region"><spring:message code='user_region'/></th>
|
||||||
<c:if test="${fns:getUser().isAdmin()}"><th class="sort-column scene_file"><spring:message code='scene_file'/></th></c:if>
|
<c:if test="${fns:getUser().isAdmin()}"><th class="sort-column scene_file" column="scene_file"><spring:message code='scene_file'/></th></c:if>
|
||||||
<th class="sort-column type"><spring:message code='message_type'/></th>
|
<th class="sort-column type" column="message_type"><spring:message code='message_type'/></th>
|
||||||
<th class="sort-column as_num"><spring:message code='as'/></th>
|
<th class="sort-column as_num" column="as"><spring:message code='as'/></th>
|
||||||
<th class="sort-column route"><spring:message code='route'/></th>
|
<th class="sort-column route" column="route"><spring:message code='route'/></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user