SysUserPostMapper.java 1005 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.ruoyi.system.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.ruoyi.system.domain.SysUserPost;
  4. import java.util.List;
  5. /**
  6. * 用户与岗位关联表 数据层
  7. *
  8. * @author ruoyi
  9. */
  10. public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
  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. }