|  | @ -64,7 +64,6 @@ public class DeviceDetailService extends BaseJpaService<DeviceDetail, DeviceDeta
 | 
	
		
			
				|  |  | 	@Transactional
 | 
	
		
			
				|  |  | 	public void updateAfterBinding(DevicePatientDevice devicePatientDevice, Date grantTime, boolean isFirst)throws Exception{
 | 
	
		
			
				|  |  | 		DeviceDetail deviceDetail = deviceDetailDao.findBySn(devicePatientDevice.getDeviceSn());
 | 
	
		
			
				|  |  | 		int bind = deviceDetail.getIsBinding();
 | 
	
		
			
				|  |  | 		long adminTeam=0L;
 | 
	
		
			
				|  |  | 		String hospital = "";
 | 
	
		
			
				|  |  | 		String isFirstBind = "";
 | 
	
	
		
			
				|  | @ -81,6 +80,11 @@ public class DeviceDetailService extends BaseJpaService<DeviceDetail, DeviceDeta
 | 
	
		
			
				|  |  | 			deviceDetail = deviceDetailDao.findBySn(devicePatientDevice.getDeviceSn());
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 		Integer bind = deviceDetail.getIsBinding();
 | 
	
		
			
				|  |  | 		if(bind==null){
 | 
	
		
			
				|  |  | 			bind = 0;
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 		isFirstBind = deviceDetail.getBindingCount();
 | 
	
		
			
				|  |  | 		if (StringUtils.isNotBlank(isFirstBind)){
 | 
	
		
			
				|  |  | 			JSONObject jsonObject = JSON.parseObject(isFirstBind);
 |