|
|
@ -344,13 +344,13 @@ public class GridCorreLationServiceImpl implements GridCorreLationService { |
|
|
|
private Map<String, IndexInputVO<BigDecimal>> buildGridCorrelationIndexInputVO(CalculateCommonFormDTO formDTO, List<IndexGroupDetailEntity> indexList, Map<String, Object> minAndMaxMap) { |
|
|
|
Map<String, IndexInputVO<BigDecimal>> map = new HashMap<>(); |
|
|
|
for (IndexGroupDetailEntity index : indexList) { |
|
|
|
IndexInputVO indexInputVO = new IndexInputVO(); |
|
|
|
// IndexInputVO indexInputVO = new IndexInputVO();
|
|
|
|
// 指标code
|
|
|
|
indexInputVO.setIndexId(index.getIndexCode()); |
|
|
|
// indexInputVO.setIndexId(index.getIndexCode());
|
|
|
|
//阈值
|
|
|
|
indexInputVO.setThreshold(index.getThreshold()); |
|
|
|
// indexInputVO.setThreshold(index.getThreshold());
|
|
|
|
//权重
|
|
|
|
indexInputVO.setWeight(index.getWeight()); |
|
|
|
// indexInputVO.setWeight(index.getWeight());
|
|
|
|
BigDecimal minValue = null; |
|
|
|
BigDecimal maxValue = null; |
|
|
|
if (IndexCodeEnum.ZUZHINEIDANGYDLXQZNLKPFPJZ.getCode().equals(index.getIndexCode())) { |
|
|
@ -384,11 +384,15 @@ public class GridCorreLationServiceImpl implements GridCorreLationService { |
|
|
|
ScoreConstants.MAX_SCORE, |
|
|
|
Correlation.getCorrelation(index.getCorrelation()) |
|
|
|
); |
|
|
|
indexInputVO.setScoreCalculator(scoreCalculator); |
|
|
|
// indexInputVO.setScoreCalculator(scoreCalculator);
|
|
|
|
List<SampleValue<BigDecimal>> sampleValueList = new ArrayList<>(); |
|
|
|
indexInputVO.setIndexValueVOs(sampleValueList); |
|
|
|
|
|
|
|
map.put(index.getIndexCode(), indexInputVO); |
|
|
|
// indexInputVO.setIndexValueVOs(sampleValueList);
|
|
|
|
IndexInputVO indexInputVO1 = new IndexInputVO(index.getIndexCode(), |
|
|
|
sampleValueList, |
|
|
|
index.getThreshold(), |
|
|
|
index.getWeight(), |
|
|
|
scoreCalculator); |
|
|
|
map.put(index.getIndexCode(), indexInputVO1); |
|
|
|
} |
|
|
|
return map; |
|
|
|
} |
|
|
|