yun-zuoyi
宋军超 5 years ago
commit ae285a6dc6

@ -4276,15 +4276,6 @@ public class MesEnumUtil {
return tmp; return tmp;
} }
public static String valueOfDescription2(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description.equals("已审批") ? "审批" : values()[i].description;
}
}
return tmp;
}
} }
/** /**
@ -4908,16 +4899,6 @@ public class MesEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription2(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description.equals("已审批") ? "审批" : values()[i].description;
}
}
return tmp;
}
} }
/** /**
@ -5003,11 +4984,11 @@ public class MesEnumUtil {
return tmp; return tmp;
} }
public static String valueOfDescription2(int val) { public static Integer descriptionOfValue(String description) {
String tmp = null; Integer tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) { if (values()[i].description.equals(description)) {
tmp = values()[i].description.equals("已审批") ? "审批" : values()[i].description; tmp = values()[i].value;
} }
} }
return tmp; return tmp;

Loading…
Cancel
Save