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

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import cn.com.tenlion.organizationmanagement.pojo.bos.organization.OrganizationBO;
import cn.com.tenlion.organizationmanagement.pojo.pos.organization.OrganizationPO;
import cn.com.tenlion.organizationmanagement.pojo.dtos.organization.OrganizationDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IOrganizationDao
 * @Description: 组织管理
 * @Author: CodeFactory
 * @Date: 2021-04-28 11:06:42
 * @Version: 3.0
 **/
@Repository
public interface IOrganizationDao {

    /**
     * 新增组织管理
     *
     * @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;

}