|  |  | @ -491,6 +491,11 @@ public class StaffPatrolRecordServiceImpl extends BaseServiceImpl<StaffPatrolRec | 
			
		
	
		
			
				
					|  |  |  | 		//2.查询网格信息并赋值
 | 
			
		
	
		
			
				
					|  |  |  | 		Map<String, CustomerGridDTO> map = new HashMap<>(); | 
			
		
	
		
			
				
					|  |  |  | 		for (PcworkRecordListResultDTO.StaffPatrol r : result.getList()) { | 
			
		
	
		
			
				
					|  |  |  | 			//秒变小时分钟
 | 
			
		
	
		
			
				
					|  |  |  | 			Integer minutes = r.getTotalTimeNum() / 60; | 
			
		
	
		
			
				
					|  |  |  | 			String patrolDuration = (minutes / 60 > 0 ? minutes / 60 + "小时" : "") + (minutes % 60 > 0 ? minutes % 60 + "分钟" : "0分钟"); | 
			
		
	
		
			
				
					|  |  |  | 			r.setTotalTime(patrolDuration); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 			if (map.containsKey(r.getGridId())) { | 
			
		
	
		
			
				
					|  |  |  | 				r.setGridName(map.get(r.getGridId()).getGridName()); | 
			
		
	
		
			
				
					|  |  |  | 				continue; | 
			
		
	
	
		
			
				
					|  |  | @ -512,12 +517,6 @@ public class StaffPatrolRecordServiceImpl extends BaseServiceImpl<StaffPatrolRec | 
			
		
	
		
			
				
					|  |  |  | 				r.setGridName(resultGrid.getData().getGridName()); | 
			
		
	
		
			
				
					|  |  |  | 				map.put(r.getGridId(), resultGrid.getData()); | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 			//秒变小时分钟
 | 
			
		
	
		
			
				
					|  |  |  | 			Integer minutes = r.getTotalTimeNum() / 60; | 
			
		
	
		
			
				
					|  |  |  | 			String patrolDuration = (minutes / 60 > 0 ? minutes / 60 + "小时" : "") + (minutes % 60 > 0 ? minutes % 60 + "分钟" : "0分钟"); | 
			
		
	
		
			
				
					|  |  |  | 			r.setTotalTime(patrolDuration); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		//3.封装数据并返回
 | 
			
		
	
		
			
				
					|  |  |  | 		resultDTO.setTotal((int)result.getTotal()); | 
			
		
	
	
		
			
				
					|  |  | 
 |