# OtherClassificationEnum.java

    package cloud.wconnect.rateshop.cons.budgetdatabase;

    import lombok.AllArgsConstructor;
    import lombok.Getter;

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

        //1、revenue
        REVENUE(1, "revenue");

        private final Integer code;
        private final String desc;

        public static String getByCode(Integer classification) {
            for (OtherClassificationEnum value : values()) {
                if (value.code.equals(classification)) {
                    return value.desc;
                }
            }
            return null;
        }
    }