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
49
50
51
52
53
54
55
56
57
| package jnpf.flowable.enums;
|
|
| import lombok.Getter;
|
| @Getter
| public enum CategoryEnum {
| /**
| * 没有经过
| */
| none("-1", "无"),
| /**
| * 待签事宜
| */
| Sign("0", "待签事宜"),
| /**
| * 待办事宜
| */
| Todo("1", "待办事宜"),
| /**
| * 在办事宜
| */
| Doing("2", "在办事宜"),
| /**
| * 已办事宜
| */
| Done("3", "已办事宜"),
| /**
| * 抄送事宜
| */
| Circulate("4", "抄送事宜"),
| /**
| * 批量在办事宜
| */
| BatchDoing("5", "批量在办事宜"),
|
| ;
|
|
| private final String type;
| private final String message;
|
| CategoryEnum(String type, String message) {
| this.type = type;
| this.message = message;
| }
|
|
| public static CategoryEnum getType(String type) {
| for (CategoryEnum status : CategoryEnum.values()) {
| if (status.getType().equals(type)) {
| return status;
| }
| }
| return CategoryEnum.none;
| }
| }
|
|