| 
															
																@ -67,8 +67,6 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    private UserAgent userAgent; 
															 | 
															
															 | 
															
																    private UserAgent userAgent; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    @Autowired 
															 | 
															
															 | 
															
																    @Autowired 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    private IotCompanyDao iotCompanyDao; 
															 | 
															
															 | 
															
																    private IotCompanyDao iotCompanyDao; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    @Autowired 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    private HibenateUtils hibernateUtils; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    /** 
															 | 
															
															 | 
															
																    /** 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * 新增 
															 | 
															
															 | 
															
																     * 新增 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -273,12 +271,12 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                }if (StringUtils.isNotEmpty(snCoed)){ 
															 | 
															
															 | 
															
																                }if (StringUtils.isNotEmpty(snCoed)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    sqlEqt = sqlEqt +" and t.device_code = '"+snCoed+"'"; 
															 | 
															
															 | 
															
																                    sqlEqt = sqlEqt +" and t.device_code = '"+snCoed+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                logger.debug("查询患者name和code开始"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                List<Map<String,Object>> nameList = hibernateUtils.createSQLQuery(sql); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                logger.debug("查询患者name和code结束:"+nameList); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                logger.debug("查询设备名称开始"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                List<Map<String,Object>> deviceList = hibernateUtils.createSQLQuery(sqlEqt); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                logger.debug("查询设备名称结束:"+deviceList); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                System.out.println("查询患者name和code开始"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                List<Map<String,Object>> nameList = jdbcTempalte.queryForList(sql); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                System.out.println("查询患者name和code结束:"+nameList); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                System.out.println("查询设备名称开始"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                List<Map<String,Object>> deviceList = jdbcTempalte.queryForList(sqlEqt); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                System.out.println("查询设备名称结束:"+deviceList); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                if(nameList.size()>0){ 
															 | 
															
															 | 
															
																                if(nameList.size()>0){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    String code = null==nameList.get(0).get("code")?"":nameList.get(0).get("code").toString(); 
															 | 
															
															 | 
															
																                    String code = null==nameList.get(0).get("code")?"":nameList.get(0).get("code").toString(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    String name = null==nameList.get(0).get("name")?"":nameList.get(0).get("name").toString(); 
															 | 
															
															 | 
															
																                    String name = null==nameList.get(0).get("name")?"":nameList.get(0).get("name").toString(); 
															 |