From 4a38a291642c203c250101ea301759778fcbfed9 Mon Sep 17 00:00:00 2001 From: qiaoyuewang Date: Sun, 6 Apr 2025 01:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=AA=8C=E8=AF=81=E6=A1=A3?= =?UTF-8?q?=E6=A1=88=E5=8F=B7=E4=BB=A5=E5=8F=8A=E9=AB=98=E5=8D=B1=E6=A1=A3?= =?UTF-8?q?=E6=A1=88=E5=8F=B7=E6=9F=A5=E8=AF=A2=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java | 9 ++++----- .../java/com/lyms/platform/operate/web/facade/ViewFacade.java | 6 ++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java b/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java index 227f2b9..6caba35 100644 --- a/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java +++ b/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java @@ -66,17 +66,16 @@ public class PatientDaoImpl extends BaseMongoDAOImpl implements IPatie //根据档案号查询患者 Query query = new Query(); query.addCriteria(Criteria.where("fileCode").is(fileCode)); - Patients patients = findOne(query); - return patients; + return mongoTemplate.findOne(query, Patients.class); + } @Override public Patients findOnePatientByHighRiskDocNo(String highRiskDocNo) { //根据档高危案号查询患者 Query query = new Query(); - query.addCriteria(Criteria.where("highRiskDocNo").is(highRiskDocNo)); - Patients patients = findOne(query); - return patients; + query.addCriteria(Criteria.where("highRiskFileCode").is(highRiskDocNo)); + return mongoTemplate.findOne(query, Patients.class); } @Override diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java index c3de4dc..2bd54b2 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java @@ -1791,7 +1791,8 @@ public class ViewFacade { return br; } - if(data.getFileCode()!=null && data.getFileCode().length()>0){ + if(data !=null && data.getFileCode().length()>0){ + System.out.println("请求额返回信息"+data.toString()); br.setErrorcode(200); br.setErrormsg("该档案号已经被使用过了,请重新输入"); return br; @@ -1811,7 +1812,8 @@ public class ViewFacade { return br; } - if(data.getHighRiskFileCode()!=null && data.getHighRiskFileCode().length()>0){ + if(data !=null && data.getHighRiskFileCode().length()>0){ + System.out.println("请求额返回信息"+data.toString()); br.setErrorcode(200); br.setErrormsg("该高危档案号已经被使用过了,请重新输入"); return br; -- 1.8.3.1