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

import cn.com.tenlion.systembase.pojo.bos.homicide.HomicideBO;
import cn.com.tenlion.systembase.pojo.dtos.homicide.HomicideDTO;
import cn.com.tenlion.systembase.pojo.pos.homicide.HomicidePO;
import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IHomicideDao
 * @Description: 命案基本信息
 * @Author: CodeFactory
 * @Date: 2021-10-19 10:20:09
 * @Version: 3.0
 **/
@Repository
public interface IHomicideDao {

    /**
     * 新增命案基本信息
     *
     * @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
     */
    HomicideDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 命案基本信息详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    HomicideBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 命案基本信息详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    HomicidePO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 命案基本信息列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicideDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 命案基本信息列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicideBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 命案基本信息列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicidePO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 命案基本信息统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}