Skip to content

Commit

Permalink
[Feature][API] Tenant management list is isolated by cluster (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
chyueyi authored Jul 12, 2023
1 parent 289af53 commit 1606494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private boolean hasRepeatUserName(Integer clusterId, String username) {
public Result listPage(Integer clusterId, String username, Integer page, Integer pageSize) {
Integer offset = (page - 1) * pageSize;
List<ClusterUser> list = this.list(new QueryWrapper<ClusterUser>().like(Constants.USERNAME, username)
.eq(Constants.CLUSTER_ID, clusterId)
.last("limit " + offset + "," + pageSize));
for (ClusterUser clusterUser : list) {
ClusterGroup mainGroup = userGroupService.queryMainGroup(clusterUser.getId());
Expand Down
1 change: 1 addition & 0 deletions datasophon-ui/src/pages/systemCenter/user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export default {
getUserList(key) {
this.loading = true;
let params = {
clusterId: Number(localStorage.getItem("clusterId") || -1),
pageSize: this.pagination.pageSize,
page: this.pagination.current,
};
Expand Down

0 comments on commit 1606494

Please sign in to comment.