select attachment_id, file_name, file_path, file_size, file_type, upload_time, upload_by, order_id, remark from sys_attachment insert into sys_attachment file_name, file_path, file_size, file_type, upload_time, upload_by, order_id, remark, #{fileName}, #{filePath}, #{fileSize}, #{fileType}, #{uploadTime}, #{uploadBy}, #{orderId}, #{remark}, update sys_attachment file_name = #{fileName}, file_path = #{filePath}, file_size = #{fileSize}, file_type = #{fileType}, upload_time = #{uploadTime}, upload_by = #{uploadBy}, order_id = #{orderId}, remark = #{remark}, where attachment_id = #{attachmentId} delete from sys_attachment where attachment_id = #{attachmentId} delete from sys_attachment where order_id = #{orderId} delete from sys_attachment where attachment_id in #{attachmentId}