|
@ -128,16 +128,16 @@ public interface DoctorDao extends PagingAndSortingRepository<Doctor, Long>, Jpa
|
|
List<Doctor> findByIsFamous(Integer isFamous);
|
|
List<Doctor> findByIsFamous(Integer isFamous);
|
|
|
|
|
|
@Query("select p from Doctor p ,DoctorFamousConsultTimesRemain w where p.code=w.doctor and p.isFamous=1 and w.consultDate = ?1 and p.name like ?2 and w.timesRemain > 0 order by w.timesRemain desc")
|
|
@Query("select p from Doctor p ,DoctorFamousConsultTimesRemain w where p.code=w.doctor and p.isFamous=1 and w.consultDate = ?1 and p.name like ?2 and w.timesRemain > 0 order by w.timesRemain desc")
|
|
Page<Doctor> famousDoctorList(String date, String name, Pageable pageRequest);
|
|
|
|
|
|
List<Doctor> famousDoctorList(String date, String name);
|
|
|
|
|
|
@Query("select p from Doctor p ,DoctorFamousConsultTimesRemain w where p.code=w.doctor and p.isFamous=1 and w.consultDate = ?1 and w.timesRemain > 0 order by w.timesRemain desc")
|
|
@Query("select p from Doctor p ,DoctorFamousConsultTimesRemain w where p.code=w.doctor and p.isFamous=1 and w.consultDate = ?1 and w.timesRemain > 0 order by w.timesRemain desc")
|
|
Page<Doctor> famousDoctorList(String date, Pageable pageRequest);
|
|
|
|
|
|
List<Doctor> famousDoctorList(String date);
|
|
|
|
|
|
@Query("select p from Doctor p where p.isFamous=1 and p.name like ?1 ")
|
|
@Query("select p from Doctor p where p.isFamous=1 and p.name like ?1 ")
|
|
Page<Doctor> doctorFamousDoctorList(String name, Pageable pageRequest);
|
|
|
|
|
|
List<Doctor> doctorFamousDoctorList(String name);
|
|
|
|
|
|
@Query("select p from Doctor p where p.isFamous=1 ")
|
|
@Query("select p from Doctor p where p.isFamous=1 ")
|
|
Page<Doctor> doctorFamousDoctorList(Pageable pageRequest);
|
|
|
|
|
|
List<Doctor> doctorFamousDoctorList();
|
|
|
|
|
|
@Query("select p from Doctor p where p.idcard = ?1")
|
|
@Query("select p from Doctor p where p.idcard = ?1")
|
|
Doctor findbyIdCard(String idcard);
|
|
Doctor findbyIdCard(String idcard);
|