Commit 41f925bc629adb7d1f1ad00ae94e80af14de2732

Authored by liquanyu
1 parent ec8b5713e2

产检

Showing 1 changed file with 22 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 41f925b
... ... @@ -2502,12 +2502,32 @@
2502 2502 }
2503 2503  
2504 2504 if (StringUtils.isNotEmpty(vcCardNo)) {
  2505 +
  2506 + PatientsQuery pquery = new PatientsQuery();
  2507 +
2505 2508 //德州市妇幼保健院医院通过(就诊卡号、银行卡号,社保卡号) 查询出对应的用过的卡号 add lqy
2506 2509 if ("1000000114".equals(hospitalIds)) {
2507   - patientsQuery.setVcCardNos(dzfyHisService.getDzVcCardNos(vcCardNo));
  2510 + pquery.setVcCardNos(dzfyHisService.getDzVcCardNos(vcCardNo));
2508 2511 } else {
2509   - patientsQuery.setVcCardNo(vcCardNo);
  2512 + pquery.setVcCardNo(vcCardNo);
2510 2513 }
  2514 +
  2515 + pquery.setHospitalList(hospitalIds);
  2516 + pquery.setYn(YnEnums.YES.getId());
  2517 + pquery.setBuildType(1);
  2518 + if (isEnable) {
  2519 + pquery.setEnable("2");
  2520 + }
  2521 +
  2522 + List<Patients> list = patientsService.queryPatient1(pquery,"created");
  2523 + if (CollectionUtils.isNotEmpty(list)) {
  2524 + patientsQuery.setCardNo(list.get(0).getCardNo());
  2525 + }
  2526 + else
  2527 + {
  2528 + return null;
  2529 + }
  2530 +
2511 2531 }
2512 2532  
2513 2533 patientsQuery.setType(type);