Commit f713488d8a14b4cc938b7d9ea3d7a077c89131d5
1 parent
e781e8825d
Exists in
master
and in
6 other branches
用户当前机构增加街道
Showing 1 changed file with 9 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/UsersController.java
View file @
f713488
| ... | ... | @@ -675,7 +675,15 @@ |
| 675 | 675 | } |
| 676 | 676 | organization.setArea(map); |
| 677 | 677 | } |
| 678 | - | |
| 678 | + if (null != organization && StringUtils.isNotEmpty(organization.getStreetId())) { | |
| 679 | + BasicConfig bg = basicConfigService.getOneBasicConfigById(organization.getStreetId()); | |
| 680 | + Map<String, String> map = new HashMap<>(); | |
| 681 | + map.put("id", organization.getAreaId()); | |
| 682 | + if (null != bg) { | |
| 683 | + map.put("name", bg.getName()); | |
| 684 | + } | |
| 685 | + organization.setStreet(map); | |
| 686 | + } | |
| 679 | 687 | organizations.add(organization); |
| 680 | 688 | users.setOrganization(organization); |
| 681 | 689 | //是否是建档医院 |