From 1b004047f00cc846924209051ee654619c56a249 Mon Sep 17 00:00:00 2001 From: 叶松 <2217086471@qq.com> Date: 星期三, 06 十二月 2023 16:17:42 +0800 Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe --- hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml b/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml index eae824e..4ab0c72 100644 --- a/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml +++ b/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml @@ -272,5 +272,59 @@ from sys_device sd where sd.produce_order = '静养' </select> + <insert id="insertAudioFile"> + insert into t_audio_group_file + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="id !=null and id !=''"> + id, + </if> + <if test="groupId !=null and groupId !=''"> + group_id, + </if> + <if test="audioFile !=null and audioFile !=''"> + audio_file, + </if> + <if test="defaults !=null"> + `defaults`, + </if> + </trim> + <trim prefix=" values (" suffix=")" suffixOverrides=","> + <if test="id !=null and id !=''"> + #{id}, + </if> + <if test="groupId !=null and groupId !=''"> + #{groupId}, + </if> + <if test="audioFile !=null and audioFile !=''"> + #{audioFile}, + </if> + <if test="defaults !=null"> + #{defaults}, + </if> + </trim> + </insert> + + <update id="updateAudioFile"> + UPDATE t_audio_group_file + <set> + <trim suffixOverrides=","> + <if test="groupId !=null and groupId !=''"> + group_id = #{groupId}, + </if> + <if test="audioFile !=null and audioFile !=''"> + audio_file = #{groupFile}, + </if> + <if test="defaults !=null"> + `defaults` = #{defaults}, + </if> + </trim> + </set> + where id = #{id} + </update> + + <delete id="deleteAudioFile"> + delete from t_audio_group_file where groupId = #{groupId} + </delete> + </mapper> \ No newline at end of file -- Gitblit v1.9.3