select material_requisition_id, material_requisition_number, sales_order_number, work_order_number, dept_name, material_requisition_person, dept_number, stock_number, stock_name, stock_manager, output_class, output_date, finish_product_code, type_machine, work_order_quantity, remark_content, get_material_flag, first_add_time, update_info_time, standby_one, standby_two, outsource_order_number, batch_number, supplier_code, supplier_name from material_requisition_info insert into material_requisition_info material_requisition_number, sales_order_number, work_order_number, dept_name, material_requisition_person, dept_number, stock_number, stock_name, stock_manager, output_class, output_date, finish_product_code, type_machine, work_order_quantity, remark_content, get_material_flag, standby_one, standby_two, outsource_order_number, batch_number, supplier_code, supplier_name, first_add_time, #{materialRequisitionNumber}, #{salesOrderNumber}, #{workOrderNumber}, #{deptName}, #{materialRequisitionPerson}, #{deptNumber}, #{stockNumber}, #{stockName}, #{stockManager}, #{outputClass}, #{outputDate}, #{finishProductCode}, #{typeMachine}, #{workOrderQuantity}, #{remarkContent}, #{getMaterialFlag}, #{standbyOne}, #{standbyTwo}, #{outsourceOrderNumber}, #{batchNumber}, #{supplierCode}, #{supplierName}, now(), update material_requisition_info material_requisition_number = #{materialRequisitionNumber}, sales_order_number = #{salesOrderNumber}, work_order_number = #{workOrderNumber}, dept_name = #{deptName}, material_requisition_person = #{materialRequisitionPerson}, dept_number = #{deptNumber}, stock_number = #{stockNumber}, stock_name = #{stockName}, stock_manager = #{stockManager}, output_class = #{outputClass}, output_date = #{outputDate}, finish_product_code = #{finishProductCode}, type_machine = #{typeMachine}, work_order_quantity = #{workOrderQuantity}, remark_content = #{remarkContent}, get_material_flag = #{getMaterialFlag}, standby_one = #{standbyOne}, standby_two = #{standbyTwo}, outsource_order_number = #{outsourceOrderNumber}, batch_number = #{batchNumber}, supplier_code = #{supplierCode}, supplier_name = #{supplierName}, update_info_time = CONCAT_WS(',',NOW(),update_info_time), where material_requisition_id = #{materialRequisitionId} delete from material_requisition_info where material_requisition_id = #{materialRequisitionId} delete from material_requisition_info where material_requisition_id in #{materialRequisitionId}