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.asrs.domain.enums;
|
| public enum TaskStatusType {
|
| RECEIVE(1,"接收"),
| DISTRIBUTE(2,"派发"),
| COMPLETE(3,"命令完成"),
| CANCEL(4,"取消"),
| OVER(5,"完结")
| ;
|
| public Integer id;
| public String desc;
|
| TaskStatusType(Integer id, String desc){
| this.id = id;
| this.desc = desc;
| }
|
| public static String get(Integer id) {
| if (null == id) {
| return null;
| }
| for (TaskStatusType type : TaskStatusType.values()) {
| if (type.id.equals(id)) {
| return type.desc;
| }
| }
| return null;
| }
|
| }
|
|