| 
					
				 | 
			
			
				@ -478,7 +478,6 @@ public class DeviceUploadService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        if("A".equals(tmp1[4])){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            lat = tmp1[5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            lon = tmp1[7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            //判断是否超出围栏, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            lat = tmp1[4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            lon = tmp1[6]; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -493,14 +492,8 @@ public class DeviceUploadService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            DevicePatientDevice patientDevice = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            if (patientDeviceList.size()>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                patientDevice = patientDeviceList.get(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                                for (DevicePatientDevice pd2:patientDeviceList){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                                    if (StringUtils.isNotBlank(pd2.getSafeAreaGz())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                                        patientDevice = pd2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            if (null!=patientDevice){//存在围栏地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            if (null!=patientDevice){//存在围栏地址 判断是否超出围栏, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                List<PatientSafeAreaDO> safeAreaDOS = safeAreaDao.findByPatient(patientDevice.getUser()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                String safeArea=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                if (safeAreaDOS.size()>0){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -537,12 +530,11 @@ public class DeviceUploadService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        yxDeviceIndexDao.save(deviceIndex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        hvDeviceService.updContactStatus(sn,1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if ("AL".equals(tmp1[0])){//触发报警 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if ("AL".equals(tmp1[0])){//触发报警 SOS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        String lat,lon; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        if("A".equals(tmp1[4])){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            lat = tmp1[5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            lon = tmp1[7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            //判断是否超出围栏, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            lat = tmp1[4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            lon = tmp1[6]; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -577,7 +569,7 @@ public class DeviceUploadService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                            dulat = Double.parseDouble(pointss[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        if (StringUtils.isNotBlank(pointss[1])){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                            dulat = Double.parseDouble(pointss[1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                            dulon = Double.parseDouble(pointss[1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                }else { 
			 |