ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java
@@ -1,7 +1,7 @@
package com.ruoyi.system.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.mybatis.core.page.PageQuery;
import com.ruoyi.common.mybatis.core.page.TableDataInfo;
import com.ruoyi.system.domain.SysPost;
import java.util.List;
@@ -9,12 +9,12 @@
/**
 * 岗位信息 服务层
 *
 * @author ruoyi
 * @author Lion Li
 */
public interface ISysPostService extends IService<SysPost> {
public interface ISysPostService {
    TableDataInfo<SysPost> selectPagePostList(SysPost post);
    TableDataInfo<SysPost> selectPagePostList(SysPost post, PageQuery pageQuery);
    /**
     * 查询岗位信息集合
@@ -22,14 +22,14 @@
     * @param post 岗位信息
     * @return 岗位列表
     */
    public List<SysPost> selectPostList(SysPost post);
    List<SysPost> selectPostList(SysPost post);
    /**
     * 查询所有岗位
     *
     * @return 岗位列表
     */
    public List<SysPost> selectPostAll();
    List<SysPost> selectPostAll();
    /**
     * 通过岗位ID查询岗位信息
@@ -37,7 +37,7 @@
     * @param postId 岗位ID
     * @return 角色对象信息
     */
    public SysPost selectPostById(Long postId);
    SysPost selectPostById(Long postId);
    /**
     * 根据用户ID获取岗位选择框列表
@@ -45,7 +45,7 @@
     * @param userId 用户ID
     * @return 选中岗位ID列表
     */
    public List<Integer> selectPostListByUserId(Long userId);
    List<Long> selectPostListByUserId(Long userId);
    /**
     * 校验岗位名称
@@ -53,7 +53,7 @@
     * @param post 岗位信息
     * @return 结果
     */
    public String checkPostNameUnique(SysPost post);
    String checkPostNameUnique(SysPost post);
    /**
     * 校验岗位编码
@@ -61,7 +61,7 @@
     * @param post 岗位信息
     * @return 结果
     */
    public String checkPostCodeUnique(SysPost post);
    String checkPostCodeUnique(SysPost post);
    /**
     * 通过岗位ID查询岗位使用数量
@@ -69,7 +69,7 @@
     * @param postId 岗位ID
     * @return 结果
     */
    public int countUserPostById(Long postId);
    long countUserPostById(Long postId);
    /**
     * 删除岗位信息
@@ -77,16 +77,15 @@
     * @param postId 岗位ID
     * @return 结果
     */
    public int deletePostById(Long postId);
    int deletePostById(Long postId);
    /**
     * 批量删除岗位信息
     *
     * @param postIds 需要删除的岗位ID
     * @return 结果
     * @throws Exception 异常
     */
    public int deletePostByIds(Long[] postIds);
    int deletePostByIds(Long[] postIds);
    /**
     * 新增保存岗位信息
@@ -94,7 +93,7 @@
     * @param post 岗位信息
     * @return 结果
     */
    public int insertPost(SysPost post);
    int insertPost(SysPost post);
    /**
     * 修改保存岗位信息
@@ -102,5 +101,5 @@
     * @param post 岗位信息
     * @return 结果
     */
    public int updatePost(SysPost post);
    int updatePost(SysPost post);
}