From bb28a0ab7d37575bdad43b2d48d466250513c274 Mon Sep 17 00:00:00 2001 From: walker-sheng Date: Fri, 11 Jun 2021 09:21:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=A0=B9=E6=8D=AE=E8=B4=A6=E6=88=B7=E3=80=81=E7=88=B6?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E6=9D=A1=E4=BB=B6=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/club/joylink/rtss/services/SysUserService.java | 6 ++++++ src/main/java/club/joylink/rtss/vo/UserQueryVO.java | 4 ++++ 2 files changed, 10 insertions(+) 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; + /** * 真实姓名 */