select t.task_id, t.task_code, t.task_name, t.workorder_id, t.workorder_code, t.workorder_name, t.workstation_id, t.workstation_code, t.workstation_name, t.route_id, t.route_code, t.process_id, t.process_code, t.process_name,p.is_check, t.item_id, t.item_code, t.item_name, t.specification, t.unit_of_measure, t.quantity, t.quantity_produced, t.quantity_changed, t.client_id, t.client_code, t.client_name, t.client_nick, t.start_time, t.duration, t.end_time, t.color_code, t.request_date, t.remark, t.attr1, t.attr2, t.attr3, t.attr4, t.create_by, t.create_time, t.update_by, t.update_time, t.status, t.quantity_quanlify, t.quantity_unquanlify from pro_task t left join pro_route_process p on t.route_id = p.route_id and t.process_id = p.process_id insert into pro_task task_code, task_name, workorder_id, workorder_code, workorder_name, workstation_id, workstation_code, workstation_name, route_id, route_code, process_id, process_code, process_name, item_id, item_code, item_name, specification, unit_of_measure, quantity, quantity_produced, quantity_quanlify, quantity_unquanlify, quantity_changed, client_id, client_code, client_name, client_nick, start_time, duration, end_time, color_code, request_date, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, #{taskCode}, #{taskName}, #{workorderId}, #{workorderCode}, #{workorderName}, #{workstationId}, #{workstationCode}, #{workstationName}, #{routeId}, #{routeCode}, #{processId}, #{processCode}, #{processName}, #{itemId}, #{itemCode}, #{itemName}, #{specification}, #{unitOfMeasure}, #{quantity}, #{quantityProduced}, #{quantityQuanlify}, #{quantityUnquanlify}, #{quantityChanged}, #{clientId}, #{clientCode}, #{clientName}, #{clientNick}, #{startTime}, #{duration}, #{endTime}, #{colorCode}, #{requestDate}, #{status}, #{remark}, #{attr1}, #{attr2}, #{attr3}, #{attr4}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update pro_task task_code = #{taskCode}, task_name = #{taskName}, workorder_id = #{workorderId}, workorder_code = #{workorderCode}, workorder_name = #{workorderName}, workstation_id = #{workstationId}, workstation_code = #{workstationCode}, workstation_name = #{workstationName}, route_id = #{routeId}, route_code = #{routeCode}, process_id = #{processId}, process_code = #{processCode}, process_name = #{processName}, item_id = #{itemId}, item_code = #{itemCode}, item_name = #{itemName}, specification = #{specification}, unit_of_measure = #{unitOfMeasure}, quantity = #{quantity}, quantity_produced = #{quantityProduced}, quantity_quanlify = #{quantityQuanlify}, quantity_unquanlify = #{quantityUnquanlify}, quantity_changed = #{quantityChanged}, client_id = #{clientId}, client_code = #{clientCode}, client_name = #{clientName}, client_nick = #{clientNick}, start_time = #{startTime}, duration = #{duration}, end_time = #{endTime}, color_code = #{colorCode}, request_date = #{requestDate}, status = #{status}, remark = #{remark}, attr1 = #{attr1}, attr2 = #{attr2}, attr3 = #{attr3}, attr4 = #{attr4}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where task_id = #{taskId} delete from pro_task where task_id = #{taskId} delete from pro_task where task_id in #{taskId}