Showing
2 changed files
with
2 additions
and
2 deletions
... | ... | @@ -101,7 +101,7 @@ public enum ErrorMessage { |
101 | 101 | NAME_OR_IDENTIFIER_IS_EMPTY(400077,"【%s】的名称或标识符不能为空或空字符串"), |
102 | 102 | IDENTIFIER_ALREADY_EXISTS(400078,"标识符【%s】已经存在"), |
103 | 103 | DEVICE_IDENTIFIER_REPEATED(400079,"设备地址码或标识码【%s】与设备【%s】重复"), |
104 | - CURRENT_ROLE_IN_USE(400080,"当前角色正在被【%s】使用,不能被禁用"), | |
104 | + CURRENT_DATA_IN_USE(400080,"当前数据正在被【%s】使用,不能被禁用"), | |
105 | 105 | HAVE_NO_PERMISSION(500002,"没有修改权限"); |
106 | 106 | private final int code; |
107 | 107 | private String message; | ... | ... |
... | ... | @@ -146,7 +146,7 @@ public class SysRoleServiceImpl extends AbstractBaseService<RoleMapper, SysRoleE |
146 | 146 | SysUserEntity entity = userMapper.selectById(entities.get(0).getUserId()); |
147 | 147 | if (null != entity) { |
148 | 148 | throw new TkDataValidationException( |
149 | - String.format(ErrorMessage.CURRENT_ROLE_IN_USE.getMessage(), entity.getRealName())); | |
149 | + String.format(ErrorMessage.CURRENT_DATA_IN_USE.getMessage(), entity.getRealName())); | |
150 | 150 | } |
151 | 151 | } |
152 | 152 | } | ... | ... |