refactor(system): 优化租户超级管理员字段命名
- 将Tenant实体中的超级管理员用户ID字段名从superAdminUserId修改为ownerId - 更新字段的Schema描述,将“超级管理员用户ID”改为“超级管理员UID” - 修改TenantMapper.xml中关联查询SQL对应的字段别名为ownerId以保持一致 - 保持原有逻辑和功能不变,提升字段命名语义清晰度
This commit is contained in:
@@ -104,9 +104,9 @@ public class Tenant implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private String phone;
|
||||
|
||||
@Schema(description = "超级管理员用户ID")
|
||||
@Schema(description = "超级管理员UID")
|
||||
@TableField(exist = false)
|
||||
private Integer superAdminUserId;
|
||||
private Integer ownerId;
|
||||
|
||||
@Schema(description = "管理地址")
|
||||
@TableField(exist = false)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,b.company_name,b.company_logo as logo,b.admin_url,b.domain,b.free_domain,
|
||||
u.phone,u.username,u.user_id as superAdminUserId
|
||||
u.phone,u.username,u.user_id as ownerId
|
||||
FROM sys_tenant a
|
||||
LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id
|
||||
LEFT JOIN gxwebsoft_core.sys_user u ON u.tenant_id = a.tenant_id AND u.is_super_admin = 1 AND u.deleted = 0
|
||||
|
||||
Reference in New Issue
Block a user