LAPTOP-KB9HII50\70708 3 éve
szülő
commit
37ac6c985f

+ 13 - 0
svr/svr-cloud-care/src/main/java/com/yihu/jw/care/service/third/PatientInfoPlatFormService.java

@ -749,6 +749,9 @@ public class PatientInfoPlatFormService {
        if (contact_status.size()>0){
            detailInfo.put("contact_status",contact_status.get(0));
        }
        BasePatientDO patientDO = patientDao.findById(patient);
        switch (category_code){
            case "1"://血糖 最近一次血糖、在线状态
                sql = " select *,CAST(DATE_FORMAT(record_date,'%Y-%m-%d %H:%i:%S') as char) record_date,  " +
@ -1025,6 +1028,7 @@ public class PatientInfoPlatFormService {
                }else {
                    detailInfo.put("warnStatus",false);
                }
                break;
            case "19"://门禁监测
                sql = " select o.id,p.id patient,p.name,p.idcard,p.residential_area,'22' OrderType,'1' type,o.serve_address,o.serve_desc,  " +
                        " o.status,DATE_FORMAT(o.create_time,'%Y-%m-%d %H:%i:%S') create_time from base_security_monitoring_order o " +
@ -1037,6 +1041,7 @@ public class PatientInfoPlatFormService {
                }else {
                    detailInfo.put("warnStatus",false);
                }
                break;
            case "20"://电表监测
                sql = " select o.id,p.id patient,p.name,p.idcard,p.residential_area,'22' OrderType,'1' type,o.serve_address,o.serve_desc,  " +
                        " o.status,DATE_FORMAT(o.create_time,'%Y-%m-%d %H:%i:%S') create_time from base_security_monitoring_order o " +
@ -1049,6 +1054,14 @@ public class PatientInfoPlatFormService {
                }else {
                    detailInfo.put("warnStatus",false);
                }
                break;
            case "21"://电表监测
                if(patientDO!=null){
                    String idcard = patientDO.getIdcard();
                    sql = "SELECT syndyqzl,syndfy,lszyql from hz.gsq_hzrqjmyhglxtrqgrxx WHERE yhsfzh =? ORDER BY tongid desc LIMIT 1 " ;
                    sqlResult = jdbcTemplate.queryForList(sql,new Object[]{idcard});
                    detailInfo.put("naturalGasRecord",sqlResult);
                }
        }
        return detailInfo;
    }