select material_requisition_detail_id, material_requisition_number, material_code, material_name, specification_model, type_machine, inventory_unit, plan_quantity, description, unit_usage, storage_location, material_type, standby_one, standby_two from material_requisition_detail
insert into material_requisition_detail
material_requisition_number,
material_code,
material_name,
specification_model,
type_machine,
inventory_unit,
plan_quantity,
description,
unit_usage,
storage_location,
material_type,
standby_one,
standby_two,
#{materialRequisitionNumber},
#{materialCode},
#{materialName},
#{specificationModel},
#{typeMachine},
#{inventoryUnit},
#{planQuantity},
#{description},
#{unitUsage},
#{storageLocation},
#{materialType},
#{standbyOne},
#{standbyTwo},
update material_requisition_detail
material_requisition_number = #{materialRequisitionNumber},
material_code = #{materialCode},
material_name = #{materialName},
specification_model = #{specificationModel},
type_machine = #{typeMachine},
inventory_unit = #{inventoryUnit},
plan_quantity = #{planQuantity},
description = #{description},
unit_usage = #{unitUsage},
storage_location = #{storageLocation},
material_type = #{materialType},
standby_one = #{standbyOne},
standby_two = #{standbyTwo},
where material_requisition_detail_id = #{materialRequisitionDetailId}
delete from material_requisition_detail where material_requisition_detail_id = #{materialRequisitionDetailId}
delete from material_requisition_detail where material_requisition_detail_id in
#{materialRequisitionDetailId}