Commit 2ce3bb67d4ffa4b356f214a1d800c9a84d8f82c8

Authored by yangfei
1 parent 9a8f736ebb

听力诊断模块

Showing 1 changed file with 20 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyEarFacade.java View file @ 2ce3bb6
... ... @@ -485,6 +485,19 @@
485 485 List<BabyPatientExtendEarMother> babyPatientExtendEarMothers = babyPatientExtendEarMotherService.queryBabyPatientExtendEarMother(babyPatientExtendEarMotherQuery);
486 486 if (CollectionUtils.isNotEmpty(babyPatientExtendEarMothers)) {
487 487 babyEarResult.setPatientExtendEarMother(babyPatientExtendEarMothers.get(0));
  488 + }else{
  489 + BabyPatientExtendEarMother babyPatientExtendEarMother = new BabyPatientExtendEarMother();
  490 + babyPatientExtendEarMother.setAbortionHistoryType("{}");
  491 + babyPatientExtendEarMother.setViralInfectionHistoryType("{}");
  492 + babyPatientExtendEarMother.setGenitalInfectionHistoryType("{}");
  493 + babyPatientExtendEarMother.setDrugAppName("{}");
  494 + babyPatientExtendEarMother.setHarmfulSubstanceType("{}");
  495 + babyPatientExtendEarMother.setRadiationHistoryType("{}");
  496 + babyPatientExtendEarMother.setBadLifeHistoryType("{}");
  497 + babyPatientExtendEarMother.setMedicalHistoryType("{}");
  498 + babyPatientExtendEarMother.setBnormalPregnancyHistoryType("{}");
  499 + babyPatientExtendEarMother.setBadLifeHistoryType("{}");
  500 + babyEarResult.setPatientExtendEarMother(babyPatientExtendEarMother);
488 501 }
489 502  
490 503 //查詢家庭信息
... ... @@ -494,6 +507,11 @@
494 507 List<BabyPatientExtendEarFamily> babyPatientExtendEarFamilies = babyPatientExtendEarFamilyService.queryBabyPatientExtendEarFamily(babyPatientExtendEarFamilyQuery);
495 508 if (CollectionUtils.isNotEmpty(babyPatientExtendEarFamilies)) {
496 509 babyEarResult.setPatientExtendEarFamily(babyPatientExtendEarFamilies.get(0));
  510 + }else{
  511 + BabyPatientExtendEarFamily family = new BabyPatientExtendEarFamily();
  512 + family.setBadLifeHistory("{}");
  513 + family.setDeatRelationship("{}");
  514 + babyEarResult.setPatientExtendEarFamily(family);
497 515 }
498 516  
499 517 BabyPatientExtendEarBirthQuery babyPatientExtendEarBirthQuery = new BabyPatientExtendEarBirthQuery();
... ... @@ -502,6 +520,8 @@
502 520  
503 521 if (CollectionUtils.isNotEmpty(babyPatientExtendEarBirths)) {
504 522 babyEarResult.setBabyBirth(babyPatientExtendEarBirths.get(0));
  523 + }else{
  524 + babyEarResult.setBabyBirth(new BabyPatientExtendEarBirth());
505 525 }
506 526 objectResponse.setData(babyEarResult);
507 527 objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");