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

import cn.com.tenlion.systembase.pojo.bos.organization.OrganizationBO;
import cn.com.tenlion.systembase.pojo.dtos.organization.OrganizationDTO;
import cn.com.tenlion.systembase.pojo.pos.organization.OrganizationPO;
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: IOrganizationDao
 * @Description: 社会组织
 * @Author: CodeFactory
 * @Date: 2021-11-04 15:17:38
 * @Version: 3.0
 **/
@Repository
public interface IOrganizationDao 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
     */
    OrganizationDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 社会组织详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    OrganizationBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 社会组织详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    OrganizationPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 社会组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<OrganizationDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 社会组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<OrganizationBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 社会组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<OrganizationPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 社会组织统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}