From 2bb8670a496e656f869b32bbd60797222b3a09c3 Mon Sep 17 00:00:00 2001 From: liquanyu Date: Mon, 18 Dec 2017 10:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=B7=E5=B7=9Ehis=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=A4=BE=E4=BF=9D=E5=8D=A1=E5=92=8C=E9=93=B6=E8=A1=8C=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/facade/BookbuildingFacade.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java index 5427c5b..becb16e 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java @@ -952,8 +952,19 @@ public class BookbuildingFacade { //否则用就诊卡号 查询到这个孕妇的身份证号码 再用身份证号码查询该孕妇的所有建档 包括产妇记录 else if (!StringUtils.isEmpty(bookbuildingQueryRequest.getVcCardNo())) { - patientsQuery.setVcCardNo(bookbuildingQueryRequest.getVcCardNo()); - patientsQuery.setHospitalId(autoMatchFacade.getHospitalId(userId)); + String hospitalId = autoMatchFacade.getHospitalId(userId); + + //德州市妇幼保健院医院通过(就诊卡号、银行卡号,社保卡号) 查询出对应的用过的卡号 add lqy + if ("1000000114".equals(hospitalId)) + { + patientsQuery.setVcCardNos(dzfyHisService.getDzVcCardNos(bookbuildingQueryRequest.getVcCardNo())); + } + else + { + patientsQuery.setVcCardNo(bookbuildingQueryRequest.getVcCardNo()); + } + + patientsQuery.setHospitalId(hospitalId); //优先查询本院通过就诊卡 List localPatients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery); patientsQuery.setHospitalId(null); -- 1.8.3.1