| 
					
				 | 
			
			
				@ -4929,9 +4929,9 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else if (type.equalsIgnoreCase("2")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql += " AND op.outpatient_type = 2"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else if (type.equalsIgnoreCase("3")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql += " AND  op.outpatient_type = 3"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql += " AND ( op.outpatient_type = 3 or op.outpatient_type=5 )"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql += " AND op.outpatient_type in (1,2,3) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql += " AND op.outpatient_type in (1,2,3,5) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql += " order by op.create_time  desc "; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -4983,7 +4983,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    sql += " AND op.outpatient_type = 2"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    mapKey = "xtNum"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } else if (outpatientType[i].equalsIgnoreCase("3")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    sql += " AND  op.outpatient_type = 3"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    sql += " AND  (op.outpatient_type = 3 or op.outpatient_type = 5) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    mapKey = "zxNum"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    sql += " AND op.outpatient_type in (1,2,3) "; 
			 |