select purchase_material_id, purchase_order_number, supplier_code, supplier_name, raw_subsidiary_code, raw_subsidiary_name, specification_model, material_type, common_currency, purchasing_unit, purchase_price, material_quantity, amount_money, delivery_time, purchase_explain, account_reconciliation_flag, account_reconciliation_person, account_reconciliation_time from purchase_material insert into purchase_material purchase_order_number, supplier_code, supplier_name, raw_subsidiary_code, raw_subsidiary_name, specification_model, material_type, common_currency, purchasing_unit, purchase_price, material_quantity, amount_money, delivery_time, purchase_explain, account_reconciliation_flag, account_reconciliation_person, account_reconciliation_time, #{purchaseOrderNumber}, #{supplierCode}, #{supplierName}, #{rawSubsidiaryCode}, #{rawSubsidiaryName}, #{specificationModel}, #{materialType}, #{commonCurrency}, #{purchasingUnit}, #{purchasePrice}, #{materialQuantity}, #{amountMoney}, #{deliveryTime}, #{purchaseExplain}, #{accountReconciliationFlag}, #{accountReconciliationPerson}, #{accountReconciliationTime}, update purchase_material purchase_order_number = #{purchaseOrderNumber}, supplier_code = #{supplierCode}, supplier_name = #{supplierName}, raw_subsidiary_code = #{rawSubsidiaryCode}, raw_subsidiary_name = #{rawSubsidiaryName}, specification_model = #{specificationModel}, material_type = #{materialType}, common_currency = #{commonCurrency}, purchasing_unit = #{purchasingUnit}, purchase_price = #{purchasePrice}, material_quantity = #{materialQuantity}, amount_money = #{amountMoney}, delivery_time = #{deliveryTime}, purchase_explain = #{purchaseExplain}, account_reconciliation_flag = #{accountReconciliationFlag}, account_reconciliation_person = #{accountReconciliationPerson}, account_reconciliation_time = #{accountReconciliationTime}, where purchase_material_id = #{purchaseMaterialId} delete from purchase_material where purchase_material_id = #{purchaseMaterialId} delete from purchase_material where purchase_material_id in #{purchaseMaterialId}