[测评系统]--测评系统核心代码库
林致杰
2023-10-27 08586df847105a6d4ad42ca2d8337ee14aa38b82
新增推理能力文本替换
2个文件已添加
1个文件已修改
100 ■■■■■ 已修改文件
src/main/java/com/ots/project/tool/report/LAQ/condition/EmotionalStability.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/project/tool/report/LAQ/condition/SummaryScoreHigh.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/project/tool/report/LAQ/condition/SummaryScoreStrong.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/project/tool/report/LAQ/condition/EmotionalStability.java
@@ -37,7 +37,7 @@
            Map calculateMap = new HashMap();
            calculateMap.put(LIBLAQ0610, "LIBLAQ0611,LIBLAQ0612,LIBLAQ0613,LIBLAQ0614");
            calculateMap.put(LIBLAQ0620, "LIBLAQ0621,LIBLAQ0622,LIBLAQ0623,LIBLAQ0624,LIBLAQ0625");
            calculateMap.put(LIBLAQ0630, "LIBLAQ0631,LIBLAQ0632,LIBLAQ0633");
            calculateMap.put(LIBLAQ0630, "LIBLAQ0631,LIBLAQ0632,LIBLAQ0633,LIBLAQ0634");
            String codeId = selectTrueObject(calculateMap);
            String[] split = codeId.split(",");
            List<TLibraryCode> libcodes = new ArrayList<>();
src/main/java/com/ots/project/tool/report/LAQ/condition/SummaryScoreHigh.java
New file
@@ -0,0 +1,49 @@
package com.ots.project.tool.report.LAQ.condition;
import com.ots.common.enums.LangTypeEnum;
import com.ots.project.exam.domain.TLibraryCode;
import com.ots.project.tool.report.MAQNEW.base.BaseCondition_V2;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
import java.util.Map;
@Getter
@Setter
@Slf4j
public class SummaryScoreHigh extends BaseCondition_V2 {
    private String name = "SummaryScoreHigh";
    private Double OLAS;
    @Override
    public TLibraryCode calculate(Map<String, String> map, LangTypeEnum langType) {
        try {
            String pOLAS = map.get("olas");
            if (checkParamsIsNull(pOLAS)) {
                return null;
            }
            OLAS = Double.valueOf(pOLAS);
            boolean LIBLAQ0010 = (OLAS <= 30);
            boolean LIBLAQ0008 = (30 < OLAS && OLAS < 70);
            boolean LIBLAQ0005 = (OLAS >= 70);
            Map calculateMap = new HashMap();
            calculateMap.put(LIBLAQ0010, "LIBLAQ0010");
            calculateMap.put(LIBLAQ0008, "LIBLAQ0008");
            calculateMap.put(LIBLAQ0005, "LIBLAQ0005");
            String codeId = selectTrueObject(calculateMap);
            TLibraryCode maqReportLibrary = getMaqReportLibrary(map, codeId , langType);
            return maqReportLibrary;
        } catch (Exception ex) {
            log.error("SummaryScoreHigh error:{}", ex.getMessage(), ex);
            return null;
        }
    }
    @Override
    public Map<String, String> getMAQwaterDropsImages() {
        return null;
    }
}
src/main/java/com/ots/project/tool/report/LAQ/condition/SummaryScoreStrong.java
New file
@@ -0,0 +1,49 @@
package com.ots.project.tool.report.LAQ.condition;
import com.ots.common.enums.LangTypeEnum;
import com.ots.project.exam.domain.TLibraryCode;
import com.ots.project.tool.report.MAQNEW.base.BaseCondition_V2;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
import java.util.Map;
@Getter
@Setter
@Slf4j
public class SummaryScoreStrong extends BaseCondition_V2 {
    private String name = "SummaryScoreStrong";
    private Double OLAS;
    @Override
    public TLibraryCode calculate(Map<String, String> map, LangTypeEnum langType) {
        try {
            String pOLAS = map.get("olas");
            if (checkParamsIsNull(pOLAS)) {
                return null;
            }
            OLAS = Double.valueOf(pOLAS);
            boolean LIBLAQ0020 = (OLAS <= 30);
            boolean LIBLAQ0018 = (30 < OLAS && OLAS < 70);
            boolean LIBLAQ0015 = (OLAS >= 70);
            Map calculateMap = new HashMap();
            calculateMap.put(LIBLAQ0020, "LIBLAQ0020");
            calculateMap.put(LIBLAQ0018, "LIBLAQ0018");
            calculateMap.put(LIBLAQ0015, "LIBLAQ0015");
            String codeId = selectTrueObject(calculateMap);
            TLibraryCode maqReportLibrary = getMaqReportLibrary(map, codeId , langType);
            return maqReportLibrary;
        } catch (Exception ex) {
            log.error("SummaryScoreStrong error:{}", ex.getMessage(), ex);
            return null;
        }
    }
    @Override
    public Map<String, String> getMAQwaterDropsImages() {
        return null;
    }
}