select sales_order_id, sales_order_code, sales_order_number, appointment_number, enterprise_code, enterprise_name, payment_terms, delivery_conditions, delivery_method, order_receiving_mode, customer_contact, customer_factory, contact_number, business_members, customer_fax, delivery_address, order_receiving_time, billing_time, customer_remarks, current_inventory, credit_limit, unpaid_amount, available_credit, confirm_tax, tax_rate, total_amount, modification_time, confirm_time, confirm_no, confirm_name, audit_no, standby_one, audit_name, standby_two, audit_time, audit_remarks, national_tax_bill, first_add_time, update_info_time, file_upload from sys_sales_order insert into sys_sales_order sales_order_code, sales_order_number, appointment_number, enterprise_code, enterprise_name, payment_terms, delivery_conditions, delivery_method, order_receiving_mode, customer_contact, customer_factory, contact_number, business_members, customer_fax, delivery_address, order_receiving_time, billing_time, customer_remarks, current_inventory, credit_limit, unpaid_amount, available_credit, confirm_tax, tax_rate, total_amount, modification_time, confirm_time, confirm_no, confirm_name, audit_no, standby_one, audit_name, standby_two, audit_time, audit_remarks, national_tax_bill, file_upload, first_add_time, #{salesOrderCode}, #{salesOrderNumber}, #{appointmentNumber}, #{enterpriseCode}, #{enterpriseName}, #{paymentTerms}, #{deliveryConditions}, #{deliveryMethod}, #{orderReceivingMode}, #{customerContact}, #{customerFactory}, #{contactNumber}, #{businessMembers}, #{customerFax}, #{deliveryAddress}, #{orderReceivingTime}, #{billingTime}, #{customerRemarks}, #{currentInventory}, #{creditLimit}, #{unpaidAmount}, #{availableCredit}, #{confirmTax}, #{taxRate}, #{totalAmount}, #{modificationTime}, #{confirmTime}, #{confirmNo}, #{confirmName}, #{auditNo}, #{standbyOne}, #{auditName}, #{standbyTwo}, #{auditTime}, #{auditRemarks}, #{nationalTaxBill}, #{fileUpload}, now(), update sys_sales_order sales_order_code = #{salesOrderCode}, sales_order_number = #{salesOrderNumber}, appointment_number = #{appointmentNumber}, enterprise_code = #{enterpriseCode}, enterprise_name = #{enterpriseName}, payment_terms = #{paymentTerms}, delivery_conditions = #{deliveryConditions}, delivery_method = #{deliveryMethod}, order_receiving_mode = #{orderReceivingMode}, customer_contact = #{customerContact}, customer_factory = #{customerFactory}, contact_number = #{contactNumber}, business_members = #{businessMembers}, customer_fax = #{customerFax}, delivery_address = #{deliveryAddress}, order_receiving_time = #{orderReceivingTime}, billing_time = #{billingTime}, customer_remarks = #{customerRemarks}, current_inventory = #{currentInventory}, credit_limit = #{creditLimit}, unpaid_amount = #{unpaidAmount}, available_credit = #{availableCredit}, confirm_tax = #{confirmTax}, tax_rate = #{taxRate}, total_amount = #{totalAmount}, modification_time = #{modificationTime}, confirm_time = #{confirmTime}, confirm_no = #{confirmNo}, confirm_name = #{confirmName}, audit_no = #{auditNo}, standby_one = #{standbyOne}, audit_name = #{auditName}, standby_two = #{standbyTwo}, audit_time = #{auditTime}, audit_remarks = #{auditRemarks}, national_tax_bill = #{nationalTaxBill}, file_upload = #{fileUpload}, update_info_time = CONCAT_WS(',',NOW(),update_info_time), where sales_order_id = #{salesOrderId} delete from sys_sales_order where sales_order_id = #{salesOrderId} delete from sys_sales_order where sales_order_id in #{salesOrderId}