TaskContentEnum.java 1.22 KB
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;
    }
}