fuliqi
2024-08-07 748a94912543e37633d527bf1343fb78213dab0b
ycl-common/src/main/java/enumeration/general/AreaDeptEnum.java
@@ -4,7 +4,6 @@
/**
 * 区域枚举
 *
 */
@Getter
public enum AreaDeptEnum {
@@ -28,4 +27,14 @@
        this.code = code;
        this.deptId = deptId;
    }
    public static AreaDeptEnum fromCode(String code) {
        for (AreaDeptEnum type : AreaDeptEnum.values()) {
            if (type.getCode().equals(code) ) {
                return type;
            }
        }
        return null;
    }
}