|  | @ -821,6 +821,10 @@ public class DeviceService {
 | 
	
		
			
				|  |  |         BasePatientOutBed outBed = outBedDao.findByPatientAndDeviceSn(patient,device);
 | 
	
		
			
				|  |  |         if (null==outBed){
 | 
	
		
			
				|  |  |             outBed = new BasePatientOutBed();
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             if (0==outBed.getStatus()&&0==status){//离床状态不刷新时间,需要计算离床时长
 | 
	
		
			
				|  |  |                 return;
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         outBed.setPatient(patient);
 | 
	
		
			
				|  |  |         outBed.setDeviceSn(device);
 |