package org.ta.pddserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.ta.pddserver.entity.GDAttachmentEntity;

import java.util.List;

@Mapper
public interface GDAttachmentMapper extends BaseMapper<GDAttachmentEntity> {

    @Select("SELECT * FROM  `gd_attachment` WHERE `ticket_id` = ${ticketId}")
    List<GDAttachmentEntity> getListByTicketId(@Param("ticketId") int ticketId);
}
