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

import cn.com.tenlion.systembase.pojo.bos.enterprisepatrol.EnterprisePatrolBO;
import cn.com.tenlion.systembase.pojo.dtos.enterprisepatrol.EnterprisePatrolDTO;
import cn.com.tenlion.systembase.pojo.pos.enterprisepatrol.EnterprisePatrolPO;
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: IEnterprisePatrolDao
 * @Description: 企业巡查记录
 * @Author: CodeFactory
 * @Date: 2022-01-07 15:23:28
 * @Version: 3.0
 **/
@Repository
public interface IEnterprisePatrolDao {

    /**
     * 新增企业巡查记录
     *
     * @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
     */
    EnterprisePatrolDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 企业巡查记录详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    EnterprisePatrolBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 企业巡查记录详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    EnterprisePatrolPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 企业巡查记录列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<EnterprisePatrolDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 企业巡查记录列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<EnterprisePatrolBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 企业巡查记录列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<EnterprisePatrolPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 企业巡查记录统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}