xiaoyunquan 2 gadi atpakaļ
vecāks
revīzija
33f7ec64f2

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

@ -776,6 +776,7 @@ public class PatientInfoPlatFormService {
                    }
                }else {
                    detailInfo.put("healthIndex",null);
                    detailInfo.put("healthIndexList",new ArrayList<>());
                }
                break;
            case "2"://血压 最近一次收缩压,舒张压、在线状态
@ -793,6 +794,7 @@ public class PatientInfoPlatFormService {
                    }
                }else {
                    detailInfo.put("healthIndex",null);
                    detailInfo.put("healthIndexList",new ArrayList<>());
                }
                break;
            case "4"://手表 电量、佩戴状态、是否预警、在线状态
@ -862,6 +864,7 @@ public class PatientInfoPlatFormService {
                    }
                }else {
                    detailInfo.put("steps","无步数数据");
                    detailInfo.put("stepsList",new ArrayList<>());
                }
                //手表心率数据
                sql = " select *,CAST(DATE_FORMAT(record_date,'%Y-%m-%d %H:%i:%S') as char) record_date,  " +
@ -874,6 +877,7 @@ public class PatientInfoPlatFormService {
                    detailInfo.put("heartRate",sqlResult.get(0));
                }else {
                    detailInfo.put("heartRate","无心率数据");
                    detailInfo.put("heartRate",new ArrayList<>());
                }
                //获取手表定位
                JSONObject dw = patientDeviceService.getAqgDeviceInfo2(deviceSn);
@ -1117,6 +1121,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 " +
@ -1133,6 +1138,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 " +