Commit a781bcb6c519b9cd5f64feb041bd530ad347b7fe
1 parent
ef9e560402
Exists in
master
and in
6 other branches
听力诊断模块
Showing 1 changed file with 6 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/EarController.java
View file @
a781bcb
| ... | ... | @@ -172,14 +172,16 @@ |
| 172 | 172 | if (StringUtils.isEmpty(babyId)) {//传入儿童档案id |
| 173 | 173 | return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("请传入儿童档案id"); |
| 174 | 174 | } |
| 175 | + //当前登录人医院Id | |
| 176 | + String hospitalId = autoMatchFacade.getHospitalId(loginState.getId()); | |
| 175 | 177 | |
| 176 | - | |
| 177 | 178 | //查询儿童听力基础信息 |
| 178 | 179 | //根据babyId查询是否存 |
| 179 | 180 | BabyPatientExtendEarQuery earQuery = new BabyPatientExtendEarQuery(); |
| 180 | - earQuery.setBabyPatientId(babyId); | |
| 181 | - //当前登录人医院Id | |
| 182 | - String hospitalId = autoMatchFacade.getHospitalId(loginState.getId()); | |
| 181 | + | |
| 182 | + List<String> babyIds = babyEarFacade.getBabyIdsByItemOrg(babyId,hospitalId); | |
| 183 | + earQuery.setBabyPatientIds((String[]) babyIds.toArray(new String[babyIds.size()])); | |
| 184 | + | |
| 183 | 185 | //获取院内医院集合 |
| 184 | 186 | List hospiIds = babyEarFacade.getOrgHospitalIds(hospitalId); |
| 185 | 187 | earQuery.setCreateHospitalIds((String[]) hospiIds.toArray(new String[hospiIds.size()])); |