Enterprise-level software contact genealogy data analysis method, computer equipment and storage medium
Through the enterprise-level software transaction genealogy data analysis method, using stack structure and multi-threading technology, the problem of low query efficiency of complex transaction unit data in enterprise-level software is solved, and fast and comprehensive query and analysis of large-scale data are realized.
Patent Information
- Application Number
- CN202411081626.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-10-08
AI Technical Summary
Existing technology is difficult to effectively process complex business unit genealogy data in enterprise-level software, resulting in low query efficiency and difficulty in processing large-scale and complex business unit relationships.
Using an enterprise-level software transaction genealogy data analysis method, by obtaining the transaction unit genealogy, using stack structure and multi-threading technology, sequentially push and pop up nodes, extract relevant data information, and formulate a unified data format in the communication system to support Concurrent queries to generate genealogy data for easy analysis.
It achieves comprehensive query coverage of complex data structures, significantly improves the query speed of large-scale relational complex data, and supports detailed data analysis and risk control.
Smart Images

Figure CN118747192A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis, and in particular to an enterprise-level software transaction family tree data analysis method and computer equipment. Background Art
[0002] In enterprise-level software, there are often complex hierarchies and relationships between business units, forming a structure similar to a family tree. Accurate and comprehensive analysis of these relationships is of great significance to enterprise management, risk control, and market strategy formulation. When corporate financial personnel query the general ledger balance of business units, they often need to query all subsidiaries of their units at the same time. The traditional approach is to query the data of each related business unit separately. However, the amount of data of business units is large. For group-level enterprises, the amount of data can reach millions. There are technical difficulties in screening them one by one. Existing analysis methods are often inefficient and difficult to handle large-scale and complex business unit family trees. In order to solve this problem, a business unit family tree analysis method that can effectively handle complex data structures is needed. Summary of the invention
[0003] In order to improve the accuracy of enterprise data analysis and facilitate subsequent more detailed data analysis, in the first aspect of the present invention, a method for analyzing enterprise-level software transaction genealogy data is proposed, the method comprising: obtaining a transaction unit genealogy, and receiving a query field input with any node in the transaction unit genealogy as the starting node; pushing the subordinate nodes of the starting node into the stack in sequence according to the superior-subordinate relationship of the transaction unit genealogy; popping the node currently at the top of the stack and extracting the relevant data information recorded in the current node containing the query field according to the query field; pushing the subordinate nodes in the data information that have transaction information with the current node and are not in the stack to the bottom of the stack; returning to the step of popping the node currently at the top of the stack, and outputting all relevant data information when the stack is empty.
[0004] In one or more embodiments, the enterprise-level software transaction data analysis method of the present invention further includes: starting multiple threads; popping out the nodes at the top of the stack in sequence and handing over the data query operation and subsequent operations to different threads.
[0005] In one or more embodiments, the enterprise-level software transaction data analysis method of the present invention also includes: in response to inputting multiple query fields, generating multiple queues according to the number of input query fields; pushing the subordinate nodes of the starting node into each of the queues in turn according to the superior-subordinate relationship of the transaction unit genealogy; and allocating one or more threads to each of the queues to perform data query operations and subsequent operations.
[0006] In one or more embodiments, the enterprise-level software transaction data analysis method of the present invention also includes: formulating a unified communication data format for the communication systems of superior and subordinate transaction units, and the communication data includes: transaction unit query primary key, transaction unit code, transaction unit name and other attribute fields.
[0007] In one or more embodiments, the enterprise-level software transaction data analysis method of the present invention further includes: associating the output related data information with the corresponding nodes in the transaction unit family tree to generate family tree data.
[0008] In one or more embodiments, the enterprise-level software transaction data analysis method of the present invention further includes: displaying the family tree data in a flat format in a list, or converting the family tree data into an association matrix for display.
[0009] In one or more embodiments, the enterprise-level software transaction data analysis method of the present invention further includes: performing data tracking, data clearing and / or data risk analysis based on the family tree data.
[0010] In one or more embodiments, the family tree of the trading units is composed of the query primary keys of the trading units.
[0011] In a second aspect of the present invention, a computer device is proposed, comprising: at least one processor; and a memory, wherein the memory stores an executable computer program, and when the computer program is executed by the at least one processor, it is used to implement the steps of the enterprise-level software transaction data analysis method as described in any of the above method embodiments.
[0012] In a third aspect of the present invention, a readable storage medium is provided, comprising: an executable computer program, which, when executed by an executor, is used to implement the steps of the enterprise-level software transaction data analysis method as described in any of the above method embodiments.
[0013] The beneficial effects of the present invention include: the present invention is combined with the genealogy of the inter-company units, and by pushing and popping the stack nodes according to the initiating node and the genealogy of the inter-company units when initiating a data query, it can effectively process data with complex structures, realize comprehensive coverage query of all node data, and support concurrent execution, which can greatly improve the query speed of large-scale complex relational data. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0015] Figure 1 A workflow diagram of an enterprise-level software family tree data analysis method according to an embodiment of the present invention; Figure 2 A schematic diagram of the structure of a computer device according to an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0017] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0018] In order to improve the accuracy of enterprise data analysis and facilitate subsequent more detailed data analysis, the present invention proposes an embodiment of an enterprise-level software family tree data analysis method, see Figure 1 The workflow of the method includes: step S1, obtaining the genealogy of the trading units, and receiving the query field input with any node in the genealogy of the trading units as the starting node; step S2, pushing the subordinate nodes of the starting node into the stack in sequence according to the superior-subordinate relationship of the genealogy of the trading units; step S3, popping the node currently at the top of the stack and extracting the relevant data information containing the query field recorded in the current node according to the query field; step S4, pushing the subordinate nodes in the data information that have trading information with the current node and are not in the stack to the bottom of the stack; step S5, returning to the above step of popping the node currently at the top of the stack, and outputting all the relevant data information until the stack is empty.
[0019] Specifically, the genealogy of the inter-company in step S1 refers to the superior-subordinate relationship or supply-demand structure relationship between the subsidiaries in the group, or the superior-subordinate relationship or functional relationship between the company departments. The genealogy of inter-company is stored in advance in the communication system of each subsidiary or department. Each node in the genealogy of inter-company is the corresponding subsidiary or department communication system and the database managed by the communication system. Receiving the query field inputted as the starting node by any node in the genealogy of inter-company refers to executing the data query operation in the corresponding communication system, and inputting the field information of the required query data, such as the accounting subjects or currencies such as payment, appropriation and / or account balance. The reason for only pushing the subordinate nodes of the starting node into the stack in step S2 is that the inter-company information is generally initiated by the superior node to the subordinate node, therefore, if you want to extract the inter-company information comprehensively, you only need to push the subordinate nodes into the stack. After each node at the top of the stack is popped out in step S3, the next node will become the new top node of the stack. In step S4, after the communication systems of each node adopt a unified communication data format, the communication data format should contain the query primary key of the node that communicates with the current node. By comparing the primary key with the primary key of the node in the current stack, it can be determined whether all the subordinate nodes that have intercourse information with the current node are in the stack. The operation of this step complies with the first-in-first-out storage strategy of the stack, and the reason why the subordinate nodes are not in the stack is that a finer unit division is carried out within the subsidiary or department, and this information will not be recorded by the genealogy of the intercourse units due to frequent changes. In step S5, when the stack is empty, it is guaranteed that a complete data query is performed on the subordinate nodes of all the initial nodes, thereby ensuring the comprehensiveness of the data query. Through this embodiment, a comprehensive query of enterprise-level intercourse data can be guaranteed, thereby providing a favorable foundation for subsequent more detailed data analysis work.
[0020] In one embodiment, in order to improve the data query speed, the stack operation in step S3 can be replaced by the following method: start multi-threaded operation; pop up the nodes at the top of the stack in turn and hand them over to different threads for data query operation; in subsequent steps, the multiple threads will jointly maintain a stack, that is, different threads will operate on the same stack when continuing to execute steps S4 and S5. This embodiment can realize concurrent query of data and can complete the query work of large-scale enterprise data more quickly.
[0021] In a further embodiment, multithreading can also be used to concurrently complete query operations on different query fields. Specifically, in this embodiment, the query fields that can be input are not limited to one, but can also be multiple, for example, two query fields, accounting subject and currency, can be input simultaneously.
[0022] More specifically, the process of completing the query operation of different query fields concurrently by multi-threaded operation is as follows: generate multiple queues according to the number of query fields input; push the subordinate nodes of the starting node into each queue in turn according to the superior-subordinate relationship of the genealogy of the trading unit; allocate one or more threads to each queue, and concurrently perform the following steps: pop the node currently at the top of the stack and extract the relevant data information containing the query field recorded in the current node according to the query field; determine whether all the subordinate nodes in the data information that have trading information with the current node are in the stack; in response to the existence of subordinate nodes not in the stack, push the subordinate nodes to the bottom of the stack; repeat the above-mentioned operation of popping the node currently at the top of the stack and the subsequent operations until the stack is empty and output all the relevant data information. In this embodiment, the initial nodes and their order in multiple queues are the same. As the data query proceeds, due to the different nodes involved in different query fields, the nodes and their order in multiple queues may also be different after a period of time. In addition, when multiple threads are allocated to each queue, the multiple threads can concurrently complete the query operation of a certain query field. The process is similar to the concurrent operation in the aforementioned embodiment, and will not be repeated herein.
[0023] In one embodiment, the family tree of the business units is composed of the query primary key of the business units. Specifically, the query primary key is the query primary key for accessing the corresponding communication system database. The family tree of the business units can be expressed in a tree structure or an array form.
[0024] In one embodiment, the enterprise-level software transaction data analysis method of the present invention also includes: formulating a unified communication data format for the communication systems of upper and lower level transaction units, and the communication data includes: transaction unit query primary key, transaction unit code, transaction unit name and other attribute fields.
[0025] Specifically, the specific form of the data communication format is shown in the following table: Communication data format Primary key of business unit Trading unit code Name of business unit Other attribute fields XXX XXX XXX XXX There is a 1:n relationship between the parent tree and the parent tree. The communication data format for recording the parent tree relationship is shown in the following table: Genealogy relationship preservation form Primary key of business unit Primary key of the superior business unit XXX XXX In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: associating the outputted relevant data information with the corresponding nodes in the transaction unit family tree to generate family tree data. Specifically, the generated family tree data refers to associating the transaction data according to the superior-subordinate relationship of the nodes in the family tree, and the generated family tree data is more conducive to orderly data analysis.
[0026] In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: displaying the family tree data in a flat format in a list, or converting the family tree data into a correlation matrix for display.
[0027] In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: performing data tracking, data clearing and / or data risk analysis based on the genealogy data.
[0028] In a further embodiment, data tracking is performed based on the family tree data, including: in response to the query field being a grant; determining the destination of the grant based on the nodes included in the family tree data.
[0029] In a further embodiment, data clearing is performed based on the family tree data, including: in response to the query field being a balance; calculating the current balance by adding and subtracting the balance based on the family tree data.
[0030] In a further embodiment, data risk analysis is performed based on the family tree data, including: providing risk warnings based on the direction of grants or current balances.
[0031] In a second aspect of the present invention, a computer device is provided, see Figure 2 The computer device comprises: at least one processor 100; and a memory 200, wherein the memory 200 stores an executable computer program, and when the computer program is executed by the at least one processor 100, the computer program is used to implement any one of the following steps of the enterprise-level software transaction data analysis method, the steps comprising: Step S1, obtain the genealogy of the trading units, and receive the query field input with any node in the genealogy of the trading units as the starting node; step S2, push the subordinate nodes of the starting node into the stack in sequence according to the superior-subordinate relationship of the genealogy of the trading units; step S3, pop up the node currently at the top of the stack and extract the relevant data information containing the query field recorded in the current node according to the query field; step S4, push the subordinate nodes in the data information that have trading information with the current node and are not in the stack to the bottom of the stack; step S5, return to the above step of popping out the node currently at the top of the stack, and output all the relevant data information until the stack is empty.
[0032] Specifically, the genealogy of the inter-company in step S1 refers to the superior-subordinate relationship or supply-demand structure relationship between the subsidiaries in the group, or the superior-subordinate relationship or functional relationship between the company departments. The genealogy of inter-company is stored in advance in the communication system of each subsidiary or department. Each node in the genealogy of inter-company is the corresponding subsidiary or department communication system and the database managed by the communication system. Receiving the query field inputted as the starting node by any node in the genealogy of inter-company refers to executing the data query operation in the corresponding communication system, and inputting the field information of the required query data, such as payment, appropriation, account balance and / or investment and financial management, etc. The reason for only pushing the subordinate node of the starting node into the stack in step S2 is that the inter-company information is generally initiated by the superior node to the subordinate node, therefore, if you want to fully extract the inter-company information, you only need to push the subordinate node into the stack. After each node at the top of the stack is popped out in step S3, the next node will become the new top node of the stack. In step S4, after the communication systems of each node adopt a unified communication data format, the communication data format should contain the query primary key of the node that communicates with the current node. By comparing the primary key with the primary key of the node in the current stack, it can be determined whether all the subordinate nodes that have intercourse information with the current node are in the stack. The operation of this step complies with the first-in-first-out storage strategy of the stack, and the reason why the subordinate nodes are not in the stack is that there are finer unit divisions within the subsidiary or department, and this information will not be recorded by the genealogy of the intercourse units due to frequent changes. In step S5, when the stack is empty, it is guaranteed that a complete data query is performed on the subordinate nodes of all the initial nodes, thereby ensuring the comprehensiveness of the data query. Through this embodiment, a comprehensive query of enterprise-level intercourse data can be guaranteed, thereby providing a favorable foundation for subsequent more detailed data analysis work.
[0033] In one embodiment, in order to improve the data query speed, the stack operation in step S3 can be replaced by the following method: start multi-threaded operation; pop up the nodes at the top of the stack in turn and hand them over to different threads for data query operation; in subsequent steps, the multiple threads will jointly maintain a stack, that is, different threads will operate on the same stack when continuing to execute steps S4 and S5. This embodiment can realize concurrent query of data and can complete the query work of large-scale enterprise data more quickly.
[0034] In a further embodiment, multithreading can also be used to concurrently complete query operations on different query fields. Specifically, in this embodiment, the query fields that can be input are not limited to one, but can also be multiple, for example, two query fields, accounting subject and currency, can be input simultaneously.
[0035] More specifically, the process of completing the query operation of different query fields concurrently by multi-threaded operation is as follows: generate multiple queues according to the number of query fields input; push the subordinate nodes of the starting node into each queue in turn according to the superior-subordinate relationship of the genealogy of the trading unit; allocate one or more threads to each queue, and concurrently perform the following steps: pop the node currently at the top of the stack and extract the relevant data information containing the query field recorded in the current node according to the query field; determine whether all the subordinate nodes in the data information that have trading information with the current node are in the stack; in response to the existence of subordinate nodes not in the stack, push the subordinate nodes to the bottom of the stack; repeat the above-mentioned operation of popping the node currently at the top of the stack and the subsequent operations until the stack is empty and output all the relevant data information. In this embodiment, the initial nodes and their order in multiple queues are the same. As the data query proceeds, due to the different nodes involved in different query fields, the nodes and their order in multiple queues may also be different after a period of time. In addition, when multiple threads are allocated to each queue, the multiple threads can concurrently complete the query operation of a certain query field. The process is similar to the concurrent operation in the aforementioned embodiment, and will not be repeated herein.
[0036] In one embodiment, the family tree of the business units is composed of the query primary key of the business units. Specifically, the query primary key is the query primary key for accessing the corresponding communication system database. The family tree of the business units can be expressed in a tree structure or an array form.
[0037] In one embodiment, the enterprise-level software transaction data analysis method of the present invention also includes: formulating a unified communication data format for the communication systems of upper and lower level transaction units, and the communication data includes: transaction unit query primary key, transaction unit code, transaction unit name and other attribute fields.
[0038] In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: associating the outputted relevant data information with the corresponding nodes in the transaction unit family tree to generate family tree data. Specifically, the generated family tree data refers to associating the transaction data according to the superior-subordinate relationship of the nodes in the family tree, and the generated family tree data is more conducive to orderly data analysis.
[0039] In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: displaying the family tree data in a flat format in a list, or converting the family tree data into a correlation matrix for display.
[0040] In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: performing data tracking, data clearing and / or data risk analysis based on the genealogy data.
[0041] In a further embodiment, data tracking is performed based on the family tree data, including: in response to the query field being a grant; determining the destination of the grant based on the nodes included in the family tree data.
[0042] In a further embodiment, data clearing is performed based on the family tree data, including: in response to the query field being a balance; calculating the current balance by adding and subtracting the balance based on the family tree data.
[0043] In a further embodiment, data risk analysis is performed based on the family tree data, including: providing risk warnings based on the direction of grants or current balances.
[0044] In a third aspect of the present invention, a readable storage medium is provided. Figure 3 The storage medium 300 includes: an executable computer program 301, which is used to implement the steps of the enterprise-level software transaction data analysis method as described below when executed by an executor, and the steps include: Step S1, obtain the genealogy of the trading units, and receive the query field input with any node in the genealogy of the trading units as the starting node; step S2, push the subordinate nodes of the starting node into the stack in sequence according to the superior-subordinate relationship of the genealogy of the trading units; step S3, pop up the node currently at the top of the stack and extract the relevant data information containing the query field recorded in the current node according to the query field; step S4, push the subordinate nodes in the data information that have trading information with the current node and are not in the stack to the bottom of the stack; step S5, return to the above step of popping out the node currently at the top of the stack, and output all the relevant data information until the stack is empty.
[0045] Specifically, the genealogy of the inter-company in step S1 refers to the superior-subordinate relationship or supply-demand structure relationship between the subsidiaries in the group, or the superior-subordinate relationship or functional relationship between the company departments. The genealogy of inter-company is stored in advance in the communication system of each subsidiary or department. Each node in the genealogy of inter-company is the corresponding subsidiary or department communication system and the database managed by the communication system. Receiving the query field inputted as the starting node by any node in the genealogy of inter-company refers to executing the data query operation in the corresponding communication system, and inputting the field information of the required query data, such as payment, appropriation, account balance and / or investment and financial management, etc. The reason for only pushing the subordinate node of the starting node into the stack in step S2 is that the inter-company information is generally initiated by the superior node to the subordinate node, therefore, if you want to fully extract the inter-company information, you only need to push the subordinate node into the stack. After each node at the top of the stack is popped out in step S3, the next node will become the new top node of the stack. In step S4, after the communication systems of each node adopt a unified communication data format, the communication data format should contain the query primary key of the node that communicates with the current node. By comparing the primary key with the primary key of the node in the current stack, it can be determined whether all the subordinate nodes that have intercourse information with the current node are in the stack. The operation of this step complies with the first-in-first-out storage strategy of the stack, and the reason why the subordinate nodes are not in the stack is that a finer unit division is carried out within the subsidiary or department, and this information will not be recorded by the genealogy of the intercourse units due to frequent changes. In step S5, when the stack is empty, it is guaranteed that a complete data query is performed on the subordinate nodes of all the initial nodes, thereby ensuring the comprehensiveness of the data query. Through this embodiment, a comprehensive query of enterprise-level intercourse data can be guaranteed, thereby providing a favorable foundation for subsequent more detailed data analysis work.
[0046] In one embodiment, in order to improve the data query speed, the stack operation in step S3 can be replaced by the following method: start multi-threaded operation; pop up the nodes at the top of the stack in turn and hand them over to different threads for data query operation; in subsequent steps, the multiple threads will jointly maintain a stack, that is, different threads will operate on the same stack when continuing to execute steps S4 and S5. This embodiment can realize concurrent query of data and can complete the query work of large-scale enterprise data more quickly.
[0047] In a further embodiment, multithreading can also be used to concurrently complete query operations on different query fields. Specifically, in this embodiment, the query fields that can be input are not limited to one, but can also be multiple, for example, two query fields, accounting subject and currency, can be input simultaneously.
[0048] More specifically, the process of completing the query operation of different query fields concurrently by multi-threaded operation is as follows: generate multiple queues according to the number of query fields input; push the subordinate nodes of the starting node into each queue in turn according to the superior-subordinate relationship of the genealogy of the trading unit; allocate one or more threads to each queue, and concurrently perform the following steps: pop the node currently at the top of the stack and extract the relevant data information containing the query field recorded in the current node according to the query field; determine whether all the subordinate nodes in the data information that have trading information with the current node are in the stack; in response to the existence of subordinate nodes not in the stack, push the subordinate nodes to the bottom of the stack; repeat the above-mentioned operation of popping the node currently at the top of the stack and the subsequent operations until the stack is empty and output all the relevant data information. In this embodiment, the initial nodes and their order in multiple queues are the same. As the data query proceeds, due to the different nodes involved in different query fields, the nodes and their order in multiple queues may also be different after a period of time. In addition, when multiple threads are allocated to each queue, the multiple threads can concurrently complete the query operation of a certain query field. The process is similar to the concurrent operation in the aforementioned embodiment, and will not be repeated herein.
[0049] In one embodiment, the family tree of the business units is composed of the query primary key of the business units. Specifically, the query primary key is the query primary key for accessing the corresponding communication system database. The family tree of the business units can be expressed in a tree structure or an array form.
[0050] In one embodiment, the enterprise-level software transaction data analysis method of the present invention also includes: formulating a unified communication data format for the communication systems of upper and lower level transaction units, and the communication data includes: transaction unit query primary key, transaction unit code, transaction unit name and other attribute fields.
[0051] In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: associating the outputted relevant data information with the corresponding nodes in the transaction unit family tree to generate family tree data. Specifically, the generated family tree data refers to associating the transaction data according to the superior-subordinate relationship of the nodes in the family tree, and the generated family tree data is more conducive to orderly data analysis.
[0052] In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: displaying the family tree data in a flat format in a list, or converting the family tree data into a correlation matrix for display.
[0053] In one embodiment, the enterprise-level software transaction data analysis method of the present invention further includes: performing data tracking, data clearing and / or data risk analysis based on the genealogy data.
[0054] In a further embodiment, data tracking is performed based on the family tree data, including: in response to the query field being a grant; determining the destination of the grant based on the nodes included in the family tree data.
[0055] In a further embodiment, data clearing is performed based on the family tree data, including: in response to the query field being a balance; calculating the current balance by adding and subtracting the balance based on the family tree data.
[0056] In a further embodiment, data risk analysis is performed based on the family tree data, including: providing risk warnings based on the direction of grants or current balances.
[0057] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order.
[0058] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0059] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. An enterprise-level software genealogy data analysis method, characterized in that: The method comprises: Obtain a family tree of business units, and receive a query field inputted with any node in the family tree of business units as a starting node; According to the hierarchical relationship of the family tree of the business units, the subordinate nodes of the starting node are pushed into the stack in sequence; Popping the node currently at the top of the stack and extracting relevant data information containing the query field recorded in the current node according to the query field; Push the lower level nodes in the data information that have information with the current node and are not in the stack to the bottom of the stack; Return to the above step of popping the node currently at the top of the stack, and output all relevant data information until the stack is empty.
2. The enterprise-level software transaction data analysis method according to claim 1, characterized in that: The method further comprises: Start multithreading; The nodes at the top of the stack are popped out one by one and handed over to different threads for data query operations and subsequent operations.
3. The enterprise-level software transaction data analysis method according to claim 1 or 2, characterized in that: The method further comprises: In response to inputting a plurality of query fields, generating a plurality of queues according to the number of the input query fields; According to the hierarchical relationship of the family tree of the business units, the subordinate nodes of the starting node are pushed into each of the queues in turn; One or more threads are allocated to each of the queues to perform data query operations and subsequent operations.
4. The enterprise-level software transaction data analysis method according to claim 1, characterized in that: The method further comprises: A unified communication data format is formulated for the communication systems of superior and subordinate units, and the communication data includes: Query the primary key, trade unit code, trade unit name and other attribute fields of the trade unit.
5. The enterprise-level software transaction data analysis method according to claim 1, characterized in that: The method further comprises: The output related data information is associated with the corresponding nodes in the family tree of the business unit to generate family tree data.
6. The enterprise-level software transaction data analysis method according to claim 5, characterized in that: The method further comprises: The family tree data is displayed in a flat list format, or The family tree data is converted into an association matrix for display.
7. The enterprise-level software transaction data analysis method according to claim 6, characterized in that: The method further comprises: Data tracking, data clearing and / or data risk analysis are performed based on the genealogy data.
8. The enterprise-level software transaction data analysis method according to claim 1, characterized in that: The family tree of the trading units is composed of the query primary keys of the trading units.
9. A computer device, characterized in that: include: at least one processor; as well as A memory, wherein an executable computer program is stored in the memory, and when the computer program is executed by the at least one processor, it is used to implement the steps of the enterprise-level software transaction data analysis method as described in any one of claims 1-9.
10. A readable storage medium, characterized in that: include: An executable computer program, which, when executed by an executor, is used to implement the steps of the enterprise-level software transaction data analysis method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Process control method and device, computer readable storage medium and terminal
CN107316132A
Enterprise genealogy visual display method, equipment and system
CN110162577A
Enterprise information comparison and analysis method and device, computer equipment and storage medium
CN110674358A
Social network community indexing and querying method
CN112052400A
Method and system for judging loop in directed acyclic graph
CN114494506A
