导入模板非region字典类的属性,单个值也展示;
ip白名单导入特殊处理调用白名单模板
This commit is contained in:
@@ -161,13 +161,8 @@ public class ExportExcel {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtil.isEmpty(commentStr)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
//p2p_ip_config_type
|
||||
if("p2p_ip_config_type".equals(headerStr)){
|
||||
@@ -184,13 +179,8 @@ public class ExportExcel {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtil.isEmpty(commentStr)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
//ratelimit
|
||||
if("ratelimit".equals(headerStr)){
|
||||
@@ -207,13 +197,8 @@ public class ExportExcel {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtil.isEmpty(commentStr)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
//replace_zone
|
||||
if("replace_zone".equals(headerStr)){
|
||||
@@ -230,13 +215,8 @@ public class ExportExcel {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtil.isEmpty(commentStr)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
|
||||
if("asn_no".equals(headerStr)){
|
||||
@@ -245,22 +225,21 @@ public class ExportExcel {
|
||||
}
|
||||
if("policy_name".equals(headerStr)){
|
||||
|
||||
List<DnsResStrategy> resStrategys=dnsResStrategyDao.findList(null, 1,1);
|
||||
if(StringUtil.isEmpty(resStrategys)){
|
||||
if(service.getAction().equals(1)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
if(service.getAction().equals(1)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
List<DnsResStrategy> resStrategys=dnsResStrategyDao.findList(null, 1,1);
|
||||
commentStr=commentStr+"0"+"("+msgProp.getProperty("no_strategy")+")\n";
|
||||
index++;
|
||||
if(!StringUtil.isEmpty(resStrategys)){
|
||||
for (DnsResStrategy dnsResStrategy : resStrategys) {
|
||||
commentStr=commentStr+dnsResStrategy.getCfgId()+"("+dnsResStrategy.getCfgDesc()+")\n";
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtil.isEmpty(commentStr)){
|
||||
if(StringUtil.isEmpty(headerStr)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user