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

import cn.com.tenlion.systembase.pojo.bos.homicidepatrol.HomicidePatrolBO;
import cn.com.tenlion.systembase.pojo.dtos.homicidepatrol.HomicidePatrolDTO;
import cn.com.tenlion.systembase.pojo.pos.homicidepatrol.HomicidePatrolPO;
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: IHomicidePatrolDao
 * @Description: 命案发生地巡查记录
 * @Author: CodeFactory
 * @Date: 2021-10-20 10:44:13
 * @Version: 3.0
 **/
@Repository
public interface IHomicidePatrolDao {

    /**
     * 新增命案发生地巡查记录
     *
     * @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
     */
    HomicidePatrolDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 命案发生地巡查记录详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    HomicidePatrolBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 命案发生地巡查记录详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    HomicidePatrolPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 命案发生地巡查记录列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicidePatrolDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 命案发生地巡查记录列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicidePatrolBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 命案发生地巡查记录列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicidePatrolPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 命案发生地巡查记录统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}