select raw_material_id, finish_product_code, raw_material_code, raw_material_name, specification_model, inventory_unit, raw_material_consumption, raw_material_loss, supplier_number, finished_product_quantity, remarks, processing_category, standby_one, standby_two from sys_bom_raw_material
insert into sys_bom_raw_material
raw_material_id,
finish_product_code,
raw_material_code,
raw_material_name,
specification_model,
inventory_unit,
raw_material_consumption,
raw_material_loss,
supplier_number,
finished_product_quantity,
remarks,
processing_category,
standby_one,
standby_two,
#{rawMaterialId},
#{finishProductCode},
#{rawMaterialCode},
#{rawMaterialName},
#{specificationModel},
#{inventoryUnit},
#{rawMaterialConsumption},
#{rawMaterialLoss},
#{supplierNumber},
#{finishedProductQuantity},
#{remarks},
#{processingCategory},
#{standbyOne},
#{standbyTwo},
update sys_bom_raw_material
finish_product_code = #{finishProductCode},
raw_material_code = #{rawMaterialCode},
raw_material_name = #{rawMaterialName},
specification_model = #{specificationModel},
inventory_unit = #{inventoryUnit},
raw_material_consumption = #{rawMaterialConsumption},
raw_material_loss = #{rawMaterialLoss},
supplier_number = #{supplierNumber},
finished_product_quantity = #{finishedProductQuantity},
remarks = #{remarks},
processing_category = #{processingCategory},
standby_one = #{standbyOne},
standby_two = #{standbyTwo},
where raw_material_id = #{rawMaterialId}
delete from sys_bom_raw_material where raw_material_id = #{rawMaterialId}
delete from sys_bom_raw_material where raw_material_id in
#{rawMaterialId}
delete from sys_bom_raw_material where finish_product_code = #{finishProductCode}