select id, sequence_id, ota_order_id, ticket_order_id, total_amount, total_amount_currency, order_status, supplier_order_id, confirm_type, order_quantity, quantity, service_name, create_time, update_time from zdy_trip_order select a.id, a.sequence_id, a.ota_order_id, a.total_amount, a.total_amount_currency, a.ticket_order_id, a.order_status, a.supplier_order_id, a.confirm_type, a.quantity, a.order_quantity, a.service_name, a.create_time, a.update_time, b.id as column_id, b.trip_order_id, b.amount, b.amount_currency, b.qrcode_rule, b.ticket_order_item_id, b.order_status as column_order_status, b.ticket_order_item_code, b.ticket_id, b.ticket_order_detail_id, b.user_tourist_id, b.passenger_id, b.voucher_id, b.use_date, b.item_id, b.quantity as column_quantity from zdy_trip_order a left join zdy_trip_order_detail b on b.trip_order_id = a.id insert into zdy_trip_order sequence_id, ota_order_id, ticket_order_id, supplier_order_id, confirm_type, quantity, order_quantity, service_name, order_status, total_amount, total_amount_currency, create_time, #{sequenceId}, #{otaOrderId}, #{ticketOrderId}, #{supplierOrderId}, #{confirmType}, #{quantity}, #{orderQuantity}, #{serviceName}, #{orderStatus}, #{totalAmount}, #{totalAmountCurrency}, sysdate(), update zdy_trip_order sequence_id = #{sequenceId}, ota_order_id = #{otaOrderId}, ticket_order_id = #{ticketOrderId}, supplier_order_id = #{supplierOrderId}, confirm_type = #{confirmType}, quantity = #{quantity}, order_quantity = #{orderQuantity}, service_name = #{serviceName}, order_status = #{orderStatus}, total_amount = #{totalAmount}, total_amount_currency = #{totalAmountCurrency}, update_time = sysdate(), where id = #{id} delete from zdy_trip_order where id = #{id} delete from zdy_trip_order where id in #{id}