| 
					
				 | 
			
			
				@ -899,7 +899,7 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String sql = "select dd.photo,pd.device_sn,dd.brands,dd.category_code,dd.model,pd.device_name,date_format(pd.czrq,'%Y-%m-%d %H:%i:%S' ) deviceTime " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "from dm_device dd INNER JOIN wlyy_patient_device pd on dd.category_code = pd.category_code INNER JOIN wlyy_devices wd on dd.model = wd.device_model and pd.device_sn = wd.device_code \n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "where 1=1 and  pd.del=0 and pd.device_sn ='"+deviceSn+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "where 1=1 and  pd.del=0 and pd.device_sn ='"+deviceSn+"' group by pd.user"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Map<String,Object> devInfo = jdbcTemplate.queryForMap(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                devInfo.put("patient",patient); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                devInfo.put("patientName",patientDO.getName()); 
			 |