radius 动态列隐藏来导出Excel
This commit is contained in:
@@ -49,6 +49,14 @@ public class Reflections {
|
||||
getName="dPort";
|
||||
}else if(getName.equals("SPort")){
|
||||
getName="sPort";
|
||||
}else if(getName.equals("SAsn")){
|
||||
getName="sAsn";
|
||||
}else if(getName.equals("DAsn")){
|
||||
getName="dAsn";
|
||||
}else if(getName.equals("SSubscribeId")){
|
||||
getName="sSubscribeId";
|
||||
}else if(getName.equals("DSubscribeId")){
|
||||
getName="dSubscribeId";
|
||||
}
|
||||
String getterMethodName = GETTER_PREFIX + getName;
|
||||
object = invokeMethod(object, getterMethodName, new Class[] {}, new Object[] {});
|
||||
|
||||
@@ -1910,7 +1910,7 @@ public class ExportExcel {
|
||||
val = getBasicInfo(ef.dictType(),map,valStr);
|
||||
}else{
|
||||
//字典数据已做国际化处理
|
||||
String dict=DictUtils.getDictLabel(ef.dictType(), valStr, "");
|
||||
String dict=DictUtils.getDictLabel(ef.dictType(), valStr, valStr);
|
||||
//如果找不到字典国际化值,把字典本身作为默认值放进去,不然导出就是空了
|
||||
val = msgProp.getProperty(dict,dict);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user