|
@ -437,4 +437,8 @@ public interface SignFamilyDao extends PagingAndSortingRepository<SignFamily, Lo
|
|
|
//查看团队内医生签约人数
|
|
|
@Query("select count(1) from SignFamily a where a.status > 0 and a.adminTeamId = ?1 and (a.doctor = ?2 or a.doctorHealth = ?2)")
|
|
|
int countByAdminTeamId(Long adminTeamId, String doctor);
|
|
|
|
|
|
//根据居民和医生找出居民签约团队
|
|
|
@Query("select f from SignFamily f where f.status > 0 and f.patient = ?1 and ( f.doctor = ?2 or doctorHealth = ?2 )")
|
|
|
SignFamily findSignFamilyByPatientAndDoctor(String patient, String doctor);
|
|
|
}
|