From 7d3a240b958fa1c834049a45131999f39071bfc9 Mon Sep 17 00:00:00 2001 From: 张晓波 <bingbo1993@126.com> Date: 星期一, 11 十二月 2023 10:38:23 +0800 Subject: [PATCH] 广播区域详情 --- hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml b/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml index 4ab0c72..84c1f09 100644 --- a/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml +++ b/hd/pipe/screen/src/main/resources/mapping/BigScreenMapper.xml @@ -234,7 +234,12 @@ </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 id,group_id as groupId,group_name as groupName from t_audio_group + <where> + <if test="groupId != null and groupId !=''"> + id = #{groupId} + </if> + </where> </select> <!--钢筋总消耗,周消耗,月消耗--> @@ -278,6 +283,9 @@ <if test="id !=null and id !=''"> id, </if> + <if test="name !=null and name !=''"> + name, + </if> <if test="groupId !=null and groupId !=''"> group_id, </if> @@ -291,6 +299,9 @@ <trim prefix=" values (" suffix=")" suffixOverrides=","> <if test="id !=null and id !=''"> #{id}, + </if> + <if test="name !=null and name !=''"> + #{name}, </if> <if test="groupId !=null and groupId !=''"> #{groupId}, @@ -323,8 +334,15 @@ </update> <delete id="deleteAudioFile"> - delete from t_audio_group_file where groupId = #{groupId} + delete from t_audio_group_file where group_id = #{groupId} </delete> + <select id="queryGroupInfo" resultType="com.thhy.screen.modules.biz.audio.entity.GroupInfoVo"> + select id,group_name as groupName + from t_audio_group where id = #{id} + </select> + <select id="queryFileByGroup" resultType="com.thhy.screen.modules.biz.audio.entity.AudioFile"> + select id,group_id as groupId,audio_file as audioFile,`defaults` from t_audio_group_file where group_id = #{groupId} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3