From d59a9f1237c790375d34abf29b6fc9b3c1a7feac Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 16 Dec 2021 11:20:09 +0800 Subject: [PATCH] 20211216 --- 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