From 37e53ee529f13b6058698eb97390dca1752843bb Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 14 Dec 2021 17:57:53 +0800
Subject: [PATCH] fix video master source

---
 src/main/resources/mapper/video/VideoMasterSourceMapper.xml |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/video/VideoMasterSourceMapper.xml b/src/main/resources/mapper/video/VideoMasterSourceMapper.xml
index 7b04b5d..2bf5bac 100644
--- a/src/main/resources/mapper/video/VideoMasterSourceMapper.xml
+++ b/src/main/resources/mapper/video/VideoMasterSourceMapper.xml
@@ -5,10 +5,20 @@
     <select id="selectInPage" resultType="cc.mrbird.febs.video.entity.VideoMasterSourceEntity">
         select * from video_master_source
         <where>
-            1=1
+            1=1 and is_del=2
             <if test="record.name != null and record.name != ''">
                 and name like concat('%', #{record.name}, '%')
             </if>
         </where>
     </select>
+
+
+    <update id="updateDelFlag">
+        update video_master_source
+        set is_del=#{delFlag}
+        where id in
+        <foreach collection="list" item="item" index="index" separator="," close=")" open="(">
+            #{item}
+        </foreach>
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1