Blame view

ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java 965 Bytes
cee572f2   RuoYi   若依 3.0
1
  package com.ruoyi.system.mapper;

46444bd0   RuoYi   RuoYi-Vue 1.0
2
3
  

  import java.util.List;

cee572f2   RuoYi   若依 3.0
4
  import com.ruoyi.system.domain.SysUserPost;

46444bd0   RuoYi   RuoYi-Vue 1.0
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  

  /**

   * 用户与岗位关联表 数据层

   * 

   * @author ruoyi

   */

  public interface SysUserPostMapper

  {

      /**

       * 通过用户ID删除用户和岗位关联

       * 

       * @param userId 用户ID

       * @return 结果

       */

      public int deleteUserPostByUserId(Long userId);

  

      /**

       * 通过岗位ID查询岗位使用数量

       * 

       * @param postId 岗位ID

       * @return 结果

       */

      public int countUserPostById(Long postId);

  

      /**

       * 批量删除用户和岗位关联

       * 

       * @param ids 需要删除的数据ID

       * @return 结果

       */

      public int deleteUserPost(Long[] ids);

  

      /**

       * 批量新增用户岗位信息

       * 

       * @param userPostList 用户角色列表

       * @return 结果

       */

      public int batchUserPost(List<SysUserPost> userPostList);

  }