Commit 416e4197a47e8c6753f0d210544b3a172541517d

Authored by yangfei
1 parent 0b4254f3a7

导出产检医生统计

Showing 1 changed file with 21 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java View file @ 416e419
... ... @@ -480,7 +480,27 @@
480 480 BaseObjectResponse br = new BaseObjectResponse();
481 481 BabyBasicResult base = new BabyBasicResult();
482 482 Map<String, Object> resMap = new HashMap<>();
483   - getBabyModel(id, base);
  483 +
  484 + BabyModel model = getBabyModel(id, base);
  485 + BabyModelQuery babyQuery = new BabyModelQuery();
  486 + babyQuery.setPid(model.getPid());
  487 + babyQuery.setYn(YnEnums.YES.getId());
  488 +
  489 + //查询儿童的基本信息
  490 + List<BabyModel> models = babyBookbuildingService.queryBabyBuildByCond(babyQuery);
  491 +
  492 + if (CollectionUtils.isNotEmpty(models)) {
  493 +
  494 + PatientsQuery patientsQuery = new PatientsQuery();
  495 + patientsQuery.setId(model.getParentId());
  496 + patientsQuery.setYn(YnEnums.YES.getId());
  497 +
  498 + List<Patients> personModels = patientsService.queryPatient(patientsQuery);
  499 + if (CollectionUtils.isNotEmpty(personModels)) {
  500 + Patients personModel = personModels.get(0);
  501 + base.setPregnantCertificateTypeId(personModel.getHcertificateTypeId());
  502 + }
  503 + }
484 504 resMap.put("baseInfo", base);
485 505 br.setData(resMap);
486 506 br.setErrorcode(ErrorCodeConstants.SUCCESS);