Compare commits

...

2 Commits

Author SHA1 Message Date
weiweiw 052eda7838 Merge remote-tracking branch 'origin/main' 2024-12-02 11:29:56 +08:00
weiweiw 245902e0f4 修改返回数据集最新的版本信息 2024-12-02 11:29:43 +08:00
1 changed files with 5 additions and 5 deletions

View File

@ -92,14 +92,14 @@
LEFT JOIN ai_dataset ad on ad.dataset_id = at.dataset_id
LEFT JOIN sys_user su on su.user_id = at.create_by
LEFT JOIN (
SELECT task_id, dataset_id, version_name
SELECT dataset_id, version_name
FROM ai_dataset_version
WHERE (task_id, dataset_id, create_time) IN (
SELECT task_id, dataset_id, MAX(create_time)
WHERE (dataset_id, create_time) IN (
SELECT dataset_id, MAX(create_time)
FROM ai_dataset_version
GROUP BY task_id, dataset_id
GROUP BY dataset_id
)
) atv ON atv.task_id = at.task_id AND atv.dataset_id = at.dataset_id
) atv ON atv.dataset_id = at.dataset_id
WHERE at.del_flag = '0' and ap.annotation_status IN ('0', '1', '2','3')
<if test="taskName != null and taskName != ''">
AND at.task_name LIKE CONCAT('%', #{taskName}, '%')