24 lines
1.2 KiB
XML
24 lines
1.2 KiB
XML
|
|
<?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>
|