*
L
2025-09-25 345947cd69683fed7b61ec9eb15821808217ca43
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
package com.zy.core.enums;
 
public enum RgvTaskStatusType {
    NONE(0),//无
    X_MOVE(1),//行走
    FETCH(2),//取货
    PUT(3),//放货
    FETCH_PUT(4);//取放货
 
 
 
    public Integer id;
    RgvTaskStatusType(Integer id) { this.id = id; }
    public static RgvTaskStatusType get(Short id) {
        if (null == id){
            return null;
        }
        for(RgvTaskStatusType type : RgvTaskStatusType.values()){
            if(type.id.equals(id.intValue())){
                return type;
            }
        }
        return null;
    }
 
    public static RgvTaskStatusType get(RgvTaskStatusType type) {
        if (null == type){
            return null;
        }
        for(RgvTaskStatusType rgvTaskStatusType : RgvTaskStatusType.values()){
            if(rgvTaskStatusType == type){
                return rgvTaskStatusType;
            }
        }
        return null;
    }
}