Browse Source

平阴数据bug修复

master
zxc 4 years ago
parent
commit
d305c08aa5
  1. 3
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateStreetServiceImpl.java

3
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateStreetServiceImpl.java

@ -893,8 +893,9 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ
subAvgResultDTOS.forEach(sub -> {
finalScore.set(finalScore.get().add(sub.getScore()));
});
BigDecimal divide = finalScore.get().divide(new BigDecimal(subAvgResultDTOS.size()));
BigDecimal divide = finalScore.get().divide(new BigDecimal(subAvgResultDTOS.size()),NumConstant.SIX,BigDecimal.ROUND_HALF_UP);
subAvgScores.forEach(s -> {
// 孔村单独处理
if (s.getAgencyId().equals("1234085031077498881")){
s.setScore(divide);
}

Loading…
Cancel
Save