From 7e603bde766e5f4fc7f95c785b1083c42f61955e Mon Sep 17 00:00:00 2001 From: 李旭东 <woaiguo66@sina.com> Date: 星期五, 24 十一月 2023 13:42:57 +0800 Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe --- hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 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 a874634..f5a063c 100644 --- a/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml +++ b/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml @@ -207,5 +207,35 @@ ) x on x.`month` = DATE_FORMAT(m.`month`,'%Y-%m') </select> + <insert id="insertAudioGroup"> + INSERT INTO + <trim suffix=")" prefix="(" suffixOverrides=","> + <if test="id != null and id !=null"> + id, + </if> + <if test="groupId != null"> + group_id, + </if> + <if test="groupName != null and groupName !=null"> + group_name, + </if> + </trim> + <trim suffix=")" prefix=" values(" suffixOverrides=","> + <if test="id != null and id !=null"> + #{id}, + </if> + <if test="groupId != null"> + #{groupId}, + </if> + <if test="groupName != null and groupName !=null"> + #{groupName}, + </if> + </trim> + </insert> + + <select id="queryGroups" resultType="com.thhy.screen.modules.biz.audio.entity.AudioGroup"> + select id,group_id as groupId,group_name as groupName from t_audio_groups + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3