用户管理添加根据账户、父账户条件查询
This commit is contained in:
parent
680edf87e7
commit
bb28a0ab7d
@ -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()));
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,10 @@ public class UserQueryVO extends PageQueryVO {
|
|||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
private String account;
|
||||||
|
|
||||||
|
private String parentAccount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 真实姓名
|
* 真实姓名
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user