feat(tenant): 添加租户管理地址和域名字段
- 在Tenant实体类中新增adminUrl、domain和freeDomain字段 - 为新字段添加Schema注解描述和TableField注解标记为非数据库字段 - 修改TenantMapper.xml中的关联查询SQL,添加对新字段的查询支持
This commit is contained in:
@@ -99,6 +99,18 @@ public class Tenant implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
|
@Schema(description = "管理地址")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String adminUrl;
|
||||||
|
|
||||||
|
@Schema(description = "顶级域名")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String domain;
|
||||||
|
|
||||||
|
@Schema(description = "免费域名")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String freeDomain;
|
||||||
|
|
||||||
public String getPhone(){
|
public String getPhone(){
|
||||||
return DesensitizedUtil.mobilePhone(this.phone);
|
return DesensitizedUtil.mobilePhone(this.phone);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<!-- 关联查询sql -->
|
<!-- 关联查询sql -->
|
||||||
<sql id="selectSql">
|
<sql id="selectSql">
|
||||||
SELECT a.*,b.company_name,b.company_logo as logo
|
SELECT a.*,b.company_name,b.company_logo as logo,b.admin_url,b.domain,b.free_domain
|
||||||
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
|
||||||
<where>
|
<where>
|
||||||
|
|||||||
Reference in New Issue
Block a user