|  | @ -295,7 +295,7 @@ public class SpecialistService{
 | 
	
		
			
				|  |  |         return MixEnvelop.getSuccess(SpecialistMapping.api_success,count);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public MixEnvelop<PatientRelationVO, PatientRelationVO> getDoctorPatientByName(String doctor, String nameKey, Integer page, Integer size){
 | 
	
		
			
				|  |  |     public MixEnvelop<PatientRelationVO, PatientRelationVO> getDoctorPatientByName(String doctor, String nameKey,String teamCode, Integer page, Integer size){
 | 
	
		
			
				|  |  |         String sql ="SELECT " +
 | 
	
		
			
				|  |  |                 " p.code AS patient, " +
 | 
	
		
			
				|  |  |                 " p.`name` AS patientName, " +
 | 
	
	
		
			
				|  | @ -319,7 +319,8 @@ public class SpecialistService{
 | 
	
		
			
				|  |  |                 " AND t.`status` = '1' " +
 | 
	
		
			
				|  |  |                 " ) h ON h.patient = r.patient " +
 | 
	
		
			
				|  |  |                 " WHERE " +
 | 
	
		
			
				|  |  |                 " r.doctor='"+doctor+"' " +
 | 
	
		
			
				|  |  |                 " r.doctor IN ( SELECT m.doctor_code FROM wlyy.wlyy_admin_team_member m WHERE m.team_id ='" +teamCode+
 | 
	
		
			
				|  |  |                 "' ) " +
 | 
	
		
			
				|  |  |                 " AND r.status >=0  AND r.sign_status >0 " +
 | 
	
		
			
				|  |  |                 " AND r.patient_name LIKE '%"+nameKey+"%' "+
 | 
	
		
			
				|  |  |                 " LIMIT "+(page-1)*size+","+size;
 |