Compare commits
2 Commits
6804a0a824
...
ed9d500e5d
| Author | SHA1 | Date | |
|---|---|---|---|
| ed9d500e5d | |||
| 64e9674d0e |
@@ -197,7 +197,6 @@ public class User implements UserDetails {
|
|||||||
private Integer isOrganizationAdmin;
|
private Integer isOrganizationAdmin;
|
||||||
|
|
||||||
@Schema(description = "是否超级管理员")
|
@Schema(description = "是否超级管理员")
|
||||||
@TableField(exist = false)
|
|
||||||
private Boolean isSuperAdmin;
|
private Boolean isSuperAdmin;
|
||||||
|
|
||||||
@Schema(description = "租户管理员ID")
|
@Schema(description = "租户管理员ID")
|
||||||
|
|||||||
@@ -8,11 +8,7 @@
|
|||||||
u.phone,u.username
|
u.phone,u.username
|
||||||
FROM sys_tenant a
|
FROM sys_tenant a
|
||||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||||
LEFT JOIN sys_user u ON u.tenant_id = a.tenant_id AND u.is_admin = 1
|
LEFT JOIN gxwebsoft_core.sys_user u ON u.tenant_id = a.tenant_id AND u.is_super_admin = 1 AND u.deleted = 0
|
||||||
AND u.user_id = (
|
|
||||||
SELECT MIN(user_id) FROM sys_user
|
|
||||||
WHERE tenant_id = a.tenant_id AND is_admin = 1 AND deleted = 0
|
|
||||||
)
|
|
||||||
<where>
|
<where>
|
||||||
<if test="param.tenantId != null">
|
<if test="param.tenantId != null">
|
||||||
AND a.tenant_id = #{param.tenantId}
|
AND a.tenant_id = #{param.tenantId}
|
||||||
|
|||||||
Reference in New Issue
Block a user