INSERT INTO m_material_audio(
material_status,
material_audio_id,
material_audio_file_id,
material_id,
material_order,
material_remark,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
1,
#{materialAudioId},
#{materialAudioFileId},
#{materialId},
#{materialOrder},
#{materialRemark},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
DELETE FROM
m_material_audio
WHERE
material_id = #{materialId}
UPDATE
m_material_audio
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
material_audio_id IN
#{materialAudioIds[${index}]}
DELETE FROM
m_material_audio
WHERE
material_audio_id IN
#{materialAudioIds[${index}]}
UPDATE
m_material_audio
SET
material_status = #{materialStatus}
WHERE
material_audio_id = #{materialAudioId}
UPDATE
m_material_audio
SET
material_audio_file_id = #{materialAudioFileId},
material_id = #{materialId},
material_order = #{materialOrder},
material_remark = #{materialRemark},
gmt_modified = #{gmtModified},
modifier = #{modifier},
material_audio_id = material_audio_id
WHERE
material_audio_id = #{materialAudioId}