|
@ -7,6 +7,7 @@ package com.yihu.wlyy.repository.doctor;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
import com.yihu.wlyy.entity.doctor.team.sign.DoctorTeamMember;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
@ -94,6 +95,9 @@ public interface DoctorDao extends PagingAndSortingRepository<Doctor, Long>, Jpa
|
|
|
@Query("select d from Doctor d, DoctorTeamMember dtm where d.code=dtm.memberCode and dtm.signType='2' and dtm.team=?1 and dtm.del='1'")
|
|
|
List<Doctor> findJiatingDoctorByTeam(String code);
|
|
|
|
|
|
@Query("select dtm.type from Doctor d, DoctorTeamMember dtm where d.code=dtm.memberCode and dtm.signType='2' and dtm.team=?1 and dtm.memberCode=?2 and dtm.del='1'")
|
|
|
int findTeamType(String teamCode,String docCode);
|
|
|
|
|
|
// 手机号查询正常医生信息
|
|
|
@Query("select p from Doctor p where p.mobile = ?1 and p.del=1")
|
|
|
Doctor findNormalByMobile(String mobile);
|