BUGFIX: 创建项目;
This commit is contained in:
@@ -31,7 +31,7 @@ public enum AgeGroup implements IEnumDisplay {
|
|||||||
|
|
||||||
public static boolean isValidName(String name) {
|
public static boolean isValidName(String name) {
|
||||||
for (AgeGroup ageGroup : AgeGroup.values()) {
|
for (AgeGroup ageGroup : AgeGroup.values()) {
|
||||||
if (ageGroup.name().equalsIgnoreCase(name)) {
|
if (ageGroup.getValue().equalsIgnoreCase(name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public enum Position implements IEnumDisplay {
|
|||||||
|
|
||||||
public static boolean isValidName(String name) {
|
public static boolean isValidName(String name) {
|
||||||
for (Position position : Position.values()) {
|
for (Position position : Position.values()) {
|
||||||
if (position.name().equalsIgnoreCase(name)) {
|
if (position.getValue().equalsIgnoreCase(name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public enum Sex implements IEnumDisplay {
|
|||||||
|
|
||||||
public static boolean isValidName(String name) {
|
public static boolean isValidName(String name) {
|
||||||
for (Sex sex : Sex.values()) {
|
for (Sex sex : Sex.values()) {
|
||||||
if (sex.name().equalsIgnoreCase(name)) {
|
if (sex.getValue().equalsIgnoreCase(name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user