package com.hw.system.common.mapper;

import com.hw.system.api.domain.common.WfProcessActivityAuth;

import java.util.List;

/**
 * 工单流程节点步骤权限Mapper接口
 *
 * @author Open Platform
 * @date 2024-01-25
 */
public interface WfProcessActivityAuthMapper
{
    /**
     * 查询工单流程节点步骤权限
     *
     * @param processActivityAuthId 工单流程节点步骤权限主键
     * @return 工单流程节点步骤权限
     */
    public WfProcessActivityAuth selectWfProcessActivityAuthByProcessActivityAuthId(Long processActivityAuthId);

    /**
     * 查询工单流程节点步骤权限列表
     *
     * @param wfProcessActivityAuth 工单流程节点步骤权限
     * @return 工单流程节点步骤权限集合
     */
    public List<WfProcessActivityAuth> selectWfProcessActivityAuthList(WfProcessActivityAuth wfProcessActivityAuth);

    /**
     * 新增工单流程节点步骤权限
     *
     * @param wfProcessActivityAuth 工单流程节点步骤权限
     * @return 结果
     */
    public int insertWfProcessActivityAuth(WfProcessActivityAuth wfProcessActivityAuth);

    /**
     * 修改工单流程节点步骤权限
     *
     * @param wfProcessActivityAuth 工单流程节点步骤权限
     * @return 结果
     */
    public int updateWfProcessActivityAuth(WfProcessActivityAuth wfProcessActivityAuth);

    /**
     * 删除工单流程节点步骤权限
     *
     * @param processActivityAuthId 工单流程节点步骤权限主键
     * @return 结果
     */
    public int deleteWfProcessActivityAuthByProcessActivityAuthId(Long processActivityAuthId);

    /**
     * 批量删除工单流程节点步骤权限
     *
     * @param processActivityAuthIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWfProcessActivityAuthByProcessActivityAuthIds(Long[] processActivityAuthIds);
    /**
     * 查询拥有权限的用户
     * */
    public List<WfProcessActivityAuth> selectUserAuth(WfProcessActivityAuth wfProcessActivityAuth);

}
