|
@ -1762,7 +1762,7 @@ public class PatientHealthIndexService {
|
|
|
}
|
|
|
|
|
|
public DevicePatientHealthIndex findLastData(String patientCode, int type) {
|
|
|
String sql = "select a.* from wlyy_patient_health_index a where a.user=?1 and a.type=?2 and a.del='1' order by a.record_date desc limit 0,1";
|
|
|
String sql = "select a.* from wlyy_patient_health_index a where a.user='"+patientCode+"' and a.type="+type+" and a.del='1' order by a.record_date desc limit 0,1";
|
|
|
List<DevicePatientHealthIndex> list = jdbcTemplate.query(sql,new BeanPropertyRowMapper<>(DevicePatientHealthIndex.class));
|
|
|
if(list.size()>0){
|
|
|
return list.get(0);
|