From 4e04a9a35f2cae3adc8f934513a305339520765c Mon Sep 17 00:00:00 2001 From: liquanyu Date: Wed, 27 Apr 2022 16:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E9=87=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lyms/platform/operate/web/facade/PatientFacade.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 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 de76bf4..5cd45f4 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 @@ -3026,13 +3026,7 @@ public class PatientFacade extends BaseServiceImpl { } public BaseResponse findPatient2(PatientQueryRequest patientQueryRequest, Integer userId) { -// PatientsQuery patientsQuery = new PatientsQuery(); -// patientsQuery.setPid(patientQueryRequest.getPid()); -// patientsQuery.setId(patientQueryRequest.getId()); -//// patientsQuery.setPhone(patientQueryRequest.getPhone()); -// patientsQuery.setPhone(patientQueryRequest.getVcCardNo()); -// patientsQuery.setCardNo(patientQueryRequest.getCardNo()); -// patientsQuery.setVcCardNo(patientQueryRequest.getVcCardNo()); + String hospitalId= autoMatchFacade.getHospitalId(userId); Integer type = patientQueryRequest.getType() != null ? patientQueryRequest.getType() : -1; Patients patients = antenatalExaminationFacade.findOnePatient(patientQueryRequest.getCardNo(), @@ -3075,7 +3069,7 @@ public class PatientFacade extends BaseServiceImpl { PatientWeight pw = null; // List pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid())), PatientWeight.class); - List pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid()).and("type").is(1)), PatientWeight.class); + List pws = mongoTemplate.find(Query.query(Criteria.where("pid").is(patientBaseResult.getPid()).and("type").is(1).and("hospitalId").is(hospitalId)), PatientWeight.class); if (CollectionUtils.isNotEmpty(pws)) { pw = pws.get(0); patientBaseResult.setPwId(pw.getId()); -- 1.8.3.1