| | |
| | | ) 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> |