Deep function optimization method and device based on equity structure tree graph and medium
By adding attribute elements to the equity tree diagram and generating virtual nodes for two-way expansion, the problem of low query efficiency of equity tree diagram function in the existing technology is solved, and richer information display and efficient query and printing functions are achieved.
Patent Information
- Application Number
- CN202411735332.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-07
AI Technical Summary
The existing equity tree graph function has low query efficiency, and there are limitations such as one-way penetration, single node information, unknown paths, large amounts of unsplit printing.
By adding attribute elements, such as icons, graphics, text blocks, etc. to the equity tree diagram, virtual nodes are generated for two-way expansion, achieving infinite penetration up and down, and splitting and rendering the tree diagram to support printing.
It improves the functional query efficiency of equity tree diagrams, provides richer information display, supports WYSIWYG printing in the A4 page block, and optimizes the display and operation performance of huge data diagrams.
Smart Images

Figure CN119577195A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a deep function optimization method, device and medium based on a shareholding structure tree diagram. Background Art
[0002] In the modern business environment, the transparency and understanding of a company's equity structure is crucial for investors, managers and regulators. The equity structure not only involves the distribution of company ownership, but also reflects the company's governance structure, the distribution of decision-making rights and the implementation of corporate strategy. Therefore, based on the needs of equity structure query and annual report printing, on the basis of a single equity structure, in-depth functional exploration is carried out to provide users with a deeper, richer and more convenient user experience.
[0003] The overall functions of the existing equity structure tree are simple, the demand ratio is low, and there are limitations such as one-way penetration, single node information, unclear path highlighting, and large volume that cannot be split and printed. It can only meet the simple query needs of users, which may lead to slow functional query speed of the equity structure tree, thereby low efficiency of functional query of the equity structure tree for users. Summary of the invention
[0004] The present invention provides a deep function optimization method, device and medium based on a shareholding structure tree diagram, the main purpose of which is to solve the problem of low efficiency of functional query of the shareholding structure tree diagram for users.
[0005] To achieve the above purpose, the present invention provides a deep function optimization method based on the equity structure tree diagram, comprising:
[0006] Adding attribute elements to the previously acquired equity structure tree based on preset equity attributes;
[0007] When receiving a request for displaying a shareholding structure diagram, a virtual node is generated according to the root node and the first-level node of the shareholding structure diagram after adding the attribute element, and a bidirectional expansion operation is performed on the shareholding structure diagram after adding the attribute element through the virtual node, and a display operation is performed on the shareholding structure diagram after the bidirectional expansion operation to obtain an optimized display diagram of the shareholding structure;
[0008] When receiving a request to print the equity structure tree, the equity structure tree after adding the attribute elements is split to obtain the equity structure tree sub-graph, the equity structure tree sub-graph is rendered, and the rendered equity structure sub-graph is printed to obtain an optimized equity structure print graph;
[0009] When a query request for the equity structure tree is received, the equity structure tree after adding attribute elements is merged with the preset equity structure flow chart in a point-to-point manner, and the equity relationship is queried using the merged point-to-point equity structure tree to obtain a visualized equity optimization path.
[0010] Optionally, the adding of attribute elements in a pre-acquired equity structure tree diagram based on preset equity attributes includes:
[0011] Extracting the equity identifier from the preset equity attribute;
[0012] Extracting icon elements, graphic elements and text block elements from the attribute elements;
[0013] Classifying the element attributes of the pre-acquired equity structure tree diagram according to the equity identifier;
[0014] The icon element, the graphic element and the text block element are added to the equity structure tree diagram according to the classified element attributes.
[0015] Optionally, the bidirectional expansion operation of the equity structure tree after adding the attribute element through the virtual node includes:
[0016] Divide the first-level node in the equity structure tree after adding the attribute element into two first-level child nodes;
[0017] The two first-level child nodes are used as child nodes of the virtual node, and the virtual node is hidden;
[0018] Performing a bidirectional contraction operation on the child node according to the folding attribute of the hidden virtual node;
[0019] A bidirectional expansion operation is performed on the child node according to the expansion attribute of the hidden virtual node.
[0020] Optionally, the display operation is performed on the equity structure tree after the bidirectional expansion operation to obtain an equity structure optimization display diagram, including:
[0021] Extracting a preset display request of a target node, and extracting an expansion symbol mark of the target node in the equity structure diagram after the bidirectional expansion operation according to the display request;
[0022] Calling the display data of the target node corresponding to the expansion symbol mark through a preset backend interface;
[0023] A shareholding structure optimization display diagram corresponding to the target node is generated according to the display data.
[0024] Optionally, the equity structure tree diagram after adding the attribute elements is split to obtain equity structure tree sub-diagrams, including:
[0025] Identify the root node and branch nodes of the equity structure tree after adding attribute elements;
[0026] Determine a branch tree diagram of the equity structure according to the branch nodes and the root node;
[0027] The equity structure branch tree diagram is merged according to a preset branch threshold to obtain an equity structure tree sub-diagram.
[0028] Optionally, the rendering operation on the equity structure tree subgraph includes:
[0029] Adjusting the layout of the equity structure tree sub-graph in a preset first rendering mode;
[0030] Extract the print waiting interval corresponding to the equity structure tree print request;
[0031] A rendering sub-graph of the equity structure tree corresponding to the equity structure tree sub-graph after the layout adjustment is generated according to the preset second rendering mode and the printing waiting interval.
[0032] Optionally, merging the equity structure tree diagram after adding the attribute elements with the preset equity structure flow chart in a point-to-point manner includes:
[0033] Extract the process relationship of the target company's preset equity structure flowchart;
[0034] According to the process relationship, query the radiation point corresponding to the starting point of the equity structure tree diagram after adding the attribute element;
[0035] Determine an end point according to the starting point and the radiation path corresponding to the radiation point;
[0036] The equity structure tree diagram after adding attribute elements is merged into an equity structure tree diagram with a point-to-point structure according to the starting point and the ending point.
[0037] Optionally, the step of using the merged point-to-point equity structure tree diagram to query the equity relationship and obtain a visualized equity optimization path includes:
[0038] Determine the target query node according to the equity structure tree query request;
[0039] Locating the parent node of the target query node in the merged point-to-point equity structure tree;
[0040] The parent node is used as the target query node, and the step of locating the parent node of the target query node in the merged point-to-point equity structure tree diagram is returned until the root node in the point-to-point equity structure tree diagram is queried;
[0041] Generate a visual equity optimization path based on all queried nodes.
[0042] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0043] at least one processor; and,
[0044] a memory communicatively connected to the at least one processor; wherein,
[0045] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the deep functional optimization method based on the equity structure tree diagram described above.
[0046] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned deep functional optimization method based on the equity structure tree diagram.
[0047] The embodiment of the present invention provides users with richer information by making full use of the custom function of the tree map, adding custom elements including but not limited to icons, pictures, text blocks and other elements to the tree map; by adding virtual nodes, the bidirectional expansion and contraction of the one-way tree map is realized, and on the basis of adding, deleting and modifying the nodes of the tree map, the back-end interface is cooperated to realize the infinite penetration of the equity structure diagram up and down; by splitting and sorting the standard tree map, the content in the A4 page block is realized as what you see is what you get when printing; in view of the jamming problem of the display and operation of the huge data map, the method of setting the map rendering type according to local conditions is adopted; the tree map and the flow chart are integrated to provide users with the function of point-to-point query of the equity structure, and the native function of highlighting the relationship path radiating from the target node to the surrounding is abandoned, and a recursive method is adopted to search upward to realize the highlighting of the relationship path from the root node to the target node, so that the entire visual relationship diagram is clearer and more specific. Therefore, the deep function optimization method, device and medium based on the equity structure tree map proposed by the present invention can solve the problem of low efficiency of function query of the equity structure tree map. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic flow chart of a deep function optimization method based on an equity structure tree diagram provided by an embodiment of the present invention;
[0049] Figure 2 A schematic diagram of a flow chart of a bidirectional expansion operation provided by an embodiment of the present invention;
[0050] Figure 3A schematic diagram of a process of splitting a share structure tree provided by an embodiment of the present invention;
[0051] Figure 4 A schematic diagram of the structure of an electronic device for implementing the deep function optimization method based on the equity structure tree diagram provided by one embodiment of the present invention.
[0052] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0054] The embodiment of the present application provides a deep function optimization method based on a shareholding structure diagram. The execution subject of the deep function optimization method based on the shareholding structure diagram includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the deep function optimization method based on the shareholding structure diagram can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0055] Reference Figure 1 FIG. 1 is a flow chart of a deep function optimization method based on a shareholding structure diagram provided by an embodiment of the present invention. In this embodiment, the deep function optimization method based on a shareholding structure diagram includes:
[0056] S1. Add attribute elements to the pre-acquired equity structure tree diagram based on preset equity attributes.
[0057] In the embodiment of the present invention, the tree map has a customization function, and richer information is provided to the user by adding customized elements to the tree map, wherein the customized elements include but are not limited to icons, pictures, and text block elements.
[0058] In the embodiment of the present invention, the adding of attribute elements in the pre-acquired equity structure tree diagram based on the preset equity attributes includes:
[0059] Extracting the equity identifier from the preset equity attribute;
[0060] Extracting icon elements, graphic elements and text block elements from the attribute elements;
[0061] Classifying the element attributes of the pre-acquired equity structure tree diagram according to the equity identifier;
[0062] The icon element, the graphic element and the text block element are added to the equity structure tree diagram according to the classified element attributes.
[0063] In detail, the equity identifier can be obtained from the equity attribute document of the target company, and the equity identifier includes but is not limited to the equity status, shareholder name, and shareholding ratio of the equity-related company; the attribute element refers to the custom element in the tree diagram, including icon, graphic or text block elements, and the elements in the pre-acquired equity structure tree diagram are classified according to the shareholders or shareholding ratios they represent. Each shareholder or shareholding ratio may correspond to a specific graphic area or node. According to the classification results, preset icon elements, graphic elements or text block elements are added to the nodes or areas of the corresponding equity structure tree diagram to ensure that the newly added elements maintain consistency and clarity with the existing structure.
[0064] Exemplarily, the corresponding nodes in the equity structure tree diagram can mark the equity company status, such as normal or abnormal, shareholding ratio, node-related symbols, and the connection relationship between shares. The identification between different nodes or the same node can be described by icon elements, graphic elements and text block elements. For example, a text block element can be used in the node to identify the shareholding ratio corresponding to the node company.
[0065] Furthermore, adding custom elements to the equity structure tree can provide an equity structure diagram with richer and more diverse information. When the equity structure diagram needs to be displayed, it is necessary to achieve infinite vertical penetration of the equity structure diagram to display the equity-related content more comprehensively and specifically.
[0066] S2. When receiving a request to display a shareholding structure diagram, a virtual node is generated according to the root node and the first-level node of the shareholding structure diagram after adding the attribute elements, and a bidirectional expansion operation is performed on the shareholding structure diagram after adding the attribute elements through the virtual node, and a display operation is performed on the shareholding structure diagram after the bidirectional expansion operation to obtain an optimized display diagram of the shareholding structure.
[0067] In an embodiment of the present invention, when a request for displaying a shareholding structure tree diagram is received, it is necessary to display the relevant shareholding content requested in the shareholding structure tree diagram, but the tree diagram has one and only one root node, and the associated lines extending from the root node have only one starting node, but the bilateral contraction function requires that two independent associated lines extend from one root node, which is contrary to the principle of the tree diagram. Therefore, it is necessary to implement the extension of two independent associated lines from one root node by adding a virtual node operation.
[0068] In detail, virtual nodes are generated based on the root node and the first-level node of the equity structure tree diagram after adding attribute elements, that is, two virtual nodes are added between the root node and the first-level node of the equity structure tree diagram, so that two independent associated lines are extended from one root node according to the two added virtual nodes, wherein the first-level node refers to the first-level child node of the root node.
[0069] Furthermore, by adding virtual nodes, bidirectional expansion and contraction of a one-way tree graph can be achieved, that is, by using virtual nodes as intermediate levels, the expansion and contraction of the tree graph visually presents a bidirectional effect, and bidirectional expansion and contraction effects from parent nodes to child nodes and from child nodes to parent nodes can be achieved.
[0070] In the embodiment of the present invention, the bidirectional expansion operation refers to a bidirectional expansion and contraction operation from a parent node to a child node and from a child node to a parent node.
[0071] In the embodiment of the present invention, referring to Figure 2 As shown, the bidirectional expansion operation of the equity structure tree after adding the attribute element through the virtual node includes:
[0072] S21, dividing the first-level node in the equity structure tree after adding the attribute element into two first-level child nodes;
[0073] S22, using the two first-level child nodes as child nodes of the virtual node, and performing node hiding on the virtual node;
[0074] S23, performing a bidirectional shrinking operation on the child node according to the folding attribute of the hidden virtual node;
[0075] S24. Perform a bidirectional expansion operation on the child node according to the expansion attribute of the hidden virtual node.
[0076] In detail, the first-level node is divided into two parts according to the rules, and they become the child nodes of the two virtual nodes respectively. The first-level node can be divided into two first-level child nodes according to the attribute value of the node (such as parity, size relationship, etc.), and the two first-level child nodes after division are used as the child nodes of the two virtual nodes respectively. The first-level child nodes corresponding to the two virtual nodes can be expanded or hidden independently. It is only necessary to change the folding and expanding properties of the corresponding virtual nodes. However, the virtual nodes cannot be perceived by the user, so special processing is performed on the coordinates corresponding to the virtual nodes, and the coordinates corresponding to the virtual nodes are hidden under the root node. Then, the two-way expansion and contraction functions of the equity structure tree diagram are successfully realized.
[0077] Furthermore, the two-way expansion and contraction of the equity structure tree allows users to expand and contract nodes at different levels, so that they can drill down into detailed information when needed, or browse the overall structure at a high level. The optimized display diagram can simultaneously display the complete hierarchical structure and detailed node information, allowing users to have a more comprehensive understanding of equity relationships.
[0078] In the embodiment of the present invention, the equity structure optimization display diagram refers to an equity structure diagram that is reasonably designed and optimally laid out, and is intended to clearly present the shareholder structure and equity relationship of a company or organization.
[0079] In the embodiment of the present invention, the display operation of the equity structure tree after the bidirectional expansion operation to obtain the equity structure optimization display diagram includes:
[0080] Extracting a preset display request of a target node, and extracting an expansion symbol mark of the target node in the equity structure diagram after the bidirectional expansion operation according to the display request;
[0081] Calling the display data of the target node corresponding to the expansion symbol mark through a preset backend interface;
[0082] A shareholding structure optimization display diagram corresponding to the target node is generated according to the display data.
[0083] In detail, the target node refers to the shareholder-related information content that needs to be displayed through the interaction of the user interface, and in the equity structure diagram, each node usually has an expansion or collapse symbol to indicate whether it is expanded to display its child nodes, and then according to the display request, the specific node that needs to be expanded is determined, and its expansion symbol is extracted. The preset back-end interface is used to request the corresponding target node data according to the expansion symbol. According to the display data obtained from the back-end interface, all the relevant expanded or collapsed nodes corresponding to the display data are displayed to generate an optimized equity structure display diagram.
[0084] Specifically, based on the addition, deletion and modification of nodes in the tree diagram, the back-end interface is used to realize infinite penetration of the equity structure diagram. The infinite penetration is achieved by clicking the expansion symbol of the node, using the interface provided by the back-end to obtain the child nodes of the current node, and obtaining the data to be displayed after expansion. The component's node addition function is used to add the obtained node to the entire tree diagram. This operation can realize infinite penetration of the node until there are no child nodes.
[0085] Furthermore, when a request for displaying a shareholding structure tree diagram is received, an optimized shareholding structure display diagram can be obtained. The optimized shareholding structure display diagram not only realizes the two-way expansion and contraction of the one-way tree diagram, and the wireless penetration of the upper and lower shareholding structure diagram, but also realizes the A4 printing function of what you see and what you get.
[0086] S3. When receiving a request to print the equity structure tree, the equity structure tree after adding the attribute elements is split to obtain the equity structure tree sub-graph, the equity structure tree sub-graph is rendered, and the rendered equity structure sub-graph is printed to obtain an optimized equity structure print graph.
[0087] In an embodiment of the present invention, when a request for printing a shareholding structure tree is received, in order to make the printed shareholding structure tree what you see is what you get, and the shareholding structure tree printing function is a necessary operation when an enterprise issues an annual report, usually a company shareholding structure tree of a large group has many nodes and many levels, and cannot be accommodated on an A4 paper when it is flat. At this time, it is necessary to split and drag the tree diagram, and a large tree is divided into multiple small-scale trees, and the root node of each tree is the same. In this way, even if they are not on the same A4 paper, the equity relationship can be clearly seen at a glance. The shareholding structure tree sub-diagram refers to the multiple structure tree sub-diagrams formed after the shareholding structure tree diagram is split.
[0088] In the embodiment of the present invention, refer to Figure 3 As shown, the equity structure tree diagram after adding the attribute elements is split to obtain the equity structure tree sub-diagram, including:
[0089] S31, identifying the root node and branch nodes of the equity structure tree after adding the attribute elements;
[0090] S32, determining a branch tree diagram of the equity structure according to the branch nodes and the root node;
[0091] S33. Merge the equity structure branch tree diagram according to a preset branch threshold to obtain an equity structure tree sub-diagram.
[0092] In detail, the root node and branch nodes of the equity structure tree are identified. In the equity structure, the root node is usually the highest-level controlling shareholder, while the branch nodes are the subsidiaries, departments or individual shareholders. After determining the root node and branch nodes, a branch tree diagram of the equity structure can be constructed based on the nodes, that is, based on the root node and the branch nodes under it, a connection relationship between the nodes is established, and the added attribute elements, such as shareholder name, shareholding ratio, voting rights and other information, are taken into account to ensure that this information is correctly displayed in the branch tree diagram, and then the equity structure branch tree diagram is merged according to the number of branches, thereby obtaining a sub-diagram of the equity structure tree, which can more concisely express specific shareholder relationships and attribute information.
[0093] Furthermore, in order to solve the problem of lag in the display and operation of graphs with huge data, we adopt the method of setting the graph rendering type according to local conditions. We use the canvas mode rendering with better performance during display and operation, and switch to the svg mode rendering with higher resolution for final printing, taking into account the needs of smooth operation and high-quality printing.
[0094] In the embodiment of the present invention, the rendering operation on the equity structure tree subgraph includes:
[0095] Adjusting the layout of the equity structure tree sub-graph in a preset first rendering mode;
[0096] Extract the print waiting interval corresponding to the equity structure tree print request;
[0097] A rendering sub-graph of the equity structure tree corresponding to the equity structure tree sub-graph after the layout adjustment is generated according to the preset second rendering mode and the printing waiting interval.
[0098] In detail, the first rendering mode refers to the canvas rendering mode, and the second rendering mode refers to the svg rendering mode. After being split into small trees, since the equity chart runs from left to right, it is usually too long to be fully displayed on A4. At this time, it is necessary to drag the leaf nodes to make the page layout more compact so that it can be fully displayed within the A4 size range. If you want the printed equity chart to have high clarity, the rendering mode of the tree chart component must be svg format. However, using svg rendering will consume more performance. When the amount of data is huge, the page rendering will be very slow, and dragging and moving nodes will be abnormally stuck. It seems that the two are incompatible. When dragging, the canvas mode with better performance is used for rendering. When actually generating the printed image, the svg mode with higher definition is used for rendering. At the same time, in order to avoid the problem of re-rendering and slow rendering of the tree image when switching modes, it is decided not to switch the rendering mode, and directly generate a tree image rendered in svg format. The processing solution uses the gap between users waiting to print and generates images outside the visible area of the browser to complete the rendering of the svg image in a place that the user cannot perceive, and provides a print preview, thereby meeting the user's high-quality needs for smooth operation and clear printing.
[0099] Furthermore, the equity structure diagram is sometimes queried according to user needs. In order to query all equity relationships between two nodes when querying the equity structure diagram, a point-to-point equity diagram is required to make the diagram of all equity relationships between the two nodes clearer and more specific.
[0100] S4. When receiving a query request for the equity structure tree, the equity structure tree after adding attribute elements is merged with the preset equity structure flow chart in a point-to-point manner, and the equity relationship is queried using the merged point-to-point equity structure tree to obtain a visualized equity optimization path.
[0101] In an embodiment of the present invention, when a shareholding structure tree query request is received, the internal shareholding relationship flow chart of the target company can be merged with the existing shareholding structure chart to add or delete relevant shareholding companies to display the latest and complete shareholder structure and shareholding status, which is conducive to avoiding omissions or inconsistencies in information.
[0102] In the embodiment of the present invention, the step of merging the equity structure tree diagram after adding attribute elements with the preset equity structure flow chart in a point-to-point manner includes:
[0103] Extract the process relationship of the target company's preset equity structure flowchart;
[0104] According to the process relationship, query the radiation point corresponding to the starting point of the equity structure tree diagram after adding the attribute element;
[0105] Determine an end point according to the starting point and the radiation path corresponding to the radiation point;
[0106] The equity structure tree diagram after adding attribute elements is merged into an equity structure tree diagram with a point-to-point structure according to the starting point and the ending point.
[0107] In detail, the detailed process relationship of the company's shareholder structure is extracted from the preset equity structure flow chart, including but not limited to the direct or indirect shareholding relationship between shareholders, equity transfer path, etc. According to the preset process relationship, the starting point to be queried is determined, and the starting point refers to the company's major shareholder. In the equity structure tree diagram, the starting point will radiate all shareholder nodes and shareholding ratios related to it. According to the starting point and the nodes radiated from it, all other nodes directly or indirectly connected to these nodes are found until all relevant end points are determined. All nodes and edges (or relationships) between the starting point and the end point are extracted and merged into a point-to-point equity structure tree diagram. This structure diagram will intuitively display all shareholder nodes directly or indirectly related to it and their shareholdings starting from the starting point.
[0108] Specifically, compared to the tree-structured equity graph which has only a unique starting root node but no unique ending node, the point-to-point equity graph queries all equity relationships between two nodes. Usually, the radiation path of the equity graph radiates from the target node to the surrounding areas, providing users with the function of point-to-point query of the equity structure, and abandoning the native function of highlighting the relationship path radiating from the target node to the surrounding areas.
[0109] Furthermore, for a point-to-point equity diagram, it is necessary to understand the equity structure of the target company, and therefore it is necessary to radiate to the upper node, i.e., the parent node. When using the point-to-point equity structure diagram to query the equity relationship, it is necessary to use a recursive method to search upward to highlight the relationship path from the root node to the target node, making the entire visual relationship diagram clearer and more explicit.
[0110] In an embodiment of the present invention, the visualized equity optimization path refers to a path that displays the internal equity structure of a company or organization in a chart or graphic form, that is, the relationship path from the root node to the target node is highlighted, starting from the specific shareholder or controlling entity of the company, and tracing upward along the equity chain step by step until the highest level or root node of the company is reached.
[0111] In the embodiment of the present invention, the use of the merged point-to-point equity structure tree to query the equity relationship and obtain a visualized equity optimization path includes:
[0112] Determine the target query node according to the equity structure tree query request;
[0113] Locating the parent node of the target query node in the merged point-to-point equity structure tree;
[0114] The parent node is used as the target query node, and the step of locating the parent node of the target query node in the merged point-to-point equity structure tree diagram is returned until the root node in the point-to-point equity structure tree diagram is queried;
[0115] Generate a visual equity optimization path based on all queried nodes.
[0116] In detail, a recursive method is used to search upward to highlight the relationship path from the root node to the target node, making the entire visual relationship diagram clearer. That is, a recursive method is used to first locate the parent node of the target node, and then the found parent node is used as the target node to find its parent node, and so on, the search continues upward until the root node is found, and the connection lines between all the found nodes are highlighted, making the entire visual relationship diagram clearer, thereby obtaining a shareholding structure diagram with clearer relationship visualization and richer and more diverse functions.
[0117] Specifically, the target node to be queried is determined according to the user's request, and the root node corresponding to the target query node is identified, and the parent node of the target query node in the tree diagram is queried. This parent node may be a shareholder or entity that directly controls the target node. The parent node is queried until the root node of the tree diagram is reached. The equity link can be traced up step by step until the highest-level shareholder or controlling entity of the company is reached. All the queried nodes and paths are organized into an equity optimization path, and the equity optimization path can clearly show all parent-child relationships and shareholding ratios from the target query node to the root node. For example, if the user wants to query the ultimate controlling entity of the company, in the point-to-point equity structure tree diagram, the company's ultimate controlling entity node is located, such as a specific individual or company, and the parent node of the node is queried, which may be an individual or company that directly controls the ultimate controlling entity. The parent node is queried until the root node of the company, that is, the highest-level shareholder or entity, is reached. All the queried nodes and paths are organized into a graph to display all parent-child relationships and shareholding ratios from the target node to the root node, forming a visual equity optimization path.
[0118] The embodiment of the present invention provides users with richer information by making full use of the custom function of the tree map, adding custom elements including but not limited to icons, pictures, text blocks and other elements to the tree map; by adding virtual nodes, the bidirectional expansion and contraction of the one-way tree map is realized, and on the basis of adding, deleting and modifying the nodes of the tree map, the back-end interface is cooperated to realize the infinite penetration of the equity structure diagram up and down; by splitting and sorting the standard tree map, the content in the A4 page block is realized as what you see is what you get when printing; in view of the jamming problem of the display and operation of the huge data map, the method of setting the map rendering type according to local conditions is adopted; the tree map and the flow chart are integrated to provide users with the function of point-to-point query of the equity structure, and the native function of highlighting the relationship path radiating from the target node to the surrounding is abandoned, and a recursive method is adopted to search upward to realize the highlighting of the relationship path from the root node to the target node, so that the entire visual relationship diagram is clearer and more specific. Therefore, the deep function optimization method, device and medium based on the equity structure tree map proposed by the present invention can solve the problem of low efficiency of function query of the equity structure tree map.
[0119] like Figure 4 As shown, it is a structural schematic diagram of an electronic device for implementing a deep function optimization method based on an equity structure tree diagram provided by an embodiment of the present invention.
[0120] The electronic device may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a deep function optimization program based on a shareholding structure diagram. The electronic device may be composed of a single packaged integrated circuit, or may be composed of multiple packaged integrated circuits with the same or different functions, including a combination of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as executing a deep function optimization program based on a shareholding structure diagram, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.
[0121] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device, such as the code of a deep functional optimization program based on a shareholding structure diagram, but may also be used to temporarily store data that has been output or is to be output.
[0122] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0123] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0124] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0125] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0126] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0127] The deep function optimization program based on the equity structure tree diagram stored in the memory 11 of the electronic device is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0128] Adding attribute elements to the previously acquired equity structure tree based on preset equity attributes;
[0129] When receiving a request for displaying a shareholding structure diagram, a virtual node is generated according to the root node and the first-level node of the shareholding structure diagram after adding the attribute element, and a bidirectional expansion operation is performed on the shareholding structure diagram after adding the attribute element through the virtual node, and a display operation is performed on the shareholding structure diagram after the bidirectional expansion operation to obtain an optimized display diagram of the shareholding structure;
[0130] When receiving a request to print the equity structure tree, the equity structure tree after adding the attribute elements is split to obtain the equity structure tree sub-graph, the equity structure tree sub-graph is rendered, and the rendered equity structure sub-graph is printed to obtain an optimized equity structure print graph;
[0131] When a query request for the equity structure tree is received, the equity structure tree after adding attribute elements is merged with the preset equity structure flow chart in a point-to-point manner, and the equity relationship is queried using the merged point-to-point equity structure tree to obtain a visualized equity optimization path.
[0132] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0133] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0134] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0135] Adding attribute elements to the previously acquired equity structure tree based on preset equity attributes;
[0136] When receiving a request for displaying a shareholding structure diagram, a virtual node is generated according to the root node and the first-level node of the shareholding structure diagram after adding the attribute element, and a bidirectional expansion operation is performed on the shareholding structure diagram after adding the attribute element through the virtual node, and a display operation is performed on the shareholding structure diagram after the bidirectional expansion operation to obtain an optimized display diagram of the shareholding structure;
[0137] When receiving a request to print the equity structure tree, the equity structure tree after adding the attribute elements is split to obtain the equity structure tree sub-graph, the equity structure tree sub-graph is rendered, and the rendered equity structure sub-graph is printed to obtain an optimized equity structure print graph;
[0138] When a query request for the equity structure tree is received, the equity structure tree after adding attribute elements is merged with the preset equity structure flow chart in a point-to-point manner, and the equity relationship is queried using the merged point-to-point equity structure tree to obtain a visualized equity optimization path.
[0139] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, media and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0140] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0142] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0143] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is not limited only according to the above description, and it is intended that all changes within the meaning and scope of equivalent elements within the scope of protection are included in the present invention.
[0144] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0145] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0146] If software tools or components not owned by the patent applicant appear in the embodiments of the present application, they are merely used to illustrate that a wide range of software tools or components can be selected during the actual implementation of the technical solution disclosed in the present application, and do not mean that the patent applicant actually used these example software tools or components; Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in this field should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A deep function optimization method based on equity structure diagram, characterized in that: The method comprises: Adding attribute elements to the previously acquired equity structure tree based on preset equity attributes; When receiving a request for displaying a shareholding structure diagram, a virtual node is generated according to the root node and the first-level node of the shareholding structure diagram after adding the attribute element, and a bidirectional expansion operation is performed on the shareholding structure diagram after adding the attribute element through the virtual node, and a display operation is performed on the shareholding structure diagram after the bidirectional expansion operation to obtain an optimized display diagram of the shareholding structure; When receiving a request to print the equity structure tree, the equity structure tree after adding the attribute elements is split to obtain the equity structure tree sub-graph, the equity structure tree sub-graph is rendered, and the rendered equity structure sub-graph is printed to obtain an optimized equity structure print graph; When a query request for the equity structure tree is received, the equity structure tree after adding attribute elements is merged with the preset equity structure flow chart in a point-to-point manner, and the equity relationship is queried using the merged point-to-point equity structure tree to obtain a visualized equity optimization path.
2. The deep function optimization method based on the equity structure diagram according to claim 1 is characterized in that: The adding of attribute elements in the pre-acquired equity structure tree diagram based on the preset equity attributes includes: Extracting the equity identifier from the preset equity attribute; Extracting icon elements, graphic elements and text block elements from the attribute elements; Classifying the element attributes of the pre-acquired equity structure tree diagram according to the equity identifier; The icon element, the graphic element and the text block element are added to the equity structure tree diagram according to the classified element attributes.
3. The deep function optimization method based on the equity structure diagram according to claim 1 is characterized in that: The bidirectional expansion operation of the equity structure tree after adding the attribute element through the virtual node includes: Divide the first-level node in the equity structure tree after adding the attribute element into two first-level child nodes; The two first-level child nodes are used as child nodes of the virtual node, and the virtual node is hidden; Performing a bidirectional contraction operation on the child node according to the folding attribute of the hidden virtual node; A bidirectional expansion operation is performed on the child node according to the expansion attribute of the hidden virtual node.
4. The deep function optimization method based on the equity structure diagram according to claim 1 is characterized in that: The display operation of the equity structure tree after the bidirectional expansion operation is performed to obtain an equity structure optimization display diagram, including: Extracting a preset display request of a target node, and extracting an expansion symbol mark of the target node in the equity structure diagram after the bidirectional expansion operation according to the display request; Calling the display data of the target node corresponding to the expansion symbol mark through a preset backend interface; A shareholding structure optimization display diagram corresponding to the target node is generated according to the display data.
5. The deep function optimization method based on the equity structure diagram according to claim 1 is characterized in that: The equity structure tree diagram after adding the attribute elements is split to obtain the equity structure tree sub-diagram, including: Identify the root node and branch nodes of the equity structure tree after adding attribute elements; Determine a branch tree diagram of the equity structure according to the branch nodes and the root node; The equity structure branch tree diagram is merged according to a preset branch threshold to obtain an equity structure tree sub-diagram.
6. The deep function optimization method based on the equity structure diagram according to claim 1 is characterized in that: The rendering operation on the equity structure tree subgraph includes: Adjusting the layout of the equity structure tree sub-graph in a preset first rendering mode; Extract the print waiting interval corresponding to the equity structure tree print request; A rendering sub-graph of the equity structure tree corresponding to the equity structure tree sub-graph after the layout adjustment is generated according to the preset second rendering mode and the printing waiting interval.
7. The deep function optimization method based on the equity structure diagram according to claim 1 is characterized in that: The step of merging the equity structure tree diagram after adding the attribute elements with the preset equity structure flow chart in a point-to-point manner includes: Extract the process relationship of the target company's preset equity structure flowchart; According to the process relationship, query the radiation point corresponding to the starting point of the equity structure tree diagram after adding the attribute element; Determine an end point according to the starting point and the radiation path corresponding to the radiation point; The equity structure tree diagram after adding attribute elements is merged into an equity structure tree diagram with a point-to-point structure according to the starting point and the ending point.
8. The deep function optimization method based on the equity structure diagram according to claim 1 is characterized in that: The method of using the merged point-to-point equity structure tree to query the equity relationship and obtain a visualized equity optimization path includes: Determine the target query node according to the equity structure tree query request; Locating the parent node of the target query node in the merged point-to-point equity structure tree; The parent node is used as the target query node, and the step of locating the parent node of the target query node in the merged point-to-point equity structure tree diagram is returned until the root node in the point-to-point equity structure tree diagram is queried; Generate a visual equity optimization path based on all queried nodes.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the deep functional optimization method based on the equity structure tree diagram as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the deep functional optimization method based on the equity structure tree diagram as described in any one of claims 1 to 8.
Citation Information
Cited By
Method and device for generating equity structure diagram based on virtual nodes
CN121092748A