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

import cn.com.tenlion.systembase.pojo.bos.keyplacepatrol.KeyPlacePatrolBO;
import cn.com.tenlion.systembase.pojo.dtos.keyplacepatrol.KeyPlacePatrolDTO;
import cn.com.tenlion.systembase.pojo.pos.keyplacepatrol.KeyPlacePatrolPO;
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: IKeyPlacePatrolDao
 * @Description: 重点场所巡查表
 * @Author: CodeFactory
 * @Date: 2021-11-24 10:39:11
 * @Version: 3.0
 **/
@Repository
public interface IKeyPlacePatrolDao {

    /**
     * 新增重点场所巡查表
     *
     * @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
     */
    KeyPlacePatrolDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 重点场所巡查表详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    KeyPlacePatrolBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 重点场所巡查表详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    KeyPlacePatrolPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 重点场所巡查表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<KeyPlacePatrolDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 重点场所巡查表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<KeyPlacePatrolBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 重点场所巡查表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<KeyPlacePatrolPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 重点场所巡查表统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}