Movatterモバイル変換


[0]ホーム

URL:


CN115269554A - Tree data management method, device, equipment and medium based on multi-service scene - Google Patents

Tree data management method, device, equipment and medium based on multi-service scene
Download PDF

Info

Publication number
CN115269554A
CN115269554ACN202210908588.5ACN202210908588ACN115269554ACN 115269554 ACN115269554 ACN 115269554ACN 202210908588 ACN202210908588 ACN 202210908588ACN 115269554 ACN115269554 ACN 115269554A
Authority
CN
China
Prior art keywords
data
nodes
node set
node
data node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210908588.5A
Other languages
Chinese (zh)
Inventor
唐强
徐越
潘北川
徐国统
黄亚兵
孙猛
龙喜洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Merchants Finance Technology Co Ltd
Original Assignee
China Merchants Finance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Merchants Finance Technology Co LtdfiledCriticalChina Merchants Finance Technology Co Ltd
Priority to CN202210908588.5ApriorityCriticalpatent/CN115269554A/en
Publication of CN115269554ApublicationCriticalpatent/CN115269554A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention relates to the technical field of data processing, and discloses a tree data management method based on multiple service scenes, which comprises the following steps: acquiring preset tree structure data and each data node in the data structure data; dividing nodes into a first node set, a second node set and a third node set according to the service scene of the data nodes; establishing a multiplexing relation for a first node in a first node set, and maintaining a corresponding node of the first node; establishing a first mapping relation for a second node in a second node set, and sending a maintenance notice to other nodes in the second node set when the nodes exist in the second node set for maintenance; and establishing a second mapping relation for a third node in the third node set, and synchronously performing subordinate maintenance for other nodes when nodes perform subordinate maintenance in the third node set. The invention also provides a tree data management device, equipment and a storage medium based on the multi-service scene. The invention can improve the management depth of the data.

Description

Translated fromChinese
基于多业务场景的树形数据管理方法、装置、设备及介质Tree data management method, device, equipment and medium based on multiple business scenarios

技术领域technical field

本发明涉及数据处理技术领域,尤其涉及一种基于多业务场景的树形数据管理方法、装置、设备及介质。The present invention relates to the technical field of data processing, in particular to a tree data management method, device, equipment and medium based on multiple business scenarios.

背景技术Background technique

树形数据结构作为一种重要的非线性数据结构,通常用于表示数据之间一对多的关系,例如在管理公司的组织人员架构时,可以采用树形数据结构对组织人员架构的数据进行管理。As an important non-linear data structure, the tree data structure is usually used to represent the one-to-many relationship between data. manage.

然而同一树形数据在不同的业务场景下往往需要不同的数据管理方式,有些时候要对树形数据进行统一管理,有时又要对树形数据进行差异化管理,现有的树形数据管理方法大多采用差异化管理,相较于统一化管理而言虽然可以满足各场景下的业务需求,但是响应的也更为费事费力,因此,如何满足不同业务场景树形数据的需求差异,实现更高程度的智能化管理成为了亟需解决的问题。However, the same tree-shaped data often requires different data management methods in different business scenarios. Sometimes the tree-shaped data needs to be managed uniformly, and sometimes the tree-shaped data needs to be managed differently. The existing tree-shaped data management methods Most of them use differentiated management. Compared with unified management, although they can meet the business needs of each scenario, the response is more laborious. Therefore, how to meet the different needs of tree data in different business scenarios and achieve higher The level of intelligent management has become an urgent problem to be solved.

发明内容Contents of the invention

本发明提供一种基于多业务场景的树形数据管理方法、装置、设备及介质,其主要目的在于提升对数据的管理深度。The present invention provides a tree-shaped data management method, device, equipment and medium based on multiple business scenarios, the main purpose of which is to improve the depth of data management.

为实现上述目的,本发明提供的一种基于多业务场景的树形数据管理方法,包括:In order to achieve the above purpose, the present invention provides a tree data management method based on multiple business scenarios, including:

获取预设的树形结构数据以及所述数据结构数据中的各个数据节点;Obtain preset tree structure data and each data node in the data structure data;

查询所述树形结构数据中各个数据节点的业务场景;Querying the business scenarios of each data node in the tree structure data;

根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集;dividing the data nodes into a first data node set, a second data node set, and a third data node set according to the business scenario;

为所述第一数据节点集中的第一数据节点建立复用关系,并根据所述复用关系对所述第一数据节点的对应节点进行维护;Establishing a multiplexing relationship for the first data nodes in the first data node set, and maintaining corresponding nodes of the first data nodes according to the multiplexing relationship;

为所述第二数据节点集中的第二数据节点建立第一映射关系,并在所述第二数据节点集中存在节点进行维护时,向所述第二数据节点集中其余数据节点发送维护通知;Establishing a first mapping relationship for a second data node in the second data node set, and sending a maintenance notification to the remaining data nodes in the second data node set when there are nodes in the second data node set for maintenance;

为所述第三数据节点集中的第三数据节点建立第二映射关系,并在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护。Establishing a second mapping relationship for the third data nodes in the third data node set, and when there are nodes in the third data node set that perform lower-level maintenance, synchronously perform lower-level maintenance for the remaining data nodes in the third data node set maintain.

可选地,所述查询所述树形结构数据中各个数据节点的业务场景,包括:Optionally, the querying the business scenarios of each data node in the tree structure data includes:

获取所述树形结构数据的业务需求信息;Acquiring business requirement information of the tree structure data;

根据所述业务需求信息从预设的业务场景数据库中获取所述树形结构数据的业务场景。The business scenario of the tree structure data is acquired from a preset business scenario database according to the business requirement information.

可选地,所述根据所述业务需求信息从预设的业务场景数据库中获取所述树形结构数据的业务场景之前,所述方法还包括:Optionally, before acquiring the business scenario of the tree structure data from a preset business scenario database according to the business requirement information, the method further includes:

获取目标业务场景以及所述目标业务场景包含的多个业务实现流程;Obtaining a target business scenario and multiple business implementation processes included in the target business scenario;

获取多个所述业务实现流程中每个业务实现流程的执行频率;Obtain the execution frequency of each service realization process in the multiple business realization processes;

根据所述目标业务场景以及所述多个业务实现流程中执行频率大于预设频率的业务实现流程建立所述业务场景数据库。The service scenario database is established according to the target service scenario and the service realization process whose execution frequency is higher than a preset frequency among the plurality of service realization processes.

可选地,所述根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集,包括:Optionally, dividing the data nodes into a first data node set, a second data node set, and a third data node set according to the business scenario includes:

利用所述日志监控策略扫描所述本地线程日志;Scanning the local thread log by using the log monitoring policy;

获取各个所述数据节点业务场景的场景特征;Acquiring scene features of each of the data node business scenes;

获取预设的特征查询表以及所述特征查询表中的查询特征;Obtaining a preset feature lookup table and query features in the feature lookup table;

将所述特征查询表中的查询特征和各个所述数据节点业务场景的场景特征进行匹配,得到匹配结果;Matching the query features in the feature lookup table with the scene features of each of the data node business scenarios to obtain a matching result;

根据所述匹配结果将所述数据节点划分为所述第一数据节点集、第二数据节点集和第三数据节点集。The data nodes are divided into the first data node set, the second data node set and the third data node set according to the matching result.

可选地,所述在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护,包括:Optionally, when there are nodes in the third data node set performing lower-level maintenance, synchronously performing lower-level maintenance for the remaining data nodes in the third data node set includes:

获取所述第三数据节点集中正在维护的数据节点的目标子数据节点以及对所述目标子数据节点维护的子节点维护方法;Obtain the target child data node of the data node being maintained in the third data node set and the child node maintenance method for maintaining the target child data node;

获取所述第三数据节点中其余数据节点的其余子数据节点,并根据所述子节点维护方法对所述其余子数据节点进行维护。Obtain the remaining child data nodes of the remaining data nodes in the third data node, and maintain the remaining child data nodes according to the child node maintenance method.

可选地,所述向所述第二数据节点集中其余数据节点发送维护通知之后,所述方法还包括:Optionally, after sending the maintenance notification to the remaining data nodes in the second data node set, the method further includes:

根据所述第一映射关系将所述第二数据节点集中其余数据节点进行维护。Maintaining the rest of the data nodes in the second data node set according to the first mapping relationship.

为了解决上述问题,本发明还提供一种基于多业务场景的树形数据管理装置,所述装置包括:In order to solve the above problems, the present invention also provides a tree data management device based on multiple business scenarios, the device includes:

节点划分模块,用于获取预设的树形结构数据以及所述数据结构数据中的各个数据节点,查询所述树形结构数据中各个数据节点的业务场景,根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集;A node division module, configured to obtain preset tree structure data and each data node in the data structure data, query the business scenarios of each data node in the tree structure data, and divide the data according to the business scenarios The nodes are divided into a first data node set, a second data node set and a third data node set;

第一节点维护模块,用于为所述第一数据节点集中的第一数据节点建立复用关系,并根据所述复用关系对所述第一数据节点的对应节点进行维护;A first node maintenance module, configured to establish a multiplexing relationship for the first data nodes in the first data node set, and maintain corresponding nodes of the first data nodes according to the multiplexing relationship;

第二节点维护模块,用于为所述第二数据节点集中的第二数据节点建立第一映射关系,并在所述第二数据节点集中存在节点进行维护时,向所述第二数据节点集中其余数据节点发送维护通知;The second node maintenance module is configured to establish a first mapping relationship for the second data nodes in the second data node set, and when there are nodes in the second data node set for maintenance, add to the second data node set The remaining data nodes send maintenance notifications;

第三节点维护模块,用于为所述第三数据节点集中的第三数据节点建立第二映射关系,并在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护。The third node maintenance module is configured to establish a second mapping relationship for the third data node in the third data node set, and synchronize the third data node when there is a node in the third data node set for lower-level maintenance The remaining data nodes in the node set perform lower-level maintenance.

可选的,所述在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护,包括:Optionally, when there are nodes in the third data node set performing lower-level maintenance, synchronously performing lower-level maintenance for the remaining data nodes in the third data node set, including:

获取所述第三数据节点集中正在维护的数据节点的目标子数据节点以及对所述目标子数据节点维护的子节点维护方法;Obtain the target child data node of the data node being maintained in the third data node set and the child node maintenance method for maintaining the target child data node;

获取所述第三数据节点中其余数据节点的其余子数据节点,并根据所述子节点维护方法对所述其余子数据节点进行维护。Obtain the remaining child data nodes of the remaining data nodes in the third data node, and maintain the remaining child data nodes according to the child node maintenance method.

为了解决上述问题,本发明还提供一种电子设备,所述电子设备包括:In order to solve the above problems, the present invention also provides an electronic device, which includes:

至少一个处理器;以及,at least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上所述的基于多业务场景的树形数据管理方法。The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can perform the above-mentioned multi-service scenario-based Tree data management method.

为了解决上述问题,本发明还提供一种计算机可读存储介质,包括存储数据区和存储程序区,存储数据区存储创建的数据,存储程序区存储有计算机程序;其中,所述计算机程序被处理器执行时实现如上所述的基于多业务场景的树形数据管理方法。In order to solve the above problems, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area, the data storage area stores the created data, and the program storage area stores a computer program; wherein the computer program is processed When the server is executed, the above-mentioned tree data management method based on multiple business scenarios is realized.

本发明实施例中,获取预设的树形结构数据以及数据结构数据中的各个数据节点,根据数据节点的业务场景将节点划分为第一节点集、第二节点集和第三节点集,达到将数据节点进行划分的目的,之后为第一节点集中的第一节点建立复用关系,对第一节点的对应节点进行维护,然后为第二节点集中的第二节点建立第一映射关系,在第二节点集中存在节点进行维护时,向第二节点集中其余节点发送维护通知,最后为第三节点集中的第三节点建立第二映射关系,在第三节点集中存在节点进行下级维护时,同步为其余节点进行下级维护,达到将数据节点进行差异化维护管理的目的。因此,通过将树形数据进行划分,之后采用不同的方式对划分后的树形数据进行差异化维护,以达到提高对数据的管理深度的目的。In the embodiment of the present invention, the preset tree structure data and each data node in the data structure data are obtained, and the nodes are divided into the first node set, the second node set and the third node set according to the business scenarios of the data nodes, so as to achieve The purpose of dividing the data nodes is to establish a multiplexing relationship for the first node in the first node set, maintain the corresponding nodes of the first node, and then establish the first mapping relationship for the second node in the second node set. When there are nodes in the second node set for maintenance, send maintenance notifications to the remaining nodes in the second node set, and finally establish a second mapping relationship for the third node in the third node set, and when there are nodes in the third node set for lower-level maintenance, synchronize Perform lower-level maintenance for the remaining nodes to achieve the purpose of differentiated maintenance and management of data nodes. Therefore, by dividing the tree-shaped data, and then adopting different methods to perform differentiated maintenance on the divided tree-shaped data, in order to achieve the purpose of improving the depth of data management.

附图说明Description of drawings

图1为本发明一实施例提供的一种基于多业务场景的树形数据管理方法的流程示意图;FIG. 1 is a schematic flow diagram of a tree data management method based on multiple business scenarios provided by an embodiment of the present invention;

图2为本发明一实施例提供一种基于多业务场景的树形数据管理方法中一个步骤的详细流程示意图;Fig. 2 is a detailed flow diagram of a step in a tree data management method based on a multi-service scenario provided by an embodiment of the present invention;

图3至5分别为本发明一实施例提供一种基于多业务场景的树形数据管理方法中复用关系、第一映射关系以及第二映射关系的参考示意图;3 to 5 are schematic diagrams of a multiplexing relationship, a first mapping relationship, and a second mapping relationship in a multi-service scenario-based tree data management method provided by an embodiment of the present invention;

图6为本发明一实施例提供一种基于多业务场景的树形数据管理方法中一个步骤的详细流程示意图;Fig. 6 is a detailed flow diagram of a step in a tree data management method based on a multi-service scenario provided by an embodiment of the present invention;

图7为本发明一实施例提供的基于多业务场景的树形数据管理装置的模块示意图;FIG. 7 is a schematic module diagram of a tree data management device based on a multi-service scenario provided by an embodiment of the present invention;

图8为本发明一实施例提供的实现基于多业务场景的树形数据管理方法的电子设备的内部结构示意图。FIG. 8 is a schematic diagram of an internal structure of an electronic device implementing a tree data management method based on multiple business scenarios provided by an embodiment of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本申请实施例提供一种基于多业务场景的树形数据管理方法。所述基于多业务场景的树形数据管理方法的执行主体包括但不限于服务端、终端等能够被配置为执行本申请实施例提供的该方法的电子设备中的至少一种。其中,服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。换言之,所述基于多业务场景的树形数据管理方法可以由安装在终端设备或服务端设备的软件或硬件来执行,所述软件可以是区块链平台。所述服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。The embodiment of the present application provides a tree data management method based on multiple business scenarios. The executor of the multi-service scenario-based tree data management method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. Among them, the server can be an independent server, or it can provide cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (Content Delivery Network) Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. In other words, the multi-service scenario-based tree data management method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a block chain platform. The server includes, but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.

参照图1所示,为本发明一实施例提供的一种基于多业务场景的树形数据管理方法的流程示意图。在本实施例中,所述基于多业务场景的树形数据管理方法包括:Referring to FIG. 1 , it is a schematic flowchart of a tree data management method based on multiple business scenarios provided by an embodiment of the present invention. In this embodiment, the tree data management method based on multiple business scenarios includes:

S1、获取预设的树形结构数据以及所述数据结构数据中的各个数据节点。S1. Obtain preset tree structure data and each data node in the data structure data.

本发明实施例中,所述树形结构数据是一种非线性数据结构。所述树形结构数据可以表示数据元素之间一对多的关系,其中以树与二叉树最为常见。在数据的层次结构方面,所述树形结构数据是以分支关系定义的层次结构。In the embodiment of the present invention, the tree structure data is a non-linear data structure. The tree structure data can represent a one-to-many relationship between data elements, among which trees and binary trees are the most common. In terms of the hierarchical structure of data, the tree structure data is a hierarchical structure defined by branch relationships.

本发明实施例中,所述树形结构数据可以为公司的组织人员架构数据,例如,领导数据可以按照层级关系作为父数据节点,员工数据可以按照层级关系作为子数据节点。进一步地,一个部门的数据作为一棵树进行表示,例如对于人事部门的数据、行政部门的数据和财务部门的数据分别做树进行表示。In the embodiment of the present invention, the tree structure data may be the company's organizational personnel structure data, for example, leader data may be used as a parent data node according to a hierarchical relationship, and employee data may be used as a child data node according to a hierarchical relationship. Further, the data of a department is represented as a tree, for example, the data of the personnel department, the data of the administrative department and the data of the financial department are respectively represented as trees.

本发明实施例中,所述数据节点为一种逻辑节点,用于保护目标信息,其中,目标既可以为个人用户,也可以为部门团体。In the embodiment of the present invention, the data node is a logical node used to protect target information, where the target can be either an individual user or a departmental group.

进一步地,树形结构数据中的数据具备如下特点:每个数据节点有零个或多个子数据节点,没有父数据节点的数据节点称为根数据节点,除了根数据节点外,每个子数据节点可以分为多个不相交的子树。Furthermore, the data in the tree structure data has the following characteristics: each data node has zero or more child data nodes, and a data node without a parent data node is called a root data node. Except for the root data node, each child data node Can be divided into multiple disjoint subtrees.

进一步地,本发明实施例可以通过遍历所述树形结构数据中的数据ID用以获取所述数据节点。Further, in this embodiment of the present invention, the data node may be obtained by traversing the data ID in the tree structure data.

S2、查询所述树形结构数据中各个数据节点的业务场景。S2. Query the business scenarios of each data node in the tree structure data.

本发明实施例中,所述业务场景用于明确所述数据节点的使用范围,即确定所述数据节点用于何处。例如,树形结构数据为公司组织人员架构数据,业务场景为新员工入职时,作为数据节点的新员工数据将会录入人事部门的树形结构数据中,树形结构数据为公司组织人员架构数据,业务场景为领导升职时,将会调整领导数据在行政部门树形结构中的层级。In the embodiment of the present invention, the business scenario is used to clarify the scope of use of the data node, that is, to determine where the data node is used. For example, the tree structure data is the company organizational personnel structure data, and the business scenario is that when a new employee enters the job, the new employee data as a data node will be entered into the tree structure data of the personnel department, and the tree structure data is the company organization personnel structure data , when the business scenario is that the leader is promoted, the level of the leader data in the tree structure of the administrative department will be adjusted.

本发明实施例中,所述查询所述树形结构数据中各个数据节点的业务场景,包括:In the embodiment of the present invention, the querying the business scenarios of each data node in the tree structure data includes:

获取所述树形结构数据的业务需求信息;Acquiring business requirement information of the tree structure data;

根据所述业务需求信息从预设的业务场景数据库中获取所述树形结构数据的业务场景。The business scenario of the tree structure data is acquired from a preset business scenario database according to the business requirement information.

进一步地,所述树形结构数据的业务需求信息表示所述树形结构数据的目标,所述业务需求信息通常来自与所述树形结构数据的提供者,描述为什么要提供树形结构数据,起到何种作用。Further, the business requirement information of the tree structure data indicates the target of the tree structure data, and the business requirement information usually comes from the provider of the tree structure data, describing why the tree structure data should be provided, What role does it play.

本发明实施例中,所述根据所述业务需求信息获取所述树形结构数据的业务场景之前,所述方法还可以包括:In the embodiment of the present invention, before acquiring the business scenario of the tree structure data according to the business requirement information, the method may further include:

获取目标业务场景以及所述目标业务场景包含的多个业务实现流程;Obtaining a target business scenario and multiple business implementation processes included in the target business scenario;

获取多个所述业务实现流程中每个业务实现流程的执行频率;Obtain the execution frequency of each service realization process in the multiple business realization processes;

根据所述目标业务场景以及所述多个业务实现流程中执行频率大于预设频率的业务实现流程建立所述业务场景数据库。The service scenario database is established according to the target service scenario and the service realization process whose execution frequency is higher than a preset frequency among the plurality of service realization processes.

本发明实施例中,所述业务实现流程用以确定所述目标业务场景的实现流程,所述执行频率为所述业务实现流程的发生频率。In the embodiment of the present invention, the service realization process is used to determine the realization process of the target service scenario, and the execution frequency is the occurrence frequency of the service realization process.

S3、根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集。S3. Divide the data nodes into a first data node set, a second data node set, and a third data node set according to the service scenario.

本发明实施例中,所述第一数据节点集、所述第二数据节点集和所述第三数据节点集具备将进行划分后的数据节点进行区分的作用,具体的,各个数据节点中的节点数据也因数据节点所属业务场景的不同在实际业务中具备不同的效用。In the embodiment of the present invention, the first data node set, the second data node set, and the third data node set have the function of distinguishing the divided data nodes, specifically, each data node Node data also has different utility in actual business due to the different business scenarios to which the data node belongs.

详细的,参考图2所示,本发明实施例中,所述根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集,包括:In detail, as shown in FIG. 2, in the embodiment of the present invention, the division of the data nodes into a first data node set, a second data node set, and a third data node set according to the business scenario includes:

S3011、获取各个所述数据节点业务场景的场景特征;S3011. Obtain the scene characteristics of each data node business scene;

S3012、获取预设的特征查询表以及所述特征查询表中的查询特征;S3012. Obtain a preset feature lookup table and query features in the feature lookup table;

S3013、将所述特征查询表中的查询特征和各个所述数据节点业务场景的场景特征进行匹配,得到匹配结果;S3013. Match the query features in the feature lookup table with the scenario features of each data node business scenario to obtain a matching result;

S3014、根据所述匹配结果将所述数据节点划分为所述第一数据节点集、第二数据节点集和第三数据节点集。S3014. Divide the data nodes into the first data node set, the second data node set, and the third data node set according to the matching result.

本发明实施例中,所述场景特征为所述业务场景具备的特征,用以对所述业务场景进行区分,所述特征查询表为根据所述场景特征将数据节点分为三类的数据表,用于将所述数据节点分为用户需求的三类。In the embodiment of the present invention, the scene feature is a feature of the business scene to distinguish the business scene, and the feature lookup table is a data table that divides data nodes into three categories according to the scene feature , used to classify the data nodes into three types required by users.

S4、为所述第一数据节点集中的第一数据节点建立复用关系,并根据所述复用关系对所述第一数据节点的对应节点进行维护。S4. Establish a multiplexing relationship for the first data nodes in the first data node set, and maintain corresponding nodes of the first data nodes according to the multiplexing relationship.

本发明实施例中,所述复用关系用于将对应所述第一数据节点进行绑定,其中,根据所述复用关系可以将对应所述第一数据节点采用相同的维护方式进行维护。In the embodiment of the present invention, the multiplexing relationship is used to bind the corresponding first data node, wherein, according to the multiplexing relationship, the corresponding first data node can be maintained in the same maintenance manner.

参考图3所示,A节点和A1节点为复用关系,当一棵树上的A节点进行维护时,另一棵树上的A1节点同时进行维护。Referring to FIG. 3 , node A and node A1 are in a reuse relationship. When node A on one tree is maintained, node A1 on the other tree is maintained at the same time.

本发明的其中一个实施场景下,例如,树形结构数据为公司组织人员架构数据,业务场景为员工任务分配时,通过邮件将员工任务分配至员工邮箱,并将该员工的领导作为对应节点,将员工任务同样发送至该员工领导的邮箱。In one of the implementation scenarios of the present invention, for example, the tree structure data is the organization personnel structure data of the company, and when the business scenario is employee task assignment, the employee task is assigned to the employee mailbox by email, and the employee's leader is used as the corresponding node, Send employee tasks to the mailbox of the employee leader as well.

S5、为所述第二数据节点集中的第二数据节点建立第一映射关系,并在所述第二数据节点集中存在节点进行维护时,向所述第二数据节点集中其余数据节点发送维护通知。S5. Establish a first mapping relationship for the second data nodes in the second data node set, and send a maintenance notice to the remaining data nodes in the second data node set when there are nodes in the second data node set for maintenance .

本发明实施例中,所述映射关系为一种同步关系,即在所述第二数据节点集中存在一个数据节点进行某种操作时,其余数据节点按照映射关系同样进行某种操作。In the embodiment of the present invention, the mapping relationship is a synchronous relationship, that is, when one data node in the second data node set performs a certain operation, other data nodes also perform a certain operation according to the mapping relationship.

参阅图4所示,A节点和A2节点为第一映射关系,当A节点进行维护时,A1节点收到A节点的维护通知,同时进行维护。Referring to FIG. 4 , node A and node A2 are in the first mapping relationship. When node A performs maintenance, node A1 receives a maintenance notification from node A and performs maintenance at the same time.

本发明实施例中,所述向所述第二数据节点集中其余数据节点发送维护通知之后,所述方法还可以包括:In the embodiment of the present invention, after sending the maintenance notification to the remaining data nodes in the second data node set, the method may further include:

根据所述第一映射关系将所述第二数据节点集中其余数据节点进行维护。Maintaining the rest of the data nodes in the second data node set according to the first mapping relationship.

例如,树形结构数据为公司组织人员架构数据,业务场景为新员工入职时,将公司的各个部门作为第二数据节点,当一个部门录入新员工的信息后,将根据映射关系同步将该新员工信息录入其余部门。其中,作为第二数据节点的部门可以为人事部门、财务部门和行政部门。For example, the tree structure data is the company's organizational personnel structure data. The business scenario is that when a new employee enters the job, each department of the company is used as the second data node. When a department enters the information of a new employee, the new employee will be synchronized according to the mapping relationship. Employee information is entered into other departments. Wherein, the department serving as the second data node may be a personnel department, a financial department, and an administrative department.

S6、为所述第三数据节点集中的第三数据节点建立第二映射关系,并在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护。S6. Establish a second mapping relationship for the third data node in the third data node set, and when there is a node in the third data node set for lower-level maintenance, synchronize to the remaining data nodes in the third data node set Perform lower-level maintenance.

本发明实施例中,所述第二映射关系和所述第一映射关系同属于映射关系,所述第一映射关系为一一对应的关系,所述第二映射关系为一一对应或一对多的关系。In the embodiment of the present invention, the second mapping relationship and the first mapping relationship belong to the same mapping relationship, the first mapping relationship is a one-to-one correspondence, and the second mapping relationship is a one-to-one correspondence or a pair many relationships.

参阅图5所示,A节点和A3节点为第二映射关系,当A节点新增下级节点B和C时,A3节点自动新增下级节点B和C。Referring to FIG. 5 , node A and node A3 are the second mapping relationship. When node A adds subordinate nodes B and C, node A3 automatically adds subordinate nodes B and C.

参阅图6所示,本发明实施例中,所述在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护,包括:Referring to FIG. 6, in the embodiment of the present invention, when there are nodes in the third data node set performing lower-level maintenance, synchronously performing lower-level maintenance for the remaining data nodes in the third data node set, including:

S6011、获取所述第三数据节点集中正在维护的数据节点的目标子数据节点以及对所述目标子数据节点维护的子节点维护方法;S6011. Obtain a target sub-data node of a data node being maintained in the third data node set and a sub-node maintenance method for maintaining the target sub-data node;

S6012、获取所述第三数据节点中其余数据节点的其余子数据节点,并根据所述子节点维护方法对所述其余子数据节点进行维护。S6012. Obtain the remaining child data nodes of the remaining data nodes in the third data node, and maintain the remaining child data nodes according to the child node maintenance method.

本发明实施例中,所述下级维护为对当前节点的子节点进行维护。In the embodiment of the present invention, the lower-level maintenance is to maintain the child nodes of the current node.

进一步地,例如,树形结构数据为公司组织人员架构数据,当业务场景是统计各部门员工身份信息,将以各部门领导数据为第三数据节点,通过各部门领导下发身份信息统计通知。Furthermore, for example, the tree structure data is the company organization personnel structure data. When the business scenario is to count the identity information of employees in each department, the data of the leaders of each department will be used as the third data node, and the identity information statistics notification will be issued through the leaders of each department.

本发明实施例中,获取预设的树形结构数据以及数据结构数据中的各个数据节点,根据数据节点的业务场景将节点划分为第一节点集、第二节点集和第三节点集,达到将数据节点进行划分的目的,之后为第一节点集中的第一节点建立复用关系,对第一节点的对应节点进行维护,然后为第二节点集中的第二节点建立第一映射关系,在第二节点集中存在节点进行维护时,向第二节点集中其余节点发送维护通知,最后为第三节点集中的第三节点建立第二映射关系,在第三节点集中存在节点进行下级维护时,同步为其余节点进行下级维护,达到将数据节点进行差异化维护管理的目的。因此,通过将树形数据进行划分,之后采用不同的方式对划分后的树形数据进行差异化维护,以达到提高对数据的管理深度的目的。In the embodiment of the present invention, the preset tree structure data and each data node in the data structure data are obtained, and the nodes are divided into the first node set, the second node set and the third node set according to the business scenarios of the data nodes, so as to achieve The purpose of dividing the data nodes is to establish a multiplexing relationship for the first node in the first node set, maintain the corresponding nodes of the first node, and then establish the first mapping relationship for the second node in the second node set. When there are nodes in the second node set for maintenance, send maintenance notifications to the remaining nodes in the second node set, and finally establish a second mapping relationship for the third node in the third node set, and when there are nodes in the third node set for lower-level maintenance, synchronize Perform lower-level maintenance for the remaining nodes to achieve the purpose of differentiated maintenance and management of data nodes. Therefore, by dividing the tree-shaped data, and then adopting different methods to perform differentiated maintenance on the divided tree-shaped data, in order to achieve the purpose of improving the depth of data management.

如图7所示,是本发明基于多业务场景的树形数据管理装置的模块示意图。As shown in FIG. 7 , it is a block diagram of a tree data management device based on a multi-service scenario in the present invention.

本发明所述基于多业务场景的树形数据管理装置100可以安装于电子设备中。根据实现的功能,所述基于多业务场景的树形数据管理装置可以包括节点划分模块101、第一节点维护模块102、第二节点维护模块103和第三节点维护模块104。本发明所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The multi-service scenario-based treedata management apparatus 100 of the present invention can be installed in electronic equipment. According to the realized functions, the multi-service scenario-based tree data management device may include anode division module 101 , a firstnode maintenance module 102 , a secondnode maintenance module 103 and a thirdnode maintenance module 104 . The module in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of the electronic device and can complete fixed functions, and are stored in the memory of the electronic device.

在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:

所述节点划分模块101,用于获取预设的树形结构数据以及所述数据结构数据中的各个数据节点,查询所述树形结构数据中各个数据节点的业务场景,根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集;Thenode division module 101 is configured to acquire preset tree structure data and each data node in the data structure data, query the business scenario of each data node in the tree structure data, and divide the The data nodes are divided into a first data node set, a second data node set and a third data node set;

第一节点维护模块102,用于为所述第一数据节点集中的第一数据节点建立复用关系,并根据所述复用关系对所述第一数据节点的对应节点进行维护;The firstnode maintenance module 102 is configured to establish a multiplexing relationship for the first data nodes in the first data node set, and maintain corresponding nodes of the first data nodes according to the multiplexing relationship;

第二节点维护模块103,用于为所述第二数据节点集中的第二数据节点建立第一映射关系,并在所述第二数据节点集中存在节点进行维护时,向所述第二数据节点集中其余数据节点发送维护通知;The secondnode maintenance module 103 is configured to establish a first mapping relationship for the second data node in the second data node set, and when there is a node in the second data node set for maintenance, report to the second data node Centralize the rest of the data nodes to send maintenance notifications;

第三节点维护模块104,用于为所述第三数据节点集中的第三数据节点建立第二映射关系,并在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护。The thirdnode maintenance module 104 is configured to establish a second mapping relationship for the third data node in the third data node set, and when there is a node in the third data node set for lower-level maintenance, synchronously for the third data node The remaining data nodes in the data node set perform lower-level maintenance.

详细地,本发明实施例中所述基于多业务场景的树形数据管理装置100中所述的各模块在使用时采用与上述图1至图6所述的基于多业务场景的树形数据管理方法一样的技术手段,并能够产生相同的技术效果,这里不再赘述。In detail, each module described in the treedata management device 100 based on multiple business scenarios in the embodiment of the present invention adopts the tree data management based on multiple business scenarios described in FIGS. 1 to 6 above when in use. The same technical means as the method can produce the same technical effect, and will not be repeated here.

如图8所示,是本发明实现基于多业务场景的树形数据管理方法的电子设备的结构示意图。As shown in FIG. 8 , it is a schematic structural diagram of an electronic device implementing a tree data management method based on multiple business scenarios according to the present invention.

所述电子设备可以包括处理器10、存储器11、通信总线12以及通信接口13,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如基于多业务场景的树形数据管理程序。The electronic device may include aprocessor 10, amemory 11, acommunication bus 12, and acommunication interface 13, and may also include a computer program stored in thememory 11 and operable on theprocessor 10, such as based on a multi-service scenario tree data management program.

其中,所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing Unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(ControlUnit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如执行基于多业务场景的树形数据管理程序等),以及调用存储在所述存储器11内的数据,以执行电子设备的各种功能和处理数据。Wherein, theprocessor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same function or different functions, including one or Combinations of multiple central processing units (Central Processing Unit, CPU), microprocessors, digital processing chips, graphics processors, and various control chips, etc. Theprocessor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and runs or executes programs or modules stored in the memory 11 (for example, executes based on multi-business scene tree data management program, etc.), and call the data stored in thememory 11 to execute various functions of the electronic device and process data.

所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备的内部存储单元,例如该电子设备的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备的外部存储设备,例如电子设备上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备的应用软件及各类数据,例如基于多业务场景的树形数据管理程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。Thememory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. . Thestorage 11 may be an internal storage unit of the electronic device in some embodiments, such as a mobile hard disk of the electronic device. Thememory 11 can also be an external storage device of an electronic device in other embodiments, such as a plug-in mobile hard disk equipped on an electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD ) card, flash memory card (Flash Card), etc. Further, thestorage 11 may also include both an internal storage unit of the electronic device and an external storage device. Thememory 11 can not only be used to store application software and various data installed in electronic equipment, such as codes of tree data management programs based on multiple business scenarios, but also can be used to temporarily store data that has been output or will be output .

所述通信总线12可以是外设部件互连标准(Peripheral ComponentInterconnect,简称PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。Thecommunication bus 12 may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. The bus is configured to realize connection and communication between thememory 11 and at least oneprocessor 10 and the like.

所述通信接口13用于上述电子设备与其他设备之间的通信,包括网络接口和用户接口。可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备与其他电子设备之间建立通信连接。所述用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备中处理的信息以及用于显示可视化的用户界面。Thecommunication interface 13 is used for communication between the electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which are generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display) or an input unit (such as a keyboard (Keyboard)). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, Organic Light-Emitting Diode) touch panel, and the like. Wherein, the display may also be properly referred to as a display screen or a display unit, and is used for displaying information processed in the electronic device and for displaying a visualized user interface.

图8仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图8示出的结构并不构成对所述电子设备的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。Figure 8 only shows an electronic device with components, and those skilled in the art can understand that the structure shown in Figure 8 does not constitute a limitation to the electronic device, and may include fewer or more components than shown in the figure , or combinations of certain components, or different arrangements of components.

例如,尽管未示出,所述电子设备还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device may also include a power supply (such as a battery) for supplying power to various components. Preferably, the power supply may be logically connected to the at least oneprocessor 10 through a power management device, so that Realize functions such as charge management, discharge management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components. The electronic device may also include various sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be repeated here.

应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only for illustration, and are not limited by the structure in terms of the scope of the patent application.

所述电子设备中的所述存储器11存储的基于多业务场景的树形数据管理程序是多个计算机程序的组合,在所述处理器10中运行时,可以实现:The multi-service scenario-based tree data management program stored in thememory 11 in the electronic device is a combination of multiple computer programs. When running in theprocessor 10, it can realize:

获取预设的树形结构数据以及所述数据结构数据中的各个数据节点;Obtain preset tree structure data and each data node in the data structure data;

查询所述树形结构数据中各个数据节点的业务场景;Querying the business scenarios of each data node in the tree structure data;

根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集;dividing the data nodes into a first data node set, a second data node set, and a third data node set according to the business scenario;

为所述第一数据节点集中的第一数据节点建立复用关系,并根据所述复用关系对所述第一数据节点的对应节点进行维护;Establishing a multiplexing relationship for the first data nodes in the first data node set, and maintaining corresponding nodes of the first data nodes according to the multiplexing relationship;

为所述第二数据节点集中的第二数据节点建立第一映射关系,并在所述第二数据节点集中存在节点进行维护时,向所述第二数据节点集中其余数据节点发送维护通知;Establishing a first mapping relationship for a second data node in the second data node set, and sending a maintenance notification to the remaining data nodes in the second data node set when there are nodes in the second data node set for maintenance;

为所述第三数据节点集中的第三数据节点建立第二映射关系,并在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护。Establishing a second mapping relationship for the third data nodes in the third data node set, and when there are nodes in the third data node set that perform lower-level maintenance, synchronously perform lower-level maintenance for the remaining data nodes in the third data node set maintain.

具体地,所述处理器10对上述计算机程序的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。Specifically, for a specific implementation method of the above computer program by theprocessor 10, reference may be made to the description of relevant steps in the embodiment corresponding to FIG. 1 , and details are not repeated here.

进一步地,所述电子设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非易失性计算机可读取存储介质中。所述计算机可读存储介质可以是易失性的,也可以是非易失性的。例如,所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Furthermore, if the integrated modules/units of the electronic equipment are realized in the form of software function units and sold or used as independent products, they may be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory).

本发明还提供一种计算机可读存储介质,所述可读存储介质存储有计算机程序,所述计算机程序在被电子设备的处理器所执行时,可以实现:The present invention also provides a computer-readable storage medium, the readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, it can realize:

获取预设的树形结构数据以及所述数据结构数据中的各个数据节点;Obtain preset tree structure data and each data node in the data structure data;

查询所述树形结构数据中各个数据节点的业务场景;Querying the business scenarios of each data node in the tree structure data;

根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集;dividing the data nodes into a first data node set, a second data node set, and a third data node set according to the business scenario;

为所述第一数据节点集中的第一数据节点建立复用关系,并根据所述复用关系对所述第一数据节点的对应节点进行维护;Establishing a multiplexing relationship for the first data nodes in the first data node set, and maintaining corresponding nodes of the first data nodes according to the multiplexing relationship;

为所述第二数据节点集中的第二数据节点建立第一映射关系,并在所述第二数据节点集中存在节点进行维护时,向所述第二数据节点集中其余数据节点发送维护通知;Establishing a first mapping relationship for a second data node in the second data node set, and sending a maintenance notification to the remaining data nodes in the second data node set when there are nodes in the second data node set for maintenance;

为所述第三数据节点集中的第三数据节点建立第二映射关系,并在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护。Establishing a second mapping relationship for the third data nodes in the third data node set, and when there are nodes in the third data node set that perform lower-level maintenance, synchronously perform lower-level maintenance for the remaining data nodes in the third data node set maintain.

在本发明所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software function modules.

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention.

因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned.

本发明所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The block chain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain (Blockchain), essentially a decentralized database, is a series of data blocks associated with each other using cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .

此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。In addition, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or devices stated in the system claims may also be realized by one unit or device through software or hardware. Secondary terms are used to denote names without implying any particular order.

最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements can be made without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

Translated fromChinese
1.一种基于多业务场景的树形数据管理方法,其特征在于,所述方法包括:1. A tree-shaped data management method based on multiple business scenarios, characterized in that, the method comprises:获取预设的树形结构数据以及所述数据结构数据中的各个数据节点;Obtain preset tree structure data and each data node in the data structure data;查询所述树形结构数据中各个数据节点的业务场景;Querying the business scenarios of each data node in the tree structure data;根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集;dividing the data nodes into a first data node set, a second data node set, and a third data node set according to the business scenario;为所述第一数据节点集中的第一数据节点建立复用关系,并根据所述复用关系对所述第一数据节点的对应节点进行维护;Establishing a multiplexing relationship for the first data nodes in the first data node set, and maintaining corresponding nodes of the first data nodes according to the multiplexing relationship;为所述第二数据节点集中的第二数据节点建立第一映射关系,并在所述第二数据节点集中存在节点进行维护时,向所述第二数据节点集中其余数据节点发送维护通知;Establishing a first mapping relationship for a second data node in the second data node set, and sending a maintenance notification to the remaining data nodes in the second data node set when there are nodes in the second data node set for maintenance;为所述第三数据节点集中的第三数据节点建立第二映射关系,并在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护。Establishing a second mapping relationship for the third data nodes in the third data node set, and when there are nodes in the third data node set that perform lower-level maintenance, synchronously perform lower-level maintenance for the remaining data nodes in the third data node set maintain.2.如权利要求1所述的基于多业务场景的树形数据管理方法,其特征在于,所述查询所述树形结构数据中各个数据节点的业务场景,包括:2. The tree data management method based on multiple business scenarios as claimed in claim 1, wherein said querying the business scenarios of each data node in said tree structure data comprises:获取所述树形结构数据的业务需求信息;Acquiring business requirement information of the tree structure data;根据所述业务需求信息从预设的业务场景数据库中获取所述树形结构数据的业务场景。The business scenario of the tree structure data is acquired from a preset business scenario database according to the business requirement information.3.如权利要求2所述的基于多业务场景的树形数据管理方法,其特征在于,所述根据所述业务需求信息从预设的业务场景数据库中获取所述树形结构数据的业务场景之前,所述方法还包括:3. The tree data management method based on multiple business scenarios as claimed in claim 2, wherein the business scenario of the tree structure data is obtained from a preset business scenario database according to the business requirement information Previously, the method further included:获取目标业务场景以及所述目标业务场景包含的多个业务实现流程;Obtaining a target business scenario and multiple business implementation processes included in the target business scenario;获取多个所述业务实现流程中每个业务实现流程的执行频率;Obtain the execution frequency of each service realization process in the multiple business realization processes;根据所述目标业务场景以及所述多个业务实现流程中执行频率大于预设频率的业务实现流程建立所述业务场景数据库。The service scenario database is established according to the target service scenario and the service realization process whose execution frequency is higher than a preset frequency among the plurality of service realization processes.4.如权利要求1所述的基于多业务场景的树形数据管理方法,其特征在于,所述根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集,包括:4. The tree-shaped data management method based on multiple business scenarios as claimed in claim 1, wherein said data nodes are divided into a first data node set, a second data node set and A third set of data nodes, including:获取各个所述数据节点业务场景的场景特征;Acquiring scene features of each of the data node business scenes;获取预设的特征查询表以及所述特征查询表中的查询特征;Obtaining a preset feature lookup table and query features in the feature lookup table;将所述特征查询表中的查询特征和各个所述数据节点业务场景的场景特征进行匹配,得到匹配结果;Matching the query features in the feature lookup table with the scene features of each of the data node business scenarios to obtain a matching result;根据所述匹配结果将所述数据节点划分为所述第一数据节点集、第二数据节点集和第三数据节点集。The data nodes are divided into the first data node set, the second data node set and the third data node set according to the matching result.5.如权利要求1中任意一项所述的基于多业务场景的树形数据管理方法,其特征在于,所述在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护,包括:5. The tree-shaped data management method based on multiple business scenarios according to any one of claims 1, characterized in that, when a node exists in the third data node set for lower-level maintenance, it is synchronized as the first The remaining data nodes in the three-data node set perform lower-level maintenance, including:获取所述第三数据节点集中正在维护的数据节点的目标子数据节点以及对所述目标子数据节点维护的子节点维护方法;Obtain the target child data node of the data node being maintained in the third data node set and the child node maintenance method for maintaining the target child data node;获取所述第三数据节点中其余数据节点的其余子数据节点,并根据所述子节点维护方法对所述其余子数据节点进行维护。Obtain the remaining child data nodes of the remaining data nodes in the third data node, and maintain the remaining child data nodes according to the child node maintenance method.6.如权利要求1至5中任意一项所述的基于多业务场景的树形数据管理方法,其特征在于,所述向所述第二数据节点集中其余数据节点发送维护通知之后,所述方法还包括:6. The tree data management method based on multiple business scenarios according to any one of claims 1 to 5, characterized in that, after the maintenance notification is sent to the remaining data nodes in the second data node set, the Methods also include:根据所述第一映射关系将所述第二数据节点集中其余数据节点进行维护。Maintaining the rest of the data nodes in the second data node set according to the first mapping relationship.7.一种基于多业务场景的树形数据管理装置,其特征在于,所述装置包括:7. A tree data management device based on multiple business scenarios, characterized in that the device comprises:节点划分模块,用于获取预设的树形结构数据以及所述数据结构数据中的各个数据节点,查询所述树形结构数据中各个数据节点的业务场景,根据所述业务场景将所述数据节点划分为第一数据节点集、第二数据节点集和第三数据节点集;A node division module, configured to obtain preset tree structure data and each data node in the data structure data, query the business scenarios of each data node in the tree structure data, and divide the data according to the business scenarios The nodes are divided into a first data node set, a second data node set and a third data node set;第一节点维护模块,用于为所述第一数据节点集中的第一数据节点建立复用关系,并根据所述复用关系对所述第一数据节点的对应节点进行维护;A first node maintenance module, configured to establish a multiplexing relationship for the first data nodes in the first data node set, and maintain corresponding nodes of the first data nodes according to the multiplexing relationship;第二节点维护模块,用于为所述第二数据节点集中的第二数据节点建立第一映射关系,并在所述第二数据节点集中存在节点进行维护时,向所述第二数据节点集中其余数据节点发送维护通知;The second node maintenance module is configured to establish a first mapping relationship for the second data nodes in the second data node set, and when there are nodes in the second data node set for maintenance, add to the second data node set The remaining data nodes send maintenance notifications;第三节点维护模块,用于为所述第三数据节点集中的第三数据节点建立第二映射关系,并在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护。The third node maintenance module is configured to establish a second mapping relationship for the third data node in the third data node set, and synchronize the third data node when there is a node in the third data node set for lower-level maintenance The remaining data nodes in the node set perform lower-level maintenance.8.如权利要求7所述的基于多业务场景的树形数据管理装置,其特征在于,所述在所述第三数据节点集中存在节点进行下级维护时,同步为所述第三数据节点集中的其余数据节点进行下级维护,包括:8. The tree-shaped data management device based on multi-service scenarios according to claim 7, wherein when a node exists in the third data node set for lower-level maintenance, it is synchronized to the third data node set The rest of the data nodes for lower-level maintenance, including:获取所述第三数据节点集中正在维护的数据节点的目标子数据节点以及对所述目标子数据节点维护的子节点维护方法;Obtain the target child data node of the data node being maintained in the third data node set and the child node maintenance method for maintaining the target child data node;获取所述第三数据节点中其余数据节点的其余子数据节点,并根据所述子节点维护方法对所述其余子数据节点进行维护。Obtain the remaining child data nodes of the remaining data nodes in the third data node, and maintain the remaining child data nodes according to the child node maintenance method.9.一种电子设备,其特征在于,所述电子设备包括:9. An electronic device, characterized in that the electronic device comprises:至少一个处理器;以及,at least one processor; and,与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至6中任一项所述的基于多业务场景的树形数据管理方法。The memory stores a computer program executable by the at least one processor, the computer program is executed by the at least one processor, so that the at least one processor can perform any one of claims 1 to 6 The tree data management method based on multiple business scenarios described in the item.10.一种计算机可读存储介质,包括存储数据区和存储程序区,存储数据区存储创建的数据,存储程序区存储有计算机程序;其中,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的基于多业务场景的树形数据管理方法。10. A computer-readable storage medium, comprising a data storage area and a program storage area, the data storage area stores created data, and the program storage area stores a computer program; wherein, when the computer program is executed by a processor, the computer program according to claim The tree data management method based on multiple business scenarios described in any one of 1 to 6.
CN202210908588.5A2022-07-292022-07-29Tree data management method, device, equipment and medium based on multi-service scenePendingCN115269554A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210908588.5ACN115269554A (en)2022-07-292022-07-29Tree data management method, device, equipment and medium based on multi-service scene

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210908588.5ACN115269554A (en)2022-07-292022-07-29Tree data management method, device, equipment and medium based on multi-service scene

Publications (1)

Publication NumberPublication Date
CN115269554Atrue CN115269554A (en)2022-11-01

Family

ID=83771534

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210908588.5APendingCN115269554A (en)2022-07-292022-07-29Tree data management method, device, equipment and medium based on multi-service scene

Country Status (1)

CountryLink
CN (1)CN115269554A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118261563A (en)*2024-04-082024-06-28深圳米诺物业科技服务有限公司Data processing method and device for property maintenance information

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20020083073A1 (en)*2000-12-222002-06-27Vaidya Neelam N.Managing a layered hierarchical data set
US20030115175A1 (en)*1999-12-142003-06-19Martin BaatzMethod for processing data structures
CN109710610A (en)*2018-12-172019-05-03北京三快在线科技有限公司Data processing method, device and calculating equipment
CN111506556A (en)*2020-04-092020-08-07北京市测绘设计研究院 A Multi-source Heterogeneous Structured Data Synchronization Method
CN111695872A (en)*2020-05-292020-09-22平安普惠企业管理有限公司Automatic feedback method and device for user request and computer equipment
CN114328450A (en)*2021-12-142022-04-12上海万物新生环保科技集团有限公司 A method and device for generating a tree structure

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20030115175A1 (en)*1999-12-142003-06-19Martin BaatzMethod for processing data structures
US20020083073A1 (en)*2000-12-222002-06-27Vaidya Neelam N.Managing a layered hierarchical data set
CN109710610A (en)*2018-12-172019-05-03北京三快在线科技有限公司Data processing method, device and calculating equipment
CN111506556A (en)*2020-04-092020-08-07北京市测绘设计研究院 A Multi-source Heterogeneous Structured Data Synchronization Method
CN111695872A (en)*2020-05-292020-09-22平安普惠企业管理有限公司Automatic feedback method and device for user request and computer equipment
CN114328450A (en)*2021-12-142022-04-12上海万物新生环保科技集团有限公司 A method and device for generating a tree structure

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TANNAZ KHALEGHI ETAL.: "A tree based approach for multi-class classification of surgical procedures using structured and unstructured data", 《BMC MEDICAL INFORMATICS AND DECISION MAKING 》, vol. 21, 23 November 2021 (2021-11-23)*
龚俊;柯胜男;朱庆;钟若飞;: "一种八叉树和三维R树集成的激光点云数据管理方法", 测绘学报, no. 04, 15 August 2012 (2012-08-15)*

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118261563A (en)*2024-04-082024-06-28深圳米诺物业科技服务有限公司Data processing method and device for property maintenance information

Similar Documents

PublicationPublication DateTitle
CN112445854B (en)Multi-source service data real-time processing method, device, terminal and storage medium
CN113741909B (en)Micro-service deployment method and device, electronic equipment and storage medium
CN112417503A (en) Post authority authorization method, device, electronic device and storage medium
US20200186619A1 (en)Extraction and Distribution of Content Packages in a Digital Services Framework
CN111897856A (en) Supervision message generation method, device, electronic device and readable storage medium
CN115102770A (en)Resource access method, device and equipment based on user permission and storage medium
CN114840531B (en)Data model reconstruction method, device, equipment and medium based on blood edge relation
CN114691782B (en)Database table increment synchronization method, device and storage medium
CN115269554A (en)Tree data management method, device, equipment and medium based on multi-service scene
CN111651167A (en) Scheduling task dependency identification method, device and computer-readable storage medium
CN115759746A (en)Configurable user early warning method and device, electronic equipment and storage medium
CN112948380A (en)Data storage method and device based on big data, electronic equipment and storage medium
US11394626B2 (en)Digital services framework
CN114238233B (en) Automatic file cleaning method, device, equipment and storage medium
CN113886108B (en)Dot data calling method and device, electronic equipment and storage medium
CN115982184A (en) Database-based distributed lock control method, device, equipment and medium
CN115687384A (en) UUID identification generation method, device, equipment and storage medium
CN114723403A (en)Report account multiplexing management method, device, equipment and medium based on Tableau
CN115510065A (en)Data management method, device and equipment of data warehouse and storage medium
CN114387021A (en) Service state generation method, apparatus, device and storage medium
CN115238204A (en) Data reporting method, device, electronic device and storage medium
CN114741399A (en)Service table data updating method, device, equipment and storage medium
CN115022171A (en) Optimization method, apparatus, electronic device and readable storage medium for updating interface
CN114154955A (en) Work order message push method, device, electronic device and readable storage medium
CN114185588A (en)Incremental package generation method, device, equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp