package com.hw.dms.mapper;

import java.util.List;
import com.hw.dms.domain.DmsFaultInstanceActivity;

/**
 * 故障报修工单实例节点Mapper接口
 *
 * @author Open Platform
 * @date 2024-02-27
 */
public interface DmsFaultInstanceActivityMapper
{
    /**
     * 查询故障报修工单实例节点
     *
     * @param instanceActivityId 故障报修工单实例节点主键
     * @return 故障报修工单实例节点
     */
    public DmsFaultInstanceActivity selectDmsFaultInstanceActivityByInstanceActivityId(Long instanceActivityId);

    /**
     * 查询故障报修工单实例节点列表
     *
     * @param dmsFaultInstanceActivity 故障报修工单实例节点
     * @return 故障报修工单实例节点集合
     */
    public List<DmsFaultInstanceActivity> selectDmsFaultInstanceActivityList(DmsFaultInstanceActivity dmsFaultInstanceActivity);

    /**
     * 新增故障报修工单实例节点
     *
     * @param dmsFaultInstanceActivity 故障报修工单实例节点
     * @return 结果
     */
    public int insertDmsFaultInstanceActivity(DmsFaultInstanceActivity dmsFaultInstanceActivity);

    /**
     * 修改故障报修工单实例节点
     *
     * @param dmsFaultInstanceActivity 故障报修工单实例节点
     * @return 结果
     */
    public int updateDmsFaultInstanceActivity(DmsFaultInstanceActivity dmsFaultInstanceActivity);

    /**
     * 删除故障报修工单实例节点
     *
     * @param instanceActivityId 故障报修工单实例节点主键
     * @return 结果
     */
    public int deleteDmsFaultInstanceActivityByInstanceActivityId(Long instanceActivityId);

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

    Long[] selectUserIdByDmsFaultInstanceActivity(Long repairInstanceId);
    DmsFaultInstanceActivity selectDmsFaultInstanceActivityByRepairIdMin(Long repairInstanceId);
}
