feat(图表): 在线地图支持自定义格式 #10408

This commit is contained in:
wisonic
2024-10-21 15:04:58 +08:00
parent 9dc9166215
commit 85b1f6368c
15 changed files with 148 additions and 67 deletions

View File

@@ -2,7 +2,10 @@ package io.dataease.utils;
import org.apache.commons.lang3.StringUtils;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
public class BeanUtils {
@@ -65,4 +68,13 @@ public class BeanUtils {
return null;
}
}
public static List<String> getFieldNames(Class<?> clazz) {
List<String> fieldNames = new ArrayList<>();
Field[] fields = clazz.getDeclaredFields();
for (Field field : fields) {
fieldNames.add(field.getName());
}
return fieldNames;
}
}