Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuankang134 committed Mar 7, 2024
1 parent 6f15ef3 commit 6726c2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public List<DSSWorkspaceUserVO> getWorkspaceUsers(String workspaceId, String dep
String roleId = StringUtils.isBlank(roleName) ? null : String.valueOf(workspaceDBHelper.getRoleIdByName(roleName));
PageHelper.startPage(pageNow, pageSize);
// 转译用户名模糊查询中的特殊字符
String queryName = username.contains("_") ? username.split("_")[0] + "\\" + username.split("_")[1] : username;
String queryName = StringUtils.isNotEmpty(username) && username.contains("_") ? username.split("_")[0] + "\\" + username.split("_")[1] : username;
List<DSSWorkspaceUser> workspaceUsers = dssWorkspaceUserMapper.getWorkspaceUsers(workspaceId, queryName, roleId);
PageInfo<DSSWorkspaceUser> pageInfo = new PageInfo<>(workspaceUsers);
total.add(pageInfo.getTotal());
Expand Down

0 comments on commit 6726c2c

Please sign in to comment.