Commit 0bd39a06e1b2835ead3ca0a7a5f5283dc9b6db78
1 parent
6d083b4d40
Exists in
master
and in
1 other branch
查询孕妇基本信息接口
Showing 1 changed file with 5 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
0bd39a0
| ... | ... | @@ -813,6 +813,8 @@ |
| 813 | 813 | */ |
| 814 | 814 | public BaseObjectResponse queryBabyBuildRecord(BookbuildingQueryRequest param) { |
| 815 | 815 | |
| 816 | + Map<String,Object> map = new HashMap<>(); | |
| 817 | + | |
| 816 | 818 | List<BabyInfoResult> results = new ArrayList<>(); |
| 817 | 819 | BabyModelQuery babyQuery = new BabyModelQuery(); |
| 818 | 820 | babyQuery.setYn(YnEnums.YES.getId()); |
| ... | ... | @@ -825,6 +827,8 @@ |
| 825 | 827 | puerperaQuery.setCardNo(param.getCardNo()); |
| 826 | 828 | puerperaQuery.setYn(YnEnums.YES.getId()); |
| 827 | 829 | Patients patients = patientsService.findOnePatientByCardNo(puerperaQuery); |
| 830 | + map.put("patients",patients); | |
| 831 | + | |
| 828 | 832 | if (patients != null && StringUtils.isNotEmpty(patients.getPhone())) { |
| 829 | 833 | babyQuery.setPhoneId(patients.getPhone()); |
| 830 | 834 | } |
| ... | ... | @@ -878,6 +882,7 @@ |
| 878 | 882 | } |
| 879 | 883 | } |
| 880 | 884 | |
| 885 | + map.put("records",results); | |
| 881 | 886 | |
| 882 | 887 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
| 883 | 888 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |