select qutsourcing_quotation_id, quotation_code, material_code, material_name, specification_model, type_machine, measurement_unit, common_currency, process_price, processing_procedure_name, processing_procedure_code, converter_code, converter_name, pricing_date, inventory_unit, tax_rate, relational_formula, quotation_explain, current_quote, registrant, confirm_no, confirm_name, confirm_time, audit_no, audit_name, audit_time, approve_no, approve_name, approve_time, standby_one, standby_two , first_add_time, update_info_time from sys_qutsourcing_quotation
insert into sys_qutsourcing_quotation
quotation_code,
material_code,
material_name,
specification_model,
type_machine,
measurement_unit,
common_currency,
process_price,
processing_procedure_name,
processing_procedure_code,
converter_code,
converter_name,
pricing_date,
inventory_unit,
tax_rate,
relational_formula,
quotation_explain,
current_quote,
registrant,
confirm_no,
confirm_name,
confirm_time,
audit_no,
audit_name,
audit_time,
approve_no,
approve_name,
approve_time,
standby_one,
standby_two,
first_add_time,
#{quotationCode},
#{materialCode},
#{materialName},
#{specificationModel},
#{typeMachine},
#{measurementUnit},
#{commonCurrency},
#{processPrice},
#{processingProcedureName},
#{processingProcedureCode},
#{converterCode},
#{converterName},
#{pricingDate},
#{inventoryUnit},
#{taxRate},
#{relationalFormula},
#{quotationExplain},
#{currentQuote},
#{registrant},
#{confirmNo},
#{confirmName},
#{confirmTime},
#{auditNo},
#{auditName},
#{auditTime},
#{approveNo},
#{approveName},
#{approveTime},
#{standbyOne},
#{standbyTwo},
now(),
update sys_qutsourcing_quotation
quotation_code = #{quotationCode},
material_code = #{materialCode},
material_name = #{materialName},
specification_model = #{specificationModel},
type_machine = #{typeMachine},
measurement_unit = #{measurementUnit},
common_currency = #{commonCurrency},
process_price = #{processPrice},
processing_procedure_name = #{processingProcedureName},
processing_procedure_code = #{processingProcedureCode},
converter_code = #{converterCode},
converter_name = #{converterName},
pricing_date = #{pricingDate},
inventory_unit = #{inventoryUnit},
tax_rate = #{taxRate},
relational_formula = #{relationalFormula},
quotation_explain = #{quotationExplain},
current_quote = #{currentQuote},
registrant = #{registrant},
confirm_no = #{confirmNo},
confirm_name = #{confirmName},
confirm_time = #{confirmTime},
audit_no = #{auditNo},
audit_name = #{auditName},
audit_time = #{auditTime},
approve_no = #{approveNo},
approve_name = #{approveName},
approve_time = #{approveTime},
standby_one = #{standbyOne},
standby_two = #{standbyTwo},
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
where qutsourcing_quotation_id = #{qutsourcingQuotationId}
delete from sys_qutsourcing_quotation where qutsourcing_quotation_id = #{qutsourcingQuotationId}
delete from sys_qutsourcing_quotation where qutsourcing_quotation_id in
#{qutsourcingQuotationId}