|
@@ -17,17 +17,17 @@ public enum DataSourcesEnums implements KeyedNamed{
|
|
|
BigData(3,"大数据");
|
|
|
|
|
|
@Setter
|
|
|
- private Integer key;
|
|
|
+ private int key;
|
|
|
|
|
|
@Setter
|
|
|
private String name;
|
|
|
|
|
|
- DataSourcesEnums(Integer key, String name) {
|
|
|
+ DataSourcesEnums(int key, String name) {
|
|
|
this.key = key;
|
|
|
this.name = name;
|
|
|
}
|
|
|
|
|
|
- public static DataSourcesEnums getEnum(Integer key) {
|
|
|
+ public static DataSourcesEnums getEnum(int key) {
|
|
|
for (DataSourcesEnums item : DataSourcesEnums.values()) {
|
|
|
if (item.key == key) {
|
|
|
return item;
|
|
@@ -36,7 +36,7 @@ public enum DataSourcesEnums implements KeyedNamed{
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- public static String getName(Integer key) {
|
|
|
+ public static String getName(int key) {
|
|
|
DataSourcesEnums item = getEnum(key);
|
|
|
return item != null ? item.name : null;
|
|
|
}
|