select order_id, area_id, order_no, out_trade_no, user_id, rule_id, coupon_id,log_id
device_mac, sn, pay_time, paid, pay_type, type, total_fee, pay_fee, dispatch_fee,
manage_fee, riding_fee, appointment_fee, mark, duration, distance, status,
create_time, appointment_start_time, appointment_end_time,appointment_timeout, unlock_time,return_time,
rule_end_time, return_type, AsText(trip_route) trip_route,trip_route_str,cycle,deposit_deduction,video_url,
upload_time,deduction_amount,audio_files,used_sn,change_reason,locking,auto_refund_deposit,free_ride_time,
rental_unit,riding_rule,riding_rule_json,charging_cycle,charging_cycle_value,capped_amount,handling_charge, platform_service_fee, pay_channel,cost,
operator_dividend from et_order
select order_id, area_id, order_no, out_trade_no, user_id, rule_id, coupon_id,log_id
device_mac, sn, pay_time, paid, pay_type, type, total_fee, pay_fee, dispatch_fee,
manage_fee, riding_fee, appointment_fee, mark, duration, distance, status,
create_time, appointment_start_time, appointment_end_time,appointment_timeout, unlock_time,return_time,
rule_end_time, return_type, cycle,deposit_deduction,video_url,upload_time,deduction_amount,audio_files,
used_sn,change_reason,locking,auto_refund_deposit,free_ride_time,
rental_unit,riding_rule,riding_rule_json,charging_cycle,charging_cycle_value,capped_amount,handling_charge, platform_service_fee, pay_channel,cost,
operator_dividend from et_order
insert into et_order
order_id,
area_id,
order_no,
user_id,
rule_id,
coupon_id,
log_id,
device_mac,
sn,
pay_time,
paid,
pay_type,
type,
total_fee,
pay_fee,
dispatch_fee,
manage_fee,
riding_fee,
appointment_fee,
mark,
duration,
distance,
status,
create_time,
appointment_start_time,
appointment_end_time,
appointment_timeout,
unlock_time,
return_time,
rule_end_time,
return_type,
trip_route,
trip_route_str,
cycle,
auto_refund_deposit,
free_ride_time,
rental_unit,
riding_rule,
riding_rule_json,
charging_cycle,
charging_cycle_value,
capped_amount,
pay_channel,
cost,
#{orderId},
#{areaId},
#{orderNo},
#{userId},
#{ruleId},
#{couponId},
#{logId},
#{deviceMac},
#{sn},
#{payTime},
#{paid},
#{payType},
#{type},
#{totalFee},
#{payFee},
#{dispatchFee},
#{manageFee},
#{ridingFee},
#{appointmentFee},
#{mark},
#{duration},
#{distance},
#{status},
#{createTime},
#{appointmentStartTime},
#{appointmentEndTime},
#{appointmentTimeout},
#{unlockTime},
#{returnTime},
#{ruleEndTime},
#{returnType},
GeomFromText(#{tripRoute}),
#{tripRouteStr},
#{cycle},
#{autoRefundDeposit},
#{freeRideTime},
#{rentalUnit},
#{ridingRule},
#{ridingRuleJson},
#{chargingCycle},
#{chargingCycleValue},
#{cappedAmount},
#{payChannel},
#{cost},
update et_order
area_id = #{areaId},
out_trade_no = #{outTradeNo},
user_id = #{userId},
rule_id = #{ruleId},
coupon_id = #{couponId},
log_id = #{logId},
device_mac = #{deviceMac},
sn = #{sn},
pay_time = #{payTime},
paid = #{paid},
pay_type = #{payType},
type = #{type},
total_fee = #{totalFee},
pay_fee = #{payFee},
dispatch_fee = #{dispatchFee},
manage_fee = #{manageFee},
riding_fee = #{ridingFee},
appointment_fee = #{appointmentFee},
mark = #{mark},
duration = #{duration},
distance = #{distance},
status = #{status},
create_time = #{createTime},
appointment_start_time = #{appointmentStartTime},
appointment_end_time = #{appointmentEndTime},
appointment_timeout = #{appointmentTimeout},
unlock_time = #{unlockTime},
return_time = #{returnTime},
return_type = #{returnType},
trip_route = GeomFromText(#{tripRoute}),
trip_route_str = #{tripRouteStr},
cycle = #{cycle},
deposit_deduction = #{depositDeduction},
video_url = #{videoUrl},
upload_time = #{uploadTime},
deduction_amount = #{deductionAmount},
audio_files = #{audioFiles},
used_sn = #{usedSn},
change_reason = #{changeReason},
locking = #{locking},
auto_refund_deposit = #{autoRefundDeposit},
free_ride_time = #{freeRideTime},
rental_unit = #{rentalUnit},
riding_rule = #{ridingRule},
riding_rule_json = #{ridingRuleJson},
charging_cycle = #{chargingCycle},
charging_cycle_value = #{chargingCycleValue},
capped_amount = #{cappedAmount},
handling_charge = #{handlingCharge},
platform_service_fee = #{platformServiceFee},
operator_dividend = #{operatorDividend},
pay_channel = #{payChannel},
cost = #{cost},
where order_id = #{orderId}
update et_order
area_id = #{areaId},
user_id = #{userId},
out_trade_no = #{outTradeNo},
rule_id = #{ruleId},
coupon_id = #{couponId},
log_id = #{logId},
device_mac = #{deviceMac},
sn = #{sn},
pay_time = #{payTime},
paid = #{paid},
pay_type = #{payType},
type = #{type},
total_fee = #{totalFee},
pay_fee = #{payFee},
dispatch_fee = #{dispatchFee},
manage_fee = #{manageFee},
riding_fee = #{ridingFee},
appointment_fee = #{appointmentFee},
mark = #{mark},
duration = #{duration},
distance = #{distance},
status = #{status},
create_time = #{createTime},
appointment_start_time = #{appointmentStartTime},
appointment_end_time = #{appointmentEndTime},
appointment_timeout = #{appointmentTimeout},
unlock_time = #{unlockTime},
return_time = #{returnTime},
return_type = #{returnType},
trip_route = GeomFromText(#{tripRoute}),
trip_route_str = #{tripRouteStr},
cycle = #{cycle},
deposit_deduction = #{depositDeduction},
video_url = #{videoUrl},
upload_time = #{uploadTime},
deduction_amount = #{deductionAmount},
audio_files = #{audioFiles},
used_sn = #{usedSn},
change_reason = #{changeReason},
locking = #{locking},
auto_refund_deposit = #{autoRefundDeposit},
free_ride_time = #{freeRideTime},
rental_unit = #{rentalUnit},
riding_rule = #{ridingRule},
riding_rule_json = #{ridingRuleJson},
charging_cycle = #{chargingCycle},
charging_cycle_value = #{chargingCycleValue},
capped_amount = #{cappedAmount},
handling_charge = #{handlingCharge},
platform_service_fee = #{platformServiceFee},
operator_dividend = #{operatorDividend},
pay_channel = #{payChannel},
cost = #{cost},
where order_no = #{orderNo}
delete from et_order where order_id = #{orderId}
delete from et_order where order_id in
#{orderId}
delete from et_order where order_no = #{orderNo}