package com.yeejoin.amos.boot.module.ugp.api.mapper;

import com.yeejoin.amos.boot.module.ugp.api.dto.AttachmentDto;
import com.yeejoin.amos.boot.module.ugp.api.entity.Attachment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * 附件表 Mapper 接口
 *
 * @author system_generator
 * @date 2022-09-22
 */
@Repository
public interface AttachmentMapper extends BaseMapper<Attachment> {

    //根据source_id删除附件
    void deleteBySourceId(Long sourceId);

    //根据source_id查询附件
    AttachmentDto selectAttBySeq(Long sourceId);
}
