package com.module.policy_manage.model.enums;
/**
* 扶持事项type字段 类型 枚举类
* @author asus
*
*/
public enum SupportMatterTypeEnum {
HELP_FINANCE(1,"助融资"),
PROMOTE_INNOVATION(2,"促创新"),
STRONG_INDUSTRY(3,"强产业"),
SUPPORT_GROW_UP(4,"扶成长"),
LEAD_TALENT(5,"引人才")
;
private Integer typeCode;
private String typeName;
private static final SupportMatterTypeEnum[] typeEnum = SupportMatterTypeEnum.values();
private static final int length = typeEnum.length;
SupportMatterTypeEnum(Integer typeCode,String typeName){
this.typeCode = typeCode;
this.typeName = typeName;
}
public Integer getTypeCode() {
return typeCode;
}
public String getTypeName() {
return typeName;
}
/**
* 根据编号 获取类型名称
* @param code
* @return
*/
public static String getTypeName(int code){
if(code > 0 && code <= length){
return typeEnum[code - 1].getTypeName();
}
return null;
}
}