[测评系统]--测评系统核心代码库
zhijie
2021-06-08 56c8bc18def3992259da50948119259f571d04ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.ots.project.tool.report.MAQNEW.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 ResponseFidelityDiagnosisTitle_V2 extends BaseCondition_V2 {
    private String name = "ResponseFidelityDiagnosisTitle_V2";
    private Double P_SDE_T1;
    private Double P_IM_T1;
    private Double P_INCON_T1;
    @Override
    public Map<String, String> getMAQwaterDropsImages() {
        return null;
    }
    @Override
    public TLibraryCode calculate(Map<String, String> map, LangTypeEnum langType) {
        try {
            String p_sde_t1 = map.get("P_SDE_T1");
            String p_im_t1 = map.get("P_IM_T1");
            String p_incon_t1 = map.get("P_INCON_T1");
            String p_sde23 = map.get("P_SDE23");
            String p_im24 = map.get("P_IM24");
            String p_incon25 = map.get("P_INCON25");
            if (checkParamsIsNull(p_sde_t1, p_im_t1, p_incon_t1, p_sde23, p_im24, p_incon25)) {
                return null;
            }
            P_SDE_T1 = Double.valueOf(p_sde_t1);
            P_IM_T1 = Double.valueOf(p_im_t1);
            P_INCON_T1 = Double.valueOf(p_incon_t1);
            Double P_SDE23 = Double.valueOf(p_sde23);
            Double P_IM24 = Double.valueOf(p_im24);
            Double P_INCON25 = Double.valueOf(p_incon25);
            boolean LIBMAQV28801 = (P_SDE_T1 >= 95 || P_IM_T1 >= 95 || P_INCON_T1 >= 95) && (P_SDE23 >= 95 || P_IM24 >= 95 || P_INCON25 >= 95);
            boolean LIBMAQV28802 = (P_SDE_T1 >= 95 || P_IM_T1 >= 95 || P_INCON_T1 >= 95) && ((5 < P_SDE23 && P_SDE23 < 95) && (5 < P_IM24 && P_IM24 < 95) && P_INCON25 < 95);
            boolean LIBMAQV28803 = (P_SDE_T1 >= 95 || P_IM_T1 >= 95 || P_INCON_T1 >= 95) && (P_SDE23 <= 5 || P_IM24 <= 5) && (P_INCON25 < 95);
            boolean LIBMAQV28804 = (P_SDE_T1 < 95 && P_IM_T1 < 95 && P_INCON_T1 < 95) && (P_SDE23 >= 95 || P_IM24 >= 95 || P_INCON25 >= 95);
            boolean LIBMAQV28805 = (P_SDE_T1 < 95 && P_IM_T1 < 95 && P_INCON_T1 < 95) && ((5 < P_SDE23 && P_SDE23 < 95) && (5 < P_IM24 && P_IM24 < 95) && P_INCON25 < 95);
            boolean LIBMAQV28806 = (P_SDE_T1 < 95 && P_IM_T1 < 95 && P_INCON_T1 < 95) && (P_SDE23 <= 5 || P_IM24 <= 5) && (P_INCON25 < 95);
            Map calculateMap = new HashMap();
            calculateMap.put(LIBMAQV28801, "LIBMAQV28801");
            calculateMap.put(LIBMAQV28802, "LIBMAQV28802");
            calculateMap.put(LIBMAQV28803, "LIBMAQV28803");
            calculateMap.put(LIBMAQV28804, "LIBMAQV28804");
            calculateMap.put(LIBMAQV28805, "LIBMAQV28805");
            calculateMap.put(LIBMAQV28806, "LIBMAQV28806");
            String codeId = selectTrueObject(calculateMap);
            
            TLibraryCode maqReportLibrary = getMaqReportLibrary(map, codeId, langType);
            return maqReportLibrary;
        } catch (Exception ex) {
            log.error("ResponseFidelityDiagnosis error:{}", ex.getMessage(), ex);
            return null;
        }
    }
}