fix 标注结果插入报错的问题
This commit is contained in:
parent
b110880fe3
commit
cbfa932648
|
|
@ -283,20 +283,22 @@
|
||||||
<update id="updateAnnotationInfo" parameterType="com.bonus.ai.domain.dataset.AnnotationTaskAnnotatorEntity">
|
<update id="updateAnnotationInfo" parameterType="com.bonus.ai.domain.dataset.AnnotationTaskAnnotatorEntity">
|
||||||
UPDATE ai_annotation_task_annotator_map
|
UPDATE ai_annotation_task_annotator_map
|
||||||
<set>
|
<set>
|
||||||
<if test="annotationResult != null and annotationResult != ''">
|
<choose>
|
||||||
|
<when test="annotationResult != null and annotationResult != ''">
|
||||||
annotation_result = #{annotationResult},
|
annotation_result = #{annotationResult},
|
||||||
annotation_time = sysdate(),
|
annotation_time = sysdate(),
|
||||||
annotateTaskStatus = '1',
|
annotationStatus = '1',
|
||||||
</if>
|
</when>
|
||||||
<if test="auditFailedReason != null and auditFailedReason == ''">
|
<when test="auditFailedReason != null and auditFailedReason == ''">
|
||||||
audit_failed_reason = #{auditFailedReason},
|
audit_failed_reason = #{auditFailedReason},
|
||||||
review_time = sysdate(),
|
review_time = sysdate(),
|
||||||
annotation_status = '3',
|
annotation_status = '3',
|
||||||
</if>
|
</when>
|
||||||
<if test="annotateTaskStatus != null and annotateTaskStatus == '2'">
|
<when test="annotationStatus != null and annotationStatus == '2'">
|
||||||
annotateTaskStatus = #{annotateTaskStatus},
|
annotationStatus = #{annotationStatus},
|
||||||
review_time = sysdate(),
|
review_time = sysdate(),
|
||||||
</if>
|
</when>
|
||||||
|
</choose>
|
||||||
<if test="annotationResource != null and annotationResource != ''">annotation_resource = #{annotationResource},</if>
|
<if test="annotationResource != null and annotationResource != ''">annotation_resource = #{annotationResource},</if>
|
||||||
<if test="labelStudioProjectId != null">label_studio_project_id = #{labelStudioProjectId},</if>
|
<if test="labelStudioProjectId != null">label_studio_project_id = #{labelStudioProjectId},</if>
|
||||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue