|
@ -26,6 +26,6 @@ public interface KitDrugUseRecordDao extends PagingAndSortingRepository<KitDrugU
|
|
|
@Query(value = " select u.* from kit_drug_use_record u where u.patient_code=?1 and u.device_sn=?2 and u.use_time>=?3 and u.use_time<=?4 order by DATE_FORMAT(u.use_time,'%c-%d') desc,u.use_drug_status desc",nativeQuery = true)
|
|
|
List<KitDrugUseRecord> findStatistics(String patientCode,String deviceSn,Date monthStart,Date monthEnd);
|
|
|
|
|
|
@Query("SELECT a FROM KitDrugUseRecord a WHERE a.patient = ?1 ORDER BY a.useTime DESC")
|
|
|
@Query("SELECT a FROM KitDrugUseRecord a WHERE a.patientCode = ?1 ORDER BY a.useTime DESC")
|
|
|
Page<KitDrugUseRecord> findRecentByPatient(String patient, Pageable pageRequest);
|
|
|
}
|