refactor: FormTypeEnum的fromValue方法重构

FormTypeEnum的fromValue方法重构
This commit is contained in:
胡少翔
2024-10-25 13:56:21 +08:00
parent a65852d3e8
commit 3de3417d14

View File

@@ -73,8 +73,8 @@ public enum FormTypeEnum implements IBaseEnum<Integer> {
@JsonCreator
public static QueryTypeEnum fromValue(Integer value) {
for (QueryTypeEnum type : QueryTypeEnum.values()) {
public static FormTypeEnum fromValue(Integer value) {
for (FormTypeEnum type : FormTypeEnum.values()) {
if (type.getValue().equals(value)) {
return type;
}