|
@@ -370,7 +370,17 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
370
|
370
|
parentIdList.add(e.get("parent_id").toString());
|
371
|
371
|
});
|
372
|
372
|
List<Map<String,Object>> parentPermissionList = userMapper.selectByPermissionList(parentIdList);
|
373
|
|
- permissionList.addAll(parentPermissionList);
|
|
373
|
+ //构造权限
|
|
374
|
+ List<Map<String,Object>> allList = new ArrayList<>();
|
|
375
|
+ permissionList.stream().forEach(e -> {
|
|
376
|
+ allList.add(e);
|
|
377
|
+ parentPermissionList.stream().forEach(m -> {
|
|
378
|
+ if (!e.get("id").equals(m.get("id"))){
|
|
379
|
+ allList.add(m);
|
|
380
|
+ }
|
|
381
|
+ });
|
|
382
|
+ });
|
|
383
|
+
|
374
|
384
|
return permissionList;
|
375
|
385
|
}
|
376
|
386
|
|