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
| package com.zy.asrs.domain.enums;
|
| import com.zy.core.enums.CrnForkPosType;
|
| public enum WmsWrkStatusType {
|
| RECEIVE(1,"接收"),
| DISTRIBUTE(2,"派发"),
| WORKING(3,"执行"),
| COMPLETE(4,"完结"),
| CANCEL(5,"取消"),
| ;
|
| public Integer id;
| public String desc;
|
| WmsWrkStatusType(Integer id,String desc){
| this.id = id;
| this.desc = desc;
| }
|
| public static String get(Integer id) {
| if (null == id) {
| return null;
| }
| for (WmsWrkStatusType type : WmsWrkStatusType.values()) {
| if (type.id.equals(id)) {
| return type.desc;
| }
| }
| return null;
| }
|
| }
|
|