Browse Source

更新字段匹配

tags/v2.4.1
xiaoying 1 year ago
parent
commit
cbfdc3f4ef
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/query/TenantQuery.java
  2. +1
    -1
      tuoheng_oidc_admin/src/main/resources/mapper/TenantMapper.xml

+ 1
- 1
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/query/TenantQuery.java View File

@@ -12,7 +12,7 @@ public class TenantQuery extends BaseQuery {
/**
* 租户名称
*/
private String name;
private String tenantName;
/**
* 租户账号
*/

+ 1
- 1
tuoheng_oidc_admin/src/main/resources/mapper/TenantMapper.xml View File

@@ -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},'%')

Loading…
Cancel
Save