From ac214acb8a90356cfb18971219fb3f8f7c81cf57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=A4=E9=94=A6=E7=A7=91?= <32996823@qq.com> Date: Wed, 30 Oct 2024 11:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=A7=92=E8=89=B2=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ktg/web/controller/system/SysRoleController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ktg-admin/src/main/java/com/ktg/web/controller/system/SysRoleController.java b/ktg-admin/src/main/java/com/ktg/web/controller/system/SysRoleController.java index 8377fd2..7745a0d 100644 --- a/ktg-admin/src/main/java/com/ktg/web/controller/system/SysRoleController.java +++ b/ktg-admin/src/main/java/com/ktg/web/controller/system/SysRoleController.java @@ -95,7 +95,7 @@ public class SysRoleController extends BaseController } else if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role))) { - return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在"); + return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色编码已存在"); } role.setCreateBy(getUsername()); return toAjax(roleService.insertRole(role)); @@ -118,7 +118,7 @@ public class SysRoleController extends BaseController } else if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role))) { - return AjaxResult.error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在"); + return AjaxResult.error("修改角色'" + role.getRoleName() + "'失败,角色编码已存在"); } role.setUpdateBy(getUsername());