| 
					
				 | 
			
			
				@ -2,6 +2,7 @@ package com.yihu.jw.dao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.specialist.SpecialistPatientRelationDO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.data.jpa.repository.JpaSpecificationExecutor; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.data.jpa.repository.Query; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.data.repository.PagingAndSortingRepository; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.List; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -13,5 +14,6 @@ public interface SpecialistPatientRelationDao extends PagingAndSortingRepository 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JpaSpecificationExecutor<SpecialistPatientRelationDO> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    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") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public SpecialistPatientRelationDO findByDoctorAndPatient(String doctor,String patient); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |