Commit 32a7777dc5e90c34643c11b15bfb643f27ce4fd0

Authored by wtt
1 parent f98d602071

update

Showing 1 changed file with 2 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java View file @ 32a7777
... ... @@ -2902,7 +2902,8 @@
2902 2902 }
2903 2903  
2904 2904 PatientWeight pw = null;
2905   - List<PatientWeight> pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid())), PatientWeight.class);
  2905 +// List<PatientWeight> pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid())), PatientWeight.class);
  2906 + List<PatientWeight> pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid()).and("type").is(1)), PatientWeight.class);
2906 2907 if (CollectionUtils.isNotEmpty(pws)) {
2907 2908 pw = pws.get(0);
2908 2909 patientBaseResult.setPwId(pw.getId());