CN112506976B - Data flow display method and device, electronic equipment and storage medium - Google Patents

Data flow display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112506976B
CN112506976B CN202011465839.4A CN202011465839A CN112506976B CN 112506976 B CN112506976 B CN 112506976B CN 202011465839 A CN202011465839 A CN 202011465839A CN 112506976 B CN112506976 B CN 112506976B
Authority
CN
China
Prior art keywords
data flow
nodes
information
node
coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011465839.4A
Other languages
Chinese (zh)
Other versions
CN112506976A (en
Inventor
李伟
蔡亮
匡立中
曾磊
王禹凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202011465839.4A priority Critical patent/CN112506976B/en
Publication of CN112506976A publication Critical patent/CN112506976A/en
Application granted granted Critical
Publication of CN112506976B publication Critical patent/CN112506976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the technical field of computers and provides a data flow direction display method, a device, electronic equipment and a storage medium. The method for displaying the data flow comprises the following steps: when a data flow display request sent by a user is obtained, at least one data flow information is obtained from a blockchain, wherein each data flow information comprises two participation objects and a data flow between the two participation objects; generating a tree structure according to at least one data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participation object; determining the coordinates of each node and the connection mode among the nodes according to the tree structure; generating a data flow link diagram according to the coordinates of each node and the connection mode between each node; a data flow diagram is shown. Therefore, the data flow direction among all the participating objects can be intuitively displayed, and the user can conveniently check the data flow direction.

Description

Data flow display method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a data flow direction display method, a device, electronic equipment and a storage medium.
Background
In the process of supervising the project, the supervision department needs to check the data flow such as the corresponding fund flow direction or the business progress of the project. For example, the path of money transfer for an engineering project is typically a bank > head office > subcontracting company > labor, and the money administration needs to know the money flow to administer the money. The existing method for acquiring the data flow direction generally derives the data flow direction information to form a form, and displays the data flow direction in a form, so that the data flow direction information between every two participating objects can only be displayed sporadically, when huge engineering projects are involved, the data flow direction information is more, and the form needs to be displayed in a paging mode, so that the data flow direction cannot be displayed intuitively, and the viewing is not facilitated.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for displaying a data flow, which can intuitively display a data flow, and is convenient for a user to view.
A first aspect of an embodiment of the present application provides a method for displaying a data flow, including:
responding to a received data flow display request, and acquiring at least one data flow information from a blockchain, wherein each data flow information comprises two participation objects and a data flow between the two participation objects;
generating a tree structure according to the at least one data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participation object;
determining the coordinates of each node and the connection mode among the nodes according to the tree structure;
generating a data flow link diagram according to the coordinates of the nodes and the connection mode among the nodes;
the data flow diagram is shown.
In one possible implementation manner, the determining coordinates of each node and a connection manner between each node according to the tree structure includes:
acquiring a preset link diagram display mode;
determining coordinates of each node according to the link diagram display mode and the tree structure;
and determining the connection mode among the nodes according to the coordinates of the nodes.
In one possible implementation, the link map display mode includes a lateral display mode or a longitudinal display mode.
In one possible implementation manner, the determining coordinates of each node according to the link diagram display manner and the tree structure includes:
determining coordinates of designated nodes in the nodes according to the display mode of the link diagram;
determining the coordinate relation among the nodes according to the tree structure;
and determining the coordinates of each node according to the coordinates of the designated node and the coordinate relation.
In one possible implementation manner, after the presenting the data flow link diagram, the method further includes:
and displaying the link where the target node is located according to a preset display format, wherein the target node is the selected node in the at least two nodes.
In one possible implementation manner, after the presenting the data flow link diagram, the method further includes:
receiving a scaling;
and scaling the data flow direction link map according to the scaling.
In one possible implementation manner, the method for displaying the data flow further includes:
acquiring transaction information;
generating the data flow information according to the transaction information;
and recording the data stream information in the blockchain.
In a possible implementation manner, the data flow direction information further comprises time and state information corresponding to the data flow direction; correspondingly, the generating a data flow link map according to the coordinates of the nodes and the connection mode between the nodes includes:
and generating a data flow link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information.
A second aspect of an embodiment of the present application provides a display device for data flow, including:
the acquisition module is used for responding to the received data flow display request and acquiring at least one data flow information from the blockchain, wherein each data flow information comprises two participation objects and a data flow between the two participation objects;
the first calculation module is used for generating a tree structure according to the at least one data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participation object;
the determining module is used for determining the coordinates of each node and the connecting mode among the nodes according to the tree structure;
the second calculation module is used for generating a data flow link diagram according to the coordinates of the nodes and the connection mode among the nodes;
and the display module is used for displaying the data flow direction link diagram.
In one possible implementation manner, the determining module is specifically configured to:
acquiring a preset link diagram display mode;
determining coordinates of each node according to the link diagram display mode and the tree structure;
and determining the connection mode among the nodes according to the coordinates of the nodes.
In one possible implementation, the link map display mode includes a lateral display mode or a longitudinal display mode.
In one possible implementation manner, the determining module is specifically configured to:
determining coordinates of designated nodes in the nodes according to the display mode of the link diagram;
determining the coordinate relation among the nodes according to the tree structure;
and determining the coordinates of each node according to the coordinates of the designated node and the coordinate relation.
In one possible implementation, the display device for displaying the data flow direction further includes a display module, where the display module is configured to:
and displaying the link where the target node is located according to a preset display format, wherein the target node is the selected node in the at least two nodes.
In one possible implementation, the display module is further configured to:
receiving a scaling;
and scaling the data flow direction link map according to the scaling.
In one possible implementation, the presentation device of the data flow direction further includes a recording module, where the recording module is configured to:
acquiring transaction information;
generating the data flow information according to the transaction information;
and recording the data stream information in the blockchain.
In a possible implementation manner, the data flow direction information further comprises time and state information corresponding to the data flow direction; correspondingly, the second computing module is specifically configured to:
and generating a data flow link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information.
A third aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a method for displaying a data flow according to the first aspect, when the processor executes the computer program.
A fourth aspect of the embodiments of the present application provides a computer readable storage medium storing a computer program, which when executed by a processor implements a method for exposing a data stream according to the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, which when run on an electronic device, causes the electronic device to perform the method for presenting a data stream according to the first aspect.
Compared with the prior art, the embodiment of the application has the beneficial effects that: when a data flow display request sent by a user is obtained, at least one data flow information is obtained from a blockchain, each data flow information comprises two participation objects and a data flow between the two participation objects, a tree structure is generated according to the at least one data flow information, the tree structure comprises at least two nodes and the data flow information between the at least two nodes, each node corresponds to one participation object, the coordinates of each node and the connection mode between the nodes are determined according to the tree structure, a data flow link diagram is generated according to the coordinates of each node and the connection mode between the nodes, and the data flow link diagram is displayed. Therefore, each node and the connection mode between each node can be checked on the data flow link diagram, the nodes correspond to the participation objects, the connection mode between each node is determined according to the tree structure, the tree structure is generated according to the participation objects and the data flow between the two participation objects, and therefore the data flow link diagram can intuitively display the data flow between each participation object and is convenient for a user to check.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic implementation flow chart of a method for displaying a data flow according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a data flow diagram provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a data flow diagram provided by another embodiment of the present application;
fig. 4 is a schematic diagram of a display device for data flow according to an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to illustrate the technical solutions described in the present application, the following description is made by specific examples.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application, the terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
The existing method for acquiring the data flow direction generally derives the data flow direction information to form a form, and displays the data flow direction in a form, so that the data flow direction information between every two participating objects can only be displayed sporadically, when huge engineering projects are involved, the data flow direction information is more, and the form needs to be displayed in a paging mode, so that the data flow direction cannot be displayed intuitively, and the viewing is not facilitated.
Therefore, the embodiment of the application provides the data flow direction display method, which can intuitively display the data flow direction and is convenient for a user to check.
An exemplary description of a method for presenting a data flow provided in the present application is provided below.
Referring to fig. 1, a method for displaying a data flow according to an embodiment of the present application includes:
s101: at least one data stream information is obtained from the blockchain in response to a received data stream presentation request, each data stream information comprising two participating objects and a data stream between the two participating objects.
Wherein, the data flow information is recorded in the blockchain, and the data flow information can be fund flow information, business progress information and the like. The participating objects are users or departments corresponding to data flow information that characterizes the relationship between the two participating objects, e.g., if funds are being paid from department a to department B, the data flow is from department a to department B. If funds are paid from the department A to the department B and the department C, the corresponding data flow is two, wherein one data flow is from the department A to the department B, and the other data flow is from the department A to the department C.
In one possible implementation manner, before receiving the data flow display request, if transaction information is detected, the electronic device generates data flow information according to the transaction information, and records the data flow information in the blockchain, so that the data flow information stored in the blockchain can be updated in real time, and data loss is prevented. The transaction information may be funds transfer information or transaction information, among others. For example, if the a-department pays 100 yuan to the B-department, the generated data flow information is from a, to B,100 yuan.
S102: generating a tree structure according to the at least one data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participation object.
Specifically, in the blockchain, each participating object corresponds to a node, and two nodes corresponding to one data flow information are a group of nodes. The tree-shaped relation of each group of nodes can be determined according to the data flow direction of each group of nodes, namely, the father node and the child node in each group of nodes are determined, and then the tree-shaped structure can be determined according to all the tree-shaped relations, wherein the tree-shaped structure can reflect the data flow direction among the nodes, namely, the hierarchical relation among the nodes.
For example, the data stream information recorded in the blockchain is:
(1){fromCode:1,toCode:2,money:100},
(2){fromCode:1,toCode:3,money:100},
(3){fromCode:2,toCode:4,money:100},
the corresponding tree relationship includes three groups: (1) the father node is Code 1, the child node is Code 2; (2) the father node is Code 1, the child node is Code 3; (3) father node Code 2, son node Code 4.
Taking Code 1 as a root node, the obtained tree structure is as follows:
Figure BDA0002834160500000081
wherein, the tree structure represents that Code 1 is a root node, code 2 is a child node of the root node, code 4 is a child node of Code 2, and Code 3 is a child node of the root node.
S103: and determining the coordinates of each node and the connection mode among the nodes according to the tree structure.
Specifically, the position relation among the nodes is determined according to the tree structure, the coordinates of the nodes on the display interface are determined according to the position relation among the nodes and the size of the display interface, and the connection mode among the nodes of each group is determined according to the data flow direction corresponding to the tree structure, wherein the connection mode comprises the direction of the connection line, and the connection line is from the father node to the child node.
In one possible implementation manner, before determining the coordinates of each node and the connection manner between each node, the electronic device further obtains a preset link diagram display manner, where the display manner of the link diagram may be preset by a user according to the requirement, and the display manner of the link diagram may be a horizontal display manner or a longitudinal display manner, or may be a mesh display manner with a root node as a center.
After the electronic equipment obtains the display mode of the link diagram set by the user, the coordinates of all the nodes are determined according to the display mode of the link diagram and the tree structure, and then the connection mode among all the nodes is determined according to the coordinates of all the nodes, wherein the connection mode comprises the type of the connecting line except the direction of the connecting line, and the type of the connecting line comprises a straight line and a broken line.
In one possible implementation manner, the electronic device determines the coordinates of the designated node in the nodes according to the display manner of the link diagram, determines the coordinate relationship between the nodes according to the tree structure, and determines the coordinates between the nodes according to the coordinates of the designated node and the coordinate relationship between the nodes. The designated node may be any node among the nodes. For example, the designated node is a root node, if the display mode of the link diagram is horizontal display, the root node is located at the middle position on the left side of the display interface, and if the display mode of the link diagram is vertical display, the root node is located at the middle position on the upper side of the display interface. After the coordinates of the root node are determined, the coordinates of the child nodes of the root node are determined according to the hierarchical relationship among the nodes in the tree structure, then the coordinates of the child nodes of the next level are determined, and so on until the coordinates of all the nodes are determined, so that the generated data flow direction link diagram can accurately reflect the data flow direction among the nodes.
In another possible implementation manner, the electronic device may determine the coordinates of the designated nodes in the tree structure according to the size of the display interface, determine the coordinates of the remaining nodes according to the tree structure and the coordinates of the designated nodes, and finally adjust the coordinates of each node according to the display mode of the link map to obtain the adjusted coordinates of each node, so that the finally displayed data flow direction link map is matched with the display interface.
After the coordinates of each node are determined, the electronic equipment determines the type of the connecting line according to the coordinates of each group of nodes, and finally determines the direction of the connecting line according to the data flow direction of each group of nodes.
For example, if the link diagram is displayed in the horizontal direction, the Code 1 has the coordinates (x 1, y 1), the Code 2 has the coordinates (x 2, y 2), the Code 3 has the coordinates (x 3, y 3), and the Code 4 has the coordinates (x 4, y 4). The Code 1 and the Code 2 are a group of nodes, and the abscissa and the ordinate are different; the Code 1 and the Code 3 are a group of nodes, and the abscissa and the ordinate are different; code 2 and Code 4 are a set of nodes and the ordinate is the same. The positions of the codes 2 and 3 may be set according to the order of the nodes, or may be set according to the user input, or the codes 2 and 3 may be located above the codes 3, or the codes 2 and 3 may be located below the codes 3.
Correspondingly, the Code 1 and the Code 2 are connected by a broken line, the starting point coordinate of the broken line is (x 1, y1+ (h/2)), the inflection point coordinate is (x 1, y 2), and the end point coordinate is (x 2- (w/2), y 2). The Code 1 and the Code 3 are connected by a broken line, the coordinates of the starting point (x 1, y1- (h/2)) of the broken line, the coordinates of the inflection point (x 1, y 3) and the coordinates of the ending point (x 2- (w/2), y 3). The Code 2 and the Code 4 are connected by a straight line, the starting point coordinate of the straight line is (x 2+ (w/2), y 2), and the ending point coordinate is (x 4- (w/2), y 4).
S104: and generating a data flow link diagram according to the coordinates of the nodes and the connection mode among the nodes.
Specifically, the electronic device displays the nodes at the corresponding positions of the display interface according to the coordinates of the nodes, and connects the nodes according to the connection mode between the nodes to obtain a data flow link diagram. For example, if the link diagram is displayed in a horizontal manner, the obtained data flow is shown in fig. 2, and if the link diagram is displayed in a vertical manner, the obtained data flow is shown in fig. 3.
In one possible implementation, the data flow information further includes time and status information for the data flow, e.g., the funds flow information includes time of fund transfer, the transaction progress information includes transaction status, transaction time, etc. Correspondingly, the tree structure includes time and status information corresponding to the data flow direction, and the data flow direction link map also includes time and status information corresponding to the data flow direction. For example, as shown in fig. 3, the time and state information corresponding to the data flow direction may be displayed on one side of each connection line in the data flow direction link diagram, or the time and state information corresponding to the data flow direction may be displayed on the connection line.
S105: the data flow diagram is shown.
In the above embodiment, when the data flow display request sent by the user is obtained, at least one data flow information is obtained from the blockchain, each data flow information includes two participation objects and a data flow between the two participation objects, a tree structure is generated according to the at least one data flow information, the tree structure includes at least two nodes and the data flow information between the at least two nodes, each node corresponds to one participation object, the coordinates of each node and the connection mode between the nodes are determined according to the tree structure, a data flow link graph is generated according to the coordinates of each node and the connection mode between the nodes, and the data flow link graph is displayed. Therefore, each node and the connection mode between each node can be checked on the data flow link diagram, the nodes correspond to the participation objects, the connection mode between each node is determined according to the M tree structure, the tree structure is generated according to the participation objects and the data flow between the two participation objects, and therefore the data flow link diagram can intuitively display the data flow between each participation object and is convenient for a user to check.
In one possible implementation manner, after the data flow link diagram is displayed on the display interface, if it is detected that the user selects one node in the data flow link diagram, the selected node is used as the target node, the link where the target node is located is determined, the link where the target node is located is displayed according to the preset display format, for example, the link where the target node is located is highlighted, or the font of the link where the target node is located is displayed in a thickened manner, or the font color of the link where the target node is located is changed, so that the user can conveniently view the selected link. The data flow link diagram includes a root node and all levels of child nodes, for example, in the data flow link diagrams shown in fig. 2 and 3, code 1 is the root node, code 2 and Code 3 are the child nodes of the root node, and Code 4 is the next level of child node. When the user selects each level of sub-node, the node selected by the user is used as a target node, the link where the target node is located is determined, the link where the target node is located is displayed according to a preset display format, and when the user selects the root node, the whole data flow direction link diagram is displayed according to the preset display format.
In one possible implementation manner, when the display interface displays the link where the target node is located according to the preset display format, if it is detected that the user clicks a blank area of the display interface, that is, it is detected that the user clicks an area other than the link map, the link map is restored to the original display state.
In one possible implementation, after the display interface displays the data flow direction link diagram, if an instruction for zooming the data flow direction link diagram by the user is detected, the zoom scale is received, and the data flow direction link diagram is displayed according to the zoom scale, so that the user can check conveniently.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Corresponding to the method for displaying a data flow described in the foregoing embodiments, fig. 4 is a block diagram of a structure of a device for displaying a data flow provided in an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
As shown in fig. 4, the presentation means of the data stream comprises,
an obtaining module 10, configured to obtain, in response to a received data stream presentation request, at least one data stream information from a blockchain, where each data stream information includes two participating objects and a data stream between the two participating objects;
a first calculation module 20, configured to generate a tree structure according to the at least one data flow direction information, where the tree structure includes at least two nodes and a data flow direction between the at least two nodes, and each node corresponds to a participation object;
a determining module 30, configured to determine coordinates of each node and a connection manner between each node according to the tree structure;
a second calculation module 40, configured to generate a data flow link map according to the coordinates of the nodes and the connection mode between the nodes;
and the display module 50 is used for displaying the data flow direction link diagram.
In one possible implementation, the determining module 30 is specifically configured to:
acquiring a preset link diagram display mode;
determining coordinates of each node according to the link diagram display mode and the tree structure;
and determining the connection mode among the nodes according to the coordinates of the nodes.
In one possible implementation, the link map display mode includes a lateral display mode or a longitudinal display mode.
In one possible implementation, the determining module 30 is specifically configured to:
determining coordinates of designated nodes in the nodes according to the display mode of the link diagram;
determining the coordinate relation among the nodes according to the tree structure;
and determining the coordinates of each node according to the coordinates of the designated node and the coordinate relation.
In one possible implementation, the display device for displaying the data flow direction further includes a display module, where the display module is configured to:
and displaying the link where the target node is located according to a preset display format, wherein the target node is the selected node in the at least two nodes.
In one possible implementation, the display module is further configured to:
receiving a scaling;
and scaling the data flow direction link map according to the scaling.
In one possible implementation, the presentation device of the data flow direction further includes a recording module, where the recording module is configured to:
acquiring transaction information;
generating the data flow information according to the transaction information;
and recording the data stream information in the blockchain.
In a possible implementation manner, the data flow direction information further comprises time and state information corresponding to the data flow direction; correspondingly, the second computing module 40 is specifically configured to:
and generating a data flow link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
Fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 5, the electronic device of this embodiment includes: a processor 11, a memory 12, and a computer program 13 stored in the memory 12 and executable on the processor 11. The steps in the embodiment of the method for displaying a data flow described above, such as steps S101 to S103 shown in fig. 1, are implemented when the processor 11 executes the computer program 13. Alternatively, the processor 11 may perform the functions of the modules/units in the above-described apparatus embodiments when executing the computer program 13, for example, the functions of the acquisition module 10 to the presentation module 50 shown in fig. 4.
By way of example, the computer program 13 may be divided into one or more modules/units, which are stored in the memory 12 and executed by the processor 11 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program 13 in the electronic device.
The electronic equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. It will be appreciated by those skilled in the art that fig. 5 is merely an example of an electronic device and is not meant to be limiting, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device may further include an input-output device, a network access device, a bus, etc.
The processor 11 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 12 may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 12 may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device. Further, the memory 12 may also include both internal storage units and external storage devices of the electronic device. The memory 12 is used for storing the computer program as well as other programs and data required by the electronic device. The memory 12 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each method embodiment described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A method for displaying a data stream, comprising:
responding to a received data flow display request, and acquiring at least one data flow information from a blockchain, wherein each data flow information comprises two participation objects and a data flow between the two participation objects; the data flow information comprises fund flow information or transaction progress information, and the participation object is a user or department corresponding to the data flow information; the data flow direction information also comprises time and state information corresponding to the data flow direction;
generating a tree structure according to the at least one data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participation object; the tree structure comprises time and state information corresponding to a data flow;
determining coordinates of each node and a connection mode among the nodes according to the tree structure comprises the following steps: acquiring a preset link diagram display mode; determining coordinates of each node according to the link diagram display mode and the tree structure; determining a connection mode among the nodes according to the coordinates of the nodes;
generating a data flow link diagram according to the coordinates of the nodes and the connection mode among the nodes, wherein the data flow link diagram comprises the following steps: generating a data flow link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information; the data flow link diagram comprises time and state information corresponding to the data flow direction;
the data flow diagram is shown.
2. The method for displaying a data stream according to claim 1, wherein the link map displaying mode includes a landscape displaying mode or a portrait displaying mode.
3. The method for displaying a data flow according to claim 1, wherein determining coordinates of each node according to the link map displaying manner and the tree structure includes:
determining coordinates of designated nodes in the nodes according to the display mode of the link diagram;
determining the coordinate relation among the nodes according to the tree structure;
and determining the coordinates of each node according to the coordinates of the designated node and the coordinate relation.
4. The method of claim 1, further comprising, after said displaying the data flow link map:
and displaying the link where the target node is located according to a preset display format, wherein the target node is the selected node in the at least two nodes.
5. The method of claim 1, further comprising, after said displaying the data flow link map:
receiving a scaling;
and scaling the data flow direction link map according to the scaling.
6. The method of claim 1, wherein prior to said obtaining at least one data stream information from a blockchain, comprising:
acquiring transaction information;
generating the data flow information according to the transaction information;
and recording the data stream information in the blockchain.
7. A display device for a data stream, comprising:
the acquisition module is used for responding to the received data flow display request and acquiring at least one data flow information from the blockchain, wherein each data flow information comprises two participation objects and a data flow between the two participation objects; the data flow information comprises fund flow information or transaction progress information, and the participation object is a user or department corresponding to the data flow information; the data flow direction information also comprises time and state information corresponding to the data flow direction;
the first calculation module is used for generating a tree structure according to the at least one data flow direction information, wherein the tree structure comprises at least two nodes and data flow directions between the at least two nodes, and each node corresponds to one participation object; the tree structure comprises time and state information corresponding to a data flow;
the determining module is configured to determine coordinates of each node and a connection mode between each node according to the tree structure, and includes: acquiring a preset link diagram display mode; determining coordinates of each node according to the link diagram display mode and the tree structure; determining a connection mode among the nodes according to the coordinates of the nodes;
the second calculation module is configured to generate a data flow link map according to the coordinates of the nodes and the connection mode between the nodes, and includes: generating a data flow link diagram according to the coordinates of the nodes, the connection mode among the nodes and the time and state information; the data flow link diagram comprises time and state information corresponding to the data flow direction;
and the display module is used for displaying the data flow direction link diagram.
8. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 6.
CN202011465839.4A 2020-12-14 2020-12-14 Data flow display method and device, electronic equipment and storage medium Active CN112506976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011465839.4A CN112506976B (en) 2020-12-14 2020-12-14 Data flow display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011465839.4A CN112506976B (en) 2020-12-14 2020-12-14 Data flow display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112506976A CN112506976A (en) 2021-03-16
CN112506976B true CN112506976B (en) 2023-05-12

Family

ID=74972878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011465839.4A Active CN112506976B (en) 2020-12-14 2020-12-14 Data flow display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112506976B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115509869B (en) * 2022-08-26 2023-10-31 国科础石(重庆)软件有限公司 Method and device for visual display of service call chain data and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139764B2 (en) * 2003-06-25 2006-11-21 Lee Shih-Jong J Dynamic learning and knowledge representation for data mining
CN101556718A (en) * 2009-05-21 2009-10-14 中国建设银行股份有限公司 Multistage account fund management system and device
CN106295912B (en) * 2016-08-30 2021-10-22 成都科来网络技术有限公司 Method and device for configuring and displaying transaction path based on business logic
CN110442641B (en) * 2019-08-06 2022-07-12 中国工商银行股份有限公司 Link topology graph display method and device, storage medium and equipment
CN110737660B (en) * 2019-09-24 2022-09-23 南京南瑞继保电气有限公司 Data processing method and device and computer readable storage medium
CN111737493B (en) * 2020-06-23 2023-05-02 平安科技(深圳)有限公司 Abnormal data source output method and device based on decision tree and computer equipment

Also Published As

Publication number Publication date
CN112506976A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
US11842438B2 (en) Method and terminal device for determining occluded area of virtual object
WO2020207190A1 (en) Three-dimensional information determination method, three-dimensional information determination device, and terminal apparatus
CN109144647B (en) Form design method and device, terminal equipment and storage medium
US10650559B2 (en) Methods and systems for simplified graphical depictions of bipartite graphs
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN111739016B (en) Target detection model training method and device, electronic equipment and storage medium
US20230207087A1 (en) Prescription order distribution method, system, device and storage medium
CN112363935A (en) Data joint debugging method and device, electronic equipment and storage medium
CN111460011A (en) Page data display method and device, server and storage medium
CN112506976B (en) Data flow display method and device, electronic equipment and storage medium
CN112711398A (en) Method, device and equipment for generating buried point file and storage medium
CN111612616A (en) Block chain account evaluation method and device, terminal device and computer readable medium
CN114372060A (en) Data storage method, device, equipment and storage medium
CN112527280B (en) Interface display method, device, server and readable storage medium
CN113902411A (en) Project time progress display method and device, terminal and storage medium
CN114444478A (en) Voucher visualization method and device, electronic equipment and storage medium
CN111553962A (en) Chart display method, system and display equipment
CN115131192B (en) Data processing method, device and equipment based on graphic pipeline and storage medium
CN114036721A (en) Method and device for constructing three-dimensional temperature cloud field of micro-module
CN113656486B (en) Method, device, terminal equipment and storage medium for generating visualized object
CN111179174B (en) Image stretching method and device based on face recognition points
CN112100056B (en) Application evaluation method, system, device, equipment and medium
CN107870817B (en) Multi-dimensional parameter display method, client and server
CN112631998B (en) Folder display method and related equipment
CN111724195B (en) Bench layout generation and display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant