From c604c2de98447af15efaf594cf2940aa78203b67 Mon Sep 17 00:00:00 2001 From: hebo <13216192626@163.com> Date: 星期一, 13 九月 2021 21:21:19 +0800 Subject: [PATCH] fix 代码生成-当表未设置主键时第一个字段重复生成 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java index 20f6325..28c9f15 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java @@ -104,6 +104,7 @@ @GetMapping(value = { "/", "/{userId}" }) public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) { + userService.checkUserDataScope(userId); Map<String, Object> ajax = new HashMap<>(); List<SysRole> roles = roleService.selectRoleAll(); ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); -- Gitblit v1.9.3