去掉任务中相关模型和提示词绑定,新增资源图片bbox处理
This commit is contained in:
24
src/main/resources/mapper/ImageBboxAnnotationMapper.xml
Normal file
24
src/main/resources/mapper/ImageBboxAnnotationMapper.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.labelsys.backend.mapper.ImageBboxAnnotationMapper">
|
||||
<resultMap id="ImageBboxAnnotationResultMap" type="com.labelsys.backend.entity.ImageBboxAnnotation">
|
||||
<id column="id" property="id"/>
|
||||
<result column="company_id" property="companyId"/>
|
||||
<result column="resource_id" property="resourceId"/>
|
||||
<result column="bbox_json" property="bboxJson"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="creator_id" property="creatorId"/>
|
||||
<result column="creator_role" property="creatorRole"/>
|
||||
<result column="created_at" property="createdAt"/>
|
||||
<result column="updated_at" property="updatedAt"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectByResourceId" resultMap="ImageBboxAnnotationResultMap">
|
||||
SELECT id, company_id, resource_id, bbox_json, remark, creator_id, creator_role, created_at, updated_at
|
||||
FROM image_bbox_annotation WHERE resource_id = #{resourceId}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByResourceId">
|
||||
DELETE FROM image_bbox_annotation WHERE resource_id = #{resourceId}
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user