From 09f7d80fa586306593b64ee6ad04188bebdecd23 Mon Sep 17 00:00:00 2001 From: renzexin Date: Wed, 21 Aug 2024 14:41:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BC=98=E5=8C=96=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=B7=BB=E5=8A=A0=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/chushang/system/controller/RoleController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chushang-modules/chushang-module-system/system-service/src/main/java/com/chushang/system/controller/RoleController.java b/chushang-modules/chushang-module-system/system-service/src/main/java/com/chushang/system/controller/RoleController.java index 4c3beeb..8b42c5b 100644 --- a/chushang-modules/chushang-module-system/system-service/src/main/java/com/chushang/system/controller/RoleController.java +++ b/chushang-modules/chushang-module-system/system-service/src/main/java/com/chushang/system/controller/RoleController.java @@ -89,12 +89,12 @@ public class RoleController { { return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色名称已存在"); } - else if (roleService.checkRoleKeyUnique(role)) - { - return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在"); - } +// else if (roleService.checkRoleKeyUnique(role)) +// { +// return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在"); +// } role.setCreateBy(SecurityUtils.getUsername()); - + role.setRoleKey(role.getRoleName()); roleService.saveRole(role); return AjaxResult.success();