|
@ -55,7 +55,7 @@ public interface PatientHealthIndexDao
|
|
|
@Query("select a from PatientHealthIndex a where a.user = ?1 and a.type =?2 order by recordDate desc ")
|
|
|
List<PatientHealthIndex> findByPatientAndType(String patientCode, int type, Pageable pageable);
|
|
|
|
|
|
@Query("select count(a) from DevicePatientHealthIndex a where a.recordDate >= ?1 and a.recordDate <= ?2 and a.type in (1,2) and a.status = ?3 and a.del = '1' and user = ?4")
|
|
|
@Query("select count(a) from PatientHealthIndex a where a.recordDate >= ?1 and a.recordDate <= ?2 and a.type in (1,2) and a.status = ?3 and a.del = '1' and user = ?4")
|
|
|
int getCountByTimeAndStatus(Date start, Date end, int status, String patientCode);
|
|
|
|
|
|
@Query(value="select * from device.wlyy_patient_health_index where user = ?1 and type = ?2 ORDER BY record_date desc limit 0 ,5",nativeQuery = true)
|