Commit f85dffad by chamberone

fix: 更新组织结构权限状态字段

1 parent 7b8df1cb
...@@ -175,7 +175,13 @@ public class UserService { ...@@ -175,7 +175,13 @@ public class UserService {
}).flatMap(a -> a.stream()).collect(Collectors.toList()); }).flatMap(a -> a.stream()).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(allOrgs)) { if (CollectionUtils.isNotEmpty(allOrgs)) {
// 设置第一个为当前权限等级 // 设置第一个为当前权限等级
allOrgs.get(0).setIsActive(true); for (int i = 0; i < allOrgs.size(); i++) {
if (i == 0) {
allOrgs.get(i).setIsActive(true);
} else {
allOrgs.get(i).setIsActive(false);
}
}
} }
userDTO.setAuths(allOrgs); userDTO.setAuths(allOrgs);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!