|
@ -674,7 +674,7 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ |
|
|
partition.forEach(publish -> { |
|
|
partition.forEach(publish -> { |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
publish.forEach(c -> { |
|
|
publish.forEach(c -> { |
|
|
c.setParentId(customerAgencyDao.selectAgencyId(form.getCustomerAreaCode())); |
|
|
// c.setParentId(customerAgencyDao.selectAgencyId(form.getCustomerAreaCode()));
|
|
|
pid.put(c.getAgencyId(),c.getParentId()); |
|
|
pid.put(c.getAgencyId(),c.getParentId()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
@ -754,7 +754,7 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ |
|
|
governAvg.forEach(avg -> { |
|
|
governAvg.forEach(avg -> { |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
avg.forEach(c -> { |
|
|
avg.forEach(c -> { |
|
|
c.setParentId(customerAgencyDao.selectAgencyId(form.getCustomerAreaCode())); |
|
|
// c.setParentId(customerAgencyDao.selectAgencyId(form.getCustomerAreaCode()));
|
|
|
pid.put(c.getAgencyId(),c.getParentId()); |
|
|
pid.put(c.getAgencyId(),c.getParentId()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
@ -835,7 +835,7 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ |
|
|
BigDecimalScoreCalculator sc1 = new BigDecimalScoreCalculator(maxAndMinBigDecimal.getMin(), maxAndMinBigDecimal.getMax(), ScoreConstants.MIN_SCORE, ScoreConstants.MAX_SCORE, Correlation.getCorrelation(detail.getCorrelation())); |
|
|
BigDecimalScoreCalculator sc1 = new BigDecimalScoreCalculator(maxAndMinBigDecimal.getMin(), maxAndMinBigDecimal.getMax(), ScoreConstants.MIN_SCORE, ScoreConstants.MAX_SCORE, Correlation.getCorrelation(detail.getCorrelation())); |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
serviceAvg.forEach(c -> { |
|
|
serviceAvg.forEach(c -> { |
|
|
c.setParentId(customerAgencyDao.selectAgencyId(form.getCustomerAreaCode())); |
|
|
// c.setParentId(customerAgencyDao.selectAgencyId(form.getCustomerAreaCode()));
|
|
|
pid.put(c.getAgencyId(),c.getParentId()); |
|
|
pid.put(c.getAgencyId(),c.getParentId()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
@ -932,6 +932,7 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ |
|
|
orgIds.forEach(org -> { |
|
|
orgIds.forEach(org -> { |
|
|
SubCommunityAvgResultDTO s = new SubCommunityAvgResultDTO(); |
|
|
SubCommunityAvgResultDTO s = new SubCommunityAvgResultDTO(); |
|
|
s.setAgencyId(org.getOrgId()); |
|
|
s.setAgencyId(org.getOrgId()); |
|
|
|
|
|
s.setParentId(org.getPid()); |
|
|
subAvgScores.add(s); |
|
|
subAvgScores.add(s); |
|
|
}); |
|
|
}); |
|
|
// 把除去孔村镇的数据赋值,孔村在下边单独处理
|
|
|
// 把除去孔村镇的数据赋值,孔村在下边单独处理
|
|
@ -983,7 +984,7 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ |
|
|
if (!CollectionUtils.isEmpty(kongCunGovernAbility)){ |
|
|
if (!CollectionUtils.isEmpty(kongCunGovernAbility)){ |
|
|
kongCunGovernAbility.forEach(k -> { |
|
|
kongCunGovernAbility.forEach(k -> { |
|
|
k.put("AGENCY_ID",k.get("AGENCY_ID")); |
|
|
k.put("AGENCY_ID",k.get("AGENCY_ID")); |
|
|
k.put("PARENT_ID",NumConstant.ZERO_STR); |
|
|
k.put("PARENT_ID",k.get("PARENT_ID")); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
if (!CollectionUtils.isEmpty(communityGovernAbility)){ |
|
|
if (!CollectionUtils.isEmpty(communityGovernAbility)){ |
|
@ -1012,7 +1013,7 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ |
|
|
if (!CollectionUtils.isEmpty(kongCunActivityCountList)){ |
|
|
if (!CollectionUtils.isEmpty(kongCunActivityCountList)){ |
|
|
kongCunActivityCountList.forEach(k -> { |
|
|
kongCunActivityCountList.forEach(k -> { |
|
|
k.put("AGENCY_ID",k.get("AGENCY_ID")); |
|
|
k.put("AGENCY_ID",k.get("AGENCY_ID")); |
|
|
k.put("PARENT_ID",NumConstant.ZERO_STR); |
|
|
k.put("PARENT_ID",k.get("PARENT_ID")); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
if (!CollectionUtils.isEmpty(ActivityCountList)){ |
|
|
if (!CollectionUtils.isEmpty(ActivityCountList)){ |
|
|