select objid, date, spare_parts_name, waste_quantity, storage_location, registrar, warehouse_confirmation, remarks, spare_part_model from power_energy_spare_parts_registration insert into power_energy_spare_parts_registration date, spare_parts_name, waste_quantity, storage_location, registrar, warehouse_confirmation, remarks, spare_part_model, #{date}, #{sparePartsName}, #{wasteQuantity}, #{storageLocation}, #{registrar}, #{warehouseConfirmation}, #{remarks}, #{sparePartModel}, update power_energy_spare_parts_registration date = #{date}, spare_parts_name = #{sparePartsName}, waste_quantity = #{wasteQuantity}, storage_location = #{storageLocation}, registrar = #{registrar}, warehouse_confirmation = #{warehouseConfirmation}, remarks = #{remarks}, spare_part_model = #{sparePartModel}, where objid = #{objid} delete from power_energy_spare_parts_registration where objid = #{objid} delete from power_energy_spare_parts_registration where objid in #{objid}