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
| package com.zy.core.enums;
|
| /**
| * 四向穿梭车任务号类型
| */
| public enum ShuttleTaskNoType {
|
| IN(1, "入库"),
| OUT(2, "出库"),
| MOVE(3, "移动"),
| CHARGE(4, "充电"),
| RESET(5, "复位"),
| ;
|
| public Integer id;
| public String desc;
|
| ShuttleTaskNoType(Integer id, String desc) {
| this.id = id;
| this.desc = desc;
| }
|
| public static ShuttleTaskNoType get(Integer id) {
| if (null == id) {
| return null;
| }
| for (ShuttleTaskNoType type : ShuttleTaskNoType.values()) {
| if (type.id.equals(id)) {
| return type;
| }
| }
| return null;
| }
|
| public static ShuttleTaskNoType get(ShuttleTaskNoType type) {
| if (null == type) {
| return null;
| }
| for (ShuttleTaskNoType type1 : ShuttleTaskNoType.values()) {
| if (type1 == type) {
| return type1;
| }
| }
| return null;
| }
|
|
| }
|
|