package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.entity.AuAdminDepartmentDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 管理员部门表(AuAdminDepartment)表数据库访问层
 *
 * @author nfq
 * @since 2020-12-14 10:34:42
 */
@Repository
public interface AuAdminDepartmentDao extends BaseMapper<AuAdminDepartmentDO> {

    /**
     * 批量插入
     * @param adminId
     * @param departmentIdList
     */
    void insertBatch(@Param("adminId") Integer adminId, @Param("list") List<Integer> departmentIdList);

    /**
     * 获取管理员管辖部门id
     * @param adminId
     * @return
     */
    List<Integer> listDepartmentIdByAdminId(@Param("adminId") Integer adminId);
}