|  |  | @ -73,15 +73,15 @@ public class IndexServiceImpl implements IndexService { | 
			
		
	
		
			
				
					|  |  |  |     @DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public MonthPieChartResultDTO monthPieChart(MonthPieChartFormDTO monthPieChartFormDTO) { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         MonthPieChartResultDTO pieChartDTO = screenIndexDataMonthlyDao.selectMonthPieChart(monthPieChartFormDTO.getAgencyId(), null); | 
			
		
	
		
			
				
					|  |  |  |         String customerId = monthPieChartFormDTO.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |         MonthPieChartResultDTO pieChartDTO = screenIndexDataMonthlyDao.selectMonthPieChart(monthPieChartFormDTO.getAgencyId(), null,customerId); | 
			
		
	
		
			
				
					|  |  |  |         String monthId = dateUtils.getCurrentMonthId(); | 
			
		
	
		
			
				
					|  |  |  |         int time = NumConstant.TWELVE; | 
			
		
	
		
			
				
					|  |  |  |         //保证获取月度指数数据的最大可能性
 | 
			
		
	
		
			
				
					|  |  |  |         while ((null == pieChartDTO || StringUtils.isBlank(pieChartDTO.getMonthId())) && time > NumConstant.ONE) { | 
			
		
	
		
			
				
					|  |  |  |             time--; | 
			
		
	
		
			
				
					|  |  |  |             monthId = dateUtils.getPreviousMonthIdByDest(null, monthId); | 
			
		
	
		
			
				
					|  |  |  |             pieChartDTO = screenIndexDataMonthlyDao.selectMonthPieChart(monthPieChartFormDTO.getAgencyId(), monthId); | 
			
		
	
		
			
				
					|  |  |  |             pieChartDTO = screenIndexDataMonthlyDao.selectMonthPieChart(monthPieChartFormDTO.getAgencyId(), monthId,customerId); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         if (null == pieChartDTO) { | 
			
		
	
		
			
				
					|  |  |  |             return new MonthPieChartResultDTO(); | 
			
		
	
	
		
			
				
					|  |  | 
 |