自动化立体仓库 - WCS系统
*
lsh
6 天以前 f287ab5ee6b9938e0d48cdb62c05078bdec463d8
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
package com.zy.core.enums;
 
public enum RouteCollectCountType {
 
    INTERSECTION(0, "交集"),   // 交集
    DIFFERENCESET(1, "差集"),   // 差集
    UNION(2, "并集"),  //并集
    DEDUPLICATIONUNION(3, "去重并集"),  //去重并集
    ;
 
    public Integer id;
    public String desc;
    RouteCollectCountType(Integer id, String desc) {
        this.id = id;
        this.desc = desc;
    }
 
    public static RouteCollectCountType get(Short id) {
        if (null == id) {
            return null;
        }
        for (RouteCollectCountType type : RouteCollectCountType.values()) {
            if (type.id.equals(id.intValue())) {
                return type;
            }
        }
        return null;
    }
 
    public static RouteCollectCountType get(RouteCollectCountType type) {
        if (null == type) {
            return null;
        }
        for (RouteCollectCountType crnLiftPosType : RouteCollectCountType.values()) {
            if (crnLiftPosType == type) {
                return crnLiftPosType;
            }
        }
        return null;
    }
 
}