package com.ruoyi.project.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.project.domain.TrsAttachment;

/**
 * 智能报告Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-30
 */
public interface TrsAttachmentMapper 
{
    /**
     * 查询智能报告
     * 
     * @param id 智能报告主键
     * @return 智能报告
     */
    public TrsAttachment selectTrsAttachmentById(Long id);

    /**
     * 查询智能报告列表
     * 
     * @param trsAttachment 智能报告
     * @return 智能报告集合
     */
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<TrsAttachment> selectTrsAttachmentList(TrsAttachment trsAttachment);

    /**
     * 新增智能报告
     * 
     * @param trsAttachment 智能报告
     * @return 结果
     */
    public int insertTrsAttachment(TrsAttachment trsAttachment);

    /**
     * 修改智能报告
     * 
     * @param trsAttachment 智能报告
     * @return 结果
     */
    public int updateTrsAttachment(TrsAttachment trsAttachment);

    /**
     * 删除智能报告
     * 
     * @param id 智能报告主键
     * @return 结果
     */
    public int deleteTrsAttachmentById(Long id);

    /**
     * 批量删除智能报告
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrsAttachmentByIds(String[] ids);
}
