select attach_id, zid, user_id, file_type, file_name, file_path,file_url,
size, create_by, create_time, sort from cms_attachment
insert into cms_attachment
attach_id,
zid,
user_id,
file_type,
file_name,
file_path,
file_url,
size,
create_by,
create_time,
sort,
#{attachId},
#{zid},
#{userId},
#{fileType},
#{fileName},
#{filePath},
#{fileUrl},
#{size},
#{createBy},
#{createTime},
#{sort},
update cms_attachment
zid = #{zid},
user_id = #{userId},
file_type = #{fileType},
file_name = #{fileName},
file_path = #{filePath},
file_url = #{fileUrl},
size = #{size},
create_by = #{createBy},
create_time = #{createTime},
sort = #{sort},
where attach_id = #{attachId}
delete from cms_attachment where attach_id = #{attachId}
delete from cms_attachment where attach_id in
#{attachId}