| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -9,6 +9,7 @@ import com.epmet.commons.tools.utils.ConvertUtils; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.utils.DateUtils; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.constant.DataSourceConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.constant.IndexCalConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.constant.ProjectConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dao.evaluationindex.indexcal.CpcScoreDao; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dao.evaluationindex.indexcal.GridScoreDao; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dao.evaluationindex.indexcal.GridSelfSubScoreDao; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -126,14 +127,14 @@ public class GridCorreLationServiceImpl implements GridCorreLationService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            Map<String, Set<String>> selfSubParentMap = new HashMap<>(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            selfSubParentMap.put("zishen", new HashSet<>()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            selfSubParentMap.put("xiaji", new HashSet<>()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            selfSubParentMap.put(ProjectConstant.ZI_SHEN, new HashSet<>()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            selfSubParentMap.put(ProjectConstant.XIA_JI, new HashSet<>()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            selfSubIndexList.forEach(o -> { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //找出自身 和下级的指标
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (o.getAllIndexCodePath().indexOf("xiaji") > -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    selfSubParentMap.get("xiaji").add(o.getIndexCode()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (o.getAllIndexCodePath().indexOf(ProjectConstant.XIA_JI) > -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    selfSubParentMap.get(ProjectConstant.XIA_JI).add(o.getIndexCode()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    selfSubParentMap.get("zishen").add(o.getIndexCode()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    selfSubParentMap.get(ProjectConstant.ZI_SHEN).add(o.getIndexCode()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            Map<String, GridSelfSubScoreEntity> insertMap = new HashMap<>(); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -150,9 +151,8 @@ public class GridCorreLationServiceImpl implements GridCorreLationService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    scoreEntity.setSelfWeight(new BigDecimal(0)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    scoreEntity.setSubWeight(new BigDecimal(0)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                BigDecimal partScore = score.getScore().multiply(score.getWeight()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                BigDecimal partWeight = score.getScore().multiply(score.getWeight()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (selfSubParentMap.get("xiaji").contains(score.getIndexCode())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                BigDecimal partScore = score.getScore(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (selfSubParentMap.get(ProjectConstant.XIA_JI).contains(score.getIndexCode())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    scoreEntity.setSubScore(scoreEntity.getSubScore().add(partScore)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    scoreEntity.setSubWeight(scoreEntity.getSubWeight().add(score.getWeight())); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } else { | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |