日志导出 首行添加标题和时间范围
This commit is contained in:
@@ -1,19 +1,27 @@
|
||||
package com.nis.domain.log;
|
||||
|
||||
import com.nis.util.excel.ExcelField;
|
||||
|
||||
public class IrDnatLog extends BaseLogEntity<IrDnatLog> {
|
||||
|
||||
private static final long serialVersionUID = 5860838446015457328L;
|
||||
|
||||
@ExcelField(title = "user", sort = 8)
|
||||
protected String userId;// 用户名
|
||||
@ExcelField(title = "nat_ip", sort = 9)
|
||||
protected String natIp;// 复用的ip地址
|
||||
@ExcelField(title = "creat_time", sort = 10)
|
||||
protected String creatTime;// 链接建立时间
|
||||
@ExcelField(title = "close_time", sort = 11)
|
||||
protected String closeTime;// 链接结束时间
|
||||
protected String c2sPktNum;// c2s包数
|
||||
protected String s2cPktNum;// s2c包数
|
||||
protected String c2sByteNum;// c2s字节数
|
||||
protected String s2cByteNum;// s2c字节数
|
||||
|
||||
|
||||
@ExcelField(title = "c2s_pkt_num", sort = 12)
|
||||
protected String c2sPktNum;
|
||||
@ExcelField(title = "s2c_pkt_num", sort = 13)
|
||||
protected String s2cPktNum;
|
||||
@ExcelField(title = "c2s_byte_num", sort = 14)
|
||||
protected String c2sByteNum;
|
||||
@ExcelField(title = "s2c_byte_num", sort = 15)
|
||||
protected String s2cByteNum;
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
|
||||
@@ -1,17 +1,25 @@
|
||||
package com.nis.domain.log;
|
||||
|
||||
import com.nis.util.excel.ExcelField;
|
||||
|
||||
public class IrSnatLog extends BaseLogEntity<IrSnatLog> {
|
||||
|
||||
private static final long serialVersionUID = 5860838446015457328L;
|
||||
|
||||
@ExcelField(title = "nat_ip", sort = 9)
|
||||
protected String natIp;// 复用的ip地址
|
||||
@ExcelField(title = "creat_time", sort = 10)
|
||||
protected String creatTime;// 链接建立时间
|
||||
@ExcelField(title = "close_time", sort = 11)
|
||||
protected String closeTime;// 链接结束时间
|
||||
protected String c2sPktNum;// c2s包数
|
||||
protected String s2cPktNum;// s2c包数
|
||||
protected String c2sByteNum;// c2s字节数
|
||||
protected String s2cByteNum;// s2c字节数
|
||||
|
||||
@ExcelField(title = "c2s_pkt_num", sort = 12)
|
||||
protected String c2sPktNum;
|
||||
@ExcelField(title = "s2c_pkt_num", sort = 13)
|
||||
protected String s2cPktNum;
|
||||
@ExcelField(title = "c2s_byte_num", sort = 14)
|
||||
protected String c2sByteNum;
|
||||
@ExcelField(title = "s2c_byte_num", sort = 15)
|
||||
protected String s2cByteNum;
|
||||
|
||||
public String getNatIp() {
|
||||
return natIp;
|
||||
|
||||
Reference in New Issue
Block a user