mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-07 23:57:20 +08:00
修复bug: 角色删除报错,和删除部门、删除岗位问题
This commit is contained in:
@@ -214,7 +214,7 @@ class SystemAuthDeptServiceImpl implements ISystemAuthDeptService {
|
||||
|
||||
SystemAuthAdmin systemAuthAdmin = systemAuthAdminMapper.selectOne(new QueryWrapper<SystemAuthAdmin>()
|
||||
.select("id,nickname")
|
||||
.eq("dept_id", id)
|
||||
.apply("find_in_set({0}, dept_ids)", id)
|
||||
.eq("is_delete", 0)
|
||||
.last("limit 1"));
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ public class SystemAuthPostServiceImpl implements ISystemAuthPostService {
|
||||
|
||||
SystemAuthAdmin systemAuthAdmin = systemAuthAdminMapper.selectOne(new QueryWrapper<SystemAuthAdmin>()
|
||||
.select("id,nickname")
|
||||
.eq("post_id", id)
|
||||
.apply("find_in_set({0}, post_ids)", id)
|
||||
.eq("is_delete", 0)
|
||||
.last("limit 1"));
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ public class SystemAuthRoleServiceImpl implements ISystemAuthRoleService {
|
||||
|
||||
Assert.isNull(systemAuthAdminMapper.selectOne(new QueryWrapper<SystemAuthAdmin>()
|
||||
.select("id", "role", "nickname")
|
||||
.eq("role", id)
|
||||
.apply("find_in_set({0}, role_ids)", id)
|
||||
.eq("is_delete", 0)),
|
||||
"角色已被管理员使用,请先移除");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user