ISysPostService.java 2.0 KB

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