|
|
@ -487,15 +487,19 @@ public class MesEnumUtil {
|
|
|
|
return value;
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
|
|
|
return code;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 根据value返回枚举类型,主要在switch中使用
|
|
|
|
// 根据value返回枚举类型,主要在switch中使用
|
|
|
|
public static ORGANIZATION_INIT_DATA getByValue(String value) {
|
|
|
|
public static ORGANIZATION_INIT_DATA getByValue(String value) {
|
|
|
|
for (ORGANIZATION_INIT_DATA mesInsertExcel : values()) {
|
|
|
|
for (ORGANIZATION_INIT_DATA organizationInitData : values()) {
|
|
|
|
if (mesInsertExcel.getValue().equals(value)) {
|
|
|
|
if (organizationInitData.getValue().equals(value)) {
|
|
|
|
return mesInsertExcel;
|
|
|
|
return organizationInitData;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|