package com.jwipc.shopping.constant;

import lombok.Getter;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Getter
public enum ShoppingPayBpmState {
    TO_BE_SUBMITTED(0, "待提交"),
    APPROVALING(1, "审批中"),
    PASS(2, "通过"),
    REJECT(3, "驳回"),
    OBSOLETE(4, "废弃");
    private final int val;
    private final String title;

    ShoppingPayBpmState(int val, String title) {
        this.val = val;
        this.title = title;
    }
    public static ShoppingPayBpmState valueOf(int val) {
        for (ShoppingPayBpmState state : values()) {
            if (state.val == val) {
                return state;
            }
        }
        return null;
    }
}
