diff --git a/src/main/java/club/joylink/rtss/services/SysUserService.java b/src/main/java/club/joylink/rtss/services/SysUserService.java index 0c879dcdf..9c452ee7f 100644 --- a/src/main/java/club/joylink/rtss/services/SysUserService.java +++ b/src/main/java/club/joylink/rtss/services/SysUserService.java @@ -262,6 +262,12 @@ public class SysUserService implements ISysUserService { if (queryVO.getId() != null) { criteria.andIdEqualTo(queryVO.getId()); } + if (StringUtils.hasText(queryVO.getAccount())) { + criteria.andAccountLike(String.format("%%%s%%", queryVO.getAccount())); + } + if (StringUtils.hasText(queryVO.getParentAccount())) { + criteria.andParentAccountLike(String.format("%%%s%%", queryVO.getParentAccount())); + } if (StringUtils.hasText(queryVO.getName())) { criteria.andNameLike(String.format("%%%s%%", queryVO.getName())); } diff --git a/src/main/java/club/joylink/rtss/vo/UserQueryVO.java b/src/main/java/club/joylink/rtss/vo/UserQueryVO.java index 99810d91f..8c93faa3f 100644 --- a/src/main/java/club/joylink/rtss/vo/UserQueryVO.java +++ b/src/main/java/club/joylink/rtss/vo/UserQueryVO.java @@ -17,6 +17,10 @@ public class UserQueryVO extends PageQueryVO { private Long id; + private String account; + + private String parentAccount; + /** * 真实姓名 */