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());