|
@ -238,7 +238,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
party.forEach(c -> { |
|
|
party.forEach(c -> { |
|
|
pid.put(c.getAgencyId(), c.getParentId()); |
|
|
pid.put(c.getAgencyId(), c.getParentId()); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
}); |
|
|
}); |
|
|
BigDecimalScoreCalculator sc = new BigDecimalScoreCalculator(maxAndMinBigDecimal.getMin(), maxAndMinBigDecimal.getMax(), ScoreConstants.MIN_SCORE, ScoreConstants.MAX_SCORE, Correlation.getCorrelation(detail.getCorrelation())); |
|
|
BigDecimalScoreCalculator sc = new BigDecimalScoreCalculator(maxAndMinBigDecimal.getMin(), maxAndMinBigDecimal.getMax(), ScoreConstants.MIN_SCORE, ScoreConstants.MAX_SCORE, Correlation.getCorrelation(detail.getCorrelation())); |
|
@ -321,7 +321,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
avg.forEach(c -> { |
|
|
avg.forEach(c -> { |
|
|
pid.put(c.getAgencyId(), c.getParentId()); |
|
|
pid.put(c.getAgencyId(), c.getParentId()); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
}); |
|
|
}); |
|
|
BigDecimalScoreCalculator sc = new BigDecimalScoreCalculator(maxAndMinBigDecimal.getMin(), maxAndMinBigDecimal.getMax(), ScoreConstants.MIN_SCORE, ScoreConstants.MAX_SCORE, Correlation.getCorrelation(detail.getCorrelation())); |
|
|
BigDecimalScoreCalculator sc = new BigDecimalScoreCalculator(maxAndMinBigDecimal.getMin(), maxAndMinBigDecimal.getMax(), ScoreConstants.MIN_SCORE, ScoreConstants.MAX_SCORE, Correlation.getCorrelation(detail.getCorrelation())); |
|
@ -404,7 +404,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
serviceAvg.forEach(c -> { |
|
|
serviceAvg.forEach(c -> { |
|
|
pid.put(c.getAgencyId(), c.getParentId()); |
|
|
pid.put(c.getAgencyId(), c.getParentId()); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
}); |
|
|
}); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexCode(), detail.getAllParentIndexCode(), index1SampleValues, detail.getThreshold(), detail.getWeight(), IndexCodeEnum.isAvgIndex(detail.getIndexCode()), sc1); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexCode(), detail.getAllParentIndexCode(), index1SampleValues, detail.getThreshold(), detail.getWeight(), IndexCodeEnum.isAvgIndex(detail.getIndexCode()), sc1); |
|
|