This commit is contained in:
2026-04-30 15:25:58 +08:00
parent 5afb8233d5
commit 5559ee0673
169 changed files with 1091 additions and 5993 deletions

View File

@@ -1,101 +0,0 @@
package com.maibu.mapper;
import com.maibu.domain.SysPost;
import java.util.List;
/**
* 岗位信息 数据层
*
* @author ruoyi
*/
public interface SysPostMapper
{
/**
* 查询岗位数据集合
*
* @param post 岗位信息
* @return 岗位数据集合
*/
public List<SysPost> selectPostList(SysPost post);
/**
* 查询所有岗位
*
* @return 岗位列表
*/
public List<SysPost> selectPostAll();
/**
* 通过岗位ID查询岗位信息
*
* @param postId 岗位ID
* @return 角色对象信息
*/
public SysPost selectPostById(Long postId);
/**
* 根据用户ID获取岗位选择框列表
*
* @param userId 用户ID
* @return 选中岗位ID列表
*/
public List<Long> selectPostListByUserId(Long userId);
/**
* 查询用户所属岗位组
*
* @param userName 用户名
* @return 结果
*/
public List<SysPost> selectPostsByUserName(String userName);
/**
* 删除岗位信息
*
* @param postId 岗位ID
* @return 结果
*/
public int deletePostById(Long postId);
/**
* 批量删除岗位信息
*
* @param postIds 需要删除的岗位ID
* @return 结果
*/
public int deletePostByIds(Long[] postIds);
/**
* 修改岗位信息
*
* @param post 岗位信息
* @return 结果
*/
public int updatePost(SysPost post);
/**
* 新增岗位信息
*
* @param post 岗位信息
* @return 结果
*/
public int insertPost(SysPost post);
/**
* 校验岗位名称
*
* @param postName 岗位名称
* @return 结果
*/
public SysPost checkPostNameUnique(String postName);
/**
* 校验岗位编码
*
* @param postCode 岗位编码
* @return 结果
*/
public SysPost checkPostCodeUnique(String postCode);
}

View File

@@ -7,14 +7,13 @@ import java.util.List;
/**
* 角色与菜单关联表 数据层
*
*
* @author ruoyi
*/
public interface SysRoleMenuMapper
{
public interface SysRoleMenuMapper {
/**
* 查询菜单使用数量
*
*
* @param menuId 菜单ID
* @return 结果
*/
@@ -22,7 +21,7 @@ public interface SysRoleMenuMapper
/**
* 通过角色ID删除角色和菜单关联
*
*
* @param roleId 角色ID
* @return 结果
*/
@@ -30,7 +29,7 @@ public interface SysRoleMenuMapper
/**
* 批量删除角色菜单关联信息
*
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@@ -38,7 +37,7 @@ public interface SysRoleMenuMapper
/**
* 批量新增角色菜单信息
*
*
* @param roleMenuList 角色菜单列表
* @return 结果
*/
@@ -49,4 +48,13 @@ public interface SysRoleMenuMapper
* @param roleId 角色id
*/
List<SysRoleMenu> selectRoleMenuList(Long roleId);
/**
* 当前menu是否绑定到当前角色
*
* @param menuId 菜单ID
* @return 结果
*/
public int checkMenuRole(Long menuId, Long roleId);
}

View File

@@ -1,6 +1,7 @@
package com.maibu.mapper;
import com.maibu.core.domain.entity.SysUser;
import com.maibu.mybatis.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -10,7 +11,7 @@ import java.util.List;
*
* @author ruoyi
*/
public interface SysUserMapper {
public interface SysUserMapper extends BaseMapperX<SysUser> {
/**
* 根据条件分页查询用户列表
*
@@ -198,4 +199,11 @@ public interface SysUserMapper {
*/
List<SysUser> selectByDeptId(Long deptId);
/**
* 根据机构id获取当前机构所有非管理用户
*
* @return
*/
List<SysUser> selectByRoleId(Long roleId);
}

View File

@@ -1,46 +0,0 @@
package com.maibu.mapper;
import com.maibu.domain.SysUserPost;
import java.util.List;
/**
* 用户与岗位关联表 数据层
*
* @author ruoyi
*/
public interface SysUserPostMapper
{
/**
* 通过用户ID删除用户和岗位关联
*
* @param userId 用户ID
* @return 结果
*/
public int deleteUserPostByUserId(Long userId);
/**
* 通过岗位ID查询岗位使用数量
*
* @param postId 岗位ID
* @return 结果
*/
public int countUserPostById(Long postId);
/**
* 批量删除用户和岗位关联
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteUserPost(Long[] ids);
/**
* 批量新增用户岗位信息
*
* @param userPostList 用户角色列表
* @return 结果
*/
public int batchUserPost(List<SysUserPost> userPostList);
}