|
@ -8,11 +8,11 @@ import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
import com.epmet.constant.IndexCalConstant; |
|
|
import com.epmet.constant.IndexCalConstant; |
|
|
|
|
|
import com.epmet.dao.evaluationindex.indexcal.CommunityScoreDao; |
|
|
|
|
|
import com.epmet.dao.evaluationindex.indexcal.GridScoreDao; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexGovrnAblityOrgMonthlyDao; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexGovrnAblityOrgMonthlyDao; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexPartyAblityOrgMonthlyDao; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexPartyAblityOrgMonthlyDao; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexServiceAblityOrgMonthlyDao; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexServiceAblityOrgMonthlyDao; |
|
|
import com.epmet.dao.evaluationindex.screen.FactIndexCommunityScoreDao; |
|
|
|
|
|
import com.epmet.dao.evaluationindex.screen.FactIndexGridScoreDao; |
|
|
|
|
|
import com.epmet.dto.screen.FactIndexCommunityScoreDTO; |
|
|
import com.epmet.dto.screen.FactIndexCommunityScoreDTO; |
|
|
import com.epmet.dto.screen.result.MaxAndMinBigDecimalResultDTO; |
|
|
import com.epmet.dto.screen.result.MaxAndMinBigDecimalResultDTO; |
|
|
import com.epmet.dto.screen.result.SubGridAvgResultDTO; |
|
|
import com.epmet.dto.screen.result.SubGridAvgResultDTO; |
|
@ -59,9 +59,9 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
@Autowired |
|
|
@Autowired |
|
|
private IndexCodeFieldReService indexCodeFieldReService; |
|
|
private IndexCodeFieldReService indexCodeFieldReService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private FactIndexCommunityScoreDao factIndexCommunityScoreDao; |
|
|
private CommunityScoreDao factIndexCommunityScoreDao; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private FactIndexGridScoreDao factIndexGridScoreDao; |
|
|
private GridScoreDao factIndexGridScoreDao; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param customerId |
|
|
* @param customerId |
|
@ -102,7 +102,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
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())); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), detail.getAllParentIndexCode(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc); |
|
|
indexInputVOS.add(index1VO); |
|
|
indexInputVOS.add(index1VO); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
@ -133,7 +133,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
SampleValue s = new SampleValue((String) c.get(IndexCalConstant.AGENCY_ID), new BigDecimal(String.valueOf(c.get(fieldNameByIndexCode)))); |
|
|
SampleValue s = new SampleValue((String) c.get(IndexCalConstant.AGENCY_ID), new BigDecimal(String.valueOf(c.get(fieldNameByIndexCode)))); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
}); |
|
|
}); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc1); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), detail.getAllParentIndexCode(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc1); |
|
|
indexInputVOS.add(index1VO); |
|
|
indexInputVOS.add(index1VO); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
@ -185,7 +185,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
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())); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), detail.getAllParentIndexCode(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc); |
|
|
indexInputVOS.add(index1VO); |
|
|
indexInputVOS.add(index1VO); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
@ -216,7 +216,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
SampleValue s = new SampleValue((String) c.get(IndexCalConstant.AGENCY_ID), new BigDecimal(String.valueOf(c.get(fieldNameByIndexCode)))); |
|
|
SampleValue s = new SampleValue((String) c.get(IndexCalConstant.AGENCY_ID), new BigDecimal(String.valueOf(c.get(fieldNameByIndexCode)))); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
}); |
|
|
}); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc1); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), detail.getAllParentIndexCode(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc1); |
|
|
indexInputVOS.add(index1VO); |
|
|
indexInputVOS.add(index1VO); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
@ -265,7 +265,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
}); |
|
|
}); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc1); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), detail.getAllParentIndexCode(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc1); |
|
|
indexInputVOS.add(index1VO); |
|
|
indexInputVOS.add(index1VO); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
@ -295,7 +295,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni |
|
|
SampleValue s = new SampleValue((String) c.get(IndexCalConstant.AGENCY_ID), new BigDecimal(String.valueOf(c.get(fieldNameByIndexCode)))); |
|
|
SampleValue s = new SampleValue((String) c.get(IndexCalConstant.AGENCY_ID), new BigDecimal(String.valueOf(c.get(fieldNameByIndexCode)))); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
}); |
|
|
}); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc1); |
|
|
IndexInputVO index1VO = new IndexInputVO(detail.getIndexId(), detail.getAllParentIndexCode(), index1SampleValues, detail.getThreshold(), detail.getWeight(), sc1); |
|
|
indexInputVOS.add(index1VO); |
|
|
indexInputVOS.add(index1VO); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|