select attachment_id, create_by, create_user_id, create_time, update_by, update_user_id, update_time, remark, file_path, original_file_name, attachment_type, file_join_id, company_id, file_type from sys_attachment
insert into sys_attachment
create_by,
create_user_id,
create_time,
update_by,
update_user_id,
update_time,
remark,
file_path,
original_file_name,
attachment_type,
file_join_id,
company_id,
file_type,
#{createBy},
#{createUserId},
#{createTime},
#{updateBy},
#{updateUserId},
#{updateTime},
#{remark},
#{filePath},
#{originalFileName},
#{attachmentType},
#{fileJoinId},
#{companyId},
#{fileType},
update sys_attachment
create_by = #{createBy},
create_user_id = #{createUserId},
create_time = #{createTime},
update_by = #{updateBy},
update_user_id = #{updateUserId},
update_time = #{updateTime},
remark = #{remark},
file_path = #{filePath},
original_file_name = #{originalFileName},
attachment_type = #{attachmentType},
file_join_id = #{fileJoinId},
company_id = #{companyId},
file_type = #{fileType},
where attachment_id = #{attachmentId}
delete from sys_attachment where attachment_id = #{attachmentId}
delete from sys_attachment where attachment_id in
#{attachmentId}