|  | @ -323,7 +323,7 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
 | 
	
		
			
				|  |  |         List<Map<String , Object>> list = jdbcTemplate.queryForList(sql);
 | 
	
		
			
				|  |  |         if (list.size() > 0){
 | 
	
		
			
				|  |  |             Integer count = patientDeviceDao.deleteByDeviceSn(deviceSn);
 | 
	
		
			
				|  |  |             sql = "update device.wlyy_devices dd set dd.is_binding=? where dd.device_code=?";
 | 
	
		
			
				|  |  |             sql = "update wlyy_devices dd set dd.is_binding=? where dd.device_code=?";
 | 
	
		
			
				|  |  |             jdbcTemplate.update(sql,new Object[]{0,deviceSn});
 | 
	
		
			
				|  |  |             return count;
 | 
	
		
			
				|  |  |         }else {
 |