|
@ -105,7 +105,7 @@ public interface DoctorDao extends PagingAndSortingRepository<Doctor, Long>, Jpa
|
|
|
List<Doctor> findAllJKDoctot();
|
|
|
|
|
|
|
|
|
@Query("select d from Doctor d where d.del = 1 and d.iscertified=1")
|
|
|
@Query("select d from Doctor d where d.del = 1 ")
|
|
|
List<Doctor> findAllCertifiedDoctors();
|
|
|
|
|
|
@Query("select p from Doctor p where p.level in (2,3) and p.del=1 and p.iscertified=1")
|
|
@ -118,6 +118,8 @@ public interface DoctorDao extends PagingAndSortingRepository<Doctor, Long>, Jpa
|
|
|
@Query("update Doctor set idcard = ?2 where code = ?1")
|
|
|
int updateIdcard(String doctor, String idcard);
|
|
|
|
|
|
List<Doctor> findByIsFamous(Integer isFamous);
|
|
|
|
|
|
@Query("select p from Doctor p ,DoctorFamousConsultTimesRemain w where p.code=w.doctor and w.consultDate = ?1 and p.name like name order by w.timesRemain desc")
|
|
|
Page<Doctor> famousDoctorList(String date, String name, Pageable pageRequest);
|
|
|
|