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
package com.ruoyi.common.enums;
 
public enum ProcessType implements BaseEnum<Integer>{
 
    TIMEKEEPING(1, "计时"),
    PIECERATE(2, "计件");
 
    private final Integer code;
    private final String value;
 
    ProcessType(Integer code, String value) {
        this.code = code;
        this.value = value;
    }
 
    @Override
    public Integer getCode() {
        return this.code;
    }
 
    @Override
    public String getValue() {
        return this.value;
    }
}