select subsidiary_material_id, finish_product_code, subsidiary_material_code, subsidiary_material_name, specification_model, inventory_unit, subsidiary_material_consumption, subsidiary_material_loss, supplier_number, finished_product_quantity, remarks, processing_category, standby_one, standby_two from sys_bom_subsidiary_material insert into sys_bom_subsidiary_material subsidiary_material_id, finish_product_code, subsidiary_material_code, subsidiary_material_name, specification_model, inventory_unit, subsidiary_material_consumption, subsidiary_material_loss, supplier_number, finished_product_quantity, remarks, processing_category, standby_one, standby_two, #{subsidiaryMaterialId}, #{finishProductCode}, #{subsidiaryMaterialCode}, #{subsidiaryMaterialName}, #{specificationModel}, #{inventoryUnit}, #{subsidiaryMaterialConsumption}, #{subsidiaryMaterialLoss}, #{supplierNumber}, #{finishedProductQuantity}, #{remarks}, #{processingCategory}, #{standbyOne}, #{standbyTwo}, update sys_bom_subsidiary_material finish_product_code = #{finishProductCode}, subsidiary_material_code = #{subsidiaryMaterialCode}, subsidiary_material_name = #{subsidiaryMaterialName}, specification_model = #{specificationModel}, inventory_unit = #{inventoryUnit}, subsidiary_material_consumption = #{subsidiaryMaterialConsumption}, subsidiary_material_loss = #{subsidiaryMaterialLoss}, supplier_number = #{supplierNumber}, finished_product_quantity = #{finishedProductQuantity}, remarks = #{remarks}, processing_category = #{processingCategory}, standby_one = #{standbyOne}, standby_two = #{standbyTwo}, where subsidiary_material_id = #{subsidiaryMaterialId} delete from sys_bom_subsidiary_material where subsidiary_material_id = #{subsidiaryMaterialId} delete from sys_bom_subsidiary_material where subsidiary_material_id in #{subsidiaryMaterialId} delete from sys_bom_subsidiary_material where finish_product_code = #{finishProductCode}