select user_node_id, user_workflow_id, qw_external_id, qw_user_id, template_node_id, node_key, node_name, node_type, prev_node_id, next_node_id, next_condition, child_nodes, prompt, node_config, is_valid_reply, status, sort_order, start_time, end_time, create_time, update_time from ai_addwx_sop_user_node insert into ai_addwx_sop_user_node user_workflow_id, qw_external_id, qw_user_id, template_node_id, node_key, node_name, node_type, prev_node_id, next_node_id, next_condition, child_nodes, prompt, node_config, is_valid_reply, status, sort_order, start_time, end_time, create_time, update_time, #{userWorkflowId}, #{qwExternalId}, #{qwUserId}, #{templateNodeId}, #{nodeKey}, #{nodeName}, #{nodeType}, #{prevNodeId}, #{nextNodeId}, #{nextCondition}, #{childNodes}, #{prompt}, #{nodeConfig}, #{isValidReply}, #{status}, #{sortOrder}, #{startTime}, #{endTime}, #{createTime}, #{updateTime}, update ai_addwx_sop_user_node user_workflow_id = #{userWorkflowId}, qw_external_id = #{qwExternalId}, qw_user_id = #{qwUserId}, template_node_id = #{templateNodeId}, node_key = #{nodeKey}, node_name = #{nodeName}, node_type = #{nodeType}, prev_node_id = #{prevNodeId}, next_node_id = #{nextNodeId}, next_condition = #{nextCondition}, child_nodes = #{childNodes}, prompt = #{prompt}, node_config = #{nodeConfig}, is_valid_reply = #{isValidReply}, status = #{status}, sort_order = #{sortOrder}, start_time = #{startTime}, end_time = #{endTime}, update_time = #{updateTime}, where user_node_id = #{userNodeId} delete from ai_addwx_sop_user_node where user_node_id = #{userNodeId} delete from ai_addwx_sop_user_node where user_workflow_id = #{userWorkflowId} insert into ai_addwx_sop_user_node ( user_workflow_id, qw_external_id, qw_user_id, template_node_id, node_key, node_name, node_type, prev_node_id, next_node_id, next_condition, child_nodes, prompt, node_config, is_valid_reply, status, sort_order, start_time, end_time, create_time, update_time ) values ( #{item.userWorkflowId}, #{item.qwExternalId}, #{item.qwUserId}, #{item.templateNodeId}, #{item.nodeKey}, #{item.nodeName}, #{item.nodeType}, #{item.prevNodeId}, #{item.nextNodeId}, #{item.nextCondition}, #{item.childNodes}, #{item.prompt}, #{item.nodeConfig}, #{item.isValidReply}, #{item.status}, #{item.sortOrder}, #{item.startTime}, #{item.endTime}, #{item.createTime}, #{item.updateTime} )