|
|
@ -23,6 +23,7 @@ import com.epmet.dto.indexcal.AgencyCalResultDTO; |
|
|
import com.epmet.dto.indexcal.AgencyScoreDTO; |
|
|
import com.epmet.dto.indexcal.AgencyScoreDTO; |
|
|
import com.epmet.dto.indexcal.CalculateCommonFormDTO; |
|
|
import com.epmet.dto.indexcal.CalculateCommonFormDTO; |
|
|
import com.epmet.dto.indexcal.SubAgencyScoreAvgResultDTO; |
|
|
import com.epmet.dto.indexcal.SubAgencyScoreAvgResultDTO; |
|
|
|
|
|
import com.epmet.dto.screen.ScreenProjectOrgDailyDTO; |
|
|
import com.epmet.dto.screen.result.MaxAndMinBigDecimalResultDTO; |
|
|
import com.epmet.dto.screen.result.MaxAndMinBigDecimalResultDTO; |
|
|
import com.epmet.entity.evaluationindex.indexcal.AgencySelfSubScoreEntity; |
|
|
import com.epmet.entity.evaluationindex.indexcal.AgencySelfSubScoreEntity; |
|
|
import com.epmet.entity.evaluationindex.indexcal.AgencySubScoreEntity; |
|
|
import com.epmet.entity.evaluationindex.indexcal.AgencySubScoreEntity; |
|
|
@ -225,6 +226,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
indexDetailList.forEach(detail -> { |
|
|
indexDetailList.forEach(detail -> { |
|
|
if (IndexCodeEnum.QU_XIA_JI_JIE_DDJNLHZPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
if (IndexCodeEnum.QU_XIA_JI_JIE_DDJNLHZPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
List<SubAgencyScoreAvgResultDTO> subGridPartyAvgScore = agencyScoreDao.selectAgencyScoreAvg(customerId, monthId,IndexCodeEnum.DANG_JIAN_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL); |
|
|
List<SubAgencyScoreAvgResultDTO> subGridPartyAvgScore = agencyScoreDao.selectAgencyScoreAvg(customerId, monthId,IndexCodeEnum.DANG_JIAN_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL); |
|
|
|
|
|
log.info("subGridPartyAvgScore:::"+subGridPartyAvgScore.toString()); |
|
|
if (CollectionUtils.isEmpty(subGridPartyAvgScore)) { |
|
|
if (CollectionUtils.isEmpty(subGridPartyAvgScore)) { |
|
|
log.warn(IndexCalConstant.DISTRICT_PARTY_AVG_NULL); |
|
|
log.warn(IndexCalConstant.DISTRICT_PARTY_AVG_NULL); |
|
|
} else if (subGridPartyAvgScore.size() > NumConstant.ZERO) { |
|
|
} else if (subGridPartyAvgScore.size() > NumConstant.ZERO) { |
|
|
@ -247,6 +249,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
} else { |
|
|
} else { |
|
|
// 区名义发文数量
|
|
|
// 区名义发文数量
|
|
|
List<Map<String, Object>> publishArticleCountList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMap(customerId, monthId,IndexCalConstant.DISTRICT_LEVEL); |
|
|
List<Map<String, Object>> publishArticleCountList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMap(customerId, monthId,IndexCalConstant.DISTRICT_LEVEL); |
|
|
|
|
|
log.info("publishArticleCountList:::"+publishArticleCountList.toString()); |
|
|
if (CollectionUtils.isEmpty(publishArticleCountList)) { |
|
|
if (CollectionUtils.isEmpty(publishArticleCountList)) { |
|
|
log.warn(IndexCalConstant.DISTRICT_PUBLISH_ARTICLE_LIST_NULL); |
|
|
log.warn(IndexCalConstant.DISTRICT_PUBLISH_ARTICLE_LIST_NULL); |
|
|
} else { |
|
|
} else { |
|
|
@ -301,6 +304,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
if (IndexCodeEnum.SUO_YOU_JIE_DAO_ZLNLPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
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); |
|
|
List<SubAgencyScoreAvgResultDTO> districtGovernAvgList = agencyScoreDao.selectAgencyScoreAvg(customerId, monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL); |
|
|
|
|
|
log.info("districtGovernAvgList:::"+districtGovernAvgList.toString()); |
|
|
for (int i = 0; i < districtGovernAvgList.size(); i++) { |
|
|
for (int i = 0; i < districtGovernAvgList.size(); i++) { |
|
|
if (districtGovernAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
if (districtGovernAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
districtGovernAvgList.remove(districtGovernAvgList.get(i)); |
|
|
districtGovernAvgList.remove(districtGovernAvgList.get(i)); |
|
|
@ -327,6 +331,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
} |
|
|
} |
|
|
} else if (IndexCodeEnum.SUO_YOU_ZHI_SHU_BMZLNLPJZ.getCode().equals(detail.getIndexCode())){ |
|
|
} else if (IndexCodeEnum.SUO_YOU_ZHI_SHU_BMZLNLPJZ.getCode().equals(detail.getIndexCode())){ |
|
|
List<SubAgencyScoreAvgResultDTO> deptScoreAvgList = deptScoreDao.selectGovernDeptScoreAvg(customerId, monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode()); |
|
|
List<SubAgencyScoreAvgResultDTO> deptScoreAvgList = deptScoreDao.selectGovernDeptScoreAvg(customerId, monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode()); |
|
|
|
|
|
log.info("deptScoreAvgList:::"+deptScoreAvgList.toString()); |
|
|
for (int i = 0; i < deptScoreAvgList.size(); i++) { |
|
|
for (int i = 0; i < deptScoreAvgList.size(); i++) { |
|
|
if (deptScoreAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
if (deptScoreAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
deptScoreAvgList.remove(deptScoreAvgList.get(i)); |
|
|
deptScoreAvgList.remove(deptScoreAvgList.get(i)); |
|
|
@ -381,6 +386,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
String indexCode = detail.getIndexCode(); |
|
|
String indexCode = detail.getIndexCode(); |
|
|
if (IndexCodeEnum.QU_XIA_SHU_JIE_DFWNLHZPJZ.getCode().equals(indexCode)) { |
|
|
if (IndexCodeEnum.QU_XIA_SHU_JIE_DFWNLHZPJZ.getCode().equals(indexCode)) { |
|
|
List<SubAgencyScoreAvgResultDTO> subStreetAvgList = agencyScoreDao.selectAgencyScoreAvg(customerId, monthId,IndexCodeEnum.FU_WU_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL); |
|
|
List<SubAgencyScoreAvgResultDTO> subStreetAvgList = agencyScoreDao.selectAgencyScoreAvg(customerId, monthId,IndexCodeEnum.FU_WU_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL); |
|
|
|
|
|
log.info("subStreetAvgList:::"+subStreetAvgList.toString()); |
|
|
for (int i = 0; i < subStreetAvgList.size(); i++) { |
|
|
for (int i = 0; i < subStreetAvgList.size(); i++) { |
|
|
if (subStreetAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
if (subStreetAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
subStreetAvgList.remove(subStreetAvgList.get(i)); |
|
|
subStreetAvgList.remove(subStreetAvgList.get(i)); |
|
|
@ -430,6 +436,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
public Boolean districtRelate(String customerId, String monthId) { |
|
|
public Boolean districtRelate(String customerId, String monthId) { |
|
|
List<IndexGroupDetailEntity> detailListByParentCode = indexGroupDetailService.getDetailListByParentCode(customerId, IndexCodeEnum.SHE_QU_XIANG_GUAN.getCode()); |
|
|
List<IndexGroupDetailEntity> detailListByParentCode = indexGroupDetailService.getDetailListByParentCode(customerId, IndexCodeEnum.SHE_QU_XIANG_GUAN.getCode()); |
|
|
List<AgencyScoreDTO> agencyScoreList = agencyScoreDao.selectAgencyScoreInfo(customerId, monthId, IndexCalConstant.DISTRICT_LEVEL); |
|
|
List<AgencyScoreDTO> agencyScoreList = agencyScoreDao.selectAgencyScoreInfo(customerId, monthId, IndexCalConstant.DISTRICT_LEVEL); |
|
|
|
|
|
log.info("agencyScoreList:::"+agencyScoreList.toString()); |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
agencyScoreList.forEach(community -> { |
|
|
agencyScoreList.forEach(community -> { |
|
|
if (detail.getIndexCode().equals(community.getIndexCode())) { |
|
|
if (detail.getIndexCode().equals(community.getIndexCode())) { |
|
|
@ -607,7 +614,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
//党建能力平均值
|
|
|
//党建能力平均值
|
|
|
indexDetailList.forEach(detail -> { |
|
|
indexDetailList.forEach(detail -> { |
|
|
if (IndexCodeEnum.QU_XIA_JI_JIE_DDJNLHZPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
if (IndexCodeEnum.QU_XIA_JI_JIE_DDJNLHZPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
List<SubAgencyScoreAvgResultDTO> subGridPartyAvgScore = agencyScoreDao.selectAgencyScoreAvgExistsSub(monthId,IndexCodeEnum.DANG_JIAN_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL,form.getCustomerAreaCode(),NumConstant.SIX); |
|
|
List<SubAgencyScoreAvgResultDTO> subGridPartyAvgScore = agencyScoreDao.selectAgencyScoreAvgExistsSub(monthId,IndexCodeEnum.DANG_JIAN_NENG_LI.getCode(),form.getCustomerAreaCode()); |
|
|
|
|
|
log.info("subGridPartyAvgScore:::"+subGridPartyAvgScore.toString()); |
|
|
if (CollectionUtils.isEmpty(subGridPartyAvgScore)) { |
|
|
if (CollectionUtils.isEmpty(subGridPartyAvgScore)) { |
|
|
log.warn(IndexCalConstant.DISTRICT_PARTY_AVG_NULL); |
|
|
log.warn(IndexCalConstant.DISTRICT_PARTY_AVG_NULL); |
|
|
} else if (subGridPartyAvgScore.size() > NumConstant.ZERO) { |
|
|
} else if (subGridPartyAvgScore.size() > NumConstant.ZERO) { |
|
|
@ -620,6 +628,10 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
|
|
|
}else { |
|
|
|
|
|
pid.put(c.getAgencyId(), customerAgencyDao.selectPid(c.getAgencyId())); |
|
|
|
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
|
|
|
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())); |
|
|
@ -629,7 +641,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// 区名义发文数量
|
|
|
// 区名义发文数量
|
|
|
List<Map<String, Object>> publishArticleCountList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMapExistSub(monthId,form.getCustomerAreaCode(),NumConstant.SIX); |
|
|
List<Map<String, Object>> publishArticleCountList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMapExistSubNotSelf(monthId,form.getCustomerAreaCode()); |
|
|
|
|
|
log.info("publishArticleCountList:::"+publishArticleCountList.toString()); |
|
|
if (CollectionUtils.isEmpty(publishArticleCountList)) { |
|
|
if (CollectionUtils.isEmpty(publishArticleCountList)) { |
|
|
log.warn(IndexCalConstant.DISTRICT_PUBLISH_ARTICLE_LIST_NULL); |
|
|
log.warn(IndexCalConstant.DISTRICT_PUBLISH_ARTICLE_LIST_NULL); |
|
|
} else { |
|
|
} else { |
|
|
@ -684,7 +697,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
Map<String, String> pid = new HashMap<>(); |
|
|
Map<String, String> pid = new HashMap<>(); |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
if (IndexCodeEnum.SUO_YOU_JIE_DAO_ZLNLPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
if (IndexCodeEnum.SUO_YOU_JIE_DAO_ZLNLPJZ.getCode().equals(detail.getIndexCode())) { |
|
|
List<SubAgencyScoreAvgResultDTO> districtGovernAvgList = agencyScoreDao.selectAgencyScoreAvgExistsSub(monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL,form.getCustomerAreaCode(),NumConstant.SIX); |
|
|
List<SubAgencyScoreAvgResultDTO> districtGovernAvgList = agencyScoreDao.selectAgencyScoreAvgExistsSub(monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),form.getCustomerAreaCode()); |
|
|
|
|
|
log.info("districtGovernAvgList:::"+districtGovernAvgList.toString()); |
|
|
for (int i = 0; i < districtGovernAvgList.size(); i++) { |
|
|
for (int i = 0; i < districtGovernAvgList.size(); i++) { |
|
|
if (districtGovernAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
if (districtGovernAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
districtGovernAvgList.remove(districtGovernAvgList.get(i)); |
|
|
districtGovernAvgList.remove(districtGovernAvgList.get(i)); |
|
|
@ -702,6 +716,10 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
|
|
|
}else { |
|
|
|
|
|
pid.put(c.getAgencyId(), customerAgencyDao.selectPid(c.getAgencyId())); |
|
|
|
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
|
|
|
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())); |
|
|
@ -710,7 +728,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} else if (IndexCodeEnum.SUO_YOU_ZHI_SHU_BMZLNLPJZ.getCode().equals(detail.getIndexCode())){ |
|
|
} else if (IndexCodeEnum.SUO_YOU_ZHI_SHU_BMZLNLPJZ.getCode().equals(detail.getIndexCode())){ |
|
|
List<SubAgencyScoreAvgResultDTO> deptScoreAvgList = deptScoreDao.selectGovernDeptScoreAvgExistsSub(monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),form.getCustomerAreaCode()); |
|
|
List<SubAgencyScoreAvgResultDTO> deptScoreAvgList = deptScoreDao.selectGovernDeptScoreAvgExistsSubNotSelf(monthId, IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),form.getCustomerAreaCode()); |
|
|
|
|
|
log.info("deptScoreAvgList:::"+deptScoreAvgList.toString()); |
|
|
for (int i = 0; i < deptScoreAvgList.size(); i++) { |
|
|
for (int i = 0; i < deptScoreAvgList.size(); i++) { |
|
|
if (deptScoreAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
if (deptScoreAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
deptScoreAvgList.remove(deptScoreAvgList.get(i)); |
|
|
deptScoreAvgList.remove(deptScoreAvgList.get(i)); |
|
|
@ -765,7 +784,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
String indexCode = detail.getIndexCode(); |
|
|
String indexCode = detail.getIndexCode(); |
|
|
if (IndexCodeEnum.QU_XIA_SHU_JIE_DFWNLHZPJZ.getCode().equals(indexCode)) { |
|
|
if (IndexCodeEnum.QU_XIA_SHU_JIE_DFWNLHZPJZ.getCode().equals(indexCode)) { |
|
|
List<SubAgencyScoreAvgResultDTO> subStreetAvgList = agencyScoreDao.selectAgencyScoreAvgExistsSub(monthId,IndexCodeEnum.FU_WU_NENG_LI.getCode(),IndexCalConstant.STREET_LEVEL,form.getCustomerAreaCode(),NumConstant.SIX); |
|
|
List<SubAgencyScoreAvgResultDTO> subStreetAvgList = agencyScoreDao.selectAgencyScoreAvgExistsSub(monthId,IndexCodeEnum.FU_WU_NENG_LI.getCode(),form.getCustomerAreaCode()); |
|
|
|
|
|
log.info("subStreetAvgList:::"+subStreetAvgList.toString()); |
|
|
for (int i = 0; i < subStreetAvgList.size(); i++) { |
|
|
for (int i = 0; i < subStreetAvgList.size(); i++) { |
|
|
if (subStreetAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
if (subStreetAvgList.get(i).getAgencyId().equals(NumConstant.ZERO_STR)){ |
|
|
subStreetAvgList.remove(subStreetAvgList.get(i)); |
|
|
subStreetAvgList.remove(subStreetAvgList.get(i)); |
|
|
@ -784,6 +804,10 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
pid.put(c.getParentId(), customerAgencyDao.selectPid(c.getParentId())); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
SampleValue s = new SampleValue(c.getParentId(), c.getScore()); |
|
|
index1SampleValues.add(s); |
|
|
index1SampleValues.add(s); |
|
|
|
|
|
}else { |
|
|
|
|
|
pid.put(c.getAgencyId(), customerAgencyDao.selectPid(c.getAgencyId())); |
|
|
|
|
|
SampleValue s = new SampleValue(c.getAgencyId(), c.getScore()); |
|
|
|
|
|
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); |
|
|
@ -815,7 +839,8 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
String customerId = form.getCustomerId(); |
|
|
String customerId = form.getCustomerId(); |
|
|
String monthId = form.getMonthId(); |
|
|
String monthId = form.getMonthId(); |
|
|
List<IndexGroupDetailEntity> detailListByParentCode = indexGroupDetailService.getDetailListByParentCode(customerId, IndexCodeEnum.SHE_QU_XIANG_GUAN.getCode()); |
|
|
List<IndexGroupDetailEntity> detailListByParentCode = indexGroupDetailService.getDetailListByParentCode(customerId, IndexCodeEnum.SHE_QU_XIANG_GUAN.getCode()); |
|
|
List<AgencyScoreDTO> agencyScoreList = agencyScoreDao.selectAgencyScoreInfoExistsSub(form.getCustomerAreaCode(),NumConstant.SIX,monthId, IndexCalConstant.DISTRICT_LEVEL); |
|
|
List<AgencyScoreDTO> agencyScoreList = agencyScoreDao.selectAgencyScoreInfoExistsSubSelf(form.getCustomerAreaCode(),monthId, IndexCalConstant.DISTRICT_LEVEL,form.getCustomerId()); |
|
|
|
|
|
log.info("agencyScoreList:::"+agencyScoreList.toString()); |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
detailListByParentCode.forEach(detail -> { |
|
|
agencyScoreList.forEach(community -> { |
|
|
agencyScoreList.forEach(community -> { |
|
|
if (detail.getIndexCode().equals(community.getIndexCode())) { |
|
|
if (detail.getIndexCode().equals(community.getIndexCode())) { |
|
|
@ -843,6 +868,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
}); |
|
|
}); |
|
|
result.add(score); |
|
|
result.add(score); |
|
|
}); |
|
|
}); |
|
|
|
|
|
log.info("result:::"+result.toString()); |
|
|
if (!CollectionUtils.isEmpty(result)){ |
|
|
if (!CollectionUtils.isEmpty(result)){ |
|
|
agencyScoreDao.insertStreetRecord(result); |
|
|
agencyScoreDao.insertStreetRecord(result); |
|
|
} |
|
|
} |
|
|
|