Commit abdd54b8a2f82dd1752e095760ef0102a55f0b0d
1 parent
0e1bd41549
Exists in
dev
#fix:优化产妇查询体重记录逻辑
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
abdd54b
... | ... | @@ -3809,7 +3809,7 @@ |
3809 | 3809 | |
3810 | 3810 | PatientWeight pw = null; |
3811 | 3811 | // List<PatientWeight> pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid())), PatientWeight.class); |
3812 | - List<PatientWeight> pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid()).and("type").is(1).and("hospitalId").is(hospitalId)), PatientWeight.class); | |
3812 | + List<PatientWeight> pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid()).and("type").is(patients.getType()).and("hospitalId").is(hospitalId)), PatientWeight.class); | |
3813 | 3813 | if (CollectionUtils.isNotEmpty(pws)) { |
3814 | 3814 | pw = pws.get(0); |
3815 | 3815 | patientBaseResult.setPwId(pw.getId()); |