package com.ruoyi.approvalFlow.mapper;


import com.ruoyi.approvalFlow.domain.AuditItems;
import com.ruoyi.approvalFlow.domain.AuditPathsLevels;

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

/**
 * 审批流配置明细级别Mapper接口
 *
 * @author ruoyi
 * @date 2021-01-21
 */
public interface AuditPathsLevelsMapper {
    /**
     * 查询审批流配置明细级别
     *
     * @param id 审批流配置明细级别ID
     * @return 审批流配置明细级别
     */
    public AuditPathsLevels selectAuditPathsLevelsById(Long id);

    /**
     * 查询审批流配置明细级别列表
     *
     * @param auditPathsLevels 审批流配置明细级别
     * @return 审批流配置明细级别集合
     */
    public List<AuditPathsLevels> selectAuditPathsLevelsList(AuditPathsLevels auditPathsLevels);

    /**
     * 新增审批流配置明细级别
     *
     * @param auditPathsLevels 审批流配置明细级别
     * @return 结果
     */
    public int insertAuditPathsLevels(AuditPathsLevels auditPathsLevels);

    /**
     * 修改审批流配置明细级别
     *
     * @param auditPathsLevels 审批流配置明细级别
     * @return 结果
     */
    public int updateAuditPathsLevels(AuditPathsLevels auditPathsLevels);

    /**
     * 删除审批流配置明细级别
     *
     * @param id 审批流配置明细级别ID
     * @return 结果
     */
    public int deleteAuditPathsLevelsById(Long id);

    /**
     * 批量删除审批流配置明细级别
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAuditPathsLevelsByIds(Long[] ids);

    /**
     * 根据fPid 删除
     *
     * @param fPid
     * @return
     */
    public int deleteAuditPathsLevelsBypathId(long fPid);

    /**
     *  查询审批流级次信息
     * @param auditItems
     * @return
     */
    List<AuditPathsLevels> queryAuditLevels(AuditItems auditItems);
}
