package ink.wgink.service.department.dao;

import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import ink.wgink.interfaces.init.IInitBaseTable;
import ink.wgink.service.department.pojo.dtos.DepartmentAdjustmentDTO;
import org.springframework.stereotype.Repository;

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

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: IDepartmentAdjustmentDao
 * @Description: 组织部门调整
 * @Author: wanggeng
 * @Date: 2021/1/29 11:05 上午
 * @Version: 1.0
 */
@Repository
public interface IDepartmentAdjustmentDao extends IInitBaseTable {

    /**
     * 新增部门调整
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

    /**
     * 部门调整列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<DepartmentAdjustmentDTO> list(Map<String, Object> params) throws SearchException;
}
