根据roleKey获取用户列表
This commit is contained in:
parent
0c631ec70f
commit
8fa55acb45
|
|
@ -92,6 +92,22 @@ public class SysUserController extends BaseController {
|
||||||
return getDataTableError(new ArrayList<>());
|
return getDataTableError(new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth(isUser = false), requiresPermissions = @RequiresPermissions("system:user:list"))
|
||||||
|
@PostMapping("/listByPost")
|
||||||
|
@SysLog(title = "用户管理", businessType = OperaType.QUERY, logType = 0, module = "系统管理->用户管理", details = "查询用户列表")
|
||||||
|
public TableDataInfo listByPost(@RequestBody SysUser user) {
|
||||||
|
try {
|
||||||
|
if (user.isPagination()) {
|
||||||
|
startPage();
|
||||||
|
}
|
||||||
|
List<SysUser> list = userService.selectUserList(user);
|
||||||
|
return getDataTable(list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error(e.toString(), e);
|
||||||
|
}
|
||||||
|
return getDataTableError(new ArrayList<>());
|
||||||
|
}
|
||||||
|
|
||||||
@RequiresPermissions("system:user:export")
|
@RequiresPermissions("system:user:export")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
@SysLog(title = "用户管理", businessType = OperaType.EXPORT, logType = 0, module = "系统管理->用户管理", details = "导出用户信息")
|
@SysLog(title = "用户管理", businessType = OperaType.EXPORT, logType = 0, module = "系统管理->用户管理", details = "导出用户信息")
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,12 @@
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="roles != null and roles.size() > 0">
|
||||||
|
and r.role_key in
|
||||||
|
<foreach collection="roles" item="item" index="index" separator="," open="(" close=")">
|
||||||
|
#{item.roleKey}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
<if test="userIds != null and userIds.length > 0">
|
<if test="userIds != null and userIds.length > 0">
|
||||||
and u.user_id in
|
and u.user_id in
|
||||||
<foreach collection="userIds" item="item" index="index" separator="," open="(" close=")">
|
<foreach collection="userIds" item="item" index="index" separator="," open="(" close=")">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue