TaskContentEnum.java
1.22 KB
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
package cn.com.glsx.entmicro.Enum;
import java.util.Arrays;
/**
* @author zhouhb
* @description
* @date Created in 11:46 2021/11/8
*/
public enum TaskContentEnum {
BATCH_ADD_CUSTOMER(1, "您有{0}位客户待添加,请及时添加客户,避免造成客户流失"),
CUSTOMER_MESSAGE_MESS(3, "您有一条客户群发任务待处理。"),
CUSTOMER_BASE_MESSAGE_MESS(4, "您有一条客户群群发任务待处理。"),
CUSTOMER_DATA_PERFECTION(5, "您有部分客户的联系方式缺失,请及时完善,避免影响营销效果"),
;
public static TaskContentEnum getEnum(Integer value) {
return Arrays.stream(TaskContentEnum.values()).filter(e -> e.getValue().equals(value)).findFirst().get();
}
private Integer value;
private String displayName;
TaskContentEnum(Integer value, String displayName) {
this.value = value;
this.displayName = displayName;
}
public Integer getValue() {
return value;
}
public void setValue(Integer value) {
this.value = value;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
}