package ink.wgink.module.activiti.dao.oa;

import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import ink.wgink.interfaces.init.IInitBaseTable;
import ink.wgink.module.activiti.pojo.dtos.oa.OaCcDTO;
import ink.wgink.module.activiti.pojo.pos.oa.OaCcPO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IFormReportCcDao
 * @Description: 抄送
 * @Author: wanggeng
 * @Date: 2022/5/9 11:13
 * @Version: 1.0
 */
@Repository
public interface IOaCcDao extends IInitBaseTable {

    /**
     * 新增
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

    /**
     * 更新阅读状态
     *
     * @param params
     * @throws UpdateException
     */
    void updateRead(Map<String, Object> params) throws UpdateException;

    /**
     * 列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<OaCcPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<OaCcDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;
}
