正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
@@ -37,7 +37,8 @@ select | @@ -37,7 +37,8 @@ select | ||
37 | public."role" | 37 | public."role" |
38 | where | 38 | where |
39 | "role".company_id = 416 | 39 | "role".company_id = 416 |
40 | - and "role"."type" = 2); | 40 | + and "role"."type" = 2 |
41 | + and "role".deleted_at isnull); | ||
41 | 42 | ||
42 | -- 超级管理员添加关联用户(不存在时插入新数据)(注.公司ID->416 用户ID->3337322891762688) | 43 | -- 超级管理员添加关联用户(不存在时插入新数据)(注.公司ID->416 用户ID->3337322891762688) |
43 | with temp_role as ( | 44 | with temp_role as ( |
@@ -75,5 +76,6 @@ where | @@ -75,5 +76,6 @@ where | ||
75 | where | 76 | where |
76 | "role_user".company_id = 416 | 77 | "role_user".company_id = 416 |
77 | and "role_user".user_id = 3337322891762688 | 78 | and "role_user".user_id = 3337322891762688 |
78 | - and "role_user".role_id = temp_role."id"); | 79 | + and "role_user".role_id = temp_role."id" |
80 | + and "role_user".deleted_at isnull); | ||
79 | -- | 81 | -- |
-
请 注册 或 登录 后发表评论