ISysPostService.java 2.3 KB

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