package com.hw.qms.mapper;

import java.util.List;
import com.hw.qms.domain.QmsQualityInstanceActivity;
import com.hw.qms.domain.QmsCheckInstanceFile;

/**
 * 质检工单实例节点Mapper接口
 * 
 * @author xins
 * @date 2024-03-11
 */
public interface QmsQualityInstanceActivityMapper 
{
    /**
     * 查询质检工单实例节点
     * 
     * @param instanceActivityId 质检工单实例节点主键
     * @return 质检工单实例节点
     */
    public QmsQualityInstanceActivity selectQmsQualityInstanceActivityByInstanceActivityId(Long instanceActivityId);

    /**
     * 查询质检工单实例节点列表
     * 
     * @param qmsQualityInstanceActivity 质检工单实例节点
     * @return 质检工单实例节点集合
     */
    public List<QmsQualityInstanceActivity> selectQmsQualityInstanceActivityList(QmsQualityInstanceActivity qmsQualityInstanceActivity);

    /**
     * 新增质检工单实例节点
     * 
     * @param qmsQualityInstanceActivity 质检工单实例节点
     * @return 结果
     */
    public int insertQmsQualityInstanceActivity(QmsQualityInstanceActivity qmsQualityInstanceActivity);

    /**
     * 修改质检工单实例节点
     * 
     * @param qmsQualityInstanceActivity 质检工单实例节点
     * @return 结果
     */
    public int updateQmsQualityInstanceActivity(QmsQualityInstanceActivity qmsQualityInstanceActivity);

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

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

    /**
     * 批量删除质检文件
     * 
     * @param instanceActivityIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQmsCheckInstanceFileByTargetIds(Long[] instanceActivityIds);
    
    /**
     * 批量新增质检文件
     * 
     * @param qmsCheckInstanceFileList 质检文件列表
     * @return 结果
     */
    public int batchQmsCheckInstanceFile(List<QmsCheckInstanceFile> qmsCheckInstanceFileList);
    

    /**
     * 通过质检工单实例节点主键删除质检文件信息
     * 
     * @param instanceActivityId 质检工单实例节点ID
     * @return 结果
     */
    public int deleteQmsCheckInstanceFileByTargetId(Long instanceActivityId);
}
