diff --git a/src/main/java/com/nis/domain/log/NtcBGPLog.java b/src/main/java/com/nis/domain/log/NtcBGPLog.java index 785d76219..64a1ac784 100644 --- a/src/main/java/com/nis/domain/log/NtcBGPLog.java +++ b/src/main/java/com/nis/domain/log/NtcBGPLog.java @@ -4,7 +4,7 @@ public class NtcBGPLog extends BaseLogEntity { private static final long serialVersionUID = 4597407682545926823L; private Integer type; - private String as; + private String asNum; private String route; public Integer getType() { return type; @@ -12,11 +12,11 @@ public class NtcBGPLog extends BaseLogEntity { public void setType(Integer type) { this.type = type; } - public String getAs() { - return as; + public String getAsNum() { + return asNum; } - public void setAs(String as) { - this.as = as; + public void setAsNum(String asNum) { + this.asNum = asNum; } public String getRoute() { return route; diff --git a/src/main/resources/sql/20181010/add_bgp_message_type.sql b/src/main/resources/sql/20181010/add_bgp_message_type.sql new file mode 100644 index 000000000..7d17405e2 --- /dev/null +++ b/src/main/resources/sql/20181010/add_bgp_message_type.sql @@ -0,0 +1,2 @@ +INSERT INTO sys_data_dictionary_name (`id`,`module_name`,`mark`,`remark`,`revision`,`create_time`,`modify_time`,`status`) VALUES(115,'BGP消息类型','BGP_MESSAGE_TYPE','','','2018-10-10 16:28:05','2018-10-10 16:28:05',1); +insert into sys_data_dictionary_item (`id`,`item_code`,`item_value`,`item_desc`,`item_sort`,`status`,`type`,`dictionary_id`) values (2602,1,'open','',0,1,1,115),(2603,2,'keepalive','',0,1,1,115),(2604,3,'update','',0,1,1,115),(2605,4,'notification','',0,1,1,115) diff --git a/src/main/webapp/WEB-INF/views/log/ntc/bgpList.jsp b/src/main/webapp/WEB-INF/views/log/ntc/bgpList.jsp index 87018298a..5112cc9df 100644 --- a/src/main/webapp/WEB-INF/views/log/ntc/bgpList.jsp +++ b/src/main/webapp/WEB-INF/views/log/ntc/bgpList.jsp @@ -248,8 +248,12 @@ ${log.dAsn} ${log.sSubscribeId} ${log.dSubscribeId} - ${log.type} - ${log.as} + + + ${type.itemValue} + + + ${log.asNum} ${log.route}