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
| package com.zy.core.enums;
|
| /**
| * 入出库模式枚举
| */
| public enum IoModeType {
|
| NONE((short) 0, "未知"),
| PAKIN_BOOTING((short) 1, "入库启动中"),
| PAKIN_MODE((short) 2, "入库模式"),
| PAKOUT_BOOTING((short) 3, "出库启动中"),
| PAKOUT_MODE((short) 4, "出库模式"),
| ;
|
| public Short id;
| public String desc;
|
| IoModeType(Short id, String desc) {
| this.id = id;
| this.desc = desc;
| }
|
| public static IoModeType get(Short id) {
| for (IoModeType type : IoModeType.values()) {
| if (id.equals(type.id)) {
| return type;
| }
| }
| return IoModeType.NONE;
| }
|
| }
|
|