12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package com.ruoyi.project.system.user.mapper;
- import java.util.List;
- import com.ruoyi.project.system.user.domain.UserPost;
- /**
- * 用户与岗位 表 数据层
- *
- * @author ruoyi
- */
- public interface UserPostMapper
- {
- /**
- * 通过用户ID删除用户和岗位关联
- *
- * @param userId 用户ID
- * @return 结果
- */
- public int deleteUserPostByUserId(Long userId);
-
- /**
- * 通过岗位ID查询岗位使用数量
- *
- * @param postId 岗位ID
- * @return 结果
- */
- public int selectCountPostById(Long postId);
-
- /**
- * 批量删除用户和岗位关联
- *
- * @param ids 需要删除的数据ID
- * @return 结果
- */
- public int deleteUserPost(Long[] ids);
- /**
- * 批量新增用户岗位信息
- *
- * @param userPostList 用户角色列表
- * @return 结果
- */
- public int batchUserPost(List<UserPost> userPostList);
- }
|