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