修复 无法取消关联组件 问题

修复 删除关联用户 还无法删除角色问题
去掉 global.user.token 无用属性
This commit is contained in:
吕金泽
2022-06-15 23:26:46 +08:00
parent 59ee88ac19
commit 54b4457af1
4 changed files with 5 additions and 4 deletions
@@ -5,7 +5,7 @@
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
"name" : "删除",
"createTime" : null,
"updateTime" : 1647618260057,
"updateTime" : 1655304921225,
"lock" : "0",
"createBy" : null,
"updateBy" : null,
@@ -55,5 +55,8 @@ if(Arrays.asList(id.split(',')).contains('1')){
for(userId in id.split(',')){
SqlCache.delete(`permissions:${userId}`)
db.table("sys_user").logic().where().eq("id",userId).delete();
db.update("""
delete from sys_user_role where user_id = #{userId}
""")
}
return true