package com.iformall.enums;


/**
 * @author gongbiao
 */

public enum EnumBillRentStatus {
    NOT_PAID(1, "欠缴"),
    WAIT_PAY(2,"待缴"),
    PAID(3, "已结清"),
    NOT_EXPIRED(4,"未到期"),
    RETURN(5, "已退还"),
    INVALID(6, "失效"),
    ;

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

    private Integer code;
    private String message;

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

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
