# FbClassificationEnum.java

    package cloud.wconnect.rateshop.cons.budgetdatabase;

    import lombok.AllArgsConstructor;
    import lombok.Getter;

    /**
     *
     * @author: yyt
     * 2025-11-10
     */
    @Getter
    @AllArgsConstructor
    public enum FbClassificationEnum {

        //1、revenue，2、covers
        REVENUE(1, "revenue"),
        COVERS(2, "covers");

        private final Integer code;
        private final String desc;

        public static String getByCode(Integer classification) {
            for (FbClassificationEnum value : values()) {
                if (value.getCode().equals(classification)) {
                    return value.getDesc();
                }
            }
            return null;
        }
    }