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