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