| 
					
				 | 
			
			
				@ -2467,6 +2467,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<JSONObject> finalresult  = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (JSONObject jsonObject : result.values()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //离线:在线状态=离线 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //空闲:在线状态=在线 and 接诊状态=空闲 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //接诊中:在线状态=在线 and 接诊状态=接诊中 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //过滤空闲或者接诊中的居民 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isBlank(consult_status)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                finalresult.add(jsonObject); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -2479,7 +2484,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                }else if("2".equals(consult_status) && "2".equals(jsonObject.getString("visit_status"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    //接诊 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    finalresult.add(jsonObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                }else{} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Integer room_no = 1; 
			 |