fix 标注结果插入报错的问题
This commit is contained in:
parent
782e8c7872
commit
d44986cd5c
|
|
@ -279,6 +279,8 @@
|
|||
where abf.del_flag = '0' and aat.del_flag = '0' and aat.task_id = #{taskId} and adfm.file_id = #{fileId}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<!-- 根据任务id和 文件id 更新标注内容和状态 -->
|
||||
<update id="updateAnnotationInfo" parameterType="com.bonus.ai.domain.dataset.AnnotationTaskAnnotatorEntity">
|
||||
UPDATE ai_annotation_task_annotator_map
|
||||
|
|
@ -287,7 +289,7 @@
|
|||
<when test="annotationResult != null and annotationResult != ''">
|
||||
annotation_result = #{annotationResult},
|
||||
annotation_time = sysdate(),
|
||||
annotationStatus = '1',
|
||||
annotation_status = '1',
|
||||
</when>
|
||||
<when test="auditFailedReason != null and auditFailedReason == ''">
|
||||
audit_failed_reason = #{auditFailedReason},
|
||||
|
|
@ -295,7 +297,7 @@
|
|||
annotation_status = '3',
|
||||
</when>
|
||||
<when test="annotationStatus != null and annotationStatus == '2'">
|
||||
annotationStatus = #{annotationStatus},
|
||||
annotation_status = #{annotationStatus},
|
||||
review_time = sysdate(),
|
||||
</when>
|
||||
</choose>
|
||||
|
|
@ -327,5 +329,28 @@
|
|||
WHERE at.del_flag = '0' and ap.annotation_status IN ('1') and ap.reviewer_id = #{reviewerId}
|
||||
</select>
|
||||
|
||||
<select id="selectAnnotationDetailByTaskFile"
|
||||
resultType="com.bonus.ai.domain.dataset.AnnotationTaskAnnotatorEntity">
|
||||
SELECT
|
||||
atam.task_id AS taskId,
|
||||
atam.file_id AS fileId,
|
||||
atam.annotation_result AS annotationResult,
|
||||
atam.annotation_resource AS annotationResource,
|
||||
atam.annotation_status AS annotationStatus,
|
||||
atam.annotation_time AS annotationTime,
|
||||
atam.annotator_id AS annotatorId,
|
||||
atam.reviewer_id AS reviewerId,
|
||||
atam.review_time AS reviewTime,
|
||||
atam.audit_failed_reasonAS auditFailedReason
|
||||
from ai_annotation_task_annotator_map atam
|
||||
where atam.del_flag = '0'
|
||||
<if test="taskId != null and taskId != 0">
|
||||
AND atam.task_id = #{taskId}
|
||||
</if>
|
||||
<if test="fileId != null and fileId != ''">
|
||||
AND atam.file_id = #{fileId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue