package cn.com.tenlion.systembase.dao.importantevent;

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import cn.com.tenlion.systembase.pojo.bos.importantevent.ImportantEventBO;
import cn.com.tenlion.systembase.pojo.pos.importantevent.ImportantEventPO;
import cn.com.tenlion.systembase.pojo.dtos.importantevent.ImportantEventDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IImportantEventDao
 * @Description: 重大事件
 * @Author: CodeFactory
 * @Date: 2021-10-11 17:21:48
 * @Version: 3.0
 **/
@Repository
public interface IImportantEventDao {

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

    /**
     * 删除重大事件
     *
     * @param params
     * @throws RemoveException
     */
    void remove(Map<String, Object> params) throws RemoveException;

    /**
     * 删除重大事件（物理）
     *
     * @param params
     * @throws RemoveException
     */
    void delete(Map<String, Object> params) throws RemoveException;

    /**
     * 修改重大事件
     *
     * @param params
     * @throws UpdateException
     */
    void update(Map<String, Object> params) throws UpdateException;

    /**
     * 重大事件详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ImportantEventDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 重大事件详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ImportantEventBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 重大事件详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ImportantEventPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 重大事件列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ImportantEventDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 重大事件列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ImportantEventBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 重大事件列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ImportantEventPO> listPO(Map<String, Object> params) throws SearchException;

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

}