diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/SysUserController.java index bbe85e2..b3313bf 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/SysUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/SysUserController.java @@ -352,8 +352,8 @@ public class SysUserController extends BaseController { @PostMapping("/userList") @ResponseBody public AjaxResult userList() { - SysUser sysUser = new SysUser(); - return AjaxResult.success(userService.selectUserList(sysUser)); + return AjaxResult.success(userService.lambdaQuery(). + select(SysUser::getUserId,SysUser::getUserName).list()); }