Commit 228f3fe091c1d0d2038d59832fba570e260fbf5c
1 parent
ed5f604d3b
Exists in
master
and in
6 other branches
bbbbbb
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java
View file @
228f3fe
... | ... | @@ -173,7 +173,8 @@ |
173 | 173 | List<Object> szy = new ArrayList<>(); |
174 | 174 | List<Object> pulse = new ArrayList<>(); |
175 | 175 | List<String> xAxis = new ArrayList<>(); |
176 | - if(bloodPressure != null) { | |
176 | + Patients patients = mongoTemplate.findById(bloodPressure.getParentId(), Patients.class); | |
177 | + if(bloodPressure != null && patients != null && patients.getYn() == 1) { | |
177 | 178 | List<String> betweenDay = DateUtil.getBetweenDay(startDate,7); |
178 | 179 | CollectionUtils.reverse(betweenDay); |
179 | 180 | Map<String, Map<String, Object>> infos = bloodPressure.getInfos(); |