|  | @ -247,6 +247,23 @@ public class SpecialistService{
 | 
	
		
			
				|  |  |                     " AND a.team_code ='" +teamCode+"' "+
 | 
	
		
			
				|  |  |                     " LIMIT "+(page-1)*size+","+size;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         
 | 
	
		
			
				|  |  |         if("pending".equals(labelType)){
 | 
	
		
			
				|  |  |             sql = "SELECT " +
 | 
	
		
			
				|  |  |                     "c.CODE," +
 | 
	
		
			
				|  |  |                     "c.NAME," +
 | 
	
		
			
				|  |  |                     "c.sex," +
 | 
	
		
			
				|  |  |                     "IFNULL(YEAR (from_days(datediff(now(),c.birthday))),'未知') age," +
 | 
	
		
			
				|  |  |                     "c.photo," +
 | 
	
		
			
				|  |  |                     "a.health_assistant AS healthAssistant," +
 | 
	
		
			
				|  |  |                     "a.health_assistant_name AS healthAssistantName " +
 | 
	
		
			
				|  |  |                     "FROM wlyy_specialist.wlyy_specialist_patient_relation a " +
 | 
	
		
			
				|  |  |                     "JOIN "+basedb+".wlyy_patient c ON a.patient=c.CODE " +
 | 
	
		
			
				|  |  |                     " WHERE a.sign_status> 0 AND a.`status`>=0 AND (a.is_manage = 0 or a.is_manage is null)" +
 | 
	
		
			
				|  |  |                     " AND a.team_code ='" +teamCode+"' "+
 | 
	
		
			
				|  |  |                     " LIMIT "+(page-1)*size+","+size;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         
 | 
	
		
			
				|  |  |         List<PatientLabelVO> PatientLabelVOs = jdbcTemplate.query(sql,new BeanPropertyRowMapper(PatientLabelVO.class));
 | 
	
		
			
				|  |  |         return MixEnvelop.getSuccess(SpecialistMapping.api_success,PatientLabelVOs);
 | 
	
		
			
				|  |  |     }
 |