package com.freemud.application.sdk.api.ordercenter.enums;


/**
 * @author wanghanghang
 * @title: QueryHeardServiceImpl
 * @projectName order_group
 * @description: 订单BizType枚举类
 * @date 2021/7/15下午10:50
 */
public enum BizTypeEnum {

    ORDINARY(1, "点餐业务"),
//    VIRTUAL(2, "虚拟订单"),
    MEMBERS(3, "会员业务"),
    INTEGRAL_MALL(4, "积分商城业务"),
    SVC(5, "储值账户业务"),
    SALE_COUPON(6, "卖券业务"),
    /**
     *  增对 爱马哥的蛋糕预定出的需求,
     */
    ADVANCE_ORDER(7, "预定业务"),
    MALL(8, "微商城业务"),

//    CASHIER(10, "收款业务"),
    LGS_SELF_HELP_PARKING(97, "农工商停车自助积分订单"),
    LGS_MANUAL_RECORD_PARKING(98, "农工商停车手工录单"),
    LGS_PARKING(99, "农工商停车订单");


    private Integer bizType;
    private String desc;

    BizTypeEnum(Integer bizType, String desc) {
        this.bizType = bizType;
        this.desc = desc;
    }

    public static BizTypeEnum getByCode(Integer code) {
        for (BizTypeEnum bizTypeEnum : values()) {
            if (bizTypeEnum.getBizType().equals(code)) {
                return bizTypeEnum;
            }
        }
        return null;
    }

    public Integer getBizType() {
        return bizType;
    }

    public void setBizType(Integer bizType) {
        this.bizType = bizType;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}