A method, device and medium for hierarchical transformation of service list based on recursive algorithm

By traversing and verifying administrative organizations in the business system and building organization trees step by step, the problem of lack of parent organization information in the data source is solved, and the hierarchical relationships are quickly obtained and displayed, improving user experience and system functionality.

CN118013084BActive Publication Date: 2024-12-06INSPUR GENERSOFT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410029080.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2024-12-06
Estimated Expiration
2044-01-05

AI Technical Summary

Technical Problem

Existing data sources only contain administrative organization information for business records, and do not include their parent organization and parent parent organization, making it difficult to directly build a tree structure to display different levels of data in the list.

Method used

By obtaining the pending list data in the business list of the business system, traversing and verifying the administrative organization, obtaining organization information step by step, building an organization tree, and filling the organization data through secondary traversal to achieve hierarchical transformation.

Benefits of technology

Quickly obtain administrative organization information, clearly display hierarchical relationships, improve user experience and work efficiency, ensure the quality and accuracy of the organization tree, meet different user needs, increase the functionality and scalability of the system, and reduce data storage and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118013084B_ABST
    Figure CN118013084B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and medium for hierarchical transformation of a business list based on a recursive algorithm, which is used to solve the problem that the existing data source only contains administrative organization information but does not include the parent organization, and it is difficult to construct a tree structure to display data of different levels in the list. It includes: obtaining the pending list data in the business list of the business system, and traversing the pending list data to obtain the administrative organization in the pending list data; verifying the administrative organization, and determining whether the business list corresponding to the administrative organization builds an organization tree based on the verification result; if the business list does not build an organization tree, obtaining the organization information corresponding to the administrative organization in the pending list data step by step, and building an organization tree corresponding to the business list based on the organization information; traversing the pending list data twice to obtain the organization data of the administrative organization, and filling the organization data into the constructed organization tree to realize the hierarchical transformation of the business list.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and medium for hierarchical transformation of a service list based on a recursive algorithm. Background Art

[0002] At present, in data processing, tree structure is a common data structure for expressing hierarchical relationships. Taking an organization as an example, each node (such as a department or team) may have zero or more child nodes, reflecting the actual hierarchical relationship. In the code, the data model of the tree structure can usually be defined by a class or object, and each node contains data (such as a department name) and a reference to its child nodes. A recursive algorithm is a self-calling algorithm that is particularly suitable for processing tree-structured data and is intuitive and convenient in processing tree structures.

[0003] In business systems, it is often necessary to display a tree-structured list to display data at different levels. However, recursive algorithms may encounter performance issues when processing large amounts of data, such as stack overflow or long execution time. In addition, sometimes the data source does not contain parent node information, which makes it difficult to directly build a tree structure. For example, in the query function, the user needs to query data by administrative organization level, but the data source only contains the administrative organization information of the business record, not its parent organization and the parent's parent organization. Summary of the invention

[0004] The embodiments of the present application provide a method, device and medium for hierarchical transformation of a business list based on a recursive algorithm, which is used to solve the technical problem that the existing data source only contains the administrative organization information of the business record, but does not include its parent organization and the parent's parent organization, and it is difficult to directly construct a tree structure to display data of different levels in the list.

[0005] On the one hand, an embodiment of the present application provides a method for hierarchical transformation of a service list based on a recursive algorithm, comprising:

[0006] Obtaining the to-be-processed list data in the business list of the business system, and traversing the to-be-processed list data to obtain the administrative organization in the to-be-processed list data;

[0007] Verifying the administrative organization, and determining whether the business list corresponding to the administrative organization constructs an organization tree according to the verification result;

[0008] In the case that the business list does not construct an organization tree, obtaining the organization information corresponding to the administrative organization in the list data to be processed level by level, and constructing the organization tree corresponding to the business list based on the organization information;

[0009] The to-be-processed list data is traversed twice to obtain the organizational data of the administrative organization, and the organizational data is filled into the constructed organizational tree to achieve hierarchical transformation of the business list.

[0010] In one implementation of the present application, the obtaining of the to-be-processed list data in the business list of the business system and traversing the to-be-processed list data to obtain the administrative organization in the to-be-processed list data specifically includes:

[0011] Receiving a data query request from a user, and determining the requested data requested by the user in the data query request;

[0012] Determine the business system corresponding to the request data and the business list corresponding to the business system, and obtain the corresponding list data to be processed in the business list;

[0013] The to-be-processed list data is traversed, and during the traversal process, the administrative organization corresponding to the order-making business record of the business list is obtained.

[0014] In an implementation of the present application, verifying the administrative organization and determining whether the business list corresponding to the administrative organization constructs an organization tree according to the verification result specifically includes:

[0015] Based on the hierarchical display requirement of the service list, verify the administrative organization to determine whether there is a first parent node corresponding to the administrative organization and a second parent node corresponding to the first parent node in the service list;

[0016] When the first parent node and the second parent node do not exist in the administrative organization, it is determined that the business list corresponding to the administrative organization does not construct a corresponding organization tree.

[0017] In an implementation of the present application, when the business list does not construct an organization tree, obtaining the organization information corresponding to the administrative organization in the to-be-processed list data level by level specifically includes:

[0018] In the case that the business list does not construct a corresponding organization tree, determining the current organization in the to-be-processed list data, and based on the current organization, obtaining the parent organization corresponding to the current organization;

[0019] Based on the upper-level organization corresponding to the current organization, the next upper-level organization corresponding to the upper-level organization is acquired until the next upper-level organization has no corresponding upper-level organization, so as to obtain the organization information of the administrative organization corresponding to the business list.

[0020] In an implementation of the present application, constructing the organization tree corresponding to the service list based on the organization information specifically includes:

[0021] Based on the current organization, the upper-level organization corresponding to the current organization, and the next upper-level organization corresponding to the upper-level organization in the obtained organization information, determining the parent node corresponding to each node in the business list to obtain the corresponding node association relationship;

[0022] According to the node association relationship, the association relationship between the to-be-processed list data in the service list is determined, and based on the association relationship between the to-be-processed list data, an organization tree corresponding to the service list is constructed.

[0023] In one implementation of the present application, the second traversal of the to-be-processed list data to obtain the organizational data of the administrative organization specifically includes:

[0024] Based on the organization tree, determining the organization structure corresponding to the to-be-processed list data in the service list and each node in the organization structure;

[0025] Based on each node in the organizational structure, the to-be-processed list data is traversed twice to obtain the organizational data of the administrative organization corresponding to each node.

[0026] In one implementation of the present application, based on each node in the organizational structure, the to-be-processed list data is traversed twice to obtain the organizational data of the administrative organization corresponding to each node, specifically including:

[0027] Based on the current node in the organizational structure, determining the parent node corresponding to the current node, and determining the next parent node corresponding to the parent node, until the corresponding root node is found;

[0028] Based on the current node, the parent node corresponding to the current node, the next parent node corresponding to the parent node, and the root node in the organizational structure, traverse the list data to be processed, and obtain the organizational data corresponding to the current node, the organizational data corresponding to the parent node, the organizational data corresponding to the next parent node, and the organizational data corresponding to the root node.

[0029] In one implementation of the present application, the filling of the organization data into the constructed organization tree to implement hierarchical transformation of the service list specifically includes:

[0030] Based on the organizational structure corresponding to the organizational tree, determining the organizational data corresponding to each node in the organizational structure to obtain a corresponding relationship between the node and the organizational data;

[0031] According to the corresponding relationship, the acquired organization data is filled into the corresponding organization structure in the organization tree to achieve hierarchical transformation of the business list.

[0032] On the other hand, the embodiment of the present application further provides a service list hierarchical transformation device based on a recursive algorithm, the device comprising:

[0033] at least one processor;

[0034] and, a memory communicatively coupled to the at least one processor;

[0035] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned method for hierarchical transformation of a service list based on a recursive algorithm.

[0036] On the other hand, an embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer implements the above-mentioned method for hierarchical transformation of a service list based on a recursive algorithm when executing the executable instructions.

[0037] The present application provides a method, device and medium for hierarchical transformation of a service list based on a recursive algorithm, which at least has the following beneficial effects:

[0038] By traversing the list data to be processed, the administrative organization information can be quickly obtained, thereby reducing the time and cost of data processing; by constructing an organization tree, the hierarchical relationship of the business system can be clearly displayed, allowing users to understand and browse data more intuitively, improving user experience and work efficiency; by verifying the administrative organization, the quality and accuracy of the constructed organization tree can be ensured, thereby reducing the difficulty and risk of data processing; by hierarchical transformation of the business list, the needs of different users can be met, the functionality and flexibility of the business system are increased, and the scalability and maintainability of the system are improved; by intelligent analysis and processing of data, more accurate data support and decision-making basis can be provided for the business system, promoting the intelligent development of the business system; since the hierarchically transformed data is stored in a tree structure, data redundancy can be effectively reduced, thereby reducing the cost of data storage; by constructing an organization tree, data access rights can be better managed and controlled, thereby enhancing data security; the hierarchical transformation of the data structure is clearer and easier to understand, thereby reducing the difficulty and cost of data maintenance; by hierarchical transformation of the business list, more expansion space can be provided for the business system, increasing the scalability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0040] Figure 1 A flowchart of a method for hierarchical transformation of a service list based on a recursive algorithm provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of the internal structure of a service list hierarchical transformation device based on a recursive algorithm provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0043] The embodiment of the present application provides a method, device and medium for hierarchical transformation of a business list based on a recursive algorithm. By traversing the list data to be processed, the administrative organization information therein can be quickly obtained, thereby reducing the time and cost of data processing; by constructing an organization tree, the hierarchical relationship of the business system can be clearly displayed, so that users can understand and browse the data more intuitively, improving user experience and work efficiency; by verifying the administrative organization, the quality and accuracy of the constructed organization tree can be ensured, thereby reducing the difficulty and risk of data processing; by hierarchical transformation of the business list, the needs of different users can be met, the functionality and flexibility of the business system are increased, and the scalability and maintainability of the system are improved; by intelligently analyzing and processing the data, more accurate data support and decision-making basis can be provided for the business system, promoting the intelligent development of the business system; since the hierarchically transformed data is stored in a tree structure, data redundancy can be effectively reduced, thereby reducing the cost of data storage; by constructing an organization tree, data access rights can be better managed and controlled, thereby enhancing data security; the hierarchical transformation of the data structure is clearer and easier to understand, thereby reducing the difficulty and cost of data maintenance; by hierarchical transformation of the business list, more expansion space can be provided for the business system, increasing the scalability of the system. The technical problem that the existing data source only contains the administrative organization information of the business record but does not include its parent organization and the parent's parent organization, and it is difficult to directly build a tree structure to display data at different levels in the list is solved.

[0044] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0045] Figure 1 A flowchart of a method for hierarchical transformation of a service list based on a recursive algorithm is provided in an embodiment of the present application.

[0046] The analysis method involved in the embodiments of the present application can be implemented by a terminal device or a server, and the present application does not impose any special restrictions on this. For the convenience of understanding and description, the following embodiments are described in detail by taking a server as an example.

[0047] It should be noted that the server may be a single device or a system consisting of multiple devices, that is, a distributed server, and this application does not make any specific limitation on this.

[0048] like Figure 1 As shown, a method for hierarchical transformation of a service list based on a recursive algorithm is provided in an embodiment of the present application, comprising:

[0049] 101. Obtain the pending list data in the business list of the business system, and traverse the pending list data to obtain the administrative organization in the pending list data.

[0050] In one embodiment, in an HR system with a large amount of employee information, employee data of different departments or teams can be quickly identified and classified by traversing the list data to be processed, rather than manually processing one by one, thereby significantly improving data processing efficiency.

[0051] Specifically, in one embodiment of the present application, the server can quickly locate the data to be queried by receiving the user's data query request and determining the business system and business list according to the request data of the user's request, thereby reducing the time and cost of data query. In the process of traversing the list data to be processed, the administrative organization corresponding to the business record of the business list is obtained, which can ensure that the queried data is consistent with the data in the actual business system, thereby improving the accuracy of the data.

[0052] By verifying and confirming the data requested by the user, the server can prevent malicious or unauthorized users from accessing and obtaining sensitive data, thereby improving data security. By quickly and accurately responding to user data query requests, it can increase user trust and satisfaction with the business system and enhance user experience. By performing intelligent analysis and processing on the data requested by the user, it can provide the business system with more accurate data support and decision-making basis, thereby promoting the intelligent development of the business system.

[0053] 102. Verify the administrative organization, and determine whether to construct an organizational tree for the business list corresponding to the administrative organization based on the verification result.

[0054] In one embodiment, in a content management system, by checking the website navigation structure, the system can automatically identify and repair incorrect links or duplicate pages, thereby reducing the difficulty and risk of website maintenance.

[0055] Specifically, in one embodiment of the present application, the server verifies the administrative organization and determines whether there is a first parent node and a second parent node corresponding to the administrative organization in the business list, thereby ensuring that the construction of the organization tree is based on complete and accurate data, thereby avoiding the situation where the organization tree is constructed incorrectly due to incomplete or erroneous data. If the administrative organization does not have the first parent node and the second parent node, the server can determine that the corresponding business list does not construct the corresponding organization tree, which helps users better understand and use the business system, and avoids the situation where users are inconvenienced due to incomplete or erroneous data.

[0056] By verifying the administrative organization, the server can promptly discover problems or errors in the data, making it easier for system administrators to perform maintenance and repairs, improving the maintainability of the system. By verifying the administrative organization, problems and deficiencies in the business system can be discovered, providing a basis and support for the continuous improvement and upgrade of the business system.

[0057] 103. When the organization tree is not constructed for the business list, the organization information corresponding to the administrative organization in the list data to be processed is obtained level by level, and the organization tree corresponding to the business list is constructed based on the organization information.

[0058] In one embodiment, in a product classification of a platform, by constructing an organization tree, users can intuitively see that there are various subcategories under the products, and under the subcategories there are subcategories of different brands and models, so that users can quickly browse and find the products they want.

[0059] Specifically, in one embodiment of the present application, the server can gradually build a complete organization tree by determining the current organization and obtaining the superior organization upward when the corresponding organization tree is not built in the business list, ensuring that each administrative organization in the business list has a corresponding organization tree, thereby improving the integrity and accuracy of the business system. By obtaining the superior organization upward based on the current organization, the organizational information of the administrative organization corresponding to the business list can be quickly obtained, reducing the time and cost of obtaining the organizational information. By building a complete organization tree, a more flexible and scalable organizational structure can be provided for the business system to meet the needs of different users and business changes. By obtaining and processing the organizational information, more intelligent analysis and decision support can be provided for the business system, thereby promoting the intelligent development of the business system.

[0060] In one embodiment of the present application, the server determines the parent node corresponding to each node in the business list based on the current organization in the acquired organizational information, the superior organization corresponding to the current organization, and the next superior organization corresponding to the superior organization, and can quickly construct the corresponding node association relationship, and then construct the organization tree corresponding to the business list, thereby improving the efficiency of constructing the organization tree. By constructing the organization tree corresponding to the business list, the hierarchical structure and organizational relationship of the business system can be clearly displayed, so that users can understand and browse the data more intuitively, enhancing the readability and comprehensibility of the business system.

[0061] By constructing an organization tree corresponding to the business list, the server can provide the business system with a clearer and easier-to-manage data structure, making it easier for system administrators to maintain and expand the system, thereby improving the maintainability and scalability of the business system. By analyzing and processing the organization tree, the server can provide the business system with more intelligent decision support and services, thereby promoting the intelligent development of the business system.

[0062] 104. Perform a second traversal on the list data to be processed to obtain the organizational data of the administrative organization, and fill the organizational data into the constructed organizational tree to achieve hierarchical transformation of the business list.

[0063] In one embodiment, in a management system, by hierarchically transforming the list, information can be displayed and organized according to different organizational structures, meeting the specific needs of different users. The hierarchically transformed data storage structure can effectively reduce information redundancy and duplication, thereby saving storage space and maintenance costs.

[0064] Specifically, in one embodiment of the present application, the server determines the organizational structure corresponding to the pending list data in the business list based on the organizational tree, and performs a secondary traversal of each node in the organizational structure, thereby being able to more efficiently obtain the organizational data of the administrative organization corresponding to each node, reducing the time and cost of data processing, and by performing a secondary traversal of the pending list data based on each node in the organizational structure, it is possible to ensure that the organizational data of the administrative organization corresponding to each node obtained is accurate and complete, thereby avoiding result deviations caused by incomplete or erroneous data.

[0065] Then, by performing a secondary traversal of the list data to be processed, the server can obtain the organizational data of the administrative organization corresponding to each node, thereby providing more comprehensive and accurate data support for the business system, enhancing the availability and user experience of the business system. By performing a secondary traversal of each node in the organizational structure, the server can obtain the organizational data of the administrative organization corresponding to each node, providing more intelligent analysis and decision-making support for the business system, and promoting the intelligent development of the business system.

[0066] In one embodiment, the server determines the parent node and the next parent node based on the current node in the organizational structure and finds the corresponding root node, so that the server can more efficiently traverse the data in the list to be processed, obtain the organizational data corresponding to the current node, the parent node, the next parent node and the root node, thereby reducing the time and cost of data processing. By traversing the data in the list to be processed based on the node relationship in the organizational structure, it can ensure that the organizational data of each node obtained is accurate and complete, avoiding result deviations caused by incomplete or erroneous data.

[0067] By obtaining the organizational data corresponding to the current node, parent node, next parent node and root node, the server can provide more comprehensive and accurate data support for the business system, enhancing the availability and user experience of the business system. By traversing the node relationships in the organizational structure, the server can obtain the organizational data of each node, providing the business system with more intelligent analysis and decision-making support, and promoting the intelligent development of the business system.

[0068] The server can visualize the business list in a tree structure by filling the obtained organizational data into the corresponding organizational structure in the organizational tree, so that users can intuitively understand the hierarchical structure and organizational relationship of the business list, which improves the readability and comprehension of the data. By hierarchically transforming the business list, users can browse and query business data more conveniently, and can quickly locate the required information, which improves the user experience and convenience of the business system, and can provide the business system with more flexible and diversified functions, such as data classification, filtering, sorting, etc., to meet the different needs of users and enhance the functionality of the business system. By hierarchically transforming the business list and combining the correspondence between nodes and organizational data, it can provide the business system with more intelligent data analysis and decision support, which promotes the intelligent development of the business system. This method based on the organizational structure corresponding to the organizational tree has the advantages of realizing the visualization of the business list, improving the user experience of the business system, enhancing the functionality of the business system, and promoting the intelligent development of the business system.

[0069] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, this application embodiment also provides a service list hierarchical transformation device based on a recursive algorithm, and its structure is as follows: Figure 2 shown.

[0070] Figure 2 The internal structure diagram of a service list hierarchical transformation device based on a recursive algorithm provided in an embodiment of the present application. Figure 2 As shown, the device includes:

[0071] at least one processor;

[0072] and, a memory communicatively coupled to the at least one processor;

[0073] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to:

[0074] Obtain the pending list data in the business list of the business system, and traverse the pending list data to obtain the administrative organization in the pending list data;

[0075] Verify the administrative organization and determine whether the business list corresponding to the administrative organization should construct an organization tree based on the verification result;

[0076] In the case that the business list does not construct an organization tree, the organization information corresponding to the administrative organization in the list data to be processed is obtained level by level, and the organization tree corresponding to the business list is constructed based on the organization information;

[0077] The list data to be processed is traversed twice to obtain the organizational data of the administrative organization, and the organizational data is filled into the constructed organizational tree to realize the hierarchical transformation of the business list.

[0078] The present application also provides a non-volatile computer storage medium storing computer executable instructions. When a computer executes the executable instructions, it can:

[0079] Obtain the pending list data in the business list of the business system, and traverse the pending list data to obtain the administrative organization in the pending list data;

[0080] Verify the administrative organization and determine whether the business list corresponding to the administrative organization should construct an organization tree based on the verification result;

[0081] In the case that the business list does not construct an organization tree, the organization information corresponding to the administrative organization in the list data to be processed is obtained level by level, and the organization tree corresponding to the business list is constructed based on the organization information;

[0082] The list data to be processed is traversed twice to obtain the organizational data of the administrative organization, and the organizational data is filled into the constructed organizational tree to realize the hierarchical transformation of the business list.

[0083] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0084] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0085] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0086] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0087] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0088] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0089] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0090] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0091] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0092] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0093] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0094] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for hierarchical transformation of a service list based on a recursive algorithm, characterized in that: The method comprises: Obtaining the to-be-processed list data in the business list of the business system, and traversing the to-be-processed list data to obtain the administrative organization in the to-be-processed list data; Verifying the administrative organization, and determining whether the business list corresponding to the administrative organization constructs an organization tree according to the verification result; In the case that the business list does not construct an organization tree, obtaining the organization information corresponding to the administrative organization in the list data to be processed level by level, and constructing the organization tree corresponding to the business list based on the organization information; Perform a second traversal of the to-be-processed list data to obtain the organizational data of the administrative organization, and fill the organizational data into the constructed organizational tree to achieve hierarchical transformation of the business list; The verifying the administrative organization and determining whether the business list corresponding to the administrative organization constructs an organization tree according to the verification result specifically includes: Based on the hierarchical display requirement of the service list, verify the administrative organization to determine whether there is a first parent node corresponding to the administrative organization and a second parent node corresponding to the first parent node in the service list; When the first parent node and the second parent node do not exist in the administrative organization, it is determined that the business list corresponding to the administrative organization does not construct a corresponding organization tree.

2. According to claim 1, a method for hierarchical transformation of a service list based on a recursive algorithm is characterized in that: The step of obtaining the to-be-processed list data from the business list of the business system and traversing the to-be-processed list data to obtain the administrative organization in the to-be-processed list data specifically includes: Receiving a data query request from a user, and determining the requested data requested by the user in the data query request; Determine the business system corresponding to the request data and the business list corresponding to the business system, and obtain the corresponding list data to be processed in the business list; The to-be-processed list data is traversed, and during the traversal process, the administrative organization corresponding to the order-making business record of the business list is obtained.

3. The method for hierarchical transformation of a service list based on a recursive algorithm according to claim 1, characterized in that: In the case where the business list does not construct an organization tree, obtaining the organization information corresponding to the administrative organization in the to-be-processed list data level by level specifically includes: In the case that the business list does not construct a corresponding organization tree, determining the current organization in the to-be-processed list data, and based on the current organization, obtaining the parent organization corresponding to the current organization; Based on the upper-level organization corresponding to the current organization, the next upper-level organization corresponding to the upper-level organization is acquired until the next upper-level organization has no corresponding upper-level organization, so as to obtain the organization information of the administrative organization corresponding to the business list.

4. The method for hierarchical transformation of a service list based on a recursive algorithm according to claim 3, characterized in that: The step of constructing the organization tree corresponding to the service list based on the organization information specifically includes: Based on the current organization, the upper-level organization corresponding to the current organization, and the next upper-level organization corresponding to the upper-level organization in the obtained organization information, determining the parent node corresponding to each node in the business list to obtain the corresponding node association relationship; According to the node association relationship, the association relationship between the to-be-processed list data in the service list is determined, and based on the association relationship between the to-be-processed list data, an organization tree corresponding to the service list is constructed.

5. The method for hierarchical transformation of a service list based on a recursive algorithm according to claim 1, characterized in that: The second traversal of the to-be-processed list data to obtain the organizational data of the administrative organization specifically includes: Based on the organization tree, determining the organization structure corresponding to the to-be-processed list data in the service list and each node in the organization structure; Based on each node in the organizational structure, the to-be-processed list data is traversed twice to obtain the organizational data of the administrative organization corresponding to each node.

6. A method for hierarchical transformation of a service list based on a recursive algorithm according to claim 5, characterized in that: The second traversal of the to-be-processed list data based on each node in the organizational structure to obtain organizational data of the administrative organization corresponding to each node specifically includes: Based on the current node in the organizational structure, determining the parent node corresponding to the current node, and determining the next parent node corresponding to the parent node, until the corresponding root node is found; Based on the current node, the parent node corresponding to the current node, the next parent node corresponding to the parent node, and the root node in the organizational structure, traverse the list data to be processed, and obtain the organizational data corresponding to the current node, the organizational data corresponding to the parent node, the organizational data corresponding to the next parent node, and the organizational data corresponding to the root node.

7. The method for hierarchical transformation of a service list based on a recursive algorithm according to claim 1, characterized in that: The step of filling the organization data into the constructed organization tree to implement hierarchical transformation of the business list specifically includes: Based on the organizational structure corresponding to the organizational tree, determining the organizational data corresponding to each node in the organizational structure to obtain a corresponding relationship between the node and the organizational data; According to the corresponding relationship, the acquired organization data is filled into the corresponding organization structure in the organization tree to achieve hierarchical transformation of the business list.

8. A service list hierarchical transformation device based on a recursive algorithm, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a service list hierarchical transformation method based on a recursive algorithm as described in any one of claims 1-7.

9. A non-volatile computer storage medium storing computer executable instructions, characterized in that: When executing the executable instructions, the computer implements a service list hierarchical transformation method based on a recursive algorithm as described in any one of claims 1 to 7.