radius日志增加导出
action和cfgid隐藏
This commit is contained in:
@@ -40,7 +40,17 @@ public class Reflections {
|
||||
public static Object invokeGetter(Object obj, String propertyName) {
|
||||
Object object = obj;
|
||||
for (String name : StringUtils.split(propertyName, ".")){
|
||||
String getterMethodName = GETTER_PREFIX + StringUtils.capitalize(name);
|
||||
String getName=StringUtils.capitalize(name);
|
||||
if(getName.equals("SIp")){
|
||||
getName="sIp";
|
||||
}else if(getName.equals("DIp")){
|
||||
getName="dIp";
|
||||
}else if(getName.equals("DPort")){
|
||||
getName="dPort";
|
||||
}else if(getName.equals("SPort")){
|
||||
getName="sPort";
|
||||
}
|
||||
String getterMethodName = GETTER_PREFIX + getName;
|
||||
object = invokeMethod(object, getterMethodName, new Class[] {}, new Object[] {});
|
||||
}
|
||||
return object;
|
||||
|
||||
@@ -1997,7 +1997,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