@@ -12,7 +12,7 @@ public class TenantQuery extends BaseQuery { | |||
/** | |||
* 租户名称 | |||
*/ | |||
private String name; | |||
private String tenantName; | |||
/** | |||
* 租户账号 | |||
*/ |
@@ -51,7 +51,7 @@ | |||
FROM t_tenant t,users u | |||
WHERE t.enabled = 1 and u.enabled =1 and t.user_id =u.id | |||
<if test="query.name != null and query.name != ''"> | |||
and t.name LIKE concat('%',#{query.name},'%') | |||
and t.name LIKE concat('%',#{query.tenantName},'%') | |||
</if> | |||
<if test="query.username != null and query.username != ''"> | |||
and u.username LIKE concat('%',#{query.username},'%') |