|  | @ -2173,6 +2173,9 @@ public class ImService {
 | 
	
		
			
				|  |  | 					"d.id as \"patientId\"," +
 | 
	
		
			
				|  |  | 					"d.idcard as \"patientIdcard\"," +
 | 
	
		
			
				|  |  | 					"d.sex as \"patientSex\"," +
 | 
	
		
			
				|  |  | 					"op.consumer as \"consumer\"," +
 | 
	
		
			
				|  |  | 					"op.consumer_name as \"consumerName\"," +
 | 
	
		
			
				|  |  | 					"op.consumer_mobile as \"consumerMobile\"," +
 | 
	
		
			
				|  |  | 					"op.id as \"outpatientId\"," +
 | 
	
		
			
				|  |  | 					"op.type as \"consultType\"," +
 | 
	
		
			
				|  |  | 					"op.general_doctor as \"generalDoctor\"," +
 | 
	
	
		
			
				|  | @ -2184,7 +2187,7 @@ public class ImService {
 | 
	
		
			
				|  |  | 					"wlyy_consult a   " +
 | 
	
		
			
				|  |  | 					"left join wlyy_outpatient op on  a.relation_code = op.id " +
 | 
	
		
			
				|  |  | 					"WHERE a.id=b.consult " +
 | 
	
		
			
				|  |  | 					"AND b.patient=d.id ";
 | 
	
		
			
				|  |  | 					"AND op.patient=d.id ";
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 		if (org.apache.commons.lang.StringUtils.isNotBlank(doctor)){
 |