用户权限调整

yun-zuoyi
wei.peng 6 years ago
parent 6861d44a1c
commit 78cd5dc77e

@ -283,6 +283,26 @@ public class CommonEnumUtil {
return tmp;
}
public static USER_TYPE valueOfCode(String code) {
USER_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i];
}
}
return tmp;
}
public static USER_TYPE valueOfDescription(String description) {
USER_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i];
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {

Loading…
Cancel
Save