Ver código fonte

医生端--血糖超标消息增加上次数值

hzp 8 anos atrás
pai
commit
952cf6da89

+ 1 - 1
patient-co-wlyy/src/main/java/com/yihu/wlyy/health/repository/DevicePatientHealthIndexDao.java

@ -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);
}