自动化立体仓库 - WCS系统
#
luxiaotao1123
2022-03-16 6f3dba8f0db1e0992d9c755fd232b4a5c4d5b66c
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
package com.zy.core.enums;
 
public enum SteHisTaskStatusType {
 
    INIT(0, "初始"),
    COMPLETE(1, "执行完成"),
    REMOVE(2, "删除"),
    ;
 
    public Integer id;
    public String desc;
    SteHisTaskStatusType(Integer id, String desc) {
        this.id = id;
        this.desc = desc;
    }
 
    public static SteHisTaskStatusType get(Short id) {
        if (null == id) {
            return null;
        }
        for (SteHisTaskStatusType type : SteHisTaskStatusType.values()) {
            if (type.id.equals(id.intValue())) {
                return type;
            }
        }
        return null;
    }
 
    public static SteHisTaskStatusType get(SteHisTaskStatusType type) {
        if (null == type) {
            return null;
        }
        for (SteHisTaskStatusType statusType : SteHisTaskStatusType.values()) {
            if (statusType == type) {
                return statusType;
            }
        }
        return null;
    }
 
}