package ink.wgink.module.form.dao.docno;

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 ink.wgink.module.form.pojo.dtos.docno.DocNoDTO;
import ink.wgink.module.form.pojo.pos.docno.DocNoPO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IDocNoDao
 * @Description: 文号
 * @Author: CodeFactory
 * @Date: 2022-06-24 15:06:48
 * @Version: 3.0
 **/
@Repository
public interface IDocNoDao 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
     */
    DocNoDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 文号详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    DocNoPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 文号列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<DocNoDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 文号列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<DocNoPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 文号统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}