修复管理员搜索bug

This commit is contained in:
TinyAnts 2022-12-02 14:18:29 +08:00
parent 327f0df6a9
commit 0077e75e85
1 changed files with 5 additions and 2 deletions

View File

@ -77,10 +77,13 @@ public class SystemAuthAdminServiceImpl implements ISystemAuthAdminService {
systemAuthAdminMapper.setSearch(mpjQueryWrapper, searchValidate, new String[]{ systemAuthAdminMapper.setSearch(mpjQueryWrapper, searchValidate, new String[]{
"like:username:str", "like:username:str",
"like:nickname:str", "like:nickname:str"
"=:role:int"
}); });
if (StringUtil.isNotNull(searchValidate.getRole())) {
mpjQueryWrapper.in("role_ids", Collections.singletonList(searchValidate.getRole()));
}
IPage<SystemAuthAdminListedVo> iPage = systemAuthAdminMapper.selectJoinPage( IPage<SystemAuthAdminListedVo> iPage = systemAuthAdminMapper.selectJoinPage(
new Page<>(page, limit), new Page<>(page, limit),
SystemAuthAdminListedVo.class, SystemAuthAdminListedVo.class,