From a06aa3c488bf5b45146e0969a5b2c21d0af847e8 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 17 Dec 2021 11:30:12 +0800 Subject: [PATCH] 20211216 --- src/main/resources/mapper/video/VideoMasterItemsMapper.xml | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/video/VideoMasterItemsMapper.xml b/src/main/resources/mapper/video/VideoMasterItemsMapper.xml index b597c27..e8b6234 100644 --- a/src/main/resources/mapper/video/VideoMasterItemsMapper.xml +++ b/src/main/resources/mapper/video/VideoMasterItemsMapper.xml @@ -43,4 +43,14 @@ <!-- )--> <!-- </foreach>--> <!-- </insert>--> + + <select id="selectItemByVideoIdAndItemId" resultType="cc.mrbird.febs.video.entity.VideoMasterItemsEntity"> + select * from video_master_items + where master_id=#{videoId} + <if test="itemId != null"> + and id = #{itemId} + </if> + order by seq asc + limit 1 + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1