标注结果和归档优化
This commit is contained in:
@@ -8,10 +8,8 @@
|
||||
<result column="creator_role" property="creatorRole"/>
|
||||
<result column="task_id" property="taskId"/>
|
||||
<result column="resource_id" property="resourceId"/>
|
||||
<result column="qa_content_json" property="qaContentJson"/>
|
||||
<result column="qa_content_storage_mode" property="qaContentStorageMode"/>
|
||||
<result column="qa_content_file_path" property="qaContentFilePath"/>
|
||||
<result column="diff_summary" property="diffSummary"/>
|
||||
<result column="diff_summary_file_path" property="diffSummaryFilePath"/>
|
||||
<result column="requires_manual_review" property="requiresManualReview"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
<result column="reviewer_id" property="reviewerId"/>
|
||||
@@ -22,9 +20,9 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="AnnotationResultColumns">
|
||||
id, company_id, creator_id, creator_role, task_id, resource_id, qa_content_json,
|
||||
qa_content_storage_mode, qa_content_file_path, diff_summary, requires_manual_review,
|
||||
is_deleted, reviewer_id, review_comment, reviewed_at, created_at, updated_at
|
||||
id, company_id, creator_id, creator_role, task_id, resource_id, qa_content_file_path,
|
||||
diff_summary_file_path, requires_manual_review, is_deleted, reviewer_id, review_comment,
|
||||
reviewed_at, created_at, updated_at
|
||||
</sql>
|
||||
|
||||
<select id="findActiveByIdAndCompanyId" resultMap="AnnotationResultResultMap">
|
||||
|
||||
@@ -89,11 +89,11 @@ INSERT INTO annotation_result (
|
||||
requires_manual_review, is_deleted, reviewer_id, review_comment, reviewed_at
|
||||
) VALUES
|
||||
(801, 2, 3, 'EMPLOYEE', 701, 601,
|
||||
'annotation-results/2/qa/801.json',
|
||||
'annotation-results/2/diff/801.json',
|
||||
'annotation-results/qa/801.json',
|
||||
'annotation-results/diff/801.json',
|
||||
TRUE, FALSE, NULL, NULL, NULL),
|
||||
(802, 2, 3, 'EMPLOYEE', 702, 602,
|
||||
'annotation-results/2/qa/802.json',
|
||||
'annotation-results/qa/802.json',
|
||||
NULL,
|
||||
FALSE, FALSE, 5, '结果可通过。', CURRENT_TIMESTAMP)
|
||||
ON CONFLICT DO NOTHING;
|
||||
|
||||
Reference in New Issue
Block a user