修复删除角色bug

This commit is contained in:
fzr 2023-05-12 11:00:05 +08:00
parent 4a0cbc2c5b
commit ea1ee34d8a
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ public class SystemAuthRoleServiceImpl implements ISystemAuthRoleService {
"角色已不存在!"); "角色已不存在!");
Assert.isNull(systemAuthAdminMapper.selectOne(new QueryWrapper<SystemAuthAdmin>() Assert.isNull(systemAuthAdminMapper.selectOne(new QueryWrapper<SystemAuthAdmin>()
.select("id", "role", "nickname") .select("id", "role_ids", "nickname")
.apply("find_in_set({0}, role_ids)", id) .apply("find_in_set({0}, role_ids)", id)
.eq("is_delete", 0)), .eq("is_delete", 0)),
"角色已被管理员使用,请先移除"); "角色已被管理员使用,请先移除");