| 
						
						
						
					 | 
					@ -1,5 +1,6 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					package com.epmet.datareport.service.evaluationindex.screen.impl; | 
					 | 
					 | 
					package com.epmet.datareport.service.evaluationindex.screen.impl; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.alibaba.fastjson.JSON; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.dynamic.datasource.annotation.DataSource; | 
					 | 
					 | 
					import com.epmet.commons.dynamic.datasource.annotation.DataSource; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.constant.NumConstant; | 
					 | 
					 | 
					import com.epmet.commons.tools.constant.NumConstant; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.exception.RenException; | 
					 | 
					 | 
					import com.epmet.commons.tools.exception.RenException; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -7,6 +8,7 @@ import com.epmet.commons.tools.utils.ConvertUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.utils.Result; | 
					 | 
					 | 
					import com.epmet.commons.tools.utils.Result; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.constant.DataSourceConstant; | 
					 | 
					 | 
					import com.epmet.constant.DataSourceConstant; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.datareport.dao.evaluationindex.screen.*; | 
					 | 
					 | 
					import com.epmet.datareport.dao.evaluationindex.screen.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.epmet.datareport.service.evaluationindex.screen.AgencyService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.datareport.service.evaluationindex.screen.PartyMemberLeadService; | 
					 | 
					 | 
					import com.epmet.datareport.service.evaluationindex.screen.PartyMemberLeadService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.datareport.utils.DateUtils; | 
					 | 
					 | 
					import com.epmet.datareport.utils.DateUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.datareport.utils.ModuleConstant; | 
					 | 
					 | 
					import com.epmet.datareport.utils.ModuleConstant; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -56,6 +58,9 @@ public class PartyMemberLeadServiceImpl implements PartyMemberLeadService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private ScreenCustomerAgencyDao customerAgencyDao; | 
					 | 
					 | 
					    private ScreenCustomerAgencyDao customerAgencyDao; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private OperCrmOpenFeignClient operCrmOpenFeignClient; | 
					 | 
					 | 
					    private OperCrmOpenFeignClient operCrmOpenFeignClient; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    private AgencyService screenCustomerAgencyService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    /** | 
					 | 
					 | 
					    /** | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @Description  1、先锋模范 | 
					 | 
					 | 
					     * @Description  1、先锋模范 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @param fineExampleFormDTO | 
					 | 
					 | 
					     * @param fineExampleFormDTO | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -117,8 +122,14 @@ public class PartyMemberLeadServiceImpl implements PartyMemberLeadService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) | 
					 | 
					 | 
					    @DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public ContactMassLineChartResultDTO contactMassLineChart(ContactMassLineChartFormDTO contactMassLineChartFormDTO) { | 
					 | 
					 | 
					    public ContactMassLineChartResultDTO contactMassLineChart(ContactMassLineChartFormDTO contactMassLineChartFormDTO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        List<String> subAgencyIdorGridIdList=screenCustomerAgencyService.getNextAgencyIds(contactMassLineChartFormDTO.getAreaCode(),contactMassLineChartFormDTO.getAgencyId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        log.info("当前组织的下级id:"+JSON.toJSONString(subAgencyIdorGridIdList)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ContactMassLineChartResultDTO result = new ContactMassLineChartResultDTO(); | 
					 | 
					 | 
					        ContactMassLineChartResultDTO result = new ContactMassLineChartResultDTO(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<ContactMassLineChartResult> contactMassLineChartResults = screenPartyLinkMassesDataDao.selectContactMassLineChart(contactMassLineChartFormDTO.getAgencyId()); | 
					 | 
					 | 
					        // List<ContactMassLineChartResult> contactMassLineChartResults = screenPartyLinkMassesDataDao.selectContactMassLineChart(contactMassLineChartFormDTO.getAgencyId());
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        //多客户版修改如下:
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        List<ContactMassLineChartResult> contactMassLineChartResults = screenPartyLinkMassesDataDao.selectContactMassLineChartByAgencyIds(subAgencyIdorGridIdList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (contactMassLineChartResults.size() == NumConstant.ZERO){ | 
					 | 
					 | 
					        if (contactMassLineChartResults.size() == NumConstant.ZERO){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            result.setXAxis(new ArrayList<>()); | 
					 | 
					 | 
					            result.setXAxis(new ArrayList<>()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            result.setGroupMemberData(new ArrayList<>()); | 
					 | 
					 | 
					            result.setGroupMemberData(new ArrayList<>()); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |