适配多租户

This commit is contained in:
zhonghua1
2025-12-20 17:11:46 +08:00
parent db64ed63a5
commit 1c5a6eee8b
4 changed files with 18 additions and 3 deletions

View File

@@ -17,5 +17,10 @@
user_id, user_name, email, password, token, avatar
</sql>
<!-- 根据 token 查询用户token 验证、获取当前用户信息),不走多租户拦截器,不添加 tenant_id 条件 -->
<select id="selectByTokenIgnoreTenant" resultMap="BaseResultMap">
SELECT * FROM user WHERE token = #{token} LIMIT 1
</select>
</mapper>