| | |
| | | @Getter |
| | | public enum ReportTypeEnum { |
| | | Brief("Brief", "简易版"), Complete("Complete", "完整版"), SAQ("SAQ", "SAQ报告"), RuiLin("RuiLin", "睿邻报告"), CAQ("CAQ", "CAQ报告"), |
| | | JAQ("JAQ","JAQ报告"),MAQ("MAQ", "MAQ报告"),MAQV2("MAQV2", "MAQV2报告"),PAQ("PAQ", "PAQ报告"),MAQ_IAR("MAQ-IAR", "MAQ-IAR报告"); |
| | | JAQ("JAQ","JAQ报告"),MAQ("MAQ", "MAQ报告"),MAQV2("MAQV2", "MAQV2报告"),PAQ("PAQ", "PAQ报告"),MAQIAR("MAQIAR", "MAQIAR报告"); |
| | | private final String code; |
| | | private final String message; |
| | | ReportTypeEnum(String code, String message) { |
| | |
| | | } |
| | | public static ReportTypeEnum codeOf(String code) { |
| | | for (ReportTypeEnum xxxEnum : values()) { |
| | | //MAQ-IAR特殊处理 |
| | | if (code.contains(MAQ_IAR.code)) { |
| | | return MAQ_IAR; |
| | | //MAQIAR特殊处理 |
| | | if (code.contains(MAQIAR.code)) { |
| | | return MAQIAR; |
| | | } |
| | | if (Objects.equals(xxxEnum.getCode(), code)) { |
| | | return xxxEnum; |
| | |
| | | } |
| | | if (StringUtils.equals(reportType, ReportTypeEnum.MAQ.getCode())) { |
| | | setMAQCompleteChars(textMap, charts); |
| | | } else if (StringUtils.equals(reportType, ReportTypeEnum.MAQV2.getCode()) || StringUtils.equals(reportType, ReportTypeEnum.MAQ_IAR.getCode())) { |
| | | } else if (StringUtils.equals(reportType, ReportTypeEnum.MAQV2.getCode()) || StringUtils.equals(reportType, ReportTypeEnum.MAQIAR.getCode())) { |
| | | setMAQ_V2CompleteChars(textMap, charts); |
| | | } else if (StringUtils.equals(reportType, ReportTypeEnum.RuiLin.getCode())) { |
| | | setRuiLinChar(textMap, charts); |
| | |
| | | productTypeMap.put("RuiLin","RuiLin"); |
| | | productTypeMap.put("MAQ", "MAQ"); |
| | | productTypeMap.put("MAQV2", "MAQV2"); |
| | | productTypeMap.put("MAQ-IAR", "MAQ-IAR"); |
| | | productTypeMap.put("MAQIAR", "MAQIAR"); |
| | | productTypeMap.put("SAQ", "SAQ"); |
| | | productTypeMap.put("JAQ", "JAQ"); |
| | | } |