radius日志增加导出

action和cfgid隐藏
This commit is contained in:
leijun
2018-12-15 20:34:10 +08:00
parent 2386f2ce92
commit 48e488cb68
6 changed files with 141 additions and 17 deletions

View File

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

View File

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