From ffc386a33619df27c620f293ed0ec4c3ef17d506 Mon Sep 17 00:00:00 2001 From: 15030600271 <1qaz!QAZ> Date: 星期五, 24 十一月 2023 20:40:11 +0800 Subject: [PATCH] 20231124_qiuyh_查询搅拌站入库记录 --- 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