bgp日志type字段换成字典取值,as字段换成asNum
This commit is contained in:
@@ -4,7 +4,7 @@ public class NtcBGPLog extends BaseLogEntity<NtcBGPLog> {
|
||||
|
||||
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<NtcBGPLog> {
|
||||
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;
|
||||
|
||||
2
src/main/resources/sql/20181010/add_bgp_message_type.sql
Normal file
2
src/main/resources/sql/20181010/add_bgp_message_type.sql
Normal file
@@ -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)
|
||||
@@ -248,8 +248,12 @@
|
||||
<td>${log.dAsn}</td>
|
||||
<td>${log.sSubscribeId}</td>
|
||||
<td>${log.dSubscribeId}</td>
|
||||
<td>${log.type}</td>
|
||||
<td>${log.as}</td>
|
||||
<td>
|
||||
<c:forEach items="${fns:getDictList('BGP_MESSAGE_TYPE')}" var="type">
|
||||
<c:if test="${type.itemCode eq log.type}">${type.itemValue}</c:if>
|
||||
</c:forEach>
|
||||
</td>
|
||||
<td>${log.asNum}</td>
|
||||
<td>${log.route}</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
Reference in New Issue
Block a user