select order_id, p_id, code, time, deposit, cost, pay_type, supplier, order_status, order_user, order_company from ma_order_info
insert into ma_order_info
order_id,
p_id,
code,
time,
deposit,
cost,
pay_type,
supplier,
order_status,
order_user,
order_company,
#{orderId},
#{pId},
#{code},
#{time},
#{deposit},
#{cost},
#{payType},
#{supplier},
#{orderStatus},
#{orderUser},
#{orderCompany},
insert into ma_order_details
order_id,
need_company,
plan_start_time,
is_machinist,
address_id,
address,
duration,
invoice_type,
description,
ma_id,
lease_type,
lease_price,
machinist_price,
order_contract,
machinist_name,
phone,
logistics_phone,
real_start_time,
renter_name,
tenant_name,
entry_attachment,
#{orderId},
#{needCompany},
#{planStartTime},
#{isMachinist},
#{addressId},
#{address},
#{duration},
#{invoiceType},
#{description},
#{maId},
#{leaseType},
#{leasePrice},
#{machinistPrice},
#{orderContract},
#{machinistName},
#{phone},
#{logisticsPhone},
#{realStartTime},
#{renterName},
#{tenantName},
#{entryAttachment},
update ma_order_info
p_id = #{pId},
code = #{code},
time = #{time},
deposit = #{deposit},
cost = #{cost},
pay_type = #{payType},
supplier = #{supplier},
order_status = #{orderStatus},
order_user = #{orderUser},
order_company = #{orderCompany},
where order_id = #{orderId}
delete from ma_order_info where order_id = #{orderId}
delete from ma_order_info where order_id in
#{orderId}