添加mapper注释
This commit is contained in:
@@ -5,9 +5,28 @@ import com.labelsys.backend.entity.ImageBboxAnnotation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 图像边界框标注数据访问层
|
||||
*
|
||||
* 继承 BaseMapper<ImageBboxAnnotation>,提供图像边界框标注表的基础 CRUD 操作,
|
||||
* 并扩展自定义的查询和删除方法。
|
||||
*/
|
||||
@Mapper
|
||||
public interface ImageBboxAnnotationMapper extends BaseMapper<ImageBboxAnnotation> {
|
||||
|
||||
/**
|
||||
* 根据资源ID查询图像边界框标注
|
||||
*
|
||||
* @param resourceId 资源ID
|
||||
* @return 图像边界框标注,不存在返回 null
|
||||
*/
|
||||
ImageBboxAnnotation selectByResourceId(@Param("resourceId") Long resourceId);
|
||||
|
||||
/**
|
||||
* 根据资源ID删除图像边界框标注
|
||||
*
|
||||
* @param resourceId 资源ID
|
||||
* @return 删除影响的行数
|
||||
*/
|
||||
int deleteByResourceId(@Param("resourceId") Long resourceId);
|
||||
}
|
||||
Reference in New Issue
Block a user