Tree data management method, device and equipment based on multi-service scenario and medium

By dividing nodes and establishing different types of relationships in tree-structured data management for differentiated maintenance, the inefficiency of tree-structured data management in different business scenarios is solved, and more efficient data management is achieved.

CN115269554BActive Publication Date: 2026-07-14CHINA MERCHANTS FINANCE HLDG CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MERCHANTS FINANCE HLDG CO LTD
Filing Date
2022-07-29
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Existing tree-structured data management methods struggle to achieve unified and differentiated management across different business scenarios, resulting in low management efficiency and an inability to meet diverse business needs.

Method used

In business scenarios that acquire tree-structured data, data nodes are divided into first, second, and third node sets, and reuse relationships, first mapping relationships, and second mapping relationships are established for different node sets for differentiated maintenance and management.

Benefits of technology

It enables efficient management of tree-structured data in different business scenarios, improving the depth and efficiency of data management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115269554B_ABST
    Figure CN115269554B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and discloses a tree-shaped data management method based on multiple service scenarios, which comprises the following steps: obtaining preset tree-shaped structure data and each data node in data structure data; dividing the nodes into a first node set, a second node set and a third node set according to the service scenarios of the data nodes; establishing a multiplexing relationship for a first node in the first node set, and maintaining the corresponding nodes of the first node; establishing a first mapping relationship for a second node in the second node set, and sending a maintenance notification to the remaining nodes in the second node set when a node in the second node set is maintained; and establishing a second mapping relationship for a third node in the third node set, and synchronously performing lower-level maintenance on the remaining nodes in the third node set when a node in the third node set is maintained. The application further discloses a tree-shaped data management device based on multiple service scenarios, equipment and a storage medium. The application can improve the management depth of data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a tree-structured data management method, apparatus, device, and medium based on multiple business scenarios. Background Technology

[0002] Tree data structures, as an important non-linear data structure, are often used to represent one-to-many relationships between data. For example, when managing a company's organizational structure, tree data structures can be used to manage the data related to the organizational structure.

[0003] However, the same tree-structured data often requires different data management methods in different business scenarios. Sometimes tree-structured data needs to be managed uniformly, while at other times it needs to be managed differently. Most existing tree-structured data management methods adopt differentiated management. Although this can meet the business needs of various scenarios compared to unified management, it is also more time-consuming and labor-intensive. Therefore, how to meet the different needs of tree-structured data in different business scenarios and achieve a higher degree of intelligent management has become an urgent problem to be solved. Summary of the Invention

[0004] This invention provides a tree-structured data management method, apparatus, device, and medium based on multiple business scenarios, the main purpose of which is to improve the depth of data management.

[0005] To achieve the above objectives, this invention provides a tree-structured data management method based on multiple business scenarios, comprising:

[0006] Obtain the preset tree structure data and each data node in the tree structure data;

[0007] Query the business scenarios of each data node in the tree structure data;

[0008] Based on the business scenario, the data nodes are divided into a first data node set, a second data node set, and a third data node set;

[0009] Establish a reuse relationship for the first data node in the first data node set, and maintain the corresponding node of the first data node according to the reuse relationship;

[0010] A first mapping relationship is established for the second data nodes in the second data node set, and a maintenance notification is sent to the remaining data nodes in the second data node set when there are nodes in the second data node set that need maintenance.

[0011] A second mapping relationship is established for the third data node in the third data node set, and when there are nodes in the third data node set undergoing lower-level maintenance, the remaining data nodes in the third data node set are simultaneously subjected to lower-level maintenance.

[0012] Optionally, the business scenario of querying each data node in the tree structure data includes:

[0013] Obtain the business requirement information of the tree structure data;

[0014] The business scenario that retrieves the tree-structured data from a preset business scenario database based on the business requirement information.

[0015] Optionally, before retrieving the tree-structured data from a preset business scenario database based on the business requirement information, the method further includes:

[0016] Obtain the target business scenario and the multiple business implementation processes included in the target business scenario;

[0017] Obtain the execution frequency of each business implementation process in the multiple business implementation processes;

[0018] The business scenario database is established based on the target business scenario and the business implementation processes with an execution frequency greater than a preset frequency among the multiple business implementation processes.

[0019] 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:

[0020] Scan the local thread logs using the aforementioned log monitoring strategy;

[0021] Obtain the scenario characteristics of the business scenarios for each of the data nodes;

[0022] Obtain a preset feature lookup table and the query features in the feature lookup table;

[0023] The query features in the feature query table are matched with the scenario features of the business scenarios of each data node to obtain the matching results;

[0024] Based on the matching results, the data nodes are divided into the first data node set, the second data node set, and the third data node set.

[0025] Optionally, when a node in the third data node set is performing lower-level maintenance, simultaneously performing lower-level maintenance for the remaining data nodes in the third data node set includes:

[0026] Obtain the target sub-data node of the data node currently being maintained in the third data node set, and the method for maintaining the sub-nodes maintained by the target sub-data node;

[0027] 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.

[0028] Optionally, after sending the maintenance notification to the remaining data nodes in the second data node set, the method further includes:

[0029] The remaining data nodes in the second data node group are maintained according to the first mapping relationship.

[0030] To address the aforementioned problems, the present invention also provides a tree-structured data management device based on multiple business scenarios, the device comprising:

[0031] The node partitioning module is used to obtain preset tree structure data and each data node in the tree structure data, query the business scenario of each data node in the tree structure data, and divide the data node into a first data node set, a second data node set, and a third data node set according to the business scenario.

[0032] The first node maintenance module is used to establish a reuse relationship for the first data node in the first data node set, and to maintain the corresponding node of the first data node according to the reuse relationship.

[0033] The second node maintenance module is used to establish a first mapping relationship for the second data nodes in the second data node set, and to send a maintenance notification to the other data nodes in the second data node set when there are nodes in the second data node set that need maintenance.

[0034] The third node maintenance module is used to establish a second mapping relationship for the third data nodes in the third data node set, and to synchronously perform lower-level maintenance for the remaining data nodes in the third data node set when there are nodes in the third data node set undergoing lower-level maintenance.

[0035] Optionally, when a node in the third data node set is performing lower-level maintenance, simultaneously performing lower-level maintenance for the remaining data nodes in the third data node set includes:

[0036] Obtain the target sub-data node of the data node currently being maintained in the third data node set, and the method for maintaining the sub-nodes maintained by the target sub-data node;

[0037] 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.

[0038] To address the above problems, the present invention also provides an electronic device, the electronic device comprising:

[0039] At least one processor; and,

[0040] A memory communicatively connected to the at least one processor; wherein,

[0041] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the tree-structured data management method based on multiple business scenarios as described above.

[0042] To address the aforementioned 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 created data, and the program storage area stores a computer program. When the computer program is executed by a processor, it implements the tree-structured data management method based on multiple business scenarios as described above.

[0043] In this embodiment of the invention, a preset tree structure data and each data node in the tree structure data are obtained. Based on the business scenario of the data nodes, the nodes are divided into a first node set, a second node set, and a third node set, achieving the purpose of data node partitioning. Then, a reuse relationship is established for the first node in the first node set, and the corresponding node of the first node is maintained. Next, a first mapping relationship is established for the second node in the second node set. When a node in the second node set is being maintained, a maintenance notification is sent to the remaining nodes in the second node set. Finally, a second mapping relationship is established for the third node in the third node set. When a node in the third node set is undergoing lower-level maintenance, lower-level maintenance is simultaneously performed for the remaining nodes, achieving the purpose of differentiated maintenance management of data nodes. Therefore, by partitioning the tree data and then using different methods to perform differentiated maintenance on the partitioned tree data, the depth of data management is improved. Attached Figure Description

[0044] Figure 1 This is a flowchart illustrating a tree-structured data management method based on multiple business scenarios, provided in an embodiment of the present invention.

[0045] Figure 2 This is a detailed flowchart illustrating one step in a tree-structured data management method based on multiple business scenarios, as provided in an embodiment of the present invention.

[0046] Figures 3 to 5These are reference diagrams illustrating the reuse relationship, the first mapping relationship, and the second mapping relationship in a tree-structured data management method based on multiple business scenarios, according to an embodiment of the present invention.

[0047] Figure 6 This is a detailed flowchart illustrating one step in a tree-structured data management method based on multiple business scenarios, as provided in an embodiment of the present invention.

[0048] Figure 7 A schematic diagram of a tree-structured data management device based on multiple business scenarios provided in an embodiment of the present invention;

[0049] Figure 8 This is a schematic diagram of the internal structure of an electronic device that implements a tree-structured data management method based on multiple service scenarios, according to an embodiment of the present invention.

[0050] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0051] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0052] This application provides a tree-structured data management method based on multiple business scenarios. The executing entity of this method includes, but is not limited to, at least one electronic device that can be configured to execute the method provided in this application, such as a server or a terminal. The server can be a standalone server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. In other words, the tree-structured data management method based on multiple business scenarios can be executed by software or hardware installed on terminal devices or server devices, and the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.

[0053] Reference Figure 1 The diagram shown is a flowchart illustrating a tree-structured data management method based on multiple business scenarios according to an embodiment of the present invention. In this embodiment, the tree-structured data management method based on multiple business scenarios includes:

[0054] S1. Obtain the preset tree structure data and each data node in the tree structure data.

[0055] In this embodiment of the invention, the tree-structured data is a non-linear data structure. The tree-structured data can represent a one-to-many relationship between data elements, with trees and binary trees being the most common. In terms of the hierarchical structure of the data, the tree-structured data is a hierarchical structure defined by branching relationships.

[0056] In this embodiment of the invention, the tree-structured data can be the company's organizational structure data. For example, leadership data can be used as parent data nodes according to hierarchical relationships, and employee data can be used as child data nodes according to hierarchical relationships. Furthermore, the data of a department can be represented as a tree; for example, the data of the human resources department, the administrative department, and the finance department can be represented as separate trees.

[0057] In this embodiment of the invention, the data node is a logical node used to protect target information, wherein the target can be an individual user or a department or group.

[0058] Furthermore, the data in the tree structure has the following characteristics: each data node has zero or more child data nodes, a data node without a parent data node is called a root data node, and apart from the root data node, each child data node can be divided into multiple disjoint subtrees.

[0059] Furthermore, in embodiments of the present invention, the data nodes can be obtained by traversing the data IDs in the tree structure data.

[0060] S2. Query the business scenarios of each data node in the tree structure data.

[0061] In this embodiment of the 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, if the tree structure data represents the company's organizational structure data, and the business scenario is that when a new employee joins the company, the new employee's data, as a data node, will be entered into the tree structure data of the human resources department. If the tree structure data represents the company's organizational structure data, and the business scenario is that when a leader is promoted, the leader's data will be adjusted in the hierarchy of the administrative department's tree structure.

[0062] In this embodiment of the invention, the business scenario of querying each data node in the tree-structured data includes:

[0063] Obtain the business requirement information of the tree structure data;

[0064] The business scenario that retrieves the tree-structured data from a preset business scenario database based on the business requirement information.

[0065] Furthermore, the business requirement information of the tree structure data represents the goal of the tree structure data. The business requirement information usually comes from the provider of the tree structure data and describes why the tree structure data is provided and what role it plays.

[0066] In this embodiment of the invention, before the business scenario of obtaining the tree structure data based on the business requirement information, the method may further include:

[0067] Obtain the target business scenario and the multiple business implementation processes included in the target business scenario;

[0068] Obtain the execution frequency of each business implementation process in the multiple business implementation processes;

[0069] The business scenario database is established based on the target business scenario and the business implementation processes with an execution frequency greater than a preset frequency among the multiple business implementation processes.

[0070] In this embodiment of the invention, the business implementation process is used to determine the implementation process of the target business scenario, and the execution frequency is the occurrence frequency of the business implementation process.

[0071] S3. Based on the business scenario, the data nodes are divided into a first data node set, a second data node set, and a third data node set.

[0072] In this embodiment of the 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, the node data in each data node also has different utilities in actual business due to the different business scenarios to which the data nodes belong.

[0073] For details, please refer to the following: Figure 2 As shown in this embodiment of the invention, 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:

[0074] S3011. Obtain the scenario characteristics of the business scenarios of each data node;

[0075] S3012. Obtain a preset feature lookup table and the query features in the feature lookup table;

[0076] S3013. Match the query features in the feature query table with the scenario features of each data node business scenario to obtain the matching result;

[0077] S3014. Based on the matching result, the data nodes are divided into the first data node set, the second data node set, and the third data node set.

[0078] In this embodiment of the invention, the scenario features are the characteristics possessed by the business scenario, used to distinguish the business scenario, and the feature query table is a data table that divides data nodes into three categories according to the scenario features, used to divide the data nodes into three categories of user needs.

[0079] S4. Establish a reuse relationship for the first data node in the first data node set, and maintain the corresponding node of the first data node according to the reuse relationship.

[0080] In this embodiment of the invention, the reuse relationship is used to bind the corresponding first data node, wherein the corresponding first data node can be maintained using the same maintenance method according to the reuse relationship.

[0081] refer to Figure 3 As shown, nodes A and A1 are reused; when node A on one tree is being maintained, node A1 on another tree is being maintained simultaneously.

[0082] In one implementation scenario of the present invention, for example, the tree structure data is the organizational structure data of a company. In the business scenario, when assigning tasks to employees, the tasks are assigned to the employee's email address via email, and the employee's leader is used as the corresponding node to send the employee's tasks to the employee's leader's email address as well.

[0083] S5. 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 that need maintenance, send a maintenance notification to the remaining data nodes in the second data node set.

[0084] In this embodiment of the invention, the mapping relationship is a synchronization relationship, that is, when one data node in the second data node set performs a certain operation, the other data nodes also perform a certain operation according to the mapping relationship.

[0085] See Figure 4 As shown, node A and node A2 have the first mapping relationship. When node A performs maintenance, node A2 receives the maintenance notification from node A and performs maintenance at the same time.

[0086] In this embodiment of the invention, after sending the maintenance notification to the remaining data nodes in the second data node set, the method may further include:

[0087] The remaining data nodes in the second data node group are maintained according to the first mapping relationship.

[0088] For example, tree-structured data represents a company's organizational structure. In a business scenario where a new employee joins the company, each department serves as a second data node. Once a department enters a new employee's information, that information is simultaneously entered into the other departments based on the mapping relationship. The departments serving as second data nodes could be the Human Resources, Finance, and Administration departments.

[0089] S6. Establish a second mapping relationship for the third data node in the third data node set, and when there are nodes in the third data node set that are being maintained at a lower level, simultaneously perform lower level maintenance for the remaining data nodes in the third data node set.

[0090] In this embodiment of the invention, the second mapping relationship and the first mapping relationship both belong to the mapping relationship category. The first mapping relationship is a one-to-one correspondence, and the second mapping relationship is a one-to-one correspondence or a one-to-many relationship.

[0091] See Figure 5 As shown, node A and node A3 have a second mapping relationship. When node A adds new sub-nodes B and C, node A3 will automatically add new sub-nodes B and C.

[0092] See Figure 6 As shown in this embodiment of the invention, when a node in the third data node set is performing lower-level maintenance, simultaneously performing lower-level maintenance for the remaining data nodes in the third data node set includes:

[0093] S6011. Obtain the target sub-data node of the data node being maintained in the third data node set and the sub-node maintenance method for the target sub-data node;

[0094] S6012. Obtain the remaining sub-data nodes of the remaining data nodes in the third data node, and maintain the remaining sub-data nodes according to the sub-node maintenance method.

[0095] In this embodiment of the invention, the lower-level maintenance refers to the maintenance of the child nodes of the current node.

[0096] Furthermore, for example, tree-structured data represents the organizational structure of a company. When the business scenario involves collecting employee identity information from various departments, the data of department leaders will be used as the third data node, and identity information statistics notifications will be issued by the department leaders.

[0097] In this embodiment of the invention, a preset tree structure data and each data node in the tree structure data are obtained. Based on the business scenario of the data nodes, the nodes are divided into a first node set, a second node set, and a third node set, achieving the purpose of data node partitioning. Then, a reuse relationship is established for the first node in the first node set, and the corresponding node of the first node is maintained. Next, a first mapping relationship is established for the second node in the second node set. When a node in the second node set is being maintained, a maintenance notification is sent to the remaining nodes in the second node set. Finally, a second mapping relationship is established for the third node in the third node set. When a node in the third node set is undergoing lower-level maintenance, lower-level maintenance is simultaneously performed for the remaining nodes, achieving the purpose of differentiated maintenance management of data nodes. Therefore, by partitioning the tree data and then using different methods to perform differentiated maintenance on the partitioned tree data, the depth of data management is improved.

[0098] like Figure 7 The diagram shown is a schematic diagram of the tree-shaped data management device based on multiple business scenarios according to the present invention.

[0099] The tree-structured data management device 100 based on multiple service scenarios described in this invention can be installed in an electronic device. Depending on the functions implemented, the tree-structured data management device based on multiple service scenarios may include a node partitioning module 101, a first node maintenance module 102, a second node maintenance module 103, and a third node maintenance module 104. The module described in this invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.

[0100] In this embodiment, the functions of each module / unit are as follows:

[0101] The node partitioning module 101 is used to obtain preset tree structure data and each data node in the tree structure data, query the business scenario of each data node in the tree structure data, and divide the data node into a first data node set, a second data node set and a third data node set according to the business scenario.

[0102] The first node maintenance module 102 is used to establish a reuse relationship for the first data node in the first data node set, and to maintain the corresponding node of the first data node according to the reuse relationship.

[0103] The second node maintenance module 103 is used to establish a first mapping relationship for the second data nodes in the second data node set, and to send a maintenance notification to the other data nodes in the second data node set when there are nodes in the second data node set that need maintenance.

[0104] The third node maintenance module 104 is used to establish a second mapping relationship for the third data nodes in the third data node set, and to synchronously perform lower-level maintenance for the remaining data nodes in the third data node set when there are nodes in the third data node set undergoing lower-level maintenance.

[0105] In detail, the modules in the tree-structured data management device 100 based on multi-service scenarios described in this embodiment of the invention adopt the same approach as described above when in use. Figures 1 to 6 The tree-structured data management method based on multiple business scenarios uses the same technical means and can produce the same technical effect, so it will not be elaborated here.

[0106] like Figure 8 The diagram shown is a structural schematic of an electronic device that implements a tree-structured data management method based on multiple business scenarios according to the present invention.

[0107] The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13. It may also include a computer program stored in the memory 11 and capable of running on the processor 10, such as a tree-structured data management program based on multiple service scenarios.

[0108] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., executing a tree-structured data management program based on multiple service scenarios) and calls data stored in the memory 11 to perform various functions of the electronic device and process data.

[0109] The memory 11 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a portable hard drive. In other embodiments, the memory 11 can be an external storage device of the electronic device, such as a plug-in portable hard drive, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc. Furthermore, the memory 11 can include both internal and external storage units of the electronic device. The memory 11 can be used not only to store application software and various types of data installed on the electronic device, such as the code of a tree-structured data management program based on multi-service scenarios, but also to temporarily store data that has been output or will be output.

[0110] The communication bus 12 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 11 and at least one processor 10, etc.

[0111] The communication interface 13 is used for communication between the aforementioned 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, Bluetooth interface, etc.), typically used to establish communication connections between the electronic device and other electronic devices. The user interface may be a display, an input unit (such as a keyboard), or optionally, a standard wired or wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device and to display a visual user interface.

[0112] Figure 8 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 8The structure shown does not constitute a limitation on the electronic device and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0113] For example, although not shown, the electronic device may also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.

[0114] It should be understood that the embodiments described are for illustrative purposes only and are not limited to this structure in the scope of the patent application.

[0115] The tree-structured data management program based on multiple service scenarios stored in the memory 11 of the electronic device is a combination of multiple computer programs. When run in the processor 10, it can achieve the following:

[0116] Obtain the preset tree structure data and each data node in the tree structure data;

[0117] Query the business scenarios of each data node in the tree structure data;

[0118] Based on the business scenario, the data nodes are divided into a first data node set, a second data node set, and a third data node set;

[0119] Establish a reuse relationship for the first data node in the first data node set, and maintain the corresponding node of the first data node according to the reuse relationship;

[0120] A first mapping relationship is established for the second data nodes in the second data node set, and a maintenance notification is sent to the remaining data nodes in the second data node set when there are nodes in the second data node set that need maintenance.

[0121] A second mapping relationship is established for the third data node in the third data node set, and when there are nodes in the third data node set undergoing lower-level maintenance, the remaining data nodes in the third data node set are simultaneously subjected to lower-level maintenance.

[0122] Specifically, the processor 10's implementation method of the above-mentioned computer program can be found in [reference needed]. Figure 1 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.

[0123] Furthermore, if the modules / units integrated into the electronic device are implemented as software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can 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 USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).

[0124] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following:

[0125] Obtain the preset tree structure data and each data node in the tree structure data;

[0126] Query the business scenarios of each data node in the tree structure data;

[0127] Based on the business scenario, the data nodes are divided into a first data node set, a second data node set, and a third data node set;

[0128] Establish a reuse relationship for the first data node in the first data node set, and maintain the corresponding node of the first data node according to the reuse relationship;

[0129] A first mapping relationship is established for the second data nodes in the second data node set, and a maintenance notification is sent to the remaining data nodes in the second data node set when there are nodes in the second data node set that need maintenance.

[0130] A second mapping relationship is established for the third data nodes in the third data node set, and when there are nodes in the third data node set undergoing lower-level maintenance, the remaining data nodes in the third data node set are simultaneously subjected to lower-level maintenance.

[0131] In the several embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.

[0132] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0133] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0134] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0135] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.

[0136] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.

[0137] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0138] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. The term "second class" is used to indicate names and does not indicate any specific order.

[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A tree-structured data management method based on multiple business scenarios, characterized in that, The method includes: Obtain the preset tree structure data and each data node in the tree structure data; Query the business scenarios of each data node in the tree structure data; Based on the three types of user needs corresponding to the business scenario, the data nodes are divided into a first data node set, a second data node set, and a third data node set, which correspond to the three types of user needs respectively. Establish a reuse relationship for the first data node in the first data node set, and maintain the corresponding node that has a reuse relationship with the first data node when the first data node is maintained according to the reuse relationship; Establish a first mapping relationship for node operation synchronization for the second data nodes in the second data node set, and when there are nodes in the second data node set that are being maintained, send a maintenance notification to the remaining data nodes in the second data node set that have established the first mapping relationship with the second data node that is being maintained; A second mapping relationship for child node operation synchronization is established for the third data node in the third data node set. When there is a node in the third data node set performing lower-level maintenance, the remaining data nodes in the third data node set that have established the second mapping relationship with the third data node performing lower-level maintenance are simultaneously performed for lower-level maintenance. The lower-level maintenance is the maintenance of the child data nodes of the third data node.

2. The tree-structured data management method based on multiple business scenarios as described in claim 1, characterized in that, The business scenarios for querying each data node in the tree-structured data include: Obtain the business requirement information of the tree structure data; The business scenario that retrieves the tree-structured data from a preset business scenario database based on the business requirement information.

3. The tree-structured data management method based on multiple business scenarios as described in claim 2, characterized in that, Before the business scenario in which the tree structure data is obtained from a preset business scenario database based on the business requirement information, the method further includes: Obtain the target business scenario and the multiple business implementation processes included in the target business scenario; Obtain the execution frequency of each business implementation process in the multiple business implementation processes; The business scenario database is established based on the target business scenario and the business implementation processes with an execution frequency greater than a preset frequency among the multiple business implementation processes.

4. The tree-structured data management method based on multiple business scenarios as described in claim 1, characterized in that, The step of dividing the data nodes into a first data node set, a second data node set, and a third data node set corresponding to the three types of user needs corresponding to the business scenario includes: Obtain the scenario characteristics of the business scenarios for each of the data nodes; Obtain a preset feature lookup table and the query features in the feature lookup table; The query features in the feature query table are matched with the scenario features of the business scenarios of each data node to obtain the matching results; Based on the matching results, the data nodes are divided into the first data node set, the second data node set, and the third data node set.

5. The tree-structured data management method based on multiple business scenarios as described in claim 1, characterized in that, When a node in the third data node set is performing lower-level maintenance, the remaining data nodes in the third data node set that have established a second mapping relationship with the third data node performing lower-level maintenance are simultaneously subjected to lower-level maintenance, including: Obtain the target sub-data node of the data node currently being maintained in the third data node set, and the method for maintaining the sub-nodes maintained by the target sub-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. The tree-structured data management method based on multiple business scenarios as described in any one of claims 1 to 5, characterized in that, After sending maintenance notifications to the remaining data nodes in the second data node cluster that have established a first mapping relationship with the second data node being maintained, the method further includes: The remaining data nodes in the second data node group are maintained according to the first mapping relationship.

7. A tree-structured data management device based on multiple business scenarios, characterized in that, The device includes: The node partitioning module is used to obtain preset tree structure data and each data node in the tree structure data, query the business scenario of each data node in the tree structure data, and divide the data node into a first data node set, a second data node set, and a third data node set corresponding to the three types of user needs corresponding to the business scenario, respectively. The first node maintenance module is used to establish a reuse relationship for the first data node in the first data node set, and to maintain the corresponding node that has a reuse relationship with the first data node when the first data node is maintained according to the reuse relationship. The second node maintenance module is used to establish a first mapping relationship for node operation synchronization of the second data nodes in the second data node set, and when there are nodes in the second data node set that are being maintained, to send a maintenance notification to the other data nodes in the second data node set that have established the first mapping relationship with the second data node that is being maintained. The third node maintenance module is used to establish a second mapping relationship for child node operation synchronization for the third data node in the third data node set, and when there is a node in the third data node set performing lower-level maintenance, it synchronously performs lower-level maintenance for the remaining data nodes in the third data node set that have established the second mapping relationship with the third data node performing lower-level maintenance. The lower-level maintenance is the maintenance of the child data nodes of the third data node.

8. The tree-structured data management device based on multiple business scenarios as described in claim 7, characterized in that, When a node in the third data node set is performing lower-level maintenance, the remaining data nodes in the third data node set that have established a second mapping relationship with the third data node performing lower-level maintenance are simultaneously subjected to lower-level maintenance, including: Obtain the target sub-data node of the data node currently being maintained in the third data node set, and the method for maintaining the sub-nodes maintained by the target sub-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. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the tree-structured data management method based on multiple service scenarios as described in any one of claims 1 to 6.

10. A computer-readable storage medium, comprising a data storage area and a program storage area, wherein the data storage area stores created data and the program storage area stores a computer program; wherein, When the computer program is executed by the processor, it implements the tree-structured data management method based on multiple business scenarios as described in any one of claims 1 to 6.