Enterprise investment relation graph construction method, system, equipment and medium

By dynamically storing enterprise historical version data and recursive query technology, combining the tree structure to generate an investment relationship tree and convert it into graphical elements, the cumbersome and unintuitive problems of the existing system when building and querying enterprise investment relationships are solved, and the investment network visualization and precise evaluation across time points are realized.

CN120144832APending Publication Date: 2025-06-13INSPUR GENERSOFT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510251064.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-04
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The existing enterprise information management system has problems such as cumbersome operations, lack of continuity and integrity of results, unintuitive data, and ignoring the time dimension when building and querying enterprise investment relationships.

Method used

By dynamically storing enterprise historical version data, combining recursive query and tree structure generation, the investment network visualization across points in time is realized. The specific steps include building a main table of enterprise information and a subtable shareholder information, obtaining the unique identification ID and timestamp of the enterprise to be queried, recursively obtaining shareholder and invested enterprise information, merging it into an investment relationship tree, and converting it into a graphical element to generate an enterprise investment relationship diagram.

Benefits of technology

It achieves accurate and clear display of the company's historical investment relationship, provides a more accurate assessment of the company's current status and development prospects, helps companies discover potential investment opportunities or risks, and analyzes the dynamic changes in investment relationships through time dimensions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120144832A_ABST
    Figure CN120144832A_ABST
Patent Text Reader

Abstract

The invention provides an enterprise investment relation graph construction method, system and device and a medium, and belongs to the technical field of computers. The method comprises the following steps: firstly, inputting information of enterprises, shareholders and capital enterprises into a database to form a main table and a sub-table which both contain unique IDs of the enterprises; then, according to the to-be-queried enterprise ID and the timestamp, two query algorithms are used for respectively obtaining enterprise information, shareholder information and capital enterprise information; a tree structure TreeNode is defined, wherein the tree structure TreeNode comprises enterprise display, associated parameters and a child node list. Through recursive query, an information tree of enterprise shareholders and capital enterprises is constructed. And then combining the two trees into an investment relation tree. And finally, constructing a data model based on the tree, converting the data model into graphic elements, and generating a visual enterprise investment relation graph. In the process, enterprise investment information is efficiently integrated, and visual analysis is facilitated. According to the invention, automatic generation of the enterprise investment relation graph is realized, and the visualization effect and the analysis efficiency of the enterprise investment relation are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and more specifically, relates to a method, system, device and medium for constructing an enterprise investment relationship diagram. Background Art

[0002] With the continuous deepening of enterprise informatization construction, more and more enterprises begin to introduce ERP systems to manage their affiliated enterprises and the enterprises invested by their affiliated enterprises. In the process of enterprise information management, when understanding the current situation of enterprises, evaluating the development prospects, and investing in new projects, the historical investment relationships of enterprises are usually used as one of the important reference bases, where the investment relationships mainly include shareholder information and the information of invested enterprises. Currently, when tracing back the historical investment relationships of enterprises, only the directly related data of enterprises can be found. When searching for the information of extended enterprises such as the shareholders and invested enterprises of an enterprise, additional separate queries are required. There are many limitations in the traditional enterprise investment relationship construction method: 1. The query process is cumbersome. In existing enterprise information management systems, the query process usually requires users to perform multiple independent query operations to collect and collate the information of different enterprises. This manual and repetitive query not only consumes a large amount of time but also is prone to errors due to human factors.

[0003] 2. The query results lack continuity and integrity. The continuity of query results is crucial for understanding the investment relationships between enterprises. Existing systems often require users to manually organize the query results to construct an investment relationship diagram between enterprises, which is inefficient. When there are complex investment relationships at multiple levels in an enterprise, it is easy to lead to data discontinuity and omission.

[0004] 3. The data is not intuitive. The visualization of data is the key to helping users quickly understand complex information. However, the relationship diagrams provided by many existing systems are usually simple conversions based on tabular data, lacking intuitiveness and interactivity, and the degree of visualization is insufficient.

[0005] 4. There is a lack of a method for constructing multiple enterprise investment relationship diagrams with time as a dimension. The evolution of investment relationships over time is crucial for analyzing enterprise development trends and market dynamics. However, existing technologies often ignore the importance of the time dimension and cannot provide investment relationship analysis across time points. Summary of the Invention

[0006] In view of the above problems, the purpose of the present invention is to provide a method, system, device and medium for constructing an enterprise investment relationship diagram. By dynamically storing the historical version data of enterprises and combining recursive query with tree structure generation, the visualization of the investment network across time points is realized, so that the historical investment relationships of enterprises are accurately and clearly presented, and then a more accurate assessment of the current situation and development prospects of enterprises can be made, helping enterprises discover potential investment opportunities or risks.

[0007] To achieve the above object, the present invention is realized through the following technical solutions: In a first aspect, an embodiment of the present application provides a method for constructing an enterprise investment relationship diagram, including: Constructing a main table of enterprise information and a sub-table of enterprise shareholder information; wherein, both the main table of enterprise information and the sub-table of enterprise shareholder information record the relevant enterprise unique identifier ID; Obtaining the enterprise unique identifier ID and timestamp to be queried, querying the relevant enterprise information and all investing enterprise information in the main table of enterprise information, and querying the relevant enterprise information and all investing enterprise information in the sub-table of enterprise shareholder information; Based on the enterprise information and all shareholder information, recursively obtaining the enterprise information and shareholder information of each shareholder and storing them in tree nodes to construct an enterprise shareholder information tree; Based on the enterprise information and all investing enterprise information, recursively obtaining the enterprise information and investing enterprise information of each investing enterprise and storing them in tree nodes to construct an investing enterprise information tree; Merging the enterprise shareholder information tree and the investing enterprise information tree into an investment relationship tree; Based on the investment relationship tree, constructing a data model in a tree structure, converting the data model into graphic elements, and generating an enterprise investment relationship diagram.

[0008] In an optional implementation manner, the constructing of the main table of enterprise information and the sub-table of enterprise shareholder information includes: Entering the relevant enterprise information, enterprise shareholders and investing enterprise information, generating the main table of enterprise information and the sub-table of enterprise shareholder information, and storing them in a database; The main table of enterprise information records the enterprise unique identifier ID, enterprise name, social credit code, version identifier, creation time, approval status, and enterprise investment-related information; Checking whether there is a document with the same value in the database according to the social credit code; If not, the version identifier of the current document will be set to 1; If it already exists, the current document will become the latest version, and the version identifier of the current document will be updated to the maximum value of the historical version identifier plus 1.

[0009] In an alternative embodiment, obtaining the unique enterprise identification ID to be queried and the timestamp, querying the relevant enterprise information and all the investing enterprise information in the main enterprise information table, and querying the relevant enterprise information and all the investing enterprise information in the sub-table of enterprise shareholder information, including: Obtaining the unique enterprise identification ID to be queried and the timestamp, where the timestamp is used to record the query time and defaults to the current operation time when the query time is empty; Using the unique enterprise identification ID and the timestamp as the basic parameters, calling a data retrieval algorithm to query and return from the database the first enterprise information data generated latest within the timestamp for this enterprise, where the first enterprise information data includes enterprise information and all the shareholder information; Using the unique enterprise identification ID and the timestamp as the basic parameters, calling a data retrieval algorithm to query and return from the database the second enterprise information data generated latest within the timestamp for this enterprise, where the second enterprise information data includes enterprise information and all the investing enterprise information.

[0010] In an alternative embodiment, based on the enterprise information and all the shareholder information, recursively obtaining the enterprise information and shareholder information of each shareholder and storing them in tree nodes to construct an enterprise shareholder information tree, including: Creating a root node and storing the first enterprise information data in the root node; Traversing the shareholder information stored in the root node, and for each shareholder, calling a data retrieval algorithm according to its unique enterprise identification ID to recursively obtain the enterprise information and shareholder information corresponding to this shareholder; Whenever the enterprise information and shareholder information corresponding to a shareholder are obtained, creating a tree node to store the obtained information and mounting it as a child node to the superior node hierarchically; After the recursive obtaining is completed, generating an enterprise shareholder information tree.

[0011] In an alternative embodiment, based on the enterprise information and all the investing enterprise information, recursively obtaining the enterprise information and investing enterprise information of each investing enterprise and storing them in tree nodes to construct an investing enterprise information tree, including: Creating a root node and storing the second enterprise information data in the root node; Traversing the investing enterprise information stored in the root node, and for each investing enterprise, calling a data retrieval algorithm according to its unique enterprise identification ID to recursively obtain the enterprise information and investing enterprise information corresponding to this investing enterprise; Whenever the enterprise information and investing enterprise information corresponding to an investing enterprise are obtained, creating a tree node to store the obtained information and mounting it as a child node to the superior node hierarchically; After the recursive obtaining is completed, generating an investing enterprise information tree.

[0012] In an alternative embodiment, the merging of the enterprise shareholder information tree and the invested enterprise information tree into an investment relationship tree includes: Defining a two-way tree structure object; Taking the enterprise shareholder information tree as the parent structure and the invested enterprise information tree as the child structure and merging them into the two-way tree structure object as the investment relationship tree.

[0013] In an alternative embodiment, the constructing a data model with a tree structure based on the investment relationship tree, converting the data model into graphic elements, and generating an enterprise investment relationship diagram includes: Creating a user interface component for hosting the enterprise investment relationship diagram and integrating a graph visualization engine therein; Constructing a data model with a tree structure based on the investment relationship tree; Using the graph visualization engine to convert the data model into graphic elements, where the graphic elements include nodes and edges; the nodes represent an enterprise and record the enterprise name, social credit code, investment amount, and equity ratio, and the edges represent the investment relationships between enterprises; Rendering using the user interface component to generate an enterprise investment relationship diagram; Adding an interaction event component and a timeline control to the enterprise investment relationship diagram and adjusting the layout.

[0014] In a second aspect, an embodiment of the present application further provides a construction system for an enterprise investment relationship diagram, including: A data table construction module for constructing a main enterprise information table and a sub-enterprise shareholder information table; wherein, both the main enterprise information table and the sub-enterprise shareholder information table record the relevant enterprise unique identifier ID; A basic information acquisition module for acquiring the enterprise unique identifier ID to be queried and a timestamp, querying the relevant enterprise information and all invested enterprise information in the main enterprise information table, and querying the relevant enterprise information and all invested enterprise information in the sub-enterprise shareholder information table; A first data structure construction module for recursively acquiring the enterprise information and shareholder information of each shareholder based on the enterprise information and all shareholder information and storing them in tree nodes to construct an enterprise shareholder information tree; A second data structure construction module for recursively acquiring the enterprise information and invested enterprise information of each invested enterprise based on the enterprise information and all invested enterprise information and storing them in tree nodes to construct an invested enterprise information tree; A data structure merging module for merging the enterprise shareholder information tree and the invested enterprise information tree into an investment relationship tree; A relationship diagram construction module for constructing a data model with a tree structure based on the investment relationship tree, converting the data model into graphic elements, and generating an enterprise investment relationship diagram.

[0015] In a third aspect, an embodiment of the present application further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the method for constructing an enterprise investment relationship diagram as described in any one of the above are implemented.

[0016] In a fourth aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for constructing an enterprise investment relationship diagram as described in any one of the above are implemented.

[0017] It can be seen from the above technical solutions that the present invention has the following advantages: In the method for constructing an enterprise investment relationship diagram provided by the present application, a visual investment relationship diagram supporting the time dimension is constructed through multi-version information of enterprises. Nodes and edges are used to dynamically display enterprises and their investment relationships. By introducing the time dimension, users are allowed to construct enterprise investment relationship diagrams at different time nodes. This enables the accurate and clear representation of the historical investment relationships of enterprises, and further enables a more precise assessment of the current situation and development prospects of enterprises, helping enterprises discover potential investment opportunities or risks.

[0018] By introducing the time dimension to construct an investment relationship diagram, users can obtain an accurate investment relationship diagram of an enterprise at a specific time node by inputting different time dimensions, which helps to analyze the dynamic changes of investment relationships over time and grasp the adjustment of the enterprise's investment strategy and market trends.

[0019] The present application uses a graphical interface to represent enterprises as nodes and investment relationships as edges to construct an investment relationship network diagram, and different types of investment relationships are distinguished by different colors, line thicknesses, or graphic styles, so that the investment relationships are visually presented, reducing the understanding cost and helping users quickly grasp the complex investment structure among enterprises.

[0020] The present application organizes enterprises and their investment relationships in a tree structure. Each node contains key information of the enterprise, and the edges between nodes represent investment relationships. By recursively querying and constructing the tree structure, multi-level investment relationships can be clearly displayed, facilitating the management and invocation of data.

[0021] The present application can retain data versions when enterprise information changes, can completely record the evolution process of enterprise information, is convenient for tracing the status of enterprises at different time points, and provides a data basis for analyzing the development process of enterprises and changes in investment decisions. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] To more clearly illustrate the technical solutions of the present invention, the accompanying drawings required for the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0023] Figure 1 It is a schematic flowchart of a method for constructing an enterprise investment relationship diagram provided by this application.

[0024] Figure 2 It is a schematic flowchart of another method for constructing an enterprise investment relationship diagram provided by this application.

[0025] Figure 3 It is a schematic structural diagram of a system for constructing an enterprise investment relationship diagram provided by this application.

[0026] Figure 4 It is a schematic structural diagram of an electronic device provided by this application. Detailed implementation manners

[0027] In the following, the specific steps of the method for constructing an enterprise investment relationship diagram will be described in detail, and various embodiments of the present disclosure will be described more comprehensively. The present disclosure can have various embodiments, and adjustments and changes can be made therein. However, it should be understood that there is no intention to limit the various embodiments of the present disclosure to the specific embodiments disclosed herein, but the present disclosure should be understood to cover all adjustments, equivalents, and / or alternative solutions falling within the spirit and scope of the various embodiments of the present disclosure.

[0028] Hereinafter, the term "comprising" or "may comprise" that can be used in various embodiments of the present disclosure indicates the presence of the disclosed functions, operations, or elements, and does not limit the addition of one or more functions, operations, or elements. In addition, as used in various embodiments of the present disclosure, the terms "comprising", "having" and their cognates are only intended to indicate a specific feature, number, step, operation, element, component, or combination of the foregoing items, and should not be construed as precluding the existence or addition of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items first.

[0029] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0030] Please refer toFigure 1 The following is a flowchart of a method for constructing an enterprise investment relationship diagram in a specific embodiment. The method includes: S101: Construct a main enterprise information table and a sub-enterprise shareholder information table; among them, both the main enterprise information table and the sub-enterprise shareholder information table record the relevant enterprise unique identifier ID.

[0031] Exemplarily, enter the relevant enterprise information, enterprise shareholders and invested enterprise information, generate the main enterprise information table and the sub-enterprise shareholder information table, and store them in the database; among them, both the main enterprise information table and the sub-enterprise shareholder information table record the relevant enterprise unique identifier ID.

[0032] S102: Obtain the enterprise unique identifier ID and timestamp to be queried, query the relevant enterprise information and all invested enterprise information in the main enterprise information table, and query the relevant enterprise information and all invested enterprise information in the sub-enterprise shareholder information table.

[0033] This step efficiently queries the enterprise and its associated information through the enterprise unique identifier ID and timestamp, and can ensure data accuracy and timeliness.

[0034] Specifically, on the one hand, using the enterprise unique identifier ID and timestamp as the basic parameters, call the data retrieval algorithm to query and return the first enterprise information data generated latest by the enterprise within the timestamp from the database. The first enterprise information data includes enterprise information and all shareholder information.

[0035] On the other hand, using the enterprise unique identifier ID and timestamp as the basic parameters, call the data retrieval algorithm to query and return the second enterprise information data generated latest by the enterprise within the timestamp from the database. The second enterprise information data includes enterprise information and all invested enterprise information.

[0036] S103: Based on the enterprise information and all shareholder information, recursively obtain the enterprise information and shareholder information of each shareholder, and store them in the tree nodes to construct an enterprise shareholder information tree.

[0037] Among them, before executing this step, it is necessary to pre-define the data structure of a tree node. This data structure includes but is not limited to binary tree nodes and multi-way tree nodes.

[0038] Exemplarily, first create a root node, and store the first enterprise information data in the root node; then traverse the shareholder information stored in the root node. For each shareholder, call the data retrieval algorithm according to its enterprise unique identifier ID to recursively obtain the enterprise information and shareholder information corresponding to the shareholder.

[0039] Among them, whenever the enterprise information and shareholder information corresponding to a shareholder are obtained, a tree node is created to store the obtained information, and it is mounted as a child node to the superior node hierarchically; After the recursive acquisition is completed, an enterprise shareholder information tree is generated. Among them, the completion of the recursive acquisition can be determined by reaching a preset loop level.

[0040] It can be seen that in this step, by recursively constructing the enterprise shareholder information tree, the enterprise equity structure and shareholder hierarchical relationship are intuitively displayed.

[0041] S104: Based on the enterprise information and all the investing enterprise information, recursively obtain the enterprise information and investing enterprise information of each investing enterprise, and store them in the tree nodes to construct an investing enterprise information tree.

[0042] This step uses a method similar to that in step S103 to construct the investing enterprise information tree, which can clearly show the investment chain and capital flow of the enterprise.

[0043] S105: Merge the enterprise shareholder information tree and the investing enterprise information tree into an investment relationship tree.

[0044] Exemplarily, first define a two-way tree structure object; then use the enterprise shareholder information tree as the parent structure and the investing enterprise information tree as the child structure to merge into the two-way tree structure object as the investment relationship tree. Thus, the two trees are merged into an investment relationship tree to comprehensively reflect the investment and being-invested relationship of the enterprise.

[0045] S106: Based on the investment relationship tree, construct a data model in a tree structure, convert the data model into graphic elements, and generate an enterprise investment relationship diagram.

[0046] This step can be implemented using common user interface components in the art, converting the investment relationship tree into graphic elements to generate an intuitive and easy-to-understand enterprise investment relationship diagram, which is convenient for analysis and decision-making.

[0047] In this embodiment, by dynamically storing the enterprise historical version data, combining recursive query and tree structure generation, the visualization of the investment network across time points is realized, so that the enterprise historical investment relationship is accurately and clearly presented, and then a more accurate assessment of the enterprise current situation and development prospect can be made, helping the enterprise discover potential investment opportunities or risks.

[0048] In one embodiment, Figure 2 As a flowchart of another method for constructing an enterprise investment relationship diagram according to the embodiment of the present invention, this embodiment further optimizes and expands the preparation process of basic data, the generation process of the information tree, and the generation process of the investment relationship diagram on the basis of the above embodiments.

[0049] Such as Figure 2As shown in the figure, another method for constructing an enterprise investment relationship diagram provided in this embodiment may include: S201: Enter enterprise-related information, enterprise shareholders and invested enterprise information, generate a main enterprise information table and a sub-enterprise shareholder information table, and store them in a database; among them, both the main enterprise information table and the sub-enterprise shareholder information table record the relevant enterprise unique identifier ID.

[0050] In this step, the enterprise information can be stored in a relational database on the server side. In the database, the main enterprise information table is used to record the basic information of the enterprise. The main fields include the enterprise unique identifier ID, enterprise name, social credit code, version identifier, creation time, approval status, and other necessary information related to enterprise investment. Among them, the social credit code and enterprise name are mandatory fields.

[0051] At the same time, in the database, in order to store the shareholder information of the current enterprise, a sub-enterprise shareholder information table is established. The main fields include the enterprise unique identifier ID, current enterprise association ID, shareholder enterprise ID, and key shareholder information such as the holding method, shareholder category, investment amount, paid-in capital, and equity ratio. It is set in the database that under the same version, the shareholder information corresponding to the same enterprise shall not be repeated, and the current enterprise cannot be its own shareholder.

[0052] For example, the customer manually enters enterprise-related information, enterprise shareholders and invested enterprises and other detailed information through the enterprise information entry interface of the system client, generates enterprise information document data and stores it in the corresponding data table at the back end. The creation date of the document will be automatically set to the current time. After entering the social credit code, the system will check whether there is already a document with the same value in the database. If not, the version identifier of the current document will be set to 1; if it already exists, the current document will become the latest version, and its version identifier will be updated to the maximum value of the historical version identifier plus 1.

[0053] It should be particularly noted that in enterprise management software, enterprise information may become invalid data due to process operations such as data approval, deactivation and activation. The enterprise information mentioned in this step refers to the currently actual valid data in the system.

[0054] S202: Obtain the enterprise unique identifier ID to be queried and the timestamp, and based on the database, call the first query algorithm to obtain enterprise information and all shareholder information, and call the second query algorithm to obtain enterprise information and all invested enterprise information.

[0055] For example, the client can be used to obtain the enterprise unique identifier ID to be queried and the timestamp. Among them, the client needs to have a function or an entry for obtaining the enterprise unique identifier ID to be queried and the timestamp as basic command parameters and instructions.

[0056] Specifically, the obtained parameters include the unique enterprise identification ID of the enterprise relationship graph to be constructed, the query time, and the investment relationship display level. Among them, the unique enterprise identification ID is mandatory. When the query time is empty, it is defaulted to the current operation time. When the display level is empty, it is defaulted to query all levels of associated enterprises until the end of the relationship graph.

[0057] In this step, the first query algorithm adopts the predefined getShareHolder(companyID, time) method, which accepts the unique enterprise identification companyID and the timestamp time as parameters. This method should query and return the latest generated enterprise information data of this enterprise within the specified time time from the database. These data should include enterprise information and all shareholder information.

[0058] In this step, the first query algorithm adopts the predefined getInvestCompany(companyID,time) method, which accepts the unique enterprise identification companyID and the timestamp time as parameters. This method should query and return the latest generated enterprise information data of this enterprise within the specified time time from the database. These data should include enterprise information and all investing enterprise information.

[0059] Define a tree structure type TreeNode. TreeNode includes the parameters for node enterprise display, the parameters for node association, and a list List for storing the child node set. <treenode>。

[0060] S203: Based on the enterprise information and all the shareholder information, recursively obtain the enterprise information and shareholder information corresponding to each shareholder through the first query algorithm, and store them in the nodes of the TreeNode type to construct the enterprise shareholder information tree.

[0061] It should be noted that before executing this step, a tree structure type TreeNode needs to be predefined. TreeNode includes the parameters displayed by the node enterprise, the parameters associated between nodes, and a list List for storing the set of child nodes. <treenode>。

[0062] Exemplarily, in this step, first, an object ROOTNODE1 of type TreeNode is created, and the first enterprise information data is assigned to ROOTNODE1 as the root node of the enterprise shareholder information tree. At the same time, a positive integer INDEX is defined and initialized to 0, which is used to represent the current loop level when recursively obtaining candidates.

[0063] At this time, it is necessary to traverse all shareholder information.

[0064] For each shareholder, its enterprise unique identifier ID is passed as a new companyID parameter to the getShareHolder(companyID, time) method to recursively obtain and process the enterprise information and shareholder information corresponding to the shareholder.

[0065] After each recursive acquisition, an object SHAREHOLDER of type TreeNode is created, and the enterprise information and shareholder information corresponding to the current shareholder are assigned to SHAREHOLDER, and it is added as a child node to the list List of the upper-level node. <treenode>and increment the INDEX value by 1.

[0066] It should be noted that when INDEX is equal to 0, the parent node is ROOTNODE1; when INDEX is less than the preset display level, the acquisition is terminated and the subsequent logic is not executed. If the client does not pass in the display level or the passed value is empty, this verification is not performed.

[0067] Finally, ROOTNODE1 is used as the enterprise shareholder information tree.

[0068] All the shareholder information obtained in this step is used as a parameter, and the getShareHolder method is reused for querying until the queried shareholder information is empty. During this process, it is necessary to determine whether the branch corresponding to the current shareholder enterprise ID already exists with the same enterprise ID according to the existing tree structure of ROOTNODE1. If it exists, it will not be processed repeatedly. Thus, the shareholder information data ROOTNODE1 of all levels of the current enterprise is obtained.

[0069] S204: Based on the enterprise information and all the investing enterprise information, recursively obtain the corresponding enterprise information and investing enterprise information of each investing enterprise through the second query algorithm, and store them in nodes of the TreeNode type to construct the investing enterprise information tree.

[0070] Exemplarily, first create an object ROOTNODE2 of the TreeNode type, and assign the second enterprise information data to ROOTNODE2 as the root node of the enterprise investing enterprise information tree. This step also needs to define a positive integer INDEX and initialize it to 0, which is used to represent the current loop level.

[0071] At this time, it is necessary to traverse all the investing enterprise information.

[0072] For each investing enterprise, its enterprise unique identifier ID is passed as a new companyID parameter into the getInvestCompany(companyID, time) method to recursively obtain and process the corresponding enterprise information and investing enterprise information of the investing enterprise.

[0073] After each recursive acquisition, create an object NVESTEDCOMPANY of the TreeNode type, assign the corresponding enterprise information and investing enterprise information of the current investing enterprise to NVESTEDCOMPANY, and add it as a child node to the list of the parent node List <treenode>and increment the INDEX value by 1.

[0074] It should be noted that when INDEX is equal to 0, the superior node is ROOTNODE2; when INDEX is less than the preset display level, the acquisition is terminated and the subsequent logic is no longer executed. If the client does not pass in the display level or the passed value is empty, this verification is not performed.

[0075] Finally, use ROOTNODE2 as the information tree of the investing enterprise.

[0076] All the investing enterprise information obtained in this step is used as a parameter, and the getInvestCompany method is reused for querying until the obtained investing enterprise information is empty. During this process, it is necessary to judge whether the branch corresponding to the current investing enterprise ID already exists with the same enterprise ID according to the existing tree structure of ROOTNODE2. If it exists, it will not be processed repeatedly. Thus, the information data ROOTNODE2 of all levels of the investing enterprises of the current enterprise is obtained.

[0077] In addition, during the recursive process of the above two steps, it is necessary to check whether the existing nodes contain the same enterprise ID. If the same enterprise ID exists, the branch will not be processed repeatedly to avoid data redundancy.

[0078] S205: Merge the enterprise shareholder information tree and the investing enterprise information tree into an investment relationship tree.

[0079] For example, based on the generated data ROOTNODE1 and ROOTNODE2 above, define an object TREENODE of a two-way tree structure type, use ROOTNODE1 as the parent structure and ROOTNODE2 as the child structure, and the constructed TREENODE is the finally generated investment relationship tree.

[0080] S206: Build a data model with a tree structure based on the investment relationship tree, convert the data model into graphic elements, and generate an enterprise investment relationship diagram.

[0081] For example, first, create a Vue component to carry the investment relationship diagram and integrate a graph visualization engine in it; then, build a data model with a tree structure based on the investment relationship tree; then use the graph visualization engine to convert the data model into graphic elements, and the graphic elements include nodes and edges; the nodes represent an enterprise and record the enterprise name, social credit code, investment amount, and equity ratio, and the edges represent the investment relationship between enterprises.

[0082] Finally, use the Vue component for rendering to generate an enterprise investment relationship diagram, add an interactive event component and a timeline control to the enterprise investment relationship diagram, and perform layout adjustment.

[0083] In this embodiment, precise backtracking of historical investment relationships is achieved by binding multi-version data storage with timestamps. Combining recursive query algorithms and tree structure construction, a multi-level investment relationship tree supporting the time dimension is dynamically generated. Using a visualization engine, the bidirectional tree structure is transformed into a node-edge network graph, and through interactive timeline controls, hierarchical expansion / collapse, and circular shareholding detection, the intuitiveness, analysis efficiency, and data consistency of the enterprise investment network are significantly improved, providing efficient support for enterprise strategic decision-making, risk assessment, and compliance review.

[0084] In an embodiment of the present invention, based on step S202, a possible embodiment will be given below to non-restrictively elaborate on its specific implementation scheme.

[0085] S2021: Obtain the unique enterprise identification ID to be queried and a timestamp, where the timestamp is used to record the query time, and when the query time is empty, it defaults to the current operation time.

[0086] S2022: Use the unique enterprise identification ID as the companyID parameter and the timestamp as the time parameter, and call the getShareHolder(companyID, time) method to query and return the first enterprise information data generated latest within the timestamp for this enterprise from the database. The first enterprise information data includes enterprise information and all shareholder information.

[0087] S2023: Use the unique enterprise identification ID as the companyID parameter and the timestamp as the time parameter, and call the getInvestCompany(companyID, time) method to query and return the second enterprise information data generated latest within the timestamp for this enterprise from the database. The second enterprise information data includes enterprise information and all investing enterprise information.

[0088] In an embodiment of the present invention, based on step S206, a possible embodiment will be given below to non-restrictively elaborate on its specific implementation scheme.

[0089] The purpose of this step is the generation and display of the enterprise investment relationship graph. In this embodiment, relevant functions or pages can be configured on the client to display the enterprise investment relationship graph.

[0090] The specific implementation process of this embodiment is as follows: 1. Create a Vue component to carry the investment relationship graph and integrate a graph visualization engine therein.

[0091] 2. Construct a data model in a tree structure according to the enterprise information and investment relationship data provided by the server.

[0092] 3. Use the graph visualization engine to convert the data model into graphical elements, including nodes and edges, and render them in a Vue component to generate an investment relationship graph.

[0093] 4. Add interactive events such as click and hover to the investment relationship graph to achieve the expansion / collapse of node information and the dynamic display / hiding of edges.

[0094] 5. Integrate a timeline control into the investment relationship graph to allow users to dynamically update the display content of the investment relationship graph by selecting different time points.

[0095] 6. According to the actual display requirements, adjust the layout algorithm of the investment relationship graph, optimize the layout of nodes and edges, ensure the readability and aesthetics of the graph, and ensure that the investment relationship graph can maintain a good display effect on different devices and screen sizes.

[0096] Among them, perform performance analysis and optimization on the graph rendering process to ensure that even when the data volume is large, the loading and interaction of the graph can remain smooth.

[0097] To achieve the dynamic display and interaction of the investment relationship graph, this embodiment selects Vue.js as the front-end framework and combines it with a visualization engine to provide powerful data binding capabilities and graph rendering performance. The reactive data binding and componentization features of Vue.js make the dynamic update and maintenance of the interface simpler and more efficient. The visualization engine, with its high-performance graph rendering and rich graph interaction functions, becomes an ideal choice for displaying complex investment relationship graphs.

[0098] When constructing the data model of the investment relationship graph, this embodiment uses a tree structure to organize enterprises and their investment relationships. Each node (TreeNode) represents an enterprise and contains basic information of the enterprise such as name, social credit code, investment amount, equity ratio, etc. The edges (Edges) between nodes represent the investment relationships between enterprises, which can be direct investments or multi-level holdings. Among them, through different colors, line thicknesses, or graphic styles, the system can distinguish different types of investment relationships, such as direct investment, indirect investment, or holding relationships. By recursively querying and constructing a tree structure, the multi-level investment relationships between enterprises can be clearly displayed.

[0099] To improve the user experience, this embodiment integrates a variety of interactive functions into the investment relationship graph. Users can click on a node to view or hide the detailed information of the enterprise, including the shareholder composition, investing enterprises, etc. In addition, this embodiment also provides a timeline control that allows users to select different time points to observe the changes in the enterprise investment relationship over time. Through the zooming and panning functions, users can view the entire investment network more flexibly.

[0100] It can be seen that through the above steps, an enterprise investment relationship diagram that supports intuition and strong interactivity can be provided for users, helping users quickly understand the enterprise's investment network and make more informed decisions.

[0101] As Figure 3 shown, the following is an embodiment of a system for constructing an enterprise investment relationship diagram provided by the present disclosure. This system belongs to the same inventive concept as the method for constructing an enterprise investment relationship diagram in the above embodiments. For the details not described in detail in the embodiment of the system for constructing an enterprise investment relationship diagram, reference can be made to the embodiment of the method for constructing an enterprise investment relationship diagram.

[0102] A system for constructing an enterprise investment relationship diagram includes: A data table construction module for constructing a main enterprise information table and a sub-enterprise shareholder information table; wherein, both the main enterprise information table and the sub-enterprise shareholder information table record the relevant enterprise unique identifier ID.

[0103] A basic information acquisition module for acquiring the enterprise unique identifier ID to be queried and a timestamp, querying the relevant enterprise information and all investing enterprise information in the main enterprise information table, and querying the relevant enterprise information and all investing enterprise information in the sub-enterprise shareholder information table.

[0104] A first data structure construction module for recursively acquiring the enterprise information and shareholder information of each shareholder based on the enterprise information and all shareholder information, and storing them in tree nodes to construct an enterprise shareholder information tree.

[0105] A second data structure construction module for recursively acquiring the enterprise information and investing enterprise information of each investing enterprise based on the enterprise information and all investing enterprise information, and storing them in tree nodes to construct an investing enterprise information tree.

[0106] A data structure merging module for merging the enterprise shareholder information tree and the investing enterprise information tree into an investment relationship tree.

[0107] A relationship diagram construction module for constructing a data model with a tree structure based on the investment relationship tree, converting the data model into graphic elements, and generating an enterprise investment relationship diagram.

[0108] The system for constructing an enterprise investment relationship diagram provided in this embodiment realizes the automatic generation of an enterprise investment relationship diagram through constructing an enterprise information database, a recursive query algorithm, and a tree-shaped data structure, effectively improving the visualization effect and analysis efficiency of the enterprise investment relationship.

[0109] Figure 4 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0110] The method for constructing an enterprise investment relationship diagram provided by the embodiments of this application can be applied to an electronic device. Those skilled in the art can understand that the structure of the electronic device involved in the embodiments of the present invention does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. In the embodiments of the present invention, the electronic device includes, but is not limited to, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of this application described herein and / or claimed.

[0111] The electronic device may include a processor, an external memory interface, an internal memory, a universal serial bus (USB) interface, a charging management module, a power management module, a battery, a wireless communication module, an audio module, a speaker, a microphone, a sensor module, a key, a camera, a display screen, and a SIM card interface, etc.

[0112] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), etc., an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0113] Among them, the processor may be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.

[0114] A memory can also be set in the processor for storing instructions and data. In some embodiments, the memory in the processor is a cache memory. This memory can hold the instructions or data that the processor has just used or recycled. If the processor needs to use the instruction or data again, it can directly call it from this memory. This avoids repeated accesses, reduces the waiting time of the processor, and thus improves the system efficiency.

[0115] The external memory interface can be used to connect an external memory card, such as a MicroSD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor through the external memory interface to achieve the data storage function. For example, files such as music and videos are saved in the external memory card.

[0116] The internal memory can be used to store computer-executable program code, and the computer-executable program code includes instructions. The processor executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory. The internal memory can include a program storage area and a data storage area. The internal memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0117] The wireless communication function of the electronic device can be implemented through an antenna, a wireless communication module, a modulation and demodulation processor, a baseband processor, etc.

[0118] The wireless communication module can provide solutions for wireless communications applied to the electronic device, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.

[0119] The electronic device can implement audio functions through an audio module, a speaker, a receiver, a microphone, a headphone interface, an application processor, etc.

[0120] The electronic device can implement a shooting function through an ISP, a camera, a video codec, a GPU, a display screen, an application processor, etc.

[0121] An electronic device can implement a display function through a GPU, a display screen, an application processor, etc.

[0122] The GPU is a microprocessor for image processing, connecting the display screen and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor may include one or more GPUs, which execute program instructions to generate or change display information.

[0123] The display screen is used to display images, videos, etc. The display screen includes a display panel.

[0124] The above-mentioned electronic device realizes the construction method of the enterprise investment relationship diagram of the present application. By constructing an enterprise information database and a recursive query algorithm, a tree-like information structure of enterprise shareholders and invested enterprises is generated and merged, and finally transformed into a graphical display, achieving the beneficial effect of intuitively presenting the enterprise investment relationship.

[0125] In the storage medium provided by the present application, there is a program product capable of realizing the construction method of the enterprise investment relationship diagram.

[0126] The construction method of the enterprise investment relationship diagram includes: Constructing a main table of enterprise information and a sub-table of enterprise shareholder information; wherein, both the main table of enterprise information and the sub-table of enterprise shareholder information record the relevant enterprise unique identifier ID; Obtaining the enterprise unique identifier ID and timestamp to be queried, querying the relevant enterprise information and all invested enterprise information in the main table of enterprise information, and querying the relevant enterprise information and all invested enterprise information in the sub-table of enterprise shareholder information; Based on the enterprise information and all shareholder information, recursively obtaining the enterprise information and shareholder information of each shareholder and storing them in tree nodes to construct an enterprise shareholder information tree; Based on the enterprise information and all invested enterprise information, recursively obtaining the enterprise information and invested enterprise information of each invested enterprise and storing them in tree nodes to construct an invested enterprise information tree; Merging the enterprise shareholder information tree and the invested enterprise information tree into an investment relationship tree; Based on the investment relationship tree, constructing a data model in a tree-like structure, transforming the data model into graphical elements, and generating an enterprise investment relationship diagram.

[0127] In some possible implementation manners, the construction method of the enterprise investment relationship diagram of the present disclosure may be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section of this specification.

[0128] The storage medium of the present disclosure may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0129] The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Thus, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.< / treenode> < / treenode> < / treenode> < / treenode>

Claims

1. A method for constructing an enterprise investment relationship diagram, characterized in that: include: Constructing a main table of enterprise information and a sub-table of enterprise shareholder information; wherein both the main table of enterprise information and the sub-table of enterprise shareholder information record relevant enterprise unique identification IDs; Get the unique ID and timestamp of the enterprise to be queried, query the relevant enterprise information and all the contributing enterprise information in the enterprise information main table, and query the relevant enterprise information and all the contributing enterprise information in the enterprise shareholder information subtable; Based on the enterprise information and all shareholder information, recursively obtain the enterprise information and shareholder information of each shareholder, store them in the tree node, so as to construct the enterprise shareholder information tree; Based on the enterprise information and all the contributing enterprise information, recursively obtain the enterprise information and contributing enterprise information of each contributing enterprise, and store them in the tree nodes to construct the contributing enterprise information tree; Merge the enterprise shareholder information tree and the investment enterprise information tree into the investment relationship tree; A tree-structured data model is constructed based on the investment relationship tree, and the data model is converted into graphic elements to generate an enterprise investment relationship diagram.

2. The method for constructing an enterprise investment relationship diagram according to claim 1, characterized in that: The construction of the enterprise information main table and the enterprise shareholder information sub-table includes: Enter the company's relevant information, company shareholders and investment company information, generate the company information main table and company shareholder information sub-table, and store them in the database; The enterprise information master table records the enterprise's unique ID, enterprise name, social credit code, version identifier, creation time, approval status, and enterprise investment related information; Verify whether there is already a document with the same value in the database based on the social credit code; If it does not exist, the version ID of the current document will be set to 1; If it already exists, the current document will become the latest version, and the version ID of the current document will be updated to the maximum value of the historical version ID plus 1.

3. The method for constructing an enterprise investment relationship diagram according to claim 2, characterized in that: The obtaining of the unique ID and timestamp of the enterprise to be queried, querying the relevant enterprise information and all the contributing enterprise information in the enterprise information main table, and querying the relevant enterprise information and all the contributing enterprise information in the enterprise shareholder information subtable, includes: Get the unique ID and timestamp of the enterprise to be queried. The timestamp is used to record the query time. When the query time is empty, it defaults to the current operation time. Using the enterprise unique identification ID and timestamp as basic parameters, calling the data retrieval algorithm to query and return the first enterprise information data of the enterprise generated latest within the timestamp from the database, wherein the first enterprise information data includes enterprise information and all shareholder information; Using the enterprise unique identification ID and timestamp as basic parameters, call the data retrieval algorithm to query and return the second enterprise information data of the enterprise generated latest within the timestamp from the database, wherein the second enterprise information data includes the enterprise information and all contributing enterprise information.

4. The method for constructing an enterprise investment relationship diagram according to claim 3, characterized in that: Based on the enterprise information and all shareholder information, the enterprise information and shareholder information of each shareholder are recursively obtained and stored in the tree node to construct the enterprise shareholder information tree, including: Create a root node, and store the first enterprise information data in the root node; Traverse the shareholder information stored in the root node, and for each shareholder, call the data retrieval algorithm according to its unique corporate ID to recursively obtain the corporate information and shareholder information corresponding to the shareholder; Whenever the company information and shareholder information corresponding to a shareholder is obtained, a tree node is created to store the obtained information, and it is mounted as a child node to the upper node hierarchically; After the recursive acquisition is completed, the enterprise shareholder information tree is generated.

5. The method for constructing an enterprise investment relationship diagram according to claim 4, characterized in that: Based on the enterprise information and all the contributing enterprise information, the enterprise information and the contributing enterprise information of each contributing enterprise are recursively obtained and stored in the tree node to construct the contributing enterprise information tree, including: Create a root node, and store the second enterprise information data in the root node; Traverse the information of the contributing enterprises stored in the root node, and for each contributing enterprise, call the data retrieval algorithm according to its unique enterprise identification ID, and recursively obtain the enterprise information and contributing enterprise information corresponding to the contributing enterprise; Whenever the enterprise information and the funded enterprise information corresponding to the funded enterprise are obtained, a tree node is created to store the obtained information, and it is mounted as a child node to the upper node hierarchically; After the recursive acquisition is completed, the investment enterprise information tree is generated.

6. The method for constructing an enterprise investment relationship diagram according to claim 5, characterized in that: The step of merging the enterprise shareholder information tree and the investment enterprise information tree into an investment relationship tree includes: Define a bidirectional tree structure object; The enterprise shareholder information tree is used as the parent structure and the investment enterprise information tree is used as the child structure to be merged into the bidirectional tree structure object as the investment relationship tree.

7. The method for constructing an enterprise investment relationship diagram according to claim 6, characterized in that: The data model of the tree structure is constructed based on the investment relationship tree, and the data model is converted into a graphic element to generate an enterprise investment relationship diagram, including: Create a user interface component to host the investment relationship graph and integrate the graph visualization engine into it; Construct a tree-structured data model based on the investment relationship tree; Use a graph visualization engine to convert the data model into graph elements, which include nodes and edges. The node represents an enterprise, which records the enterprise name, social credit code, investment amount, and equity ratio, and the edge represents the investment relationship between enterprises. Utilize user interface components for rendering and generate enterprise investment relationship diagrams; Add interactive event components and timeline controls to the enterprise investment relationship diagram, and adjust the layout.

8. A system for constructing an enterprise investment relationship diagram, characterized in that: The system adopts the method for constructing the enterprise investment relationship diagram as claimed in any one of claims 1 to 7; The system comprises: The data table construction module is used to construct the enterprise information main table and the enterprise shareholder information sub-table; wherein the enterprise information main table and the enterprise shareholder information sub-table both record the relevant enterprise unique identification ID; The basic information acquisition module is used to obtain the unique identification ID and timestamp of the enterprise to be queried, query the relevant enterprise information and all the information of the contributing enterprises in the enterprise information main table, and query the relevant enterprise information and all the information of the contributing enterprises in the enterprise shareholder information subtable; A first data structure building module is used to recursively obtain the enterprise information and shareholder information of each shareholder based on the enterprise information and all shareholder information, and store them in the tree nodes to build an enterprise shareholder information tree; The second data structure building module is used to recursively obtain the enterprise information and the funded enterprise information of each funded enterprise based on the enterprise information and the information of all funded enterprises, and store them in the tree nodes to build the funded enterprise information tree; A data structure merging module is used to merge the enterprise shareholder information tree and the investment enterprise information tree into an investment relationship tree; The relationship diagram construction module is used to construct a tree-structured data model based on the investment relationship tree, convert the data model into graphic elements, and generate an enterprise investment relationship diagram.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for constructing the enterprise investment relationship diagram as described in any one of claims 1 to 7 are implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for constructing an enterprise investment relationship diagram as described in any one of claims 1 to 7 are implemented.