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);