radius 动态列隐藏来导出Excel

This commit is contained in:
leijun
2018-12-15 22:53:52 +08:00
parent d8cf08011e
commit 68fe4209c7
6 changed files with 59 additions and 34 deletions

View File

@@ -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[] {});

View File

@@ -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);
}