http-url、ddos导出列调整

This commit is contained in:
leijun
2018-10-22 16:26:44 +08:00
parent f0d01b9a94
commit 434ef5da8e
5 changed files with 28 additions and 25 deletions

View File

@@ -39,9 +39,9 @@ public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
private Integer specServiceId; private Integer specServiceId;
@ExcelField(title="basic_protocol",sort=2) @ExcelField(title="basic_protocol",sort=3)
private String appName; private String appName;
@ExcelField(title="behaviour_type",sort=3) @ExcelField(title="behaviour_type",sort=4)
private String behavName; private String behavName;
private String cfgKeywords; private String cfgKeywords;
private String userRegion1; private String userRegion1;
@@ -51,9 +51,9 @@ public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
private String userRegion5; private String userRegion5;
private String configType; private String configType;
@ExcelField(title="encrypted_tunnel_behavior",sort=2) @ExcelField(title="encrypted_tunnel_behavior",sort=3)
private String behaviorName; private String behaviorName;
@ExcelField(title="social_app",sort=2) @ExcelField(title="social_app",sort=3)
private String socialName; private String socialName;
@@ -92,12 +92,12 @@ public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
} }
@Expose @Expose
@ExcelField(title="expression_type") @ExcelField(title="expression_type",dictType="EXPRESSION_TYPE",sort=202)
@SerializedName("exprType") @SerializedName("exprType")
private Integer exprType ; private Integer exprType ;
@Expose @Expose
@ExcelField(title="match_method") @ExcelField(title="match_method",dictType="MATCH_METHOD",sort=203)
@SerializedName("matchMethod") @SerializedName("matchMethod")
private Integer matchMethod ; private Integer matchMethod ;

View File

@@ -36,15 +36,15 @@ public class BaseCfg<T> extends BaseEntity<T> implements Cloneable{
protected String showName;//表在界面上展示的名称 protected String showName;//表在界面上展示的名称
protected String seltype;//选中类型,页面搜索用 protected String seltype;//选中类型,页面搜索用
protected String tableName; protected String tableName;
@ExcelField(title="userregion1",sort=2) @ExcelField(title="userregion1",sort=3)
protected String userRegion1; protected String userRegion1;
@ExcelField(title="userregion2",sort=3) @ExcelField(title="userregion2",sort=4)
protected String userRegion2; protected String userRegion2;
@ExcelField(title="userregion3",sort=4) @ExcelField(title="userregion3",sort=5)
protected String userRegion3; protected String userRegion3;
@ExcelField(title="userregion4",sort=5) @ExcelField(title="userregion4",sort=6)
protected String userRegion4; protected String userRegion4;
@ExcelField(title="userregion5",sort=6) @ExcelField(title="userregion5",sort=7)
protected String userRegion5; protected String userRegion5;
/** /**
* 编译id * 编译id
@@ -72,7 +72,7 @@ public class BaseCfg<T> extends BaseEntity<T> implements Cloneable{
* GK类型 * GK类型
*/ */
@Expose @Expose
@ExcelField(title="action",dictType="SERVICE_ACTION",sort=20) @ExcelField(title="action",dictType="SERVICE_ACTION",sort=2)
protected Integer action; protected Integer action;
/** /**
* 有效标识 * 有效标识

View File

@@ -42,24 +42,24 @@ public class BaseIpCfg extends BaseCfg<BaseIpCfg> {
*/ */
@Expose @Expose
@SerializedName("ipType") @SerializedName("ipType")
@ExcelField(title="ip_type",dictType="IP_TYPE",sort=2) @ExcelField(title="ip_type",dictType="IP_TYPE",sort=3)
protected Integer ipType; protected Integer ipType;
@ExcelField(title="ip_pattern",dictType="IP_PATTERN",sort=3) @ExcelField(title="ip_pattern",dictType="IP_PATTERN",sort=4)
protected Integer ipPattern; protected Integer ipPattern;
@ExcelField(title="client_ip",sort=4) @ExcelField(title="client_ip",sort=5)
protected String srcIpAddress; protected String srcIpAddress;
@ExcelField(title="server_ip",sort=5) @ExcelField(title="server_ip",sort=6)
protected String destIpAddress; protected String destIpAddress;
@ExcelField(title="port_pattern",dictType="PORT_PATTERN",sort=6) @ExcelField(title="port_pattern",dictType="PORT_PATTERN",sort=7)
protected Integer portPattern; protected Integer portPattern;
@ExcelField(title="client_port",sort=7) @ExcelField(title="client_port",sort=8)
protected String srcPort; protected String srcPort;
@ExcelField(title="server_port",sort=8) @ExcelField(title="server_port",sort=9)
protected String destPort; protected String destPort;
protected Integer dnsStrategyId; protected Integer dnsStrategyId;
@ExcelField(title="ir_type",dictType="IR_TYPE",sort=9) @ExcelField(title="ir_type",dictType="IR_TYPE",sort=10)
protected Integer irType; protected Integer irType;
@ExcelField(title="group_name",sort=10) @ExcelField(title="group_name",sort=11)
protected String groupName; protected String groupName;
private List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList; private List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList;
@@ -97,14 +97,14 @@ public class BaseIpCfg extends BaseCfg<BaseIpCfg> {
*/ */
@Expose @Expose
@SerializedName("direction") @SerializedName("direction")
@ExcelField(title="direction",dictType="DIRECTION",sort=11) @ExcelField(title="direction",dictType="DIRECTION",sort=12)
protected Integer direction ; protected Integer direction ;
/** /**
* 协议 * 协议
*/ */
@Expose @Expose
@SerializedName("protocol") @SerializedName("protocol")
@ExcelField(title="protocol",dictType="PROTOCOL",sort=12) @ExcelField(title="protocol",dictType="PROTOCOL",sort=13)
protected Integer protocol ; protected Integer protocol ;
/** /**
* 协议ID * 协议ID

View File

@@ -8,6 +8,7 @@
*/ */
package com.nis.domain.configuration; package com.nis.domain.configuration;
import com.nis.util.excel.ExcelField;
/** /**
* @ClassName: DnsIpConfig.java * @ClassName: DnsIpConfig.java
@@ -21,9 +22,11 @@ public class DdosIpCfg extends BaseIpCfg {
* *
*/ */
private static final long serialVersionUID = -5446903784736960824L; private static final long serialVersionUID = -5446903784736960824L;
@ExcelField(title="antiddos_protocol",sort=41)
private String antiddosProtocol;//目前支持TCP_SYN, DNS, NTP private String antiddosProtocol;//目前支持TCP_SYN, DNS, NTP
@ExcelField(title="bps_threadshold",sort=42)
private Long bpsThreadshold;// 即DDoS攻击保护动作触发阈值每秒Bit数和每秒包数 private Long bpsThreadshold;// 即DDoS攻击保护动作触发阈值每秒Bit数和每秒包数
@ExcelField(title="pps_threadshold",sort=43)
private Long ppsThreadshold; private Long ppsThreadshold;
public String getAntiddosProtocol() { public String getAntiddosProtocol() {

View File

@@ -343,7 +343,7 @@ public class WhiteListController extends CommonController{
titleList.add("NTC_HTTP_URL"); titleList.add("NTC_HTTP_URL");
classMap.put(entity.getMenuNameCode(), CfgIndexInfo.class); classMap.put(entity.getMenuNameCode(), CfgIndexInfo.class);
classMap.put("NTC_HTTP_URL", HttpUrlCfg.class); classMap.put("NTC_HTTP_URL", HttpUrlCfg.class);
String cfgIndexInfoNoExport=",policy_name,do_log,letter,whether_area_block,classification,attribute,label,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,"; String cfgIndexInfoNoExport=",policy_name,group_name,userregion1,userregion2,userregion3,userregion4,userregion5,";
String httpUrlInfoNoExport=",do_log,action,config_describe,valid_identifier,is_audit,creator,creator" String httpUrlInfoNoExport=",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"
+",letter,whether_area_block,classification,attribute,label" +",letter,whether_area_block,classification,attribute,label"