(2)导入验证采用多线程验证,优化验证速度 (3)asn ip导入方式调整(未采用多线程,因为redis承受不了) (4)asn ip列表展示速度优化 (5)导入方式重写:采用csv模式,限制采用xlsx格式,加载80万数据不会内存溢出.
43 lines
1011 B
Java
43 lines
1011 B
Java
package com.nis.domain.configuration.template;
|
||
|
||
import com.nis.util.excel.ExcelField;
|
||
|
||
/**
|
||
* @Description: excel导入ASN IP类配置
|
||
*/
|
||
public class AsnIpTemplate extends BasicTemplate{
|
||
|
||
/**
|
||
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||
*
|
||
* @since 1.0.0
|
||
*/
|
||
|
||
private String cfgDesc;
|
||
private String userRegion1;
|
||
private String destIpAddress;
|
||
|
||
@ExcelField(title="config_describe",align=2,sort=1)
|
||
public String getCfgDesc() {
|
||
return cfgDesc;
|
||
}
|
||
public void setCfgDesc(String cfgDesc) {
|
||
this.cfgDesc = cfgDesc;
|
||
}
|
||
@ExcelField(title="asn_no",align=2,sort=11)
|
||
public String getUserRegion1() {
|
||
return userRegion1;
|
||
}
|
||
public void setUserRegion1(String userRegion1) {
|
||
this.userRegion1 = userRegion1;
|
||
}
|
||
@ExcelField(title="server_ip",align=2,sort=12)
|
||
public String getDestIpAddress() {
|
||
return destIpAddress;
|
||
}
|
||
|
||
public void setDestIpAddress(String destIpAddress) {
|
||
this.destIpAddress = destIpAddress;
|
||
}
|
||
}
|