select sales_finish_id, sales_order_code, sales_order_number, enterprise_code, enterprise_name, finish_product_code, finish_product_name, specification_model, customer_number, type_machine, inventory_unit, stock_unit_weight, common_currency, process_price, product_quantity, amount_money, delivery_time, line, version_number, sales_explain, standby_one, standby_two from sys_sales_finish
insert into sys_sales_finish
sales_order_code,
sales_order_number,
enterprise_code,
enterprise_name,
finish_product_code,
finish_product_name,
specification_model,
customer_number,
type_machine,
inventory_unit,
stock_unit_weight,
common_currency,
process_price,
product_quantity,
amount_money,
delivery_time,
line,
version_number,
sales_explain,
customer_use_or_not,
account_reconciliation_or_not,
standby_one,
standby_two,
#{salesOrderCode},
#{salesOrderNumber},
#{enterpriseCode},
#{enterpriseName},
#{finishProductCode},
#{finishProductName},
#{specificationModel},
#{customerNumber},
#{typeMachine},
#{inventoryUnit},
#{stockUnitWeight},
#{commonCurrency},
#{processPrice},
#{productQuantity},
#{amountMoney},
#{deliveryTime},
#{line},
#{versionNumber},
#{salesExplain},
#{customerUseOrNot},
#{accountReconciliationOrNot},
#{standbyOne},
#{standbyTwo},
update sys_sales_finish
sales_order_code = #{salesOrderCode},
sales_order_number = #{salesOrderNumber},
enterprise_code = #{enterpriseCode},
enterprise_name = #{enterpriseName},
finish_product_code = #{finishProductCode},
finish_product_name = #{finishProductName},
specification_model = #{specificationModel},
customer_number = #{customerNumber},
type_machine = #{typeMachine},
inventory_unit = #{inventoryUnit},
stock_unit_weight = #{stockUnitWeight},
common_currency = #{commonCurrency},
process_price = #{processPrice},
product_quantity = #{productQuantity},
amount_money = #{amountMoney},
delivery_time = #{deliveryTime},
line = #{line},
version_number = #{versionNumber},
sales_explain = #{salesExplain},
standby_one = #{standbyOne},
standby_two = #{standbyTwo},
where sales_finish_id = #{salesFinishId}
delete from sys_sales_finish where sales_finish_id = #{salesFinishId}
delete from sys_sales_finish where sales_finish_id in
#{salesFinishId}