|
@ -74,7 +74,7 @@ public interface DevicePatientHealthIndexDao
|
|
|
/**
|
|
|
* 上次血糖值
|
|
|
*/
|
|
|
@Query("select a.value1 from DevicePatientHealthIndex a where a.type=1 and a.user = ?1 and a.id<?2 and a.value2 = ?3 limit 0,1")
|
|
|
@Query(value = "select a.value1 from device.wlyy_patient_health_index a where a.type=1 and a.user = ?1 and a.id<?2 and a.value2 = ?3 order by a.record_date desc limit 0,1",nativeQuery = true)
|
|
|
String getPreValue(String user,Long id,String value2);
|
|
|
|
|
|
}
|