SysPostMapper.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package com.ruoyi.system.mapper;
  2. import java.util.List;
  3. import com.ruoyi.system.domain.SysPost;
  4. /**
  5. * 岗位信息 数据层
  6. *
  7. * @author ruoyi
  8. */
  9. public interface SysPostMapper
  10. {
  11. /**
  12. * 查询岗位数据集合
  13. *
  14. * @param post 岗位信息
  15. * @return 岗位数据集合
  16. */
  17. public List<SysPost> selectPostList(SysPost post);
  18. /**
  19. * 查询所有岗位
  20. *
  21. * @return 岗位列表
  22. */
  23. public List<SysPost> selectPostAll();
  24. /**
  25. * 通过岗位ID查询岗位信息
  26. *
  27. * @param postId 岗位ID
  28. * @return 角色对象信息
  29. */
  30. public SysPost selectPostById(Long postId);
  31. /**
  32. * 根据用户ID获取岗位选择框列表
  33. *
  34. * @param userId 用户ID
  35. * @return 选中岗位ID列表
  36. */
  37. public List<Long> selectPostListByUserId(Long userId);
  38. /**
  39. * 查询用户所属岗位组
  40. *
  41. * @param userName 用户名
  42. * @return 结果
  43. */
  44. public List<SysPost> selectPostsByUserName(String userName);
  45. /**
  46. * 删除岗位信息
  47. *
  48. * @param postId 岗位ID
  49. * @return 结果
  50. */
  51. public int deletePostById(Long postId);
  52. /**
  53. * 批量删除岗位信息
  54. *
  55. * @param postIds 需要删除的岗位ID
  56. * @return 结果
  57. */
  58. public int deletePostByIds(Long[] postIds);
  59. /**
  60. * 修改岗位信息
  61. *
  62. * @param post 岗位信息
  63. * @return 结果
  64. */
  65. public int updatePost(SysPost post);
  66. /**
  67. * 新增岗位信息
  68. *
  69. * @param post 岗位信息
  70. * @return 结果
  71. */
  72. public int insertPost(SysPost post);
  73. /**
  74. * 校验岗位名称
  75. *
  76. * @param postName 岗位名称
  77. * @return 结果
  78. */
  79. public SysPost checkPostNameUnique(String postName);
  80. /**
  81. * 校验岗位编码
  82. *
  83. * @param postCode 岗位编码
  84. * @return 结果
  85. */
  86. public SysPost checkPostCodeUnique(String postCode);
  87. }