package com.nova.sankuai.domain.enums.huizhixin; import io.swagger.annotations.ApiModel; @ApiModel(value = "客户贷前信息-行业") public enum LoanIndustryEnum { Industry_1("I026", "政府机关/公务员"), Industry_2("I027", "事业单位"), Industry_3("I028", "国有企业"), Industry_4("I029", "互联网/IT"), Industry_5("I030", "房地产"), Industry_6("I031", "金融"), Industry_7("I032", "机械制造"), Industry_8("I033", "医疗美容"), Industry_9("I034", "汽车交通"), Industry_10("I035", "贸易物流"), Industry_11("I036", "能源环保"), Industry_12("I037", "广告传媒"), Industry_13("I038", "法律"), Industry_14("I039", "教育"), Industry_15("I040", "服务"), Industry_16("I041", "个体户"), Industry_17("I042", "自由职业"), Industry_18("I100", "其他"), ; private String code; private String value; LoanIndustryEnum(String code, String value) { this.code = code; this.value = value; } public static String value(String code) { if (code != null) { for (LoanIndustryEnum m : LoanIndustryEnum.values()) { if (m.getCode().equals(code)) { return m.getValue(); } } } return null; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }