From 7e4432176e90f5710e108037e473afc106229af8 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Sun, 28 Dec 2025 09:40:17 +0800
Subject: [PATCH] 优化

---
 ard-work/src/main/resources/mapper/ArdMediaVideoMapper.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/ArdMediaVideoMapper.xml b/ard-work/src/main/resources/mapper/ArdMediaVideoMapper.xml
index 86e514e..a87800d 100644
--- a/ard-work/src/main/resources/mapper/ArdMediaVideoMapper.xml
+++ b/ard-work/src/main/resources/mapper/ArdMediaVideoMapper.xml
@@ -37,6 +37,24 @@
         ORDER BY start_time DESC
     </select>
 
+    <!-- 查询 media_url 或 thumbnail_url 为 NULL 的视频 -->
+    <select id="selectVideosWithNullMedia" resultMap="ArdMediaVideoResult">
+        SELECT
+        id, name, file_size, media_url, source_url, thumbnail_url,
+        start_time, end_time, span_seconds, task_id,
+        create_time, update_time
+        FROM ard_media_video where media_url IS NULL
+        ORDER BY start_time ASC
+    </select>
+    <select id="selectVideosWithThumbnailNull" resultMap="ArdMediaVideoResult">
+        SELECT
+            id, name, file_size, media_url, source_url, thumbnail_url,
+            start_time, end_time, span_seconds, task_id,
+            create_time, update_time
+        FROM ard_media_video where thumbnail_url IS NULL
+        ORDER BY start_time ASC
+    </select>
+
     <!-- 根据ID查询 -->
     <select id="selectArdMediaVideoById" resultMap="ArdMediaVideoResult">
         SELECT

--
Gitblit v1.9.3