SysPostMapper.java 704 B

1234567891011121314151617181920212223242526272829303132
  1. package com.ruoyi.system.mapper;
  2. import com.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
  3. import com.ruoyi.system.domain.SysPost;
  4. import com.ruoyi.system.domain.vo.SysPostVo;
  5. import java.util.List;
  6. /**
  7. * 岗位信息 数据层
  8. *
  9. * @author Lion Li
  10. */
  11. public interface SysPostMapper extends BaseMapperPlus<SysPost, SysPostVo> {
  12. /**
  13. * 根据用户ID获取岗位选择框列表
  14. *
  15. * @param userId 用户ID
  16. * @return 选中岗位ID列表
  17. */
  18. List<Long> selectPostListByUserId(Long userId);
  19. /**
  20. * 查询用户所属岗位组
  21. *
  22. * @param userName 用户名
  23. * @return 结果
  24. */
  25. List<SysPostVo> selectPostsByUserName(String userName);
  26. }