package com.epmet.enums; import com.epmet.commons.tools.enums.IcFormCodeEnum; /** * 饼状图枚举类 * * @return * @author LZN * @date 2022/5/30 15:13 */ 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; } }