| 
						
						
						
					 | 
					@ -1,6 +1,6 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					package com.epmet.service.impl; | 
					 | 
					 | 
					package com.epmet.service.impl; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import com.epmet.dto.extract.form.GovernAbilityGridMonthlyFormDTO; | 
					 | 
					 | 
					import com.epmet.dto.screen.ScreenProjectGridDailyDTO; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.screen.form.GridCenterPointForm; | 
					 | 
					 | 
					import com.epmet.dto.screen.form.GridCenterPointForm; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.entity.evaluationindex.screen.ScreenCustomerAgencyEntity; | 
					 | 
					 | 
					import com.epmet.entity.evaluationindex.screen.ScreenCustomerAgencyEntity; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.entity.evaluationindex.screen.ScreenCustomerDeptEntity; | 
					 | 
					 | 
					import com.epmet.entity.evaluationindex.screen.ScreenCustomerDeptEntity; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.*; | 
					 | 
					 | 
					import java.util.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import java.util.concurrent.atomic.AtomicInteger; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					@Service | 
					 | 
					 | 
					@Service | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					public class EIDimServiceImpl implements EIDimService { | 
					 | 
					 | 
					public class EIDimServiceImpl implements EIDimService { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -132,14 +133,29 @@ public class EIDimServiceImpl implements EIDimService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public  Map<String,Integer> updateCenterPointByName(GridCenterPointForm param) { | 
					 | 
					 | 
					    public  Map<String,Integer> updateCenterPointByName(GridCenterPointForm param) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //todo 怎么反向判断 左匹配
 | 
					 | 
					 | 
					        //todo 怎么反向判断 左匹配
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<GovernAbilityGridMonthlyFormDTO> gridInfoList = screenCustomerGridService.selectAllGridInfo(param.getCustomerId()); | 
					 | 
					 | 
					        List<ScreenProjectGridDailyDTO> gridInfos = screenCustomerGridService.selectGridInfoByCustomerId(param.getCustomerId()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        Map<String,Integer> result = new HashMap<>(); | 
					 | 
					 | 
					        Map<String,Integer> result = new HashMap<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        gridInfos.forEach(grid->{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            //客户id 和组织id 都相等 且 名字 包含关系时才修改
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if (grid.getCustomerId().equals(param.getCustomerId())){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                AtomicInteger integer = new AtomicInteger(0); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    param.getCenterDataList().forEach(o ->{ | 
					 | 
					 | 
					                    param.getCenterDataList().forEach(o ->{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            Integer integer = screenCustomerGridService.updateCenterPointByName(param.getCustomerId(), o.getTitle(), o.getCenter()); | 
					 | 
					 | 
					                        if (grid.getGridName().contains(o.getTitle())) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                            Integer effectRow = screenCustomerGridService.updateCenterPointByName(param.getCustomerId(), o.getTitle(), o.getCenter()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                            integer.addAndGet(effectRow); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        result.put(grid.getGridId(),integer.intValue()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        /*param.getCenterDataList().forEach(o ->{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            Integer integer = screenCustomerGridService.updateCenterPointByName(param.getCustomerId(),param.getAgencyId(), o.getTitle(), o.getCenter()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (integer == 0 || integer > 1){ | 
					 | 
					 | 
					            if (integer == 0 || integer > 1){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                result.put(o.getTitle(),integer); | 
					 | 
					 | 
					                result.put(o.getTitle(),integer); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        }); | 
					 | 
					 | 
					        });*/ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        return result; | 
					 | 
					 | 
					        return result; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |