SysUserPostMapper.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.ruoyi.system.mapper;
  2. import java.util.List;
  3. import com.ruoyi.common.core.domain.entity.SysUser;
  4. import com.ruoyi.system.domain.SysUserPost;
  5. /**
  6. * 用户与岗位关联表 数据层
  7. *
  8. * @author ruoyi
  9. */
  10. public interface SysUserPostMapper {
  11. /**
  12. * 通过用户ID删除用户和岗位关联
  13. *
  14. * @param userId 用户ID
  15. * @return 结果
  16. */
  17. public int deleteUserPostByUserId(Long userId);
  18. /**
  19. * 通过岗位ID查询岗位使用数量
  20. *
  21. * @param postId 岗位ID
  22. * @return 结果
  23. */
  24. public int countUserPostById(Long postId);
  25. /**
  26. * 批量删除用户和岗位关联
  27. *
  28. * @param ids 需要删除的数据ID
  29. * @return 结果
  30. */
  31. public int deleteUserPost(Long[] ids);
  32. /**
  33. * 批量新增用户岗位信息
  34. *
  35. * @param userPostList 用户角色列表
  36. * @return 结果
  37. */
  38. public int batchUserPost(List<SysUserPost> userPostList);
  39. /**
  40. * 通过用户ID查询部门
  41. *
  42. * @param userId
  43. * @return
  44. */
  45. public List<SysUserPost> selectUserPostByUserId(Long userId);
  46. }