| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -377,6 +377,7 @@ public class StaffPatrolRecordServiceImpl extends BaseServiceImpl<StaffPatrolRec | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							detailEntity.setAltitude(formDTO.getAltitude()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							detailEntity.setVerticalaccuracy(formDTO.getVerticalAccuracy()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							detailEntity.setHorizontalaccuracy(formDTO.getHorizontalAccuracy()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							detailEntity.setAddress(formDTO.getAddress()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							staffPatrolDetailService.insert(detailEntity); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							PatrolUploadResultDTO dto = new PatrolUploadResultDTO(); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -384,42 +385,6 @@ public class StaffPatrolRecordServiceImpl extends BaseServiceImpl<StaffPatrolRec | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							return dto; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						/** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * 上传巡查记录 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @param tokenDto | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @param formDTO | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @return com.epmet.dto.result.PatrolUploadResultDTO | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @author zhaoqifeng | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @date 2021/6/9 16:32 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						@Override | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						public PatrolUploadResultDTO uploadDetails(TokenDto tokenDto, PatrolUploadDetailFormDTO formDTO) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							if (CollectionUtils.isNotEmpty(formDTO.getDetails())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								List<StaffPatrolDetailEntity> list = formDTO.getDetails().stream().map(detail -> { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									StaffPatrolDetailEntity detailEntity = new StaffPatrolDetailEntity(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setStaffPatrolRecId(formDTO.getStaffPatrolRecId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setCustomerId(tokenDto.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setSerialNum(detail.getSerialNum()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setUploadTime(new Date()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setLatitude(detail.getLatitude()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setLongitude(detail.getLongitude()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setSpeed(detail.getSpeed()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setAccuracy(detail.getAccuracy()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setAltitude(detail.getAltitude()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setVerticalaccuracy(detail.getVerticalAccuracy()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									detailEntity.setHorizontalaccuracy(detail.getHorizontalAccuracy()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									return detailEntity; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								}).collect(Collectors.toList()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								staffPatrolDetailService.insertBatch(list); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							PatrolUploadResultDTO dto = new PatrolUploadResultDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							dto.setStaffPatrolRecId(formDTO.getStaffPatrolRecId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							return dto; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						/** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @Description  查询经纬度 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 * @Param userIds | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |