select album_id, album_name, user_id, dept_id, album_type, cover_image, description, create_by, create_time, audit_state, code, width, height, hit, up_vote, comment_flag from cms_album insert into cms_album album_id, album_name, user_id, dept_id, album_type, cover_image, description, create_by, create_time, audit_state, code, width, height, hit, up_vote, comment_flag, #{albumId}, #{albumName}, #{userId}, #{deptId}, #{albumType}, #{coverImage}, #{description}, #{createBy}, #{createTime}, #{auditState}, #{code}, #{width}, #{height}, #{hit}, #{upVote}, #{commentFlag}, update cms_album album_name = #{albumName}, user_id = #{userId}, dept_id = #{deptId}, album_type = #{albumType}, cover_image = #{coverImage}, description = #{description}, create_by = #{createBy}, create_time = #{createTime}, audit_state = #{auditState}, code = #{code}, width = #{width}, height = #{height}, hit = #{hit}, up_vote = #{upVote}, comment_flag = #{commentFlag}, where album_id = #{albumId} delete from cms_album where album_id = #{albumId} delete from cms_album where album_id in #{albumId} 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}