自动化立体仓库 - WCS系统
Junjie
2023-07-27 84a9e3a9a624526116b42ab15e27ec852eaa7c21
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
package com.zy.core.enums;
 
import com.core.common.Cools;
 
public enum SteChargeType {
 
    FIRST(1, "0100101"),
//    SECOND(2, "0100201"),
//    THIRD(3, "0100301"),
    ;
 
    SteChargeType(int ssbm, String locNo) {
        this.ssbm = ssbm;
        this.locNo = locNo;
    }
 
    public int ssbm;
 
    public String locNo;
 
    public static SteChargeType get(String locNo) {
        if (Cools.isEmpty(locNo)) {
            return null;
        }
        SteChargeType[] values = SteChargeType.values();
        for (SteChargeType value : values) {
            if (value.locNo.equals(locNo)) {
                return value;
            }
        }
        return null;
    }
 
    public static SteChargeType get(int ssbm) {
        if (Cools.isEmpty(ssbm)) {
            return null;
        }
        SteChargeType[] values = SteChargeType.values();
        for (SteChargeType value : values) {
            if (value.ssbm == ssbm) {
                return value;
            }
        }
        return null;
    }
 
}