Monica视频监控处理程序
xc
2020-12-04 6566968d727f3739926c401b39925c6f55dff4ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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<String, StockoutBillEnum> 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);
    }
 
}