@@ -23,12 +23,6 @@ public class SysTenantConfigVo implements Serializable {
private static final long serialVersionUID=1L;
- /**
- * 租户ID
- */
- @TableId(value = "id", type = IdType.AUTO)
- private Integer id;
-
/**
* 租户ID
*/
@@ -29,11 +29,12 @@
</resultMap>
<select id="getTenantConfig" resultType="com.usky.system.service.vo.SysTenantConfigVo">
SELECT
- b.*
+ a.id as tenantId,ifNULL(b.login_title,a.tenant_name) as loginTitle,b.login_logo,b.login_back_url,b.login_footer,b.login_type,b.label_icon
FROM
sys_tenant AS a
- JOIN sys_tenant_config AS b ON a.id = b.tenant_id
+ LEFT JOIN sys_tenant_config AS b ON a.id = b.tenant_id
<where>
+
a. STATUS = 0
AND a.domain = #{url}
</where>