huanghongfa
2021-07-28 04ee9afc3f33f48327e360be965f882ffd2c16be
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
package com.panzhihua.common.enums;
 
/** 走访任务状态
 * @author xyh
 * @date 2021/6/21 17:22
 */
public enum  EventTasksStatusEnum {
 
    DZF(1,"待走访"),
    YJJ(2,"已走访")
    ;
 
 
    private final int code;
    private final String name;
 
    public int getCode() {
        return code;
    }
 
    public String getName() {
        return name;
    }
 
    EventTasksStatusEnum(int code, String name){
        this.code = code;
        this.name = name;
    }
 
    public static String getName(int code){
        for (EventTasksStatusEnum item : EventTasksStatusEnum.values()) {
            if (item.code == (code)) {
                return item.getName();
            }
        }
        return "";
    }
}