/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.workflow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codvision.workflow.entity.WorkFlowCcItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author hxl
 */
public interface WorkFlowCcItemMapper extends BaseMapper<WorkFlowCcItem> {

    /**
     * 分页通用查询
     * @param page 分页对象
     * @param paraMap 查询条件
     * @return 数据列表
     */
    IPage<WorkFlowCcItem> getPageResult(IPage<Map<String, Object>> page, @Param("query") Map<String, Object> paraMap);

    /**
     * 批量添加抄送人
     * @param ccItems 参数
     */
    void batchAddCcItems(List<WorkFlowCcItem> ccItems);
}
