完善权限的校验

This commit is contained in:
2026-04-15 17:28:23 +08:00
parent 9ab91ac87e
commit e0e4a60dba
3 changed files with 15 additions and 4 deletions

View File

@@ -31,6 +31,11 @@ public interface UserMapper extends BaseMapper<User> {
@Select("SELECT * FROM user WHERE user_name = #{userName} LIMIT 1")
User selectByUserNameIgnoreTenant(@Param("userName") String userName);
@InterceptorIgnore(tenantLine = "true")
@Select("SELECT * FROM user WHERE phone = #{phone} LIMIT 1")
User selectByPhoneIgnoreTenant(@Param("phone") String phone);
/**
* 根据 token 查询用户token 验证、获取当前用户信息),不走多租户拦截器。
*/