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

import cn.com.tenlion.systembase.pojo.bos.enterprise.EnterpriseBO;
import cn.com.tenlion.systembase.pojo.dtos.enterprise.EnterpriseDTO;
import cn.com.tenlion.systembase.pojo.pos.enterprise.EnterprisePO;
import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import ink.wgink.interfaces.init.IInitBaseTable;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IEnterpriseDao
 * @Description: 非公有制经济组织
 * @Author: CodeFactory
 * @Date: 2021-11-04 15:22:05
 * @Version: 3.0
 **/
@Repository
public interface IEnterpriseDao extends IInitBaseTable {

    /**
     * 新增非公有制经济组织
     *
     * @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
     */
    EnterpriseDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 非公有制经济组织详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    EnterpriseBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 非公有制经济组织详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    EnterprisePO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 非公有制经济组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<EnterpriseDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 非公有制经济组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<EnterpriseBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 非公有制经济组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<EnterprisePO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 非公有制经济组织统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}