| 
						
						
							
								
							
						
						
					 | 
					@ -223,12 +223,14 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return true; | 
					 | 
					 | 
					            return true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String quarterId = DateUtils.getQuarterId(monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String yearId = DateUtils.getYearId(monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //下属所有网格的党建能力平均值
 | 
					 | 
					 | 
					        //下属所有网格的党建能力平均值
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (IndexCodeEnum.XIA_SHU_SUO_YOU_WGDDJNLPJZ.getCode().equals(detail.getIndexCode())) { | 
					 | 
					 | 
					            if (IndexCodeEnum.XIA_SHU_SUO_YOU_WGDDJNLPJZ.getCode().equals(detail.getIndexCode())) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridPartyAvgScore = factIndexGridScoreDao.selectSubGridAvgScore(customerId, monthId,IndexCodeEnum.DANG_JIAN_NENG_LI.getCode()); | 
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridPartyAvgScore = factIndexGridScoreDao.selectSubGridAvgScoreNew(customerId, monthId,IndexCodeEnum.DANG_JIAN_NENG_LI.getCode(),quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridPartyAvgScore)) { | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridPartyAvgScore)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn(IndexCalConstant.GRID_PARTY_AVG_NULL); | 
					 | 
					 | 
					                    log.warn(IndexCalConstant.GRID_PARTY_AVG_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } else { | 
					 | 
					 | 
					                } else { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -248,7 +250,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } else { | 
					 | 
					 | 
					            } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                // 社区名义发文数量
 | 
					 | 
					 | 
					                // 社区名义发文数量
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<Map<String, Object>> publishArticleCountList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMap(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL); | 
					 | 
					 | 
					                List<Map<String, Object>> publishArticleCountList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMapNew(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL,quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(publishArticleCountList)) { | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(publishArticleCountList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_PUBLISH_ARTICLE_LIST_NULL); | 
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_PUBLISH_ARTICLE_LIST_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } else { | 
					 | 
					 | 
					                } else { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -298,11 +300,13 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return true; | 
					 | 
					 | 
					            return true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String quarterId = DateUtils.getQuarterId(monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String yearId = DateUtils.getYearId(monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (IndexCodeEnum.SHE_QU_XIA_SHU_SYWGZLNLHZPJZ.getCode().equals(detail.getIndexCode())) { | 
					 | 
					 | 
					            if (IndexCodeEnum.SHE_QU_XIA_SHU_SYWGZLNLHZPJZ.getCode().equals(detail.getIndexCode())) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridGovernAvg = factIndexGridScoreDao.selectSubGridAvgScore(customerId, monthId,IndexCodeEnum.ZHI_LI_NENG_LI.getCode()); | 
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridGovernAvg = factIndexGridScoreDao.selectSubGridAvgScoreNew(customerId, monthId,IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridGovernAvg)){ | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridGovernAvg)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn("社区下级治理能力平均分集合为空"); | 
					 | 
					 | 
					                    log.warn("社区下级治理能力平均分集合为空"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                }else{ | 
					 | 
					 | 
					                }else{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -322,7 +326,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } else { | 
					 | 
					 | 
					            } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                // 治理能力的六个五级指标
 | 
					 | 
					 | 
					                // 治理能力的六个五级指标
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<Map<String, Object>> communityGovernAbility = factIndexGovrnAblityOrgMonthlyDao.selectCommunityGovernAbility(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL); | 
					 | 
					 | 
					                List<Map<String, Object>> communityGovernAbility = factIndexGovrnAblityOrgMonthlyDao.selectCommunityGovernAbilityNew(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL,quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(communityGovernAbility)){ | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(communityGovernAbility)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_GOVERN_ABILITY_NULL); | 
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_GOVERN_ABILITY_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                }else{ | 
					 | 
					 | 
					                }else{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -370,12 +374,14 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return true; | 
					 | 
					 | 
					            return true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String quarterId = DateUtils.getQuarterId(monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String yearId = DateUtils.getYearId(monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            String indexCode = detail.getIndexCode(); | 
					 | 
					 | 
					            String indexCode = detail.getIndexCode(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (IndexCodeEnum.SHE_QU_XIA_JI_SYWGFWNLDFPJZ.getCode().equals(indexCode)) { | 
					 | 
					 | 
					            if (IndexCodeEnum.SHE_QU_XIA_JI_SYWGFWNLDFPJZ.getCode().equals(indexCode)) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridServiceAvg = factIndexGridScoreDao.selectSubGridAvgScore(customerId, monthId,IndexCodeEnum.FU_WU_NENG_LI.getCode()); | 
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridServiceAvg = factIndexGridScoreDao.selectSubGridAvgScoreNew(customerId, monthId,IndexCodeEnum.FU_WU_NENG_LI.getCode(),quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridServiceAvg)) { | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridServiceAvg)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn("查询社区下级所有网格服务能力得分平均值集合为空"); | 
					 | 
					 | 
					                    log.warn("查询社区下级所有网格服务能力得分平均值集合为空"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } else { | 
					 | 
					 | 
					                } else { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -394,7 +400,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    }); | 
					 | 
					 | 
					                    }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } else { | 
					 | 
					 | 
					            } else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<Map<String, Object>> communityActivityCountList = factIndexServiceAblityOrgMonthlyDao.selectActivityCountMap(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL); | 
					 | 
					 | 
					                List<Map<String, Object>> communityActivityCountList = factIndexServiceAblityOrgMonthlyDao.selectActivityCountMapNew(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL,quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(communityActivityCountList)) { | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(communityActivityCountList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_SERVICE_ABILITY_NULL); | 
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_SERVICE_ABILITY_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                }else{ | 
					 | 
					 | 
					                }else{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -604,12 +610,14 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return true; | 
					 | 
					 | 
					            return true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String quarterId = DateUtils.getQuarterId(form.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String yearId = DateUtils.getYearId(form.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //下属所有网格的党建能力平均值
 | 
					 | 
					 | 
					        //下属所有网格的党建能力平均值
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (IndexCodeEnum.XIA_SHU_SUO_YOU_WGDDJNLPJZ.getCode().equals(detail.getIndexCode())) { | 
					 | 
					 | 
					            if (IndexCodeEnum.XIA_SHU_SUO_YOU_WGDDJNLPJZ.getCode().equals(detail.getIndexCode())) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridPartyAvgScore = factIndexGridScoreDao.selectSubGridAvgScoreByAreaCode(form.getMonthId(),IndexCodeEnum.DANG_JIAN_NENG_LI.getCode(),form.getCustomerAreaCode()); | 
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridPartyAvgScore = factIndexGridScoreDao.selectSubGridAvgScoreByAreaCodeNew(form.getMonthId(),IndexCodeEnum.DANG_JIAN_NENG_LI.getCode(),form.getCustomerAreaCode(),quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridPartyAvgScore)) { | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridPartyAvgScore)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn(IndexCalConstant.GRID_PARTY_AVG_NULL); | 
					 | 
					 | 
					                    log.warn(IndexCalConstant.GRID_PARTY_AVG_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } else { | 
					 | 
					 | 
					                } else { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -629,7 +637,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } else { | 
					 | 
					 | 
					            } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                // 社区名义发文数量
 | 
					 | 
					 | 
					                // 社区名义发文数量
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<Map<String, Object>> publishArticleCountList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMapbyAreaCodeNotSelf( form.getMonthId(),form.getCustomerAreaCode()); | 
					 | 
					 | 
					                List<Map<String, Object>> publishArticleCountList = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCountMapbyAreaCodeNotSelfNew( form.getMonthId(),form.getCustomerAreaCode(),quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(publishArticleCountList)) { | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(publishArticleCountList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_PUBLISH_ARTICLE_LIST_NULL); | 
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_PUBLISH_ARTICLE_LIST_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } else { | 
					 | 
					 | 
					                } else { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -678,12 +686,14 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return true; | 
					 | 
					 | 
					            return true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String quarterId = DateUtils.getQuarterId(form.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String yearId = DateUtils.getYearId(form.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            // 社区下属所有网格治理能力汇总(平均值)
 | 
					 | 
					 | 
					            // 社区下属所有网格治理能力汇总(平均值)
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (IndexCodeEnum.SHE_QU_XIA_SHU_SYWGZLNLHZPJZ.getCode().equals(detail.getIndexCode())) { | 
					 | 
					 | 
					            if (IndexCodeEnum.SHE_QU_XIA_SHU_SYWGZLNLHZPJZ.getCode().equals(detail.getIndexCode())) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridGovernAvg = factIndexGridScoreDao.selectSubGridAvgScoreByAreaCode(form.getMonthId(),IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),form.getCustomerAreaCode()); | 
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridGovernAvg = factIndexGridScoreDao.selectSubGridAvgScoreByAreaCodeNew(form.getMonthId(),IndexCodeEnum.ZHI_LI_NENG_LI.getCode(),form.getCustomerAreaCode(),quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridGovernAvg)){ | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridGovernAvg)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn("社区下级治理能力平均分集合为空"); | 
					 | 
					 | 
					                    log.warn("社区下级治理能力平均分集合为空"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                }else{ | 
					 | 
					 | 
					                }else{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -703,7 +713,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } else { | 
					 | 
					 | 
					            } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                // 治理能力的六个五级指标
 | 
					 | 
					 | 
					                // 治理能力的六个五级指标
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<Map<String, Object>> communityGovernAbility = factIndexGovrnAblityOrgMonthlyDao.selectCommunityGovernAbilityExistsSubNotSelf(form.getMonthId(),form.getCustomerAreaCode(), ScreenConstant.COMMUNITY); | 
					 | 
					 | 
					                List<Map<String, Object>> communityGovernAbility = factIndexGovrnAblityOrgMonthlyDao.selectCommunityGovernAbilityExistsSubNotSelfNew(form.getMonthId(),form.getCustomerAreaCode(), ScreenConstant.COMMUNITY,quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(communityGovernAbility)){ | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(communityGovernAbility)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_GOVERN_ABILITY_NULL); | 
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_GOVERN_ABILITY_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                }else{ | 
					 | 
					 | 
					                }else{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -751,12 +761,14 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
					 | 
					 | 
					            log.error(IndexCalConstant.INDEX_DETAIL_LIST_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return true; | 
					 | 
					 | 
					            return true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String quarterId = DateUtils.getQuarterId(form.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        String yearId = DateUtils.getYearId(form.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
					 | 
					 | 
					        List<IndexInputVO> indexInputVOS = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
					 | 
					 | 
					        Map<String, String> pid = new HashMap<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
					 | 
					 | 
					        detailListByParentCode.forEach(detail -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            String indexCode = detail.getIndexCode(); | 
					 | 
					 | 
					            String indexCode = detail.getIndexCode(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (IndexCodeEnum.SHE_QU_XIA_JI_SYWGFWNLDFPJZ.getCode().equals(indexCode)) { | 
					 | 
					 | 
					            if (IndexCodeEnum.SHE_QU_XIA_JI_SYWGFWNLDFPJZ.getCode().equals(indexCode)) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridServiceAvg = factIndexGridScoreDao.selectSubGridAvgScoreByAreaCode(form.getMonthId(),IndexCodeEnum.FU_WU_NENG_LI.getCode(),form.getCustomerAreaCode()); | 
					 | 
					 | 
					                List<SubGridAvgResultDTO> subGridServiceAvg = factIndexGridScoreDao.selectSubGridAvgScoreByAreaCodeNew(form.getMonthId(),IndexCodeEnum.FU_WU_NENG_LI.getCode(),form.getCustomerAreaCode(),quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridServiceAvg)) { | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(subGridServiceAvg)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn("查询社区下级所有网格服务能力得分平均值集合为空"); | 
					 | 
					 | 
					                    log.warn("查询社区下级所有网格服务能力得分平均值集合为空"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } else { | 
					 | 
					 | 
					                } else { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -775,7 +787,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    }); | 
					 | 
					 | 
					                    }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } else { | 
					 | 
					 | 
					            } else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                List<Map<String, Object>> communityActivityCountList = factIndexServiceAblityOrgMonthlyDao.selectActivityCountMapExistsSubNotSelf(form.getMonthId(),form.getCustomerAreaCode()); | 
					 | 
					 | 
					                List<Map<String, Object>> communityActivityCountList = factIndexServiceAblityOrgMonthlyDao.selectActivityCountMapExistsSubNotSelfNew(form.getMonthId(),form.getCustomerAreaCode(),quarterId,yearId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                if (CollectionUtils.isEmpty(communityActivityCountList)) { | 
					 | 
					 | 
					                if (CollectionUtils.isEmpty(communityActivityCountList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_SERVICE_ABILITY_NULL); | 
					 | 
					 | 
					                    log.warn(IndexCalConstant.COMMUNITY_SERVICE_ABILITY_NULL); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                }else{ | 
					 | 
					 | 
					                }else{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |