refactor(用户组和权限): 权限菜单分级展示
This commit is contained in:
parent
1263d9f443
commit
4350078392
|
@ -119,10 +119,7 @@ public class GroupService {
|
||||||
List<GroupResource> resource = group.getResource();
|
List<GroupResource> resource = group.getResource();
|
||||||
List<GroupPermission> permissions = group.getPermissions();
|
List<GroupPermission> permissions = group.getPermissions();
|
||||||
List<GroupResourceDTO> dtoPermissions = dto.getPermissions();
|
List<GroupResourceDTO> dtoPermissions = dto.getPermissions();
|
||||||
List<String> groups = map.get(type);
|
dtoPermissions.addAll(getResourcePermission(resource, permissions, type, permissionList));
|
||||||
for (String gp : groups) {
|
|
||||||
dtoPermissions.addAll(getResourcePermission(resource, permissions, gp, permissionList));
|
|
||||||
}
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue