select id, order_id, need_company, plan_start_time, is_machinist, 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 from ma_order_details insert into ma_order_details id, order_id, need_company, plan_start_time, is_machinist, 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, #{id}, #{orderId}, #{needCompany}, #{planStartTime}, #{isMachinist}, #{address}, #{duration}, #{invoiceType}, #{description}, #{maId}, #{leaseType}, #{leasePrice}, #{machinistPrice}, #{orderContract}, #{machinistName}, #{phone}, #{logisticsPhone}, #{realStartTime}, #{renterName}, #{tenantName}, #{entryAttachment}, update ma_order_details order_id = #{orderId}, need_company = #{needCompany}, plan_start_time = #{planStartTime}, is_machinist = #{isMachinist}, 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 id = #{id} delete from ma_order_details where id = #{id} delete from ma_order_details where id in #{id}