自动化立体仓库 - WCS系统
#
Junjie
2025-01-08 97821c4acc241cd65fd4ae890a44201df065c590
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
package com.zy.core.enums;
 
import com.core.common.Cools;
 
public enum ShuttleChargeType {
 
    CHARGE_1(1, "1402001", "1402001"),
    ;
 
    ShuttleChargeType(int id, String locNo,String waitLocNo) {
        this.id = id;
        this.locNo = locNo;
        this.waitLocNo = waitLocNo;
    }
 
    public int id;
    public String locNo;
    public String waitLocNo;
 
    public static ShuttleChargeType get(String locNo) {
        if (Cools.isEmpty(locNo)) {
            return null;
        }
        ShuttleChargeType[] values = ShuttleChargeType.values();
        for (ShuttleChargeType value : values) {
            if (value.locNo.equals(locNo)) {
                return value;
            }
        }
        return null;
    }
 
    public static ShuttleChargeType get(int id) {
        if (Cools.isEmpty(id)) {
            return null;
        }
        ShuttleChargeType[] values = ShuttleChargeType.values();
        for (ShuttleChargeType value : values) {
            if (value.id == id) {
                return value;
            }
        }
        return null;
    }
 
}