package com.aucma.dms.service;

import com.aucma.dms.domain.DmsFaultInstanceActivity;

import java.util.List;

/**
 * 故障报修工单实例节点Service接口
 *
 * @author Open Platform
 * @date 2024-02-27
 */
public interface IDmsFaultInstanceActivityService
{
    /**
     * 查询故障报修工单实例节点
     *
     * @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 instanceActivityIds 需要删除的故障报修工单实例节点主键集合
     * @return 结果
     */
    public int deleteDmsFaultInstanceActivityByInstanceActivityIds(Long[] instanceActivityIds);

    /**
     * 删除故障报修工单实例节点信息
     *
     * @param instanceActivityId 故障报修工单实例节点主键
     * @return 结果
     */
    public int deleteDmsFaultInstanceActivityByInstanceActivityId(Long instanceActivityId);
    boolean selectUserIdByDmsFaultInstanceActivity(Long repairInstanceId,Long userId);
}
