2 changed files with 46 additions and 4 deletions
@ -0,0 +1,35 @@ |
|||
package com.epmet.enums; |
|||
|
|||
import com.epmet.commons.tools.enums.IcFormCodeEnum; |
|||
|
|||
public enum CustomizeEnum { |
|||
QI_TA("qita","其他"), |
|||
LAO_YOU_JV_LE_BU("laoyoujulebu","老友俱乐部"), |
|||
LOU_WEI_HUI("louweihui","楼委会"), |
|||
WEN_HUA_DUI_WU("wenhuaduiwu","文化队伍") |
|||
; |
|||
private String code; |
|||
private String name; |
|||
|
|||
CustomizeEnum(String code,String name) { |
|||
this.code = code; |
|||
this.name = name; |
|||
} |
|||
|
|||
public static IcFormCodeEnum getEnum(String code) { |
|||
IcFormCodeEnum[] values = IcFormCodeEnum.values(); |
|||
for (IcFormCodeEnum value : values) { |
|||
if (value.getCode().equals(code)) { |
|||
return value; |
|||
} |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
public String getName(){ |
|||
return name; |
|||
} |
|||
} |
Loading…
Reference in new issue