Commit 98f7991084ebd0504ad682827fdee345e22076b2
1 parent
f0e4cbdf7b
Exists in
master
and in
6 other branches
a
Showing 1 changed file with 2 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RolesController.java
View file @
98f7991
... | ... | @@ -395,21 +395,14 @@ |
395 | 395 | rolesQuery.setLimit(limit); |
396 | 396 | rolesQuery.setEnable(enable); |
397 | 397 | List list =new ArrayList(); |
398 | - /* if(StringUtils.isNotEmpty(orgIds)){ | |
398 | + if(StringUtils.isNotEmpty(orgIds)){ | |
399 | 399 | String[] as =orgIds.split(","); |
400 | 400 | for(String a :as){ |
401 | 401 | list.add(Integer.valueOf(a)); |
402 | 402 | } |
403 | 403 | } |
404 | -*/ | |
404 | +/**/ | |
405 | 405 | |
406 | - | |
407 | - List<Organization> organizations = accessPermissionFacade.getOrganization(accessPermissionFacade.findAccessPerminssionByUserId(loginState.getId())); | |
408 | - if (CollectionUtils.isNotEmpty(organizations)) { | |
409 | - for (Organization organization : organizations) { | |
410 | - list .add(organization.getId()); | |
411 | - } | |
412 | - } | |
413 | 406 | rolesQuery.setOrgIds(list); |
414 | 407 | List<Roles> roles = rolesService.queryRoles(rolesQuery); |
415 | 408 | List<Roles> rolesList = new ArrayList<>(); |