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 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, first_add_time, update_info_time, standby_one, standby_two, first_add_time, #{materialRequisitionNumber}, #{salesOrderNumber}, #{workOrderNumber}, #{deptName}, #{materialRequisitionPerson}, #{deptNumber}, #{stockNumber}, #{stockName}, #{stockManager}, #{outputClass}, #{outputDate}, #{finishProductCode}, #{typeMachine}, #{workOrderQuantity}, #{remarkContent}, #{getMaterialFlag}, #{firstAddTime}, #{updateInfoTime}, #{standbyOne}, #{standbyTwo}, 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}, first_add_time = #{firstAddTime}, update_info_time = #{updateInfoTime}, standby_one = #{standbyOne}, standby_two = #{standbyTwo}, 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}