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

import cn.com.tenlion.systembase.pojo.bos.keyplace.KeyPlaceBO;
import cn.com.tenlion.systembase.pojo.dtos.keyplace.KeyPlaceDTO;
import cn.com.tenlion.systembase.pojo.pos.keyplace.KeyPlacePO;
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: IKeyPlaceDao
 * @Description: 重点场所
 * @Author: CodeFactory
 * @Date: 2021-11-16 11:25:17
 * @Version: 3.0
 **/
@Repository
public interface IKeyPlaceDao {

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

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

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

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

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

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

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

}