[测评系统]--测评系统核心代码库
林致杰
2021-12-03 ce080c08f08c01695ddc9d9510b77eb6d2c7a38d
MAQ-IAR改成MAQIAR
3个文件已修改
12 ■■■■ 已修改文件
src/main/java/com/ots/common/enums/ReportTypeEnum.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/common/utils/poi/WordUtil.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/project/tool/exam/ExamUtil.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/common/enums/ReportTypeEnum.java
@@ -4,7 +4,7 @@
@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) {
@@ -13,9 +13,9 @@
    }
    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;
src/main/java/com/ots/common/utils/poi/WordUtil.java
@@ -961,7 +961,7 @@
        }
        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);
src/main/java/com/ots/project/tool/exam/ExamUtil.java
@@ -23,7 +23,7 @@
        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");
    }