update sa-token 1.28.0 => 1.29.0 修复Xss注解字段值为空时的异常问题 删除方法无返回值时,方法注释上的@HTTP4O4 update 使用 satoken 自带的 BCrypt 工具 替换 Security 加密工具 减少依赖 优化流程任务方法,统一响应格式 fix 修复 R 参数位置错误 fix 修复 验证码 强制校验问题 update 返回体 统一 修复自定义组件file-upload无法显示第一个文件,列表显示的文件比实际文件少一个的问题 update 修改验证码校验 增加 uuid 空判断 update 优化代码生成 fix 修复因升级 sa-token 导致 doLogin 无法获取 token 问题 update 更新 swagger 配置类错误注释 update 优化 TreeBuildUtils 工具 使用反射自动获取顶级父id fix 回滚代码生成部分优化 修复优化导致的问题 update 使用 hutool Dict 优化 JsonUtils 防止类型解析异常 update 优化代码生成 使用新 JsonUtils.parseMap 方法
106 lines
2.0 KiB
Java
106 lines
2.0 KiB
Java
package com.ruoyi.system.service;
|
|
|
|
import com.ruoyi.common.core.domain.PageQuery;
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
import com.ruoyi.system.domain.SysPost;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 岗位信息 服务层
|
|
*
|
|
* @author Lion Li
|
|
*/
|
|
public interface ISysPostService {
|
|
|
|
|
|
TableDataInfo<SysPost> selectPagePostList(SysPost post, PageQuery pageQuery);
|
|
|
|
/**
|
|
* 查询岗位信息集合
|
|
*
|
|
* @param post 岗位信息
|
|
* @return 岗位列表
|
|
*/
|
|
List<SysPost> selectPostList(SysPost post);
|
|
|
|
/**
|
|
* 查询所有岗位
|
|
*
|
|
* @return 岗位列表
|
|
*/
|
|
List<SysPost> selectPostAll();
|
|
|
|
/**
|
|
* 通过岗位ID查询岗位信息
|
|
*
|
|
* @param postId 岗位ID
|
|
* @return 角色对象信息
|
|
*/
|
|
SysPost selectPostById(Long postId);
|
|
|
|
/**
|
|
* 根据用户ID获取岗位选择框列表
|
|
*
|
|
* @param userId 用户ID
|
|
* @return 选中岗位ID列表
|
|
*/
|
|
List<Long> selectPostListByUserId(Long userId);
|
|
|
|
/**
|
|
* 校验岗位名称
|
|
*
|
|
* @param post 岗位信息
|
|
* @return 结果
|
|
*/
|
|
String checkPostNameUnique(SysPost post);
|
|
|
|
/**
|
|
* 校验岗位编码
|
|
*
|
|
* @param post 岗位信息
|
|
* @return 结果
|
|
*/
|
|
String checkPostCodeUnique(SysPost post);
|
|
|
|
/**
|
|
* 通过岗位ID查询岗位使用数量
|
|
*
|
|
* @param postId 岗位ID
|
|
* @return 结果
|
|
*/
|
|
long countUserPostById(Long postId);
|
|
|
|
/**
|
|
* 删除岗位信息
|
|
*
|
|
* @param postId 岗位ID
|
|
* @return 结果
|
|
*/
|
|
int deletePostById(Long postId);
|
|
|
|
/**
|
|
* 批量删除岗位信息
|
|
*
|
|
* @param postIds 需要删除的岗位ID
|
|
* @return 结果
|
|
*/
|
|
int deletePostByIds(Long[] postIds);
|
|
|
|
/**
|
|
* 新增保存岗位信息
|
|
*
|
|
* @param post 岗位信息
|
|
* @return 结果
|
|
*/
|
|
int insertPost(SysPost post);
|
|
|
|
/**
|
|
* 修改保存岗位信息
|
|
*
|
|
* @param post 岗位信息
|
|
* @return 结果
|
|
*/
|
|
int updatePost(SysPost post);
|
|
}
|