...
|
...
|
@@ -37,7 +37,8 @@ select |
|
|
public."role"
|
|
|
where
|
|
|
"role".company_id = 416
|
|
|
and "role"."type" = 2);
|
|
|
and "role"."type" = 2
|
|
|
and "role".deleted_at isnull);
|
|
|
|
|
|
-- 超级管理员添加关联用户(不存在时插入新数据)(注.公司ID->416 用户ID->3337322891762688)
|
|
|
with temp_role as (
|
...
|
...
|
@@ -75,5 +76,6 @@ where |
|
|
where
|
|
|
"role_user".company_id = 416
|
|
|
and "role_user".user_id = 3337322891762688
|
|
|
and "role_user".role_id = temp_role."id");
|
|
|
and "role_user".role_id = temp_role."id"
|
|
|
and "role_user".deleted_at isnull);
|
|
|
-- |
|
|
\ No newline at end of file |
...
|
...
|
|