|  | @ -221,8 +221,7 @@ public class SpecialistService{
 | 
												
													
														
															|  |                 " ) lb " +
 |  |                 " ) lb " +
 | 
												
													
														
															|  |                 " JOIN "+basedb+".wlyy_patient p ON p. CODE = lb.patient " +
 |  |                 " JOIN "+basedb+".wlyy_patient p ON p. CODE = lb.patient " +
 | 
												
													
														
															|  |                 " JOIN wlyy_specialist_patient_relation s ON s.patient = lb.patient " +
 |  |                 " JOIN wlyy_specialist_patient_relation s ON s.patient = lb.patient " +
 | 
												
													
														
															|  |                 " WHERE s.doctor in " +
 |  | 
 | 
												
													
														
															|  |                 "  (SELECT m.doctor_code FROM  wlyy.wlyy_admin_team_member m where m.team_id ='" +teamCode+"') "+
 |  | 
 | 
												
													
														
															|  | 
 |  |                 " WHERE s.team_code ='" +teamCode+"' "+
 | 
												
													
														
															|  |                 " AND s.status >=0  AND s.sign_status >0"+
 |  |                 " AND s.status >=0  AND s.sign_status >0"+
 | 
												
													
														
															|  |                 " LIMIT "+(page-1)*size+","+size;
 |  |                 " LIMIT "+(page-1)*size+","+size;
 | 
												
													
														
															|  |         System.out.print("日志:"+sql);
 |  |         System.out.print("日志:"+sql);
 | 
												
											
												
													
														
															|  | @ -244,8 +243,7 @@ public class SpecialistService{
 | 
												
													
														
															|  |                     "LEFT JOIN "+basedb+".wlyy_sign_patient_label_info d ON a.patient=d.patient AND d.label_type=8 AND d.`status`=1" +
 |  |                     "LEFT JOIN "+basedb+".wlyy_sign_patient_label_info d ON a.patient=d.patient AND d.label_type=8 AND d.`status`=1" +
 | 
												
													
														
															|  |                     " WHERE a.sign_status> 0 AND a.`status`>=0 " +
 |  |                     " WHERE a.sign_status> 0 AND a.`status`>=0 " +
 | 
												
													
														
															|  | //                    "AND a.doctor='"+doctor+"' OR a.health_assistant= '"+doctor+
 |  | //                    "AND a.doctor='"+doctor+"' OR a.health_assistant= '"+doctor+
 | 
												
													
														
															|  |                     " AND a.doctor in " +
 |  | 
 | 
												
													
														
															|  |                     " (SELECT m.doctor_code FROM  wlyy.wlyy_admin_team_member m where m.team_id ='" +teamCode+"') "+
 |  | 
 | 
												
													
														
															|  | 
 |  |                     " AND a.team_code ='" +teamCode+"' "+
 | 
												
													
														
															|  |                     " LIMIT "+(page-1)*size+","+size;
 |  |                     " LIMIT "+(page-1)*size+","+size;
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         List<PatientLabelVO> PatientLabelVOs = jdbcTemplate.query(sql,new BeanPropertyRowMapper(PatientLabelVO.class));
 |  |         List<PatientLabelVO> PatientLabelVOs = jdbcTemplate.query(sql,new BeanPropertyRowMapper(PatientLabelVO.class));
 |