You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
830 B

3 years ago
2 years ago
3 years ago
2 years ago
1 year ago
1 year ago
3 years ago
  1. package com.spring.modules.sys.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.spring.modules.sys.entity.SysRoleEntity;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. /**
  8. * 角色管理
  9. *
  10. *
  11. */
  12. @Mapper
  13. public interface SysRoleDao extends BaseMapper<SysRoleEntity> {
  14. /**
  15. * 查询用户创建的角色ID列表
  16. */
  17. List<Long> queryRoleIdList(Long createUserId);
  18. List<Long> queryRoleIdByUserId(Long userId);
  19. List<Long> queryRoleIdByUsername(String username);
  20. List<Long> findRoleIdByUsername(@Param("username") String username,@Param("roleId") int roleId);
  21. List<Long> findRoleIdByUsernameAndRoleName(@Param("username") String username, @Param("roleName") String roleName);
  22. List<String> getSuperFlag(String userId);
  23. }