|
@ -18,7 +18,7 @@ public interface PatientHealthRecordSportsDao extends PagingAndSortingRepository
|
|
|
Iterable<PatientHealthRecordSports> findByPatient(String patient);
|
|
|
|
|
|
// 查询最近的健康记录
|
|
|
@Query("SELECT a FROM PatientHealthRecordSports a WHERE a.patient = ?1 and a.del = '1' ORDER BY a.czrq DESC")
|
|
|
@Query("SELECT a FROM PatientHealthRecordSports a WHERE a.patient = ?1 and a.del = '1' ORDER BY a.recordDate DESC")
|
|
|
Page<PatientHealthRecordSports> findRecentByPatient(String patient, Pageable pageRequest);
|
|
|
|
|
|
@Query("select a from PatientHealthRecordSports a where a.patient = ?1 and a.recordDate >= ?2 and a.recordDate <= ?3 and a.del = '1' order by a.recordDate desc")
|