Commit fc38dd0a1ca5ce8d13c31870cafcc61c31feb2c9
1 parent
6c68ea62b1
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 4 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
View file @
fc38dd0
| ... | ... | @@ -723,11 +723,13 @@ |
| 723 | 723 | babyQuery.setMcertNo(StringUtils.isEmpty(cardNo) ? null : cardNo); |
| 724 | 724 | babyQuery.setVcCardNo(StringUtils.isEmpty(vcCardNo) ? null : vcCardNo); |
| 725 | 725 | babyQuery.setYn(YnEnums.YES.getId()); |
| 726 | - babyQuery.setHospitalId(hospitalId); | |
| 727 | 726 | |
| 727 | + List<String> hList = groupsFacade.findGroupHospital(userId, false); | |
| 728 | + babyQuery.setHospitalIdList(hList); | |
| 729 | + | |
| 728 | 730 | List<BabyModel> models = babyBookbuildingService.queryBabyBuildByCond(babyQuery); |
| 729 | 731 | for (BabyModel model : models) { |
| 730 | - if (model != null && model.getHospitalId() != null && model.getHospitalId().equals(hospitalId)) { | |
| 732 | + if (model != null && model.getHospitalId() != null && hList.contains(hospitalId)) { | |
| 731 | 733 | isBuild = true; |
| 732 | 734 | } |
| 733 | 735 | BabyChooseResult result = new BabyChooseResult(); |