P2P IP与P2P Hash导入模板定义
This commit is contained in:
@@ -144,6 +144,52 @@ public class ExportExcel {
|
||||
public String[] validRegionFieldAndSetComment(String headerStr,String commentStr,FunctionRegionDict region,FunctionServiceDict service,Properties msgProp){
|
||||
int index=0;
|
||||
String[] titleInfo=new String[3];
|
||||
//p2p_hash_type
|
||||
if("p2p_hash_type".equals(headerStr)){
|
||||
commentStr="";
|
||||
List<SysDataDictionaryItem> ratelimit=DictUtils.getDictList("P2P_HASH_TYPE");
|
||||
if(ratelimit !=null && ratelimit.size()>0){
|
||||
for (SysDataDictionaryItem sysDataDictionaryItem : ratelimit) {
|
||||
if(StringUtil.isEmpty(msgProp.getProperty(sysDataDictionaryItem.getItemValue()))){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+"("+sysDataDictionaryItem.getItemValue()+")\n";
|
||||
index++;
|
||||
}else{
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+"("+msgProp.getProperty(sysDataDictionaryItem.getItemValue())+")\n";
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtil.isEmpty(commentStr)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
}
|
||||
//p2p_ip_config_type
|
||||
if("p2p_ip_config_type".equals(headerStr)){
|
||||
commentStr="";
|
||||
List<SysDataDictionaryItem> ratelimit=DictUtils.getDictList("P2P_IP_TYPE");
|
||||
if(ratelimit !=null && ratelimit.size()>0){
|
||||
for (SysDataDictionaryItem sysDataDictionaryItem : ratelimit) {
|
||||
if(StringUtil.isEmpty(msgProp.getProperty(sysDataDictionaryItem.getItemValue()))){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+"("+sysDataDictionaryItem.getItemValue()+")\n";
|
||||
index++;
|
||||
}else{
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+"("+msgProp.getProperty(sysDataDictionaryItem.getItemValue())+")\n";
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtil.isEmpty(commentStr)){
|
||||
headerStr="";
|
||||
commentStr="";
|
||||
}else{
|
||||
commentStr=msgProp.getProperty("select")+":\n"+commentStr;
|
||||
index++;
|
||||
}
|
||||
}
|
||||
//ratelimit
|
||||
if("ratelimit".equals(headerStr)){
|
||||
commentStr="";
|
||||
@@ -743,11 +789,13 @@ public class ExportExcel {
|
||||
for (SysDataDictionaryItem sysDataDictionaryItem : isCaseSenstive) {
|
||||
if(sysDataDictionaryItem.getItemCode().equals("0")){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+"("+msgProp.getProperty(sysDataDictionaryItem.getItemValue())+")"+"\n";
|
||||
list.add(sysDataDictionaryItem.getItemCode());
|
||||
index++;
|
||||
}
|
||||
if(region.getConfigHex().split(",").length>1){
|
||||
if(sysDataDictionaryItem.getItemCode().equals("1")){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+"("+msgProp.getProperty(sysDataDictionaryItem.getItemValue())+")"+"\n";
|
||||
list.add(sysDataDictionaryItem.getItemCode());
|
||||
index++;
|
||||
}
|
||||
}
|
||||
@@ -756,6 +804,7 @@ public class ExportExcel {
|
||||
for (SysDataDictionaryItem sysDataDictionaryItem : isCaseSenstive) {
|
||||
if(sysDataDictionaryItem.getItemCode().equals("1")){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+"("+msgProp.getProperty(sysDataDictionaryItem.getItemValue())+")"+"\n";
|
||||
list.add(sysDataDictionaryItem.getItemCode());
|
||||
index++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user