From 7e12b4cafc42d81ae2512f33521ccdb09d4a9dc0 Mon Sep 17 00:00:00 2001 From: liquanyu Date: Tue, 30 Mar 2021 14:57:08 +0800 Subject: [PATCH] update --- .../java/com/lyms/platform/operate/web/facade/PatientFacade.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java index 7f3ce5b..d8f12b3 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java @@ -2900,8 +2900,11 @@ public class PatientFacade extends BaseServiceImpl { } } } - PatientWeight pw = mongoTemplate.findOne(Query.query(Criteria.where("patientId").is(patientBaseResult.getId())), PatientWeight.class); - if (pw != null) { + + PatientWeight pw = null; + List pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid())), PatientWeight.class); + if (CollectionUtils.isNotEmpty(pws)) { + pw = pws.get(0); patientBaseResult.setPwId(pw.getId()); } //高危报告权限判断 -- 1.8.3.1