| | |
| | | * @return 选中岗位ID列表
|
| | | */
|
| | | @Override
|
| | | public List<Integer> selectPostListByUserId(Long userId)
|
| | | public List<Long> selectPostListByUserId(Long userId)
|
| | | {
|
| | | return postMapper.selectPostListByUserId(userId);
|
| | | }
|
| | |
| | | * @return 结果
|
| | | */
|
| | | @Override
|
| | | public String checkPostNameUnique(SysPost post)
|
| | | public boolean checkPostNameUnique(SysPost post)
|
| | | {
|
| | | Long postId = StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId();
|
| | | SysPost info = postMapper.checkPostNameUnique(post.getPostName());
|
| | |
| | | * @return 结果
|
| | | */
|
| | | @Override
|
| | | public String checkPostCodeUnique(SysPost post)
|
| | | public boolean checkPostCodeUnique(SysPost post)
|
| | | {
|
| | | Long postId = StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId();
|
| | | SysPost info = postMapper.checkPostCodeUnique(post.getPostCode());
|
| | |
| | | *
|
| | | * @param postIds 需要删除的岗位ID
|
| | | * @return 结果
|
| | | * @throws Exception 异常
|
| | | */
|
| | | @Override
|
| | | public int deletePostByIds(Long[] postIds)
|