fix(多租户管理):clientId和clientSecret配置原理梳理,租户数据隔离和数据权限隔离等

This commit is contained in:
2025-04-11 15:38:04 +08:00
parent 8b94bf212b
commit 7f0e7d8a1e
13 changed files with 35 additions and 255 deletions
@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.central.user.mapper.SysTenantMapper">
<select id="findList" resultType="com.central.user.model.SysTenant">
select * from sys_tenant t
<where>
<if test="p.name != null and p.name != ''">
and t.name like concat('%', #{p.name}, '%')
</if>
<if test="p.code != null and p.code != ''">
and t.code = #{p.code}
</if>
<if test="p.status != null">
and t.status = #{p.status}
</if>
and t.is_deleted = 0
</where>
order by t.create_time desc
</select>
</mapper>