Browse Source

代码修改

LAPTOP-KB9HII50\70708 1 year ago
parent
commit
ee473a754d

+ 1 - 1
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/health/service/PatientHealthIndexService.java

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