#
Junjie
2024-07-04 0c8c0da73efb15fc92c23c023acaed2d1860e0aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.zy.asrs.wms.system.mapper;
 
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.asrs.wms.system.entity.Role;
import com.zy.asrs.wms.system.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Mapper
@Repository
public interface UserRoleMapper extends BaseMapper<UserRole> {
 
    @InterceptorIgnore(tenantLine = "true") // 忽略多租户拦截器
    List<Role> selectByUserId(@Param("userId") Long userId);
 
}