Commit 4e0249ffb5bbc58ded5bf6f91a03b9208f2e92ab
1 parent
594a54ecad
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 21 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/UsersController.java
View file @
4e0249f
... | ... | @@ -492,6 +492,27 @@ |
492 | 492 | } |
493 | 493 | organization.setCity(map); |
494 | 494 | } |
495 | + | |
496 | + if(null!=organization&&StringUtils.isNotEmpty(organization.getProvinceId())){ | |
497 | + BasicConfig bg= basicConfigService.getOneBasicConfigById(organization.getProvinceId()); | |
498 | + Map<String,String> map = new HashMap<>(); | |
499 | + map.put("id",organization.getProvinceId()); | |
500 | + if(null!=bg){ | |
501 | + map.put("name",bg.getName()); | |
502 | + } | |
503 | + organization.setProvince(map); | |
504 | + } | |
505 | + | |
506 | + if(null!=organization&&StringUtils.isNotEmpty(organization.getAreaId())){ | |
507 | + BasicConfig bg= basicConfigService.getOneBasicConfigById(organization.getAreaId()); | |
508 | + Map<String,String> map = new HashMap<>(); | |
509 | + map.put("id",organization.getAreaId()); | |
510 | + if(null!=bg){ | |
511 | + map.put("name",bg.getName()); | |
512 | + } | |
513 | + organization.setArea(map); | |
514 | + } | |
515 | + | |
495 | 516 | organizations.add(organization); |
496 | 517 | users.setOrganization(organization); |
497 | 518 | //是否是建档医院 |