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;
|
}
|
|
}
|