package com.hbbh.adapter.enums; import java.util.HashMap; import java.util.Map; /** * 枚举类型 * * @author */ @Deprecated public enum StockoutBillEnum { ysh("ysh", "已收货"), dsh("dsh", "待收货"), unviewed("unviewed", "待审核"), reviewed("reviewed", "审核通过"), qx("qx", "已取消"), ; private final String value; private final String name; StockoutBillEnum(String value, String name) { this.value = value; this.name = name; } public String getValue() { return value; } public String getName() { return name; } private static Map maps = new HashMap<>(); static { for (StockoutBillEnum item : StockoutBillEnum.values()) { maps.put(item.getValue(), item); } } public static StockoutBillEnum getByType(final String value) { if (value == null) { return null; } return maps.get(value); } }