radius日志增加导出

action和cfgid隐藏
This commit is contained in:
leijun
2018-12-15 20:34:10 +08:00
parent 2386f2ce92
commit 48e488cb68
6 changed files with 141 additions and 17 deletions

View File

@@ -1,34 +1,53 @@
package com.nis.domain.log;
import com.google.gson.annotations.Expose;
import com.nis.domain.BaseEntity;
import com.nis.util.excel.ExcelField;
public class BaseLogEntity<T> extends BaseEntity<T> {
private static final long serialVersionUID = 8321337584518281424L;
protected Integer cfgId;
@ExcelField(title="found_time",sort=5)
protected String foundTime; //发现时间timestamp
protected String recvTime; //接收时间timestamp
@ExcelField(title="transport_layer_protocol",dictType="LOG_PROTOCOL",sort=30)
protected String transProto; //协议类型从字典LOG_PROTOCOL取值
@ExcelField(title="addr_type",dictType="IP_TYPE",sort=35)
protected Integer addrType; //ip地址类型从字典IP_TYPE取值
@Expose
@ExcelField(title="server_ip",sort=40)
protected String dIp; //服务端ip地址
@Expose
@ExcelField(title="client_ip",sort=41)
protected String sIp; //客户端ip地址
@Expose
@ExcelField(title="server_port",sort=42)
protected String dPort; //服务端ip端口
@Expose
@ExcelField(title="client_port",sort=43)
protected String sPort; //客户端ip端口
protected Integer service; //配置表的serviceId
protected Integer entranceId; //出入口编号
protected Integer deviceId; //串联设备编号
@ExcelField(title="direction",dictType="LOG_DIRECTION",sort=55)
protected Integer direction; //传输方向 0域内->域外1域外->域内从字典LOG_DIRECTION取值
@ExcelField(title="stream_type",dictType="LOG_STREAM_TYPE",sort=65)
protected Integer streamDir; //流类型 0c2s1s2c2double从字典LOG_STREAMTYPE取值
protected String capIp; //处理机IP
@ExcelField(title="nest_addr_list",sort=66)
protected String addrList; //嵌套地址列表
@ExcelField(title="server_locate",sort=67)
protected String serverLocate;// 服务端地址定位信息
@ExcelField(title="client_locate",sort=68)
protected String clientLocate;// 客户端地址定位信息
protected String userRegion; //用户自定义
protected String sAsn;//客户端ASN
protected String dAsn;//服务端ASN
protected String sSubscribeId;//客户端用户名
protected String dSubscribeId;//服务端用户名
@ExcelField(title="scene_file",sort=70)
protected String sceneFile;//现场日志文件地址
protected Integer functionId;
@@ -44,9 +63,12 @@ public class BaseLogEntity<T> extends BaseEntity<T> {
protected String orderBy;//排序参数
//新增字段
@ExcelField(title="encap_type",dictType="ENCAP_TYPE",sort=50)
protected Integer encapType;//原始二层封装格式
protected Integer linkId;//串联设备链路号
@ExcelField(title="inner_smac",sort=58)
protected String innerSmac;//MAC_IN_MAC的内层源MAC
@ExcelField(title="inner_dmac",sort=59)
protected String innerDmac;//MAC_IN_MAC的内层目标MAC