| 
						
						
							
								
							
						
						
					 | 
					@ -2054,11 +2054,17 @@ public class DataStatsServiceImpl implements DataStatsService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            int patrolDurationInteger = 0; | 
					 | 
					 | 
					            int patrolDurationInteger = 0; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            HashSet set = new HashSet(); | 
					 | 
					 | 
					            HashSet set = new HashSet(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            for (CustomerDataManageResultDTO.CustomerDataManage u : patrolEnd) { | 
					 | 
					 | 
					            for (CustomerDataManageResultDTO.CustomerDataManage u : patrolEnd) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                if (org.getOrgId().equals(u.getOrgId())) { | 
					 | 
					 | 
					                if ("community".equals(agencyGrid.getLevel()) && org.getOrgId().equals(u.getOrgId())) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                    patroCount += u.getPatrolCount(); | 
					 | 
					 | 
					                    patroCount += u.getPatrolCount(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    patrolDurationInteger += u.getPatrolDurationInteger(); | 
					 | 
					 | 
					                    patrolDurationInteger += u.getPatrolDurationInteger(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    set.add(u.getStaffId()); | 
					 | 
					 | 
					                    set.add(u.getStaffId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                if (!"community".equals(agencyGrid.getLevel()) && u.getOrgId().contains(org.getOrgId())) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    patroCount += u.getPatrolCount(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    patrolDurationInteger += u.getPatrolDurationInteger(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    set.add(u.getStaffId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            patro = set.size(); | 
					 | 
					 | 
					            patro = set.size(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            Integer minutes = patrolDurationInteger / 60; | 
					 | 
					 | 
					            Integer minutes = patrolDurationInteger / 60; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |