bugfix: 修复无法正确删除角色问题

This commit is contained in:
zuoqinbo 2023-12-07 10:18:36 +08:00
parent 5e70300272
commit 438d322b84

View File

@ -662,7 +662,7 @@ public class RoleServiceImpl implements RoleService {
.list();
if (CollectionUtil.isNotEmpty(saasRoleUserRelations)) {
throw new cn.axzo.basics.common.exception.ServiceException("该角色下存在关联成员,无法进行删除!");
throw new cn.axzo.basics.common.exception.ServiceException("当前角色已被用户使用,无法删除!");
}
saasRoleDao.delete(roleIds);
roleUserRelationDao.deleteByRoldId(roleIds);