SysPostMapper.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. package com.dgtly.system.mapper;
  2. import java.util.List;
  3. import com.dgtly.system.domain.SysPost;
  4. /**
  5. * 岗位信息 数据层
  6. *
  7. * @author dgtly
  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 userId 用户ID
  28. * @return 岗位列表
  29. */
  30. public List<SysPost> selectPostsByUserId(Long userId);
  31. /**
  32. * 通过岗位ID查询岗位信息
  33. *
  34. * @param postId 岗位ID
  35. * @return 角色对象信息
  36. */
  37. public SysPost selectPostById(Long postId);
  38. /**
  39. * 批量删除岗位信息
  40. *
  41. * @param ids 需要删除的数据ID
  42. * @return 结果
  43. */
  44. public int deletePostByIds(Long[] ids);
  45. /**
  46. * 修改岗位信息
  47. *
  48. * @param post 岗位信息
  49. * @return 结果
  50. */
  51. public int updatePost(SysPost post);
  52. /**
  53. * 新增岗位信息
  54. *
  55. * @param post 岗位信息
  56. * @return 结果
  57. */
  58. public int insertPost(SysPost post);
  59. /**
  60. * 校验岗位名称
  61. *
  62. * @param postName 岗位名称
  63. * @return 结果
  64. */
  65. public SysPost checkPostNameUnique(String postName);
  66. /**
  67. * 校验岗位编码
  68. *
  69. * @param postCode 岗位编码
  70. * @return 结果
  71. */
  72. public SysPost checkPostCodeUnique(String postCode);
  73. }