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 ScoreInterpretationHigh extends BaseCondition_V2 { private String name = "NumericalReasoningHigh"; private Double BLA; @Override public TLibraryCode calculate(Map map, LangTypeEnum langType) { try { String pBLA = map.get("bla"); if (checkParamsIsNull(pBLA)) { return null; } BLA = Double.valueOf(pBLA); boolean LIBLAQ0010 = (BLA <= 30); boolean LIBLAQ0008 = (30 < BLA && BLA < 70); boolean LIBLAQ0005 = (BLA >= 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("NumericalReasoningHigh error:{}", ex.getMessage(), ex); return null; } } @Override public Map getMAQwaterDropsImages() { return null; } }