中扬CRM客户关系管理系统
LSH
2023-11-22 92b286e238439c61b230a07f42b92c2328588d49
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
package com.zy.crm.common.entity;
 
public enum PhoneCodeTypeParam {
 
    ALIYUN_M1ABAC630E(0, "【中扬立库】有新的CRM流程需要审核","M1ABAC630E"),
    ALIYUN_M6F3C81FE3(1, "【中扬立库】分配了新的规划申请单任务!","M6F3C81FE3"),
    ;
 
    public Integer id;
    public String code;
    public String templateId;
    PhoneCodeTypeParam(Integer id,String code, String templateId) {
        this.id = id;
        this.code = code;
        this.templateId = templateId;
    }
 
    public static PhoneCodeTypeParam get(Short id) {
        if (null == id) {
            return null;
        }
        for (PhoneCodeTypeParam type : PhoneCodeTypeParam.values()) {
            if (type.id.equals(id.intValue())) {
                return type;
            }
        }
        return null;
    }
 
    public static PhoneCodeTypeParam get(PhoneCodeTypeParam type) {
        if (null == type) {
            return null;
        }
        for (PhoneCodeTypeParam crnLiftPosType : PhoneCodeTypeParam.values()) {
            if (crnLiftPosType == type) {
                return crnLiftPosType;
            }
        }
        return null;
    }
 
}