郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
package com.gkhy.safePlatform.specialWork.enums;
 
import java.util.HashMap;
import java.util.Map;
 
public enum ProcessOperationEnum {
 
    APPLY(0, "提出申请"),
    APPROVE(1, "审批"),
    CANCEL(2, "取消申请"),
    AUTO_REJECT(3, "自动驳回"),
    APPROVE_SUCCESS(4, "审批通过"),
    ABORD(5, "终止"),
    FINISH(6, "作业流转结束"),
 
    ;
 
 
    ProcessOperationEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }
 
    public int code;
 
    public String value;
 
    static Map<Integer, ProcessOperationEnum> map;
    static {
        map = new HashMap<>();
        for (ProcessOperationEnum e : ProcessOperationEnum.values()) {
            map.put(e.code, e);
        }
    }
 
    public static ProcessOperationEnum parse(Integer code) {
        return map.get(code);
    }
 
}