| | |
| | | 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.Menu; |
| | | import com.zy.asrs.wms.system.entity.RoleMenu; |
| | | 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 RoleMenuMapper extends BaseMapper<RoleMenu> { |
| | | |
| | | @InterceptorIgnore(tenantLine = "true") |
| | | List<Menu> listMenuByUserId(@Param("userId") Long userId, @Param("type") Integer menuType, @Param("hostId") Long hostId); |
| | | |
| | | List<Long> listStrictlyMenuByRoleId(@Param("roleId") Long roleId); |
| | | |
| | | } |
| | | 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.Menu;
|
| | | import com.zy.asrs.wms.system.entity.RoleMenu;
|
| | | 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 RoleMenuMapper extends BaseMapper<RoleMenu> {
|
| | |
|
| | | @InterceptorIgnore(tenantLine = "true")
|
| | | List<Menu> listMenuByUserId(@Param("userId") Long userId, @Param("type") Integer menuType, @Param("hostId") Long hostId);
|
| | |
|
| | | List<Long> listStrictlyMenuByRoleId(@Param("roleId") Long roleId);
|
| | |
|
| | | }
|