lbq
3 天以前 11db152ac1ee3d47e1047fb0c96fc7e10da345ac
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.vincent.rsf.server.manager.enums;
 
public enum LocStsWcsOrOtherType {
 
    //WCS
    LOC_STS_TYPE_WCS("WCS", "WCS"),
    //RCS
    LOC_STS_TYPE_RCS("RCS", "RCS"),
    //OTHER
    LOC_STS_TYPE_OTHER("OTHER", "OTHER")
    ;
 
    public String type;
 
    public String desc;
 
    LocStsWcsOrOtherType(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }
 
 
    public static LocStsWcsOrOtherType get(String el) {
        for (LocStsWcsOrOtherType value : LocStsWcsOrOtherType.values()) {
            if (el.equals(value.toString())) {
                return value;
            }
        }
        return null;
    }
 
    public static String getApiType(String val) {
        switch (val) {
            case "3#立体库区":
                return LocStsWcsOrOtherType.LOC_STS_TYPE_WCS.type;
//            case "RCS":
//                return LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type;
            default:
                return LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type;
        }
    }
 
//    public static String getLocSts(String val) {
//        if (val.equals("WCS")) {
//            return LocStsWcsOrOtherType.LOC_STS_TYPE_WCS.type;
//        } else if (val.equals("RCS")) {
//            return LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type;
//        } else {
//            return LocStsWcsOrOtherType.LOC_STS_TYPE_OTHER.type;
//        }
//    }
 
//    public static String getLocSts(Integer areaId) {
//        switch (areaId) {
//            case 22:
//                return LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type;
//            case 100:
//                return LocStsWcsOrOtherType.LOC_STS_TYPE_WCS.type;
//            default:
//                return LocStsWcsOrOtherType.LOC_STS_TYPE_OTHER.type;
//        }
//    }
 
 
}