刘光辉
12 小时以前 34981c30a78e8bbd7791131059a9210f9928b62c
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", "抄送事宜"),
    /**
     * 批量在办事宜
     */
    BATCH_DOING("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;
    }
}