This commit is contained in:
weiweiw 2024-11-27 12:51:18 +08:00
parent f331fe1dc6
commit 807115d370
2 changed files with 6 additions and 3 deletions

View File

@ -53,7 +53,9 @@ public class DataSetEntity extends BaseEntity {
/**数据集关联的文件id*/
private Long[] fileIds;
/**查询使用*/
private Integer annotatedCount;
private Integer notAnnotatedCount;
private String latestVersionName;
}

View File

@ -30,11 +30,12 @@
left join ai_annotation_task aat on aat.task_id = atv.task_id
left join ai_dataset ad on ad.dataset_id = atv.dataset_id
left join ai_annotation_task_annotator_map ap on atv.task_id = ap.task_id
where atv.del_flag = '0' and ap.annotation_status IN ('0', '1', '2','3')
where atv.del_flag = '0' and ap.annotation_status IN ('0', '1', '2','3') and atv.dataset_id = #{datasetId}
<if test="versionName != null and versionName != ''">
AND version_name LIKE CONCAT('%', #{versionName}, '%')
</if>
GROUP BY ap.task_id
ORDER BY create_time DESC
GROUP BY ap.task_id, atv.create_time
ORDER BY atv.create_time DESC
</select>
</mapper>