package com.aucma.dms.mapper;

import com.aucma.dms.domain.DmsMaintInstanceActivity;

import java.util.List;

/**
 * 保养工单实例节点Mapper接口
 *
 * @author Open Platform
 * @date 2024-02-29
 */
public interface DmsMaintInstanceActivityMapper
{
    /**
     * 查询保养工单实例节点
     *
     * @param instanceActivityId 保养工单实例节点主键
     * @return 保养工单实例节点
     */
    public DmsMaintInstanceActivity selectDmsMaintInstanceActivityByInstanceActivityId(Long instanceActivityId);

    /**
     * 查询保养工单实例节点列表
     *
     * @param dmsMaintInstanceActivity 保养工单实例节点
     * @return 保养工单实例节点集合
     */
    public List<DmsMaintInstanceActivity> selectDmsMaintInstanceActivityList(DmsMaintInstanceActivity dmsMaintInstanceActivity);

    /**
     * 新增保养工单实例节点
     *
     * @param dmsMaintInstanceActivity 保养工单实例节点
     * @return 结果
     */
    public int insertDmsMaintInstanceActivity(DmsMaintInstanceActivity dmsMaintInstanceActivity);

    /**
     * 修改保养工单实例节点
     *
     * @param dmsMaintInstanceActivity 保养工单实例节点
     * @return 结果
     */
    public int updateDmsMaintInstanceActivity(DmsMaintInstanceActivity dmsMaintInstanceActivity);

    /**
     * 删除保养工单实例节点
     *
     * @param instanceActivityId 保养工单实例节点主键
     * @return 结果
     */
    public int deleteDmsMaintInstanceActivityByInstanceActivityId(Long instanceActivityId);

    /**
     * 批量删除保养工单实例节点
     *
     * @param instanceActivityIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDmsMaintInstanceActivityByInstanceActivityIds(Long[] instanceActivityIds);

    // ===== 审批流相关方法 - 已废弃 =====
    /**
     * @deprecated 审批流功能已废弃,不再使用
     */
    @Deprecated
    Long[] selectUserIdByDmsMaintInstanceActivityId(Long maintInstanceId);
    // ===== 审批流相关方法结束 =====

//    List<DmsMaintInstanceActivity> selectDmsMaintInfo(@Param("maintInstanceId") Long maintInstanceId);
}
