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