懒羊羊
2024-01-31 e57a8990ae56f657a59c435a0613c5f7a8728003
提交 | 用户 | 时间
e57a89 1 package com.jcdm.system.service;
2
3 import java.util.List;
4 import com.jcdm.system.domain.SysPost;
5
6 /**
7  * 岗位信息 服务层
8  * 
9  * @author jc
10  */
11 public interface ISysPostService
12 {
13     /**
14      * 查询岗位信息集合
15      * 
16      * @param post 岗位信息
17      * @return 岗位列表
18      */
19     public List<SysPost> selectPostList(SysPost post);
20
21     /**
22      * 查询所有岗位
23      * 
24      * @return 岗位列表
25      */
26     public List<SysPost> selectPostAll();
27
28     /**
29      * 通过岗位ID查询岗位信息
30      * 
31      * @param postId 岗位ID
32      * @return 角色对象信息
33      */
34     public SysPost selectPostById(Long postId);
35
36     /**
37      * 根据用户ID获取岗位选择框列表
38      * 
39      * @param userId 用户ID
40      * @return 选中岗位ID列表
41      */
42     public List<Long> selectPostListByUserId(Long userId);
43
44     /**
45      * 校验岗位名称
46      * 
47      * @param post 岗位信息
48      * @return 结果
49      */
50     public boolean checkPostNameUnique(SysPost post);
51
52     /**
53      * 校验岗位编码
54      * 
55      * @param post 岗位信息
56      * @return 结果
57      */
58     public boolean checkPostCodeUnique(SysPost post);
59
60     /**
61      * 通过岗位ID查询岗位使用数量
62      * 
63      * @param postId 岗位ID
64      * @return 结果
65      */
66     public int countUserPostById(Long postId);
67
68     /**
69      * 删除岗位信息
70      * 
71      * @param postId 岗位ID
72      * @return 结果
73      */
74     public int deletePostById(Long postId);
75
76     /**
77      * 批量删除岗位信息
78      * 
79      * @param postIds 需要删除的岗位ID
80      * @return 结果
81      */
82     public int deletePostByIds(Long[] postIds);
83
84     /**
85      * 新增保存岗位信息
86      * 
87      * @param post 岗位信息
88      * @return 结果
89      */
90     public int insertPost(SysPost post);
91
92     /**
93      * 修改保存岗位信息
94      * 
95      * @param post 岗位信息
96      * @return 结果
97      */
98     public int updatePost(SysPost post);
99 }