select a.album_id, a.album_name, a.user_id, a.dept_id, a.album_type, a.description, a.create_by, a.create_time, a.audit_state,a.code,a.width,a.height from cms_album a insert into cms_album album_id, album_name, user_id, dept_id, album_type, description, create_by, create_time, audit_state, code, width, height, #{albumId}, #{albumName}, #{userId}, #{deptId}, #{albumType}, #{description}, #{createBy}, #{createTime}, #{auditState}, #{code}, #{width}, #{height}, insert into cms_album_material (id,album_id,material_id,link,sort) values null, #{albumId}, #{materialId}, #{link}, #{sort}, insert into cms_album_material (id,album_id,material_id,link,sort) values (null,#{item.albumId},#{item.materialId},#{item.link},#{item.sort}) delete from cms_album_material where id in #{id} update cms_album album_name = #{albumName}, user_id = #{userId}, dept_id = #{deptId}, album_type = #{albumType}, description = #{description}, create_by = #{createBy}, create_time = #{createTime}, audit_state = #{auditState}, code = #{code}, width = #{width}, height = #{height}, where album_id = #{albumId} delete from cms_album where album_id = #{albumId} delete from cms_album where album_id in #{albumId}