适配多租户
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user