package com.hxhq.business.enums.zykgl;

/**
 * 编辑状态 1:未编辑 3:审核中
 * @author tanfei
 */
public enum BjEnum {

    /**
     * 未编辑
     */
    wbj(1, "未编辑"),

    /**
     * 审核中
     */
    shz(3, "审核中");

    private int value;
    private String text;

    BjEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public static BjEnum getEnumByValue(int type) {
        for (BjEnum bt : values()) {
            if (bt.value == type) {
                return bt;
            }
        }
        return null;
    }
}
