Commit 2bb8670a496e656f869b32bbd60797222b3a09c3

Authored by liquanyu
1 parent 170f5400b1

德州his添加社保卡和银行卡

Showing 1 changed file with 13 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ 2bb8670
... ... @@ -952,8 +952,19 @@
952 952 //否则用就诊卡号 查询到这个孕妇的身份证号码 再用身份证号码查询该孕妇的所有建档 包括产妇记录
953 953 else if (!StringUtils.isEmpty(bookbuildingQueryRequest.getVcCardNo())) {
954 954  
955   - patientsQuery.setVcCardNo(bookbuildingQueryRequest.getVcCardNo());
956   - patientsQuery.setHospitalId(autoMatchFacade.getHospitalId(userId));
  955 + String hospitalId = autoMatchFacade.getHospitalId(userId);
  956 +
  957 + //德州市妇幼保健院医院通过(就诊卡号、银行卡号,社保卡号) 查询出对应的用过的卡号 add lqy
  958 + if ("1000000114".equals(hospitalId))
  959 + {
  960 + patientsQuery.setVcCardNos(dzfyHisService.getDzVcCardNos(bookbuildingQueryRequest.getVcCardNo()));
  961 + }
  962 + else
  963 + {
  964 + patientsQuery.setVcCardNo(bookbuildingQueryRequest.getVcCardNo());
  965 + }
  966 +
  967 + patientsQuery.setHospitalId(hospitalId);
957 968 //优先查询本院通过就诊卡
958 969 List<Patients> localPatients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery);
959 970 patientsQuery.setHospitalId(null);