package com.iformall.enums;


/**
 * @author gongbiao
 */

public enum EnumBillDailyStatus {

    NOT_PAID(1, "欠缴"),
    WAIT_PAY(2,"待缴"),
    PAID(3, "已结清"),
    NOT_EXPIRED(4,"未到期"),
    RETURN(5, "退还"),
    ;

    public static EnumBillDailyStatus getEnum(Integer code) {
        for (EnumBillDailyStatus value : values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

    private Integer code;
    private String message;

    EnumBillDailyStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
