添加mapper注释

This commit is contained in:
wh
2026-05-13 23:46:40 +08:00
parent 3619d34739
commit 954f9b14cf
11 changed files with 219 additions and 68 deletions

View File

@@ -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);
}