Commit 550bbea3d8c69e58dc725517906ef50b684a66ff
1 parent
9908050290
Exists in
master
and in
1 other branch
code update
Showing 1 changed file with 6 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
550bbea
... | ... | @@ -870,19 +870,22 @@ |
870 | 870 | organizationQuery.setYn(YnEnums.YES.getId()); |
871 | 871 | organizationQuery.setKeyword(keyWord); |
872 | 872 | |
873 | - Map<String,String> map = new HashMap<>(); | |
873 | + | |
874 | + List<Map<String,String>> mapList = new ArrayList<>(); | |
874 | 875 | List<Organization> orgs = organizationService.queryHospitals(organizationQuery); |
875 | 876 | if (CollectionUtils.isNotEmpty(orgs)) |
876 | 877 | { |
877 | 878 | for(Organization org : orgs) |
878 | 879 | { |
880 | + Map<String,String> map = new HashMap<>(); | |
879 | 881 | map.put("id",org.getId()+""); |
880 | - map.put("name",org.getName()); | |
882 | + map.put("name", org.getName()); | |
883 | + mapList.add(map); | |
881 | 884 | } |
882 | 885 | } |
883 | 886 | |
884 | 887 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
885 | - objectResponse.setData(map); | |
888 | + objectResponse.setData(mapList); | |
886 | 889 | |
887 | 890 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
888 | 891 | objectResponse.setErrormsg("成功"); |