|
|
@ -222,7 +222,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
} |
|
|
|
List<IndexInputVO> indexInputVOS = new ArrayList<>(); |
|
|
|
Map<String, String> pid = new HashMap<>(); |
|
|
|
|
|
|
|
Map<String, String> agencyMap = customerAgencyDao.selectAgencyIdAndParentId(customerId); |
|
|
|
// key:agencyId,value:sampleCount样本量
|
|
|
|
Map<String, Integer> gridPartyScoreSampleCountMap = new HashMap<>(); |
|
|
|
//党建能力平均值
|
|
|
@ -242,7 +242,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
|
party.forEach(c -> { |
|
|
|
if (!c.getParentId().equals(NumConstant.ZERO_STR)) { |
|
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
|
// pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId()));
|
|
|
|
pid.put(c.getParentId(), agencyMap.get(c.getParentId())); |
|
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
|
index1SampleValues.add(s); |
|
|
|
} |
|
|
@ -314,6 +315,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
Map<String, String> pid = new HashMap<>(); |
|
|
|
// key:agencyId,value:sampleCount样本量
|
|
|
|
Map<String, Integer> gridPartyScoreSampleCountMap = new HashMap<>(); |
|
|
|
Map<String, String> agencyMap = customerAgencyDao.selectAgencyIdAndParentId(customerId); |
|
|
|
detailListByParentCode.forEach(detail -> { |
|
|
|
if (IndexCodeEnum.SUO_YOU_JIE_DAO_ZLNLPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
|
List<SubAgencyScoreAvgResultDTO> districtGovernAvgList = agencyScoreDao.selectAgencyScoreAvg(customerId, monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL); |
|
|
@ -335,7 +337,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
|
avg.forEach(c -> { |
|
|
|
if (!c.getParentId().equals(NumConstant.ZERO_STR)) { |
|
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
|
// pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId()));
|
|
|
|
pid.put(c.getParentId(), agencyMap.get(c.getParentId())); |
|
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
|
index1SampleValues.add(s); |
|
|
|
} |
|
|
@ -405,6 +408,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
Map<String, String> pid = new HashMap<>(); |
|
|
|
// key:agencyId,value:sampleCount样本量
|
|
|
|
Map<String, Integer> gridPartyScoreSampleCountMap = new HashMap<>(); |
|
|
|
Map<String, String> agencyMap = customerAgencyDao.selectAgencyIdAndParentId(customerId); |
|
|
|
detailListByParentCode.forEach(detail -> { |
|
|
|
String indexCode = detail.getIndexCode(); |
|
|
|
if (IndexCodeEnum.QU_XIA_SHU_JIE_DFWNLHZPJZ.getCode().equals(indexCode)) { |
|
|
@ -429,7 +433,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
|
serviceAvg.forEach(c -> { |
|
|
|
if (!c.getParentId().equals(NumConstant.ZERO_STR)) { |
|
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
|
// pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId()));
|
|
|
|
pid.put(c.getParentId(), agencyMap.get(c.getParentId())); |
|
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
|
index1SampleValues.add(s); |
|
|
|
} |
|
|
@ -643,6 +648,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
} |
|
|
|
List<IndexInputVO> indexInputVOS = new ArrayList<>(); |
|
|
|
Map<String, String> pid = new HashMap<>(); |
|
|
|
Map<String, String> agencyMap = customerAgencyDao.selectAgencyIdAndParentId(customerId); |
|
|
|
//党建能力平均值
|
|
|
|
indexDetailList.forEach(detail -> { |
|
|
|
if (IndexCodeEnum.QU_XIA_JI_JIE_DDJNLHZPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
@ -657,7 +663,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
|
party.forEach(c -> { |
|
|
|
if (!c.getParentId().equals(NumConstant.ZERO_STR)) { |
|
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
|
// pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId()));
|
|
|
|
pid.put(c.getParentId(), agencyMap.get(c.getParentId())); |
|
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
|
index1SampleValues.add(s); |
|
|
|
}else { |
|
|
@ -727,6 +734,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
} |
|
|
|
List<IndexInputVO> indexInputVOS = new ArrayList<>(); |
|
|
|
Map<String, String> pid = new HashMap<>(); |
|
|
|
Map<String, String> agencyMap = customerAgencyDao.selectAgencyIdAndParentId(customerId); |
|
|
|
detailListByParentCode.forEach(detail -> { |
|
|
|
if (IndexCodeEnum.SUO_YOU_JIE_DAO_ZLNLPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
|
List<SubAgencyScoreAvgResultDTO> districtGovernAvgList = agencyScoreDao.selectAgencyScoreAvgExistsSub(monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),form.getCustomerAreaCode()); |
|
|
@ -745,7 +753,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
|
avg.forEach(c -> { |
|
|
|
if (!c.getParentId().equals(NumConstant.ZERO_STR)) { |
|
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
|
// pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId()));
|
|
|
|
pid.put(c.getParentId(), agencyMap.get(c.getParentId())); |
|
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
|
index1SampleValues.add(s); |
|
|
|
}else { |
|
|
@ -813,6 +822,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
} |
|
|
|
List<IndexInputVO> indexInputVOS = new ArrayList<>(); |
|
|
|
Map<String, String> pid = new HashMap<>(); |
|
|
|
Map<String, String> agencyMap = customerAgencyDao.selectAgencyIdAndParentId(customerId); |
|
|
|
detailListByParentCode.forEach(detail -> { |
|
|
|
String indexCode = detail.getIndexCode(); |
|
|
|
if (IndexCodeEnum.QU_XIA_SHU_JIE_DFWNLHZPJZ.getCode().equals(indexCode)) { |
|
|
@ -833,7 +843,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
|
List<SampleValue> index1SampleValues = new ArrayList<>(); |
|
|
|
serviceAvg.forEach(c -> { |
|
|
|
if (!c.getParentId().equals(NumConstant.ZERO_STR)) { |
|
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
|
// pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId()));
|
|
|
|
pid.put(c.getParentId(), agencyMap.get(c.getParentId())); |
|
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
|
index1SampleValues.add(s); |
|
|
|
}else { |
|
|
|