From 1e4bf72ccc19a9a1b58eecc22e078bc5c07e2e6f Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Sun, 28 Dec 2025 14:34:03 +0800
Subject: [PATCH] 1. 优化航线代码业务逻辑。

---
 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