package cn.com.tenlion.institutionmanagement.dao.institution;

import cn.com.tenlion.institutionmanagement.pojo.bos.institution.InstitutionBO;
import cn.com.tenlion.institutionmanagement.pojo.dtos.institution.InstitutionDTO;
import cn.com.tenlion.institutionmanagement.pojo.pos.institution.InstitutionPO;
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: IInstitutionDao
 * @Description: 机构管理
 * @Author: CodeFactory
 * @Date: 2021-04-28 17:58:49
 * @Version: 3.0
 **/
@Repository
public interface IInstitutionDao 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
     */
    InstitutionDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 机构管理详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    InstitutionBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 机构管理详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    InstitutionPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 机构管理列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<InstitutionDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 机构管理列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<InstitutionBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 机构管理列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<InstitutionPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 机构管理统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}