用户管理添加根据账户、父账户条件查询

This commit is contained in:
walker-sheng 2021-06-11 09:21:23 +08:00
parent 680edf87e7
commit bb28a0ab7d
2 changed files with 10 additions and 0 deletions

View File

@ -262,6 +262,12 @@ public class SysUserService implements ISysUserService {
if (queryVO.getId() != null) { if (queryVO.getId() != null) {
criteria.andIdEqualTo(queryVO.getId()); 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())) { if (StringUtils.hasText(queryVO.getName())) {
criteria.andNameLike(String.format("%%%s%%", queryVO.getName())); criteria.andNameLike(String.format("%%%s%%", queryVO.getName()));
} }

View File

@ -17,6 +17,10 @@ public class UserQueryVO extends PageQueryVO {
private Long id; private Long id;
private String account;
private String parentAccount;
/** /**
* 真实姓名 * 真实姓名
*/ */