| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package com.goafanti.common.enums;
- import java.util.HashMap;
- import java.util.Map;
- public enum OrgTechCenterDetailFields {
-
- UID("uid", "用户id"),
- TOTALTAX("totalTax", "纳税总额(万元)"),
- INCOMETAXRELIEF("incomeTaxRelief", "所得税减免(万元)"),
- TOTALEXPORTVOLUME("totalExportVolume", "出口创汇总额(万元)"),
- BASICRESEARCHCOST("basicResearchCost", "基础研究投入费用"),
- YEAR("year", "年份"),
- STATE("state", "年报状态"),
-
- OTHER("", "未知参数");
-
- private String code;
- private String desc;
-
- private static Map<String, OrgTechCenterDetailFields> status = new HashMap<String, OrgTechCenterDetailFields>();
-
- private OrgTechCenterDetailFields(String code, String desc) {
- this.code = code;
- this.desc = desc;
- }
-
- static {
- for (OrgTechCenterDetailFields value : OrgTechCenterDetailFields.values()) {
- status.put(value.getCode(), value);
- }
- }
-
- public static OrgTechCenterDetailFields getField(String code) {
- if (containsType(code)) {
- return status.get(code);
- }
- return OTHER;
- }
-
- public static String getFieldDesc(String code) {
- return getField(code).getDesc();
- }
- public static boolean containsType(String code) {
- return status.containsKey(code);
- }
-
- public String getCode() {
- return code;
- }
- public String getDesc() {
- return desc;
- }
- }
|