ISysPostService.java 1.7 KB

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