| 
					
				 | 
			
			
				@ -296,18 +296,12 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String snCoed = locationDataVO.getDeviceSn(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                List<Map<String,Object>> nameList = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                List<Map<String,Object>> deviceList = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                System.out.println("idCard:="+idCard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                System.out.println("snCode:="+snCoed); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if (StringUtils.isNotEmpty(idCard)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    sql = sql +" and t.idcard = '"+idCard+"'"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    System.out.println("查询患者name和code开始"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    nameList = jdbcTempalte.queryForList(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    System.out.println("查询患者name和code结束:"+nameList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                }if (StringUtils.isNotEmpty(snCoed)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    sqlEqt = sqlEqt +" and t.device_code = '"+snCoed+"'"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    System.out.println("查询设备名称开始"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    deviceList = jdbcTempalte.queryForList(sqlEqt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    System.out.println("查询设备名称结束:"+deviceList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(nameList.size()>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    String code = null==nameList.get(0).get("code")?"":nameList.get(0).get("code").toString(); 
			 |