Commit c7c4efb9bdfdb0b2196ee5d16499a95f9a591061
1 parent
63cc8cc6b7
Exists in
master
and in
8 other branches
修改查询医院方法-只查询有权限的医院
Showing 1 changed file with 14 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
c7c4efb
... | ... | @@ -1447,7 +1447,14 @@ |
1447 | 1447 | List<String> hospitalIdList = new ArrayList<>(); |
1448 | 1448 | if(request.getHospitalId()==null){ |
1449 | 1449 | // 没有传入医院,取所有有权限的医院 |
1450 | - List<Organization> organizationList = organizationService.queryHospital(); | |
1450 | + OrganizationQuery organizationQuery = new OrganizationQuery(); | |
1451 | + List<Integer> typeList = new ArrayList<>(); | |
1452 | + typeList.add(OrganizationTypeEnum.NY.getId()); | |
1453 | + typeList.add(OrganizationTypeEnum.FB.getId()); | |
1454 | + typeList.add(OrganizationTypeEnum.JMQY.getId()); | |
1455 | + typeList.add(OrganizationTypeEnum.TY.getId()); | |
1456 | + organizationQuery.setTypeList(typeList); | |
1457 | + List<Organization> organizationList = organizationService.queryOrganization(organizationQuery); | |
1451 | 1458 | for (Organization organization : organizationList) { |
1452 | 1459 | hospitalIdList.add(String.valueOf(organization.getId())); |
1453 | 1460 | } |
... | ... | @@ -1880,6 +1887,12 @@ |
1880 | 1887 | QueryHospitalListResult queryHospitalListResult = new QueryHospitalListResult(); |
1881 | 1888 | OrganizationQuery organizationQuery = new OrganizationQuery(); |
1882 | 1889 | BeanUtils.copy(queryHospitalListRequest,organizationQuery); |
1890 | + List<Integer> typeList = new ArrayList<>(); | |
1891 | + typeList.add(OrganizationTypeEnum.NY.getId()); | |
1892 | + typeList.add(OrganizationTypeEnum.FB.getId()); | |
1893 | + typeList.add(OrganizationTypeEnum.JMQY.getId()); | |
1894 | + typeList.add(OrganizationTypeEnum.TY.getId()); | |
1895 | + organizationQuery.setTypeList(typeList); | |
1883 | 1896 | List<Organization> organizationList = organizationService.queryOrganization(organizationQuery); |
1884 | 1897 | List<HospitalQueryModel> hospitalQueryModelList = new ArrayList<>(); |
1885 | 1898 | if (organizationList!=null&&organizationList.size()>0){ |