package com.ruoyi.system.mapper; import com.ruoyi.system.domain.SysDeptRegion; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 部门管理区域Mapper接口 * * @author ruoyi */ public interface SysDeptRegionMapper { /** * 查询部门管理区域列表 * * @param deptId 部门ID * @return 部门管理区域集合 */ List selectDeptRegionListByDeptId(@Param("deptId") Long deptId); /** * 批量查询多个部门的管理区域 * * @param deptIds 部门ID列表 * @return 部门管理区域集合 */ List selectDeptRegionListByDeptIds(@Param("deptIds") List deptIds); /** * 新增部门管理区域 * * @param deptRegion 部门管理区域 * @return 结果 */ int insertDeptRegion(SysDeptRegion deptRegion); /** * 修改部门管理区域 * * @param deptRegion 部门管理区域 * @return 结果 */ int updateDeptRegion(SysDeptRegion deptRegion); /** * 删除部门管理区域 * * @param regionId 区域ID * @return 结果 */ int deleteDeptRegionById(@Param("regionId") Long regionId); /** * 删除部门的所有管理区域 * * @param deptId 部门ID * @return 结果 */ int deleteDeptRegionByDeptId(@Param("deptId") Long deptId); }