|  | @ -15,7 +15,7 @@ public interface SpecialistPatientRelationDao extends PagingAndSortingRepository
 | 
												
													
														
															|  |         JpaSpecificationExecutor<SpecialistPatientRelationDO> {
 |  |         JpaSpecificationExecutor<SpecialistPatientRelationDO> {
 | 
												
													
														
															|  |     public List<SpecialistPatientRelationDO> findByDoctorAndStatus(String doctor,String status);
 |  |     public List<SpecialistPatientRelationDO> findByDoctorAndStatus(String doctor,String status);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @Query("select p from SpecialistPatientRelationDO p where p.doctor=?1 and p.patient =?2 and p.status>=0 and p.signStatus=1")
 |  | 
 | 
												
													
														
															|  | 
 |  |     @Query("select p from SpecialistPatientRelationDO p where p.doctor=?1 and p.patient =?2  and p.status>=0 and p.signStatus=1")
 | 
												
													
														
															|  |     public SpecialistPatientRelationDO findByDoctorAndPatient(String doctor,String patient);
 |  |     public SpecialistPatientRelationDO findByDoctorAndPatient(String doctor,String patient);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @Query("select p from SpecialistPatientRelationDO p where p.doctor=?1 and (p.patient=?2 or p.healthAssistant=?2) and p.signStatus='1' and p.status>=0 ")
 |  |     @Query("select p from SpecialistPatientRelationDO p where p.doctor=?1 and (p.patient=?2 or p.healthAssistant=?2) and p.signStatus='1' and p.status>=0 ")
 | 
												
											
												
													
														
															|  | @ -29,4 +29,7 @@ public interface SpecialistPatientRelationDao extends PagingAndSortingRepository
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @Query("select p from SpecialistPatientRelationDO p where p.teamCode=?1 and p.patient =?2 and p.status>=0 and p.signStatus=1")
 |  |     @Query("select p from SpecialistPatientRelationDO p where p.teamCode=?1 and p.patient =?2 and p.status>=0 and p.signStatus=1")
 | 
												
													
														
															|  |     public SpecialistPatientRelationDO findByTeamCodeAndPatient(Integer teamCode,String patient);
 |  |     public SpecialistPatientRelationDO findByTeamCodeAndPatient(Integer teamCode,String patient);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @Query("select p from SpecialistPatientRelationDO p where p.doctor=?1 and p.patient =?2 and p.teamCode =?3 and p.status>=0 and p.signStatus=1")
 | 
												
													
														
															|  | 
 |  |     public SpecialistPatientRelationDO findByDoctorAndPatientAndTeamCode(String doctor,String patient,Integer teamCode);
 | 
												
													
														
															|  | }
 |  | }
 |