Commit 7e12b4cafc42d81ae2512f33521ccdb09d4a9dc0
1 parent
995cd95460
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 5 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
7e12b4c
... | ... | @@ -2900,8 +2900,11 @@ |
2900 | 2900 | } |
2901 | 2901 | } |
2902 | 2902 | } |
2903 | - PatientWeight pw = mongoTemplate.findOne(Query.query(Criteria.where("patientId").is(patientBaseResult.getId())), PatientWeight.class); | |
2904 | - if (pw != null) { | |
2903 | + | |
2904 | + PatientWeight pw = null; | |
2905 | + List<PatientWeight> pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid())), PatientWeight.class); | |
2906 | + if (CollectionUtils.isNotEmpty(pws)) { | |
2907 | + pw = pws.get(0); | |
2905 | 2908 | patientBaseResult.setPwId(pw.getId()); |
2906 | 2909 | } |
2907 | 2910 | //高危报告权限判断 |