mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-12-31 12:57:12 +08:00
refactor(validation): EnumValue 比较枚举值时,不再区分大小写
This commit is contained in:
@@ -127,7 +127,7 @@ public class EnumValueValidator implements ConstraintValidator<EnumValue, Object
|
|||||||
if (baseEnum.getValue().toString().equals(value)) {
|
if (baseEnum.getValue().toString().equals(value)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else if (enumConstant.toString().equals(value)) {
|
} else if (enumConstant.toString().equalsIgnoreCase(Convert.toStr(value))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user