package com.hzs.system.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.system.sys.SysApprovalBusinessSend;
import com.hzs.common.domain.system.sys.ext.SysApprovalBusinessSendExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 审批业务抄送表 Mapper 接口
 *
 * @author hzs
 * @since 2023-04-27
 */
public interface SysApprovalBusinessSendMapper extends BaseMapper<SysApprovalBusinessSend> {

    /**
     * 批量插入
     *
     * @param pkApprovalBusiness 审批业务ID
     * @param sendIdList         抄送人ID列表
     * @return
     */
    int insertBatch(@Param("pkApprovalBusiness") Long pkApprovalBusiness, @Param("sendIdList") List<Long> sendIdList);

    /**
     * 根据审批业务ID查询审批业务抄送人
     *
     * @param pkIdList 审批业务ID列表
     * @return
     */
    List<SysApprovalBusinessSendExt> approvalSendList(@Param("pkIdList") List<Long> pkIdList);

}
