Browse Source

添加查询code校验(有效)

tags/v2.4.1
xiaoying 1 year ago
parent
commit
144c189c8e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      tuoheng_oidc_admin/src/main/resources/mapper/TenantMapper.xml

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

@@ -44,10 +44,12 @@
select *
from tuoheng_oidc.t_tenant
where code = #{code}
and enabled = 1
</select>
<select id="findList" resultType="com.tuoheng.model.po.TenantPo">
SELECT t.id, t.user_id, t.remark, t.code,
t.name,t.province_code,t.province_name,t.city_code,t.city_name,t.district_code,t.district_name,u.username username
t.name,t.province_code,t.province_name,t.city_code,t.city_name,t.district_code,t.district_name,u.username
username
FROM t_tenant t,users u
WHERE t.enabled = 1 and u.enabled =1 and t.user_id =u.id
<if test="query.tenantName != null and query.tenantName != ''">

Loading…
Cancel
Save