package com.gkhy.system.mapper; import com.gkhy.system.domain.SysUserDept; import java.util.List; /** *用户与部门关联表 数据层 * * @author gkhy */ public interface SysUserDeptMapper { /** * 通过ID删除用户和部门关联 * * @param userId 用户ID * @return 结果 */ public int deleteUserDeptByUserId(Long userId); /** * 批量删除用户部门关联信息 * * @param ids 需要删除的数据ID * @return 结果 */ public int deleteUserDept(Long[] ids); /** * 查询部门使用数量 * * @param deptId 部门ID * @return 结果 */ public int selectCountUserDeptByDeptId(Long deptId); /** * 批量新增用户部门信息 * * @param userDeptList 用户部门列表 * @return 结果 */ public int batchUserDept(List userDeptList); }