自动化立体仓库 - WCS系统
#
Junjie
2025-02-17 d8a9cfff5ff3f3deb33ef3dd1862f53415cc9b46
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
package com.zy.core.enums;
 
//货叉提升机任务确认
public enum ForkLiftConfirmType {
    NO(0, "未确认"),
    CONFIRM(1, "已确认"),
    ;
 
    public Integer id;
    public String desc;
 
    ForkLiftConfirmType(Integer id, String desc) {
        this.id = id;
        this.desc = desc;
    }
 
    public static ForkLiftConfirmType get(Integer id) {
        if (null == id) {
            return null;
        }
        for (ForkLiftConfirmType type : ForkLiftConfirmType.values()) {
            if (type.id.equals(id)) {
                return type;
            }
        }
        return null;
    }
 
    public static ForkLiftConfirmType get(ForkLiftConfirmType type) {
        if (null == type) {
            return null;
        }
        for (ForkLiftConfirmType type2 : ForkLiftConfirmType.values()) {
            if (type2 == type) {
                return type2;
            }
        }
        return null;
    }
}