自动化立体仓库 - WCS系统
#
Junjie
2025-04-10 1d624dfdb040825ffecba6c792c480be662b2dbc
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 ForkLiftIoModeType {
    NONE(0, "未知"),
    IN(1, "入库"),
    OUT(2, "出库"),
    ;
 
    public Integer id;
    public String desc;
 
    ForkLiftIoModeType(Integer id, String desc) {
        this.id = id;
        this.desc = desc;
    }
 
    public static ForkLiftIoModeType get(Integer id) {
        if (null == id) {
            return null;
        }
        for (ForkLiftIoModeType type : ForkLiftIoModeType.values()) {
            if (type.id.equals(id)) {
                return type;
            }
        }
        return null;
    }
 
    public static ForkLiftIoModeType get(ForkLiftIoModeType type) {
        if (null == type) {
            return null;
        }
        for (ForkLiftIoModeType type2 : ForkLiftIoModeType.values()) {
            if (type2 == type) {
                return type2;
            }
        }
        return null;
    }
}