package com.ygtx.gxt.mapper;

import java.util.List;
import com.ygtx.gxt.domain.GxtWorkOrderAttachment;
import org.apache.ibatis.annotations.Mapper;

/**
 * 工单附件Mapper接口
 *
 * @author ygtx
 * @date 2025-10-29
 */
@Mapper
public interface GxtWorkOrderAttachmentMapper
{
    /**
     * 查询工单附件
     *
     * @param id 工单附件主键
     * @return 工单附件
     */
    public GxtWorkOrderAttachment selectGxtWorkOrderAttachmentById(Long id);

    /**
     * 查询工单的附件列表
     *
     * @param workOrderId 工单ID
     * @return 工单附件集合
     */
    public List<GxtWorkOrderAttachment> selectGxtWorkOrderAttachmentByOrderId(Long workOrderId);

    /**
     * 新增工单附件
     *
     * @param gxtWorkOrderAttachment 工单附件
     * @return 结果
     */
    public int insertGxtWorkOrderAttachment(GxtWorkOrderAttachment gxtWorkOrderAttachment);

    /**
     * 删除工单附件
     *
     * @param id 工单附件主键
     * @return 结果
     */
    public int deleteGxtWorkOrderAttachmentById(Long id);

    /**
     * 按工单ID删除工单附件
     *
     * @param workOrderId 工单ID
     * @return 结果
     */
    public int deleteGxtWorkOrderAttachmentByOrderId(Long workOrderId);
}
