package com.spring.modules.sys.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.spring.modules.sys.entity.SysRoleEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 角色管理 * * */ @Mapper public interface SysRoleDao extends BaseMapper { /** * 查询用户创建的角色ID列表 */ List queryRoleIdList(Long createUserId); List queryRoleIdByUserId(Long userId); List queryRoleIdByUsername(String username); List findRoleIdByUsername(@Param("username") String username,@Param("roleId") int roleId); List findRoleIdByUsernameAndRoleName(@Param("username") String username, @Param("roleName") String roleName); List getSuperFlag(String userId); }