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
@@ -45,8 +45,6 @@ zlt:
- com.central.user.mapper.SysRoleMapper.findAll
# 用户列表显示用户所关联的所有角色
- com.central.user.mapper.SysUserRoleMapper.findRolesByUserIds
# 租户列表
- com.central.user.mapper.SysTenantMapper.findList
# 数据权限
datascope:
enabled: false
@@ -4,10 +4,10 @@ server:
spring:
application:
name: user-center
cloud:
nacos:
discovery:
ip: 124.222.128.40
# cloud:
# nacos:
# discovery:
# ip: 124.222.128.40
# cloud:
# nacos:
# discovery:
@@ -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>