Bill data settlement processing method and device, block chain network and storage medium

By introducing financial nodes and settlement nodes into the blockchain network, the distributed management and synchronization of bill data is achieved, and the problem of inconsistency between settlement scenarios and bill data in the existing technology is solved, and the settlement dimensions and caliber are achieved.

CN119917480APending Publication Date: 2025-05-02CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311436600.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The prior art cannot maintain strict consistency in the settlement dimension and caliber in the case of many-to-many settlement scenarios and bill data, resulting in inconsistent settlement results of the version of the same bill data in different settlement scenarios.

Method used

By introducing financial nodes and settlement nodes into the blockchain network, distributed management and synchronization of billing data are realized. The financial system sends bill data to the blockchain financial node, updates the global status data, and broadcasts it to all nodes. The settlement system obtains bill data through the corresponding settlement node, judges the version freshness, and verifies the hash value consistency of the bill attribute field to ensure the consistency of the settlement results.

Benefits of technology

Through the distributed management and synchronization mechanism of blockchain technology, the consistency of settlement scenarios and billing data is strictly guaranteed, and the settlement results of billing data versions are avoided inconsistent in different settlement scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917480A_ABST
    Figure CN119917480A_ABST
Patent Text Reader

Abstract

The invention provides a bill data settlement processing method and device, a block chain network and a storage medium. The method comprises the following steps: a financial system sends any version of bill data to a financial node of a block chain; the financial node updates global state data according to the bill data and broadcasts the global state data to complete synchronization; any settlement system obtains global state data corresponding to the current version bill data through a corresponding settlement node in the block chain, and if it is judged that the current version bill data is newest, settlement is carried out according to a self settlement rule to obtain a settlement file; if it is verified that the bill attribute field in the current version bill data is consistent with the hash value of the bill attribute field in the bill data used by system settlement processing, sending a settlement file to a corresponding settlement node in the block chain; and the corresponding settlement node in the block chain updates the global state data according to the received settlement information and broadcasts the global state data to complete synchronization, so that the situation that the settlement results of the same bill data version are inconsistent in different settlement scenes is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, blockchain network and storage medium for settlement processing of bill data. Background Art

[0002] At present, the settlement process requires the cooperation and data sharing of real-time settlement of in-memory database, quasi-real-time settlement of relational database and statistical settlement system based on Hadoop, and relies on the billing data of the accounting system to complete the settlement process. However, in the actual production and operation process, multiple versions of billing data will be adjusted and changed, resulting in a many-to-many relationship between settlement scenarios and billing data.

[0003] In the prior art, a centralized unified settlement file version management platform is mainly established to handle settlement scenarios and many-to-many situations of billing data.

[0004] However, the centralized unified settlement file version management platform established by the existing technology cannot guarantee strict consistency of settlement dimensions and calibers in the case of many-to-many settlement scenarios and billing data, and the settlement results of the same billing data version in different settlement scenarios may be inconsistent. Summary of the invention

[0005] The present application provides a settlement processing method, device, blockchain network and storage medium for bill data, which are used to solve the problem that the centralized unified settlement file version management platform established by the prior art cannot guarantee the strict consistency of settlement dimensions and calibers in the case of many-to-many settlement scenarios and bill data, and there will be technical problems such as inconsistent settlement results of the same bill data version in different settlement scenarios.

[0006] In a first aspect, the present application provides a method for processing bill data settlement, including:

[0007] The financial system sends any version of the bill data to a financial node of a blockchain, wherein the blockchain includes a plurality of nodes and the financial node is one of the plurality of nodes;

[0008] The financial node of the blockchain updates the global status data according to the bill data, and broadcasts the updated global status data to all nodes of the blockchain to complete synchronization;

[0009] Any settlement system obtains global status data corresponding to the current version of the bill data through a corresponding settlement node in the blockchain, wherein the settlement node is one of the multiple nodes;

[0010] Any of the settlement systems determines whether the current version of the billing data is the latest version; if it is determined that the current version of the billing data is the latest version, any of the settlement systems initiates a settlement procedure according to its own settlement rules to obtain a settlement file;

[0011] Any of the settlement systems verifies whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing; if they are consistent, sends the settlement information corresponding to the settlement file to the corresponding settlement node in the blockchain;

[0012] The corresponding settlement node in the blockchain updates the global status data according to the settlement information corresponding to the received settlement file, and broadcasts the updated global status data in all nodes of the blockchain to complete synchronization.

[0013] In one possible design, the financial node of the blockchain updates the global state data according to the bill data, including:

[0014] The financial node of the blockchain updates the bill field information in the global status data according to the bill data, wherein the updated content in the global status data is all field information in the bill field information except the status identifier.

[0015] In a possible design, any settlement system obtains global status data corresponding to the current version of the bill data through the corresponding settlement node in the blockchain, including:

[0016] Any of the settlement systems sends a request for global status data to a corresponding settlement node in the blockchain;

[0017] The corresponding settlement node in the blockchain sends the global status data corresponding to the current version of the bill data to any settlement system according to the request for the global status data.

[0018] In a possible design, judging, according to any settlement system, whether the current version of the billing data is the latest version includes:

[0019] Any of the settlement systems determines whether the hash value of the current version of the billing data obtained is consistent with the hash value of the previously obtained version of the billing data;

[0020] If the hash value of the current version of the billing data obtained is consistent with the hash value of the previously obtained version of the billing data, it is determined that the current version of the billing data is the latest version;

[0021] If the hash value of the current version of the billing data obtained is inconsistent with the hash value of the previously obtained version of the billing data, it is determined that the current version of the billing data is not the latest version.

[0022] In a possible design, after determining whether the current version of the billing data is the latest version, any settlement system further includes:

[0023] Any settlement system, if it determines that the current version of the billing data is not the latest version, requests the latest version of the billing data from the financial system, and starts the settlement procedure to perform settlement processing on the latest version of the billing data according to its own settlement rules to obtain a settlement file.

[0024] In a possible design, after verifying, according to any settlement system, whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used in the settlement processing of the settlement system, the method further includes:

[0025] If the hash value of the bill attribute field in the current version of the bill data is inconsistent with the hash value of the bill attribute field in the bill data used in the settlement processing of the settlement system, insert new global state data in any of the settlement systems, start the settlement procedure according to the settlement rules of any of the settlement systems, obtain an updated settlement file, and send the settlement information corresponding to the settlement file to the corresponding settlement node in the blockchain;

[0026] The corresponding settlement node in the blockchain updates the new global status data according to the settlement information corresponding to the received settlement file, and broadcasts the updated new global status data in all nodes of the blockchain to complete synchronization.

[0027] In one possible design, the status identifier, file name, and file access path in the bill field information in the new global status data are consistent with the original global status data, and the bill complete metadata, bill Entity object metadata, and bill version hash value are updated according to the bill data at the time of settlement.

[0028] In a possible design, the settlement system is a real-time settlement system; the corresponding settlement node in the blockchain is a real-time settlement node; the settlement information includes: real-time settlement status, real-time settlement file list and real-time settlement file access address;

[0029] Accordingly, the corresponding settlement node in the blockchain updates the global state data according to the real-time settlement information corresponding to the received real-time settlement file, including:

[0030] The corresponding real-time settlement node in the blockchain writes back the real-time settlement field in the global state data according to the status of the real-time settlement, the real-time settlement file list and the real-time settlement file access address to complete the update of the global state data.

[0031] In a possible design, the settlement system is a quasi-real-time settlement system; the corresponding settlement node in the blockchain is a quasi-real-time settlement node; the settlement information includes: quasi-real-time settlement status, quasi-real-time settlement file list and quasi-real-time settlement file access address;

[0032] Accordingly, the corresponding settlement node in the blockchain updates the global state data according to the quasi-real-time settlement information corresponding to the received quasi-real-time settlement file, including:

[0033] The corresponding quasi-real-time settlement node in the blockchain writes back the quasi-real-time settlement field in the global state data according to the status of the quasi-real-time settlement, the quasi-real-time settlement file list and the quasi-real-time settlement file access address to complete the update of the global state data.

[0034] In one possible design, the settlement system is a statistical settlement system; the corresponding settlement node in the blockchain is a statistical settlement node; the settlement information includes: statistical settlement status, a statistical settlement file list, and a statistical settlement file access address;

[0035] Accordingly, the corresponding settlement node in the blockchain updates the global state data according to the statistical settlement information corresponding to the received statistical settlement file, including:

[0036] The corresponding statistical settlement node in the blockchain writes back the statistical settlement field in the global state data according to the status of the statistical settlement, the statistical settlement file list and the statistical settlement file access address to complete the update of the global state data.

[0037] In a second aspect, the present application provides a method for processing settlement of bill data, which is applied to blockchain, including:

[0038] Receiving any version of bill data sent by a financial system through a financial node of a blockchain, wherein the blockchain includes a plurality of nodes and the financial node is one of the plurality of nodes;

[0039] The financial node of the blockchain updates the global status data according to the bill data, and broadcasts the updated global status data in all nodes of the blockchain to complete synchronization;

[0040] Sending global status data corresponding to the current version of the bill data to any settlement system through the corresponding settlement node in the blockchain, wherein the settlement node is one of the multiple nodes, so that any settlement system determines whether the current version of the bill data is the latest version; if it is determined that the current version of the bill data is the latest version, then any settlement system starts the settlement procedure according to its own settlement rules to obtain a settlement file; and verifies whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing;

[0041] Receiving, through a corresponding settlement node in the blockchain, settlement information corresponding to the settlement file sent by any settlement system when determining that the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system during settlement processing;

[0042] Through the settlement node corresponding to the blockchain, the global status data is updated according to the settlement information corresponding to the received settlement file, and the updated global status data is broadcast in all nodes of the blockchain to complete synchronization.

[0043] In one possible design, the financial node through the blockchain updates the global state data according to the bill data, including:

[0044] The bill data is obtained through the financial node of the blockchain, and the bill field information in the global status data is updated, wherein the updated content in the global status data is all field information in the bill field information except the status identifier.

[0045] In a possible design, the global status data corresponding to the current version of the bill data is sent to any settlement system through the corresponding settlement node in the blockchain, including:

[0046] Receive a request for global status data sent by any settlement system through the corresponding settlement node in the blockchain; and send the global status data corresponding to the current version of the bill data to any settlement system.

[0047] In a possible design, the settlement system is a real-time settlement system; the corresponding settlement node in the blockchain is a real-time settlement node; the settlement information includes: real-time settlement status, real-time settlement file list and real-time settlement file access address;

[0048] Accordingly, receiving the real-time settlement information corresponding to the real-time settlement file through the corresponding settlement node in the blockchain; updating the global state data, including:

[0049] The corresponding real-time settlement node in the blockchain writes back the real-time settlement field in the global state data according to the status of the real-time settlement, the real-time settlement file list and the real-time settlement file access address to complete the update of the global state data.

[0050] In a possible design, the settlement system is a quasi-real-time settlement system; the corresponding settlement node in the blockchain is a quasi-real-time settlement node; the settlement information includes: quasi-real-time settlement status, quasi-real-time settlement file list and quasi-real-time settlement file access address;

[0051] Accordingly, receiving the quasi-real-time settlement information corresponding to the quasi-real-time settlement file through the corresponding settlement node in the blockchain; updating the global state data, including:

[0052] The corresponding quasi-real-time settlement node in the blockchain writes back the quasi-real-time settlement field in the global state data according to the status of the quasi-real-time settlement, the quasi-real-time settlement file list and the quasi-real-time settlement file access address to complete the update of the global state data.

[0053] In one possible design, the settlement system is a statistical settlement system; the corresponding settlement node in the blockchain is a statistical settlement node; the settlement information includes: statistical settlement status, a statistical settlement file list, and a statistical settlement file access address;

[0054] Accordingly, receiving statistical settlement information corresponding to the statistical settlement file through the corresponding settlement node in the blockchain; updating the global state data, including:

[0055] The corresponding statistical settlement node in the blockchain writes back the statistical settlement field in the global state data according to the status of the statistical settlement, the statistical settlement file list and the statistical settlement file access address to complete the update of the global state data.

[0056] In a third aspect, the present application provides a bill data settlement processing device, which is applied to a blockchain, including:

[0057] A first sending module, configured to receive any version of bill data sent by a financial system through a financial node of a blockchain, wherein the blockchain includes a plurality of nodes, and the financial node is one of the plurality of nodes;

[0058] An update module, used to update the global status data according to the bill data through the financial node of the blockchain, and broadcast the updated global status data in all nodes of the blockchain to complete synchronization;

[0059] The second sending module is used to send the global status data corresponding to the current version of the bill data to any settlement system through the corresponding settlement node in the blockchain, wherein the settlement node is one of the multiple nodes, so that any settlement system determines whether the current version of the bill data is the latest version; if it is determined that the current version of the bill data is the latest version, then any settlement system starts the settlement procedure according to its own settlement rules to obtain a settlement file; and verifies whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing;

[0060] A first receiving module, configured to receive, through a corresponding settlement node in a blockchain, settlement information corresponding to the settlement file sent by any settlement system when determining that a hash value of a bill attribute field in the current version of the bill data is consistent with a hash value of a bill attribute field in the bill data used by the settlement system during settlement processing;

[0061] The second receiving module is used to update the global status data according to the settlement information corresponding to the received settlement file through the settlement node corresponding to the blockchain, and broadcast the updated global status data in all nodes of the blockchain to complete synchronization.

[0062] In a fourth aspect, the present application provides a blockchain network, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the settlement processing method of bill data as described in the second aspect and various possible designs of the second aspect.

[0063] In a fifth aspect, the present application provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement the settlement processing method of bill data as described in the second aspect and various possible designs of the second aspect.

[0064] In a sixth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the settlement processing method for bill data as described in the second aspect and various possible designs of the second aspect.

[0065] The settlement processing method, device, blockchain network and storage medium for bill data provided in the present application first determine whether the current version of the bill data is the latest version through any settlement system; and then verify whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing through any settlement system. The global status data corresponding to the bill data is verified twice, strictly ensuring a high degree of consistency in settlement dimensions and calibers in settlement scenarios and many-to-many bill data, thereby avoiding the situation where the same version of bill data has inconsistent settlement results in different settlement scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0067] Figure 1 A schematic diagram of an application scenario of the method for processing the settlement of bill data provided in an embodiment of the present application;

[0068] Figure 2 A flowchart of a method for processing bill data settlement provided in an embodiment of the present application;

[0069] Figure 3 A schematic diagram of the structure of a bill data settlement processing device provided in one embodiment of the present application;

[0070] Figure 4 A schematic diagram of the structure of the blockchain network provided in an embodiment of the present application.

[0071] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0072] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0073] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0074] As the complexity of channel agent settlement business continues to increase, the settlement process needs to be completed through the mutual cooperation and data sharing of three settlement scenarios: real-time settlement of in-memory database, quasi-real-time settlement of relational database and statistical settlement based on Hadoop. Since the three settlement scenarios rely on the billing data of the accounting system, and in the actual production and operation process, the billing data will have multiple versions of adjustments and changes, resulting in a many-to-many relationship between the settlement scenario and the billing data. That is: one version of billing data corresponds to multiple settlement scenarios; one settlement scenario will use multiple versions of billing data. In addition, the accounting system, real-time settlement system, quasi-real-time settlement system and statistical settlement system are in a distributed system management mode, each independent and mutually cooperative. In this multi-scenario, multi-version distributed settlement system for agents, the common processing strategy is to establish a more centralized unified settlement file version management platform, and the settlement system needs to uniformly apply for settlement files from the platform to realize the settlement work of the agents. However, the centralized settlement file version management only focuses on the changes in file versions and the uniformity of data, but cannot improve the flexibility, autonomy of settlement scenarios and the data collaboration between settlement systems. Especially in view of the current flexible and changeable reality of Internet marketing, higher technical requirements are put forward for agents' settlement in terms of multi-scenario, multi-dimensional, multi-version and mutually coordinated distributed settlement such as real-time, quasi-real-time and statistical settlement.

[0075] In order to solve the above technical problems, the embodiment of this application proposes the following technical ideas: adding blockchain technology to the existing settlement system, and establishing a distributed settlement bill multi-version consistency control method between the accounting system, real-time settlement system, quasi-real-time settlement system and statistical settlement system. Using blockchain technology to manage the distributed global state, the global state is used between heterogeneous systems to achieve innovative functions such as consistency management of bill multi-versions, sharing of settlement results, and multi-scenario collaboration.

[0076] Figure 1 Schematic diagram of an application scenario of the method for processing the settlement of bill data provided in the embodiment of the present application. Figure 1 As shown, the application scenario includes: an accounting system 101, a real-time settlement system 102, a quasi-real-time settlement system 103, a statistical settlement system 101 and a blockchain 105.

[0077] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the object identification method. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0078] In a specific implementation process, the financial system 101 may run on a specific hardware device, such as a computer or a server.

[0079] The real-time settlement system 102 may be run on a specific hardware device, such as a computer or a server.

[0080] The quasi-real-time settlement system 103 may be run on a specific hardware device, such as a computer or a server.

[0081] The statistical settlement system 104 can be run on a specific hardware device, such as a computer or a server.

[0082] Blockchain 105 can run on a blockchain router, a blockchain phone, or a hardware wallet.

[0083] The financial system 101 sends any version of the bill data to the financial node in the blockchain 105. The financial node in the blockchain 105 updates the global status data according to the bill data, and broadcasts the updated global status data in all nodes of the blockchain to complete synchronization; the real-time settlement system 102, the quasi-real-time settlement system 103 or the statistical settlement system 104 obtains the global status data corresponding to the current version of the bill data through the corresponding settlement nodes in the blockchain 105. If the current version of the bill data is determined to be the latest version, the settlement procedure is started according to its own settlement rules to obtain the settlement file; when the real-time settlement system 102, the quasi-real-time settlement system 103 or the statistical settlement system 104 verifies that the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used in the settlement processing of each system, the settlement information corresponding to the settlement file is sent to the corresponding settlement node in the blockchain 105; the corresponding settlement nodes in the blockchain 105 update the global status data in turn according to the settlement information corresponding to the different settlement files received, and broadcast the updated global status data in all nodes of the blockchain 105 to complete synchronization.

[0084] The method for settlement processing of bill data provided in this application is intended to solve the above technical problems of the prior art.

[0085] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0086] based on Figure 1 In the application scenario shown, an embodiment of the present application provides a method for settlement processing of bill data. Figure 2 Flow chart of the method for processing the settlement of bill data provided in the embodiment of the present application. Figure 2 As shown, the settlement processing method of the bill data includes:

[0087] S201: The financial system sends any version of bill data to a financial node of the blockchain, where the blockchain includes multiple nodes and the financial node is one of the multiple nodes.

[0088] Among them, the accounting system will continuously generate and output multiple versions of bill data A1-An for agent settlement, A1 represents the first version of the bill, and An represents the nth version of the bill; the financial system is an operating system established by an enterprise or organization based on its own needs and goals, which is used to reflect, supervise, control and coordinate business activities and financial activities.

[0089] The corresponding nodes in the blockchain include computers or other devices connected to the network, such as mobile phones or mining machines. The financial nodes in the blockchain are a special type of blockchain node, which is mainly responsible for processing transactions and data related to accounts.

[0090] S202: The financial node of the blockchain updates the global status data according to the bill data, and broadcasts the updated global status data in all nodes of the blockchain to complete synchronization.

[0091] Among them, different global status data corresponding to different versions of bill data can be expressed as SA1-SAn; global status data includes: status identifier (Base64), file name (String), file access path (String), bill complete metadata (JSON), bill Entity object metadata (JSON), version hash value (SM3), real-time settlement status (Bool), real-time settlement file list (JSON), real-time settlement file access address (JSON), quasi-real-time settlement status (Bool), quasi-real-time settlement file list (JSON), quasi-real-time settlement file access address (JSON), statistical settlement status (Bool), statistical settlement file list (JSON) and statistical settlement file access address (JSON).

[0092] Among them, in the blockchain network, the updated global state data is broadcast between the nodes of the blockchain through P2P network transmission, and the consistency of the updated global state data between the nodes of the blockchain is guaranteed by PBFT (Practical Byzantine Fault Tolerance).

[0093] Specifically, the financial node of the blockchain updates the bill field information in the global status data according to the bill data, wherein the updated content in the global status data is all field information in the bill field information except the status identifier.

[0094] S203: Any settlement system obtains global status data corresponding to the current version of the bill data through the corresponding settlement node in the blockchain, where the settlement node is one of the multiple nodes.

[0095] Among them, the corresponding settlement nodes in the blockchain include computers or other devices connected to the network, such as mobile phones or mining machines.

[0096] Specifically, any settlement system sends a request for global status data to the corresponding settlement node in the blockchain, and the corresponding settlement node in the blockchain sends the global status data corresponding to the current version of the bill data to any settlement system based on the request for the global status data.

[0097] In one implementation, any settlement system sends a request for global state data to the corresponding settlement node in the blockchain at a first preset time interval. If the global state data is updated in the blockchain, the updated global state data will be broadcast to the corresponding settlement node in the blockchain and cached in the corresponding settlement node in the blockchain; the corresponding settlement node in the blockchain sends the cached updated global state data to any settlement system. Optionally, the first preset time may be 10 minutes.

[0098] Among them, the request sent by any settlement system to the corresponding settlement node in the blockchain is implemented through an API interface call.

[0099] In another implementation, any settlement system sends a request for global state data to the corresponding settlement node in the blockchain every first preset time. If the global state data is not updated in the blockchain, the corresponding settlement node in the blockchain sends an empty response or a message indicating no update to any settlement system. Optionally, the first preset time may be 10 minutes.

[0100] S204: Any settlement system determines whether the current version of the billing data is the latest version; if it is determined that the current version of the billing data is the latest version, any settlement system starts the settlement procedure according to its own settlement rules to obtain a settlement file.

[0101] Among them, the settlement rules of any settlement system itself may include: the sender and receiver of the settlement, which costs are to be settled or when to settle.

[0102] In one implementation, any settlement system determines whether the hash value of the current version of the bill data obtained is consistent with the hash value of the previously obtained version of the bill data. If the hash value of the current version of the bill data obtained is consistent with the hash value of the previously obtained version of the bill data, it is determined that the current version of the bill data is the latest version. Then, any settlement system starts the settlement procedure according to its own settlement rules to obtain the settlement file.

[0103] The hash value is a mapping of the input data type that is difficult to compare into a number of fixed length after being processed by a specific calculation function. The main characteristics of the hash value include: fixed output length, non-random results, sensitive to input changes, and one-way irreversibility. Therefore, even if only one bit of the original data is modified, the final hash value will be very different.

[0104] In another implementation method, any settlement system determines whether the hash value of the current version of the bill data obtained is consistent with the hash value of the previously obtained version of the bill data. If the hash value of the current version of the bill data obtained is inconsistent with the hash value of the previously obtained version of the bill data, it is determined that the current version of the bill data is not the latest version, and the latest version of the bill data is requested from the financial system, and the settlement program is started according to its own settlement rules to perform settlement processing on the latest version of the bill data to obtain a settlement file.

[0105] S205: Any settlement system verifies whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system during settlement processing; if they are consistent, the settlement information corresponding to the settlement file is sent to the corresponding settlement node in the blockchain.

[0106] The bill attribute fields include: bill complete metadata and bill Entity object metadata.

[0107] In another implementation method, if the hash value of the bill attribute field in the current version of the bill data is inconsistent with the hash value of the bill attribute field in the bill data used in the settlement processing of the settlement system, new global status data is inserted in any settlement system, and the settlement procedure is started according to the settlement rules of any settlement system to obtain an updated settlement file, and the settlement information corresponding to the settlement file is sent to the corresponding settlement node in the blockchain; the corresponding settlement node in the blockchain updates the new global status data according to the settlement information corresponding to the received settlement file, and broadcasts the updated new global status data in all nodes of the blockchain to complete synchronization.

[0108] Among them, the status identifier, file name and file access path in the bill field information in the new global status data are consistent with the original global status data, and the bill complete metadata, bill Entity object metadata and bill version hash value are updated according to the bill data at the time of settlement.

[0109] S206: The corresponding settlement node in the blockchain updates the global status data according to the settlement information corresponding to the received settlement file, and broadcasts the updated global status data in all nodes of the blockchain to complete synchronization.

[0110] Among them, the corresponding settlement node in the blockchain updates the settlement field in the global state data according to the settlement information corresponding to the received settlement file.

[0111] Among them, when the corresponding settlement node in the blockchain receives the settlement information corresponding to the settlement file, the corresponding settlement node in the blockchain first verifies the integrity and validity of the settlement information. If the verification passes, the corresponding settlement node in the blockchain will update the global status data according to the settlement information.

[0112] In summary, in this embodiment, first, any settlement system is used to determine whether the current version of the bill data is the latest version; and then any settlement system is used to verify whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing. The global status data corresponding to the bill data is verified twice, which strictly ensures a high degree of consistency in settlement dimensions and calibers in settlement scenarios and many-to-many bill data, thereby avoiding the situation where the same version of bill data has inconsistent settlement results in different settlement scenarios.

[0113] In an embodiment of the present application, based on the above embodiment, this embodiment focuses on describing the different processes for updating the global status data when any settlement system is a real-time settlement system, a quasi-real-time settlement system, and a statistical settlement system.

[0114] In an example of the present application, the settlement system is a real-time settlement system; the corresponding settlement node in the blockchain is a real-time settlement node; the settlement information corresponding to the settlement file includes: real-time settlement status, real-time settlement file list and real-time settlement file access address. Accordingly, step S206 specifically includes: the corresponding real-time settlement node in the blockchain writes back the real-time settlement field in the global state data according to the real-time settlement status, real-time settlement file list and real-time settlement file access address to complete the update of the global state data.

[0115] The settlement files are real-time settlement files RS1-RSn, RS1 represents the real-time settlement file of the first settlement, and RSn represents the real-time settlement file of the nth settlement.

[0116] Among them, the real-time settlement status includes: real-time settlement and non-real-time settlement; the real-time settlement file list contains all relevant files for real-time processing and settlement, and the type and content of these files depend on specific business needs and operating environment; the real-time settlement file access address is usually a network link, through which you can directly access and download real-time settlement files, which may contain detailed information about the transaction, such as transaction amount or transaction time.

[0117] Among them, the corresponding real-time settlement node in the blockchain needs to rely on specific business processing specifications to ensure the accuracy and consistency of the data, based on the status of the real-time settlement, the list of real-time settlement files, and the access address of the real-time settlement files.

[0118] Among them, some access addresses are protected. Due to security and privacy considerations, only those with corresponding permissions can access them.

[0119] In one example of the present application, the settlement system is a real-time settlement system; accordingly, in step S204, any settlement system determines whether the current version of the billing data is the latest version. If it is determined that the current version of the billing data is not the latest version, it requests the latest version of the billing data from the financial system.

[0120] In another example of the present application, the settlement system is a quasi-real-time settlement system; the corresponding settlement node in the blockchain is a quasi-real-time settlement node; the settlement information corresponding to the settlement file includes: quasi-real-time settlement status, quasi-real-time settlement file list, and quasi-real-time settlement file access address. Accordingly, step S206 specifically includes: the corresponding quasi-real-time settlement node in the blockchain writes back the quasi-real-time settlement field in the global state data according to the quasi-real-time settlement status, quasi-real-time settlement file list, and quasi-real-time settlement file access address to complete the update of the global state data.

[0121] The settlement files are quasi-real-time settlement files DS1-DSn, DS1 represents the quasi-real-time settlement file of the first settlement, and DSn represents the quasi-real-time settlement file of the nth settlement.

[0122] Among them, the quasi-real-time settlement status includes: quasi-real-time settlement and non-quasi-real-time settlement; the quasi-real-time settlement file list includes all relevant files for quasi-real-time processing and settlement; the quasi-real-time settlement file access address is usually a network link, through which the quasi-real-time settlement file can be directly accessed and downloaded.

[0123] In one example of the present application, the settlement system is a quasi-real-time settlement system; accordingly, in step S204, any settlement system determines whether the current version of the bill data is the latest version. If it is determined that the current version of the bill data is not the latest version, it requests the latest version of the bill data from the financial system or requests settlement information from the real-time settlement system.

[0124] In another example of the present application, the settlement system is a statistical settlement system; the corresponding settlement node in the blockchain is a statistical settlement node; the settlement information corresponding to the settlement file includes: statistical settlement status, statistical settlement file list, and statistical settlement file access address. Accordingly, step S206 specifically includes: the corresponding statistical settlement node in the blockchain writes back the statistical settlement field in the global state data according to the statistical settlement status, statistical settlement file list, and statistical settlement file access address to complete the update of the global state data.

[0125] Among them, the settlement files are statistical settlement files SS1-SSn, SS1 represents the statistical settlement file of the first settlement, and SSn represents the statistical settlement file of the nth settlement.

[0126] The statistical settlement status includes: statistical real-time settlement and non-statistical real-time settlement; the statistical real-time settlement file list includes all relevant files for statistical real-time processing and settlement; the statistical real-time settlement file access address is usually a network link, through which the statistical real-time settlement file can be directly accessed and downloaded.

[0127] In one example of the present application, the settlement system is a statistical real-time settlement system; accordingly, in step S204, any settlement system, after determining whether the current version of the bill data is the latest version, if it is determined that the current version of the bill data is not the latest version, requests the latest version of the bill data from the financial system, requests settlement information from the real-time settlement system, or requests settlement information from the quasi-real-time settlement system.

[0128] In summary, in this embodiment, when any settlement system is a real-time settlement system, a quasi-real-time settlement system, and a statistical settlement system, an accurate update process of the global status data is realized between the corresponding settlement information and the corresponding settlement nodes in the blockchain, thereby ensuring a high degree of consistency in the settlement dimensions and calibers in the case of many-to-many settlement scenarios and billing data.

[0129] In one example of the present application, based on Figure 1 As shown in the application scenario diagram, this application focuses on describing how to settle bill data when applied to blockchain. The method includes:

[0130] S301: Receive any version of bill data sent by the financial system through the financial node of the blockchain, where the blockchain includes multiple nodes and the financial node is one of the multiple nodes.

[0131] S302: The financial node of the blockchain updates the global status data according to the bill data, and broadcasts the updated global status data in all nodes of the blockchain to complete synchronization.

[0132] Among them, the bill data is obtained through the financial node of the blockchain, and the bill field information in the global status data is updated, wherein the updated content in the global status data is all field information in the bill field information except the status identifier.

[0133] S303: Send the global status data corresponding to the current version of the bill data to any settlement system through the corresponding settlement node in the blockchain, where the settlement node is one of multiple nodes, so that any settlement system can determine whether the current version of the bill data is the latest version; if it is determined that the current version of the bill data is the latest version, then any settlement system starts the settlement procedure according to its own settlement rules to obtain the settlement file; verify whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing.

[0134] Among them, through the corresponding settlement node in the blockchain, a request for global status data sent by any settlement system is received; and the global status data corresponding to the current version of the bill data is sent to any settlement system.

[0135] S304: Receive settlement information corresponding to the settlement file sent by any settlement system through the corresponding settlement node in the blockchain when determining that the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system during settlement processing.

[0136] S305: Through the settlement node corresponding to the blockchain, the global status data is updated according to the settlement information corresponding to the received settlement file, and the updated global status data is broadcast in all nodes of the blockchain to complete synchronization.

[0137] Among them, the settlement system is a real-time settlement system; the corresponding settlement node in the blockchain is a real-time settlement node; the settlement information includes: real-time settlement status, real-time settlement file list and real-time settlement file access address; accordingly, through the corresponding settlement node in the blockchain, the real-time settlement information corresponding to the real-time settlement file is received; updating the global status data includes: the corresponding real-time settlement node in the blockchain writes back the real-time settlement field in the global status data according to the real-time settlement status, real-time settlement file list and real-time settlement file access address to complete the update of the global status data.

[0138] Among them, the settlement system is a quasi-real-time settlement system; the corresponding settlement node in the blockchain is a quasi-real-time settlement node; the settlement information includes: quasi-real-time settlement status, quasi-real-time settlement file list and quasi-real-time settlement file access address; accordingly, through the corresponding settlement node in the blockchain, the quasi-real-time settlement information corresponding to the quasi-real-time settlement file is received; updating the global status data includes: the corresponding quasi-real-time settlement node in the blockchain writes back the quasi-real-time settlement field in the global status data according to the quasi-real-time settlement status, the quasi-real-time settlement file list and the quasi-real-time settlement file access address to complete the update of the global status data.

[0139] Among them, the settlement system is a statistical settlement system; the corresponding settlement node in the blockchain is a statistical settlement node; the settlement information includes: statistical settlement status, statistical settlement file list and statistical settlement file access address; accordingly, through the corresponding settlement node in the blockchain, the statistical settlement information corresponding to the statistical settlement file is received; updating the global status data includes: the corresponding statistical settlement node in the blockchain writes back the statistical settlement field in the global status data according to the statistical settlement status, statistical settlement file list and statistical settlement file access address to complete the update of the global status data.

[0140] In summary, first, any settlement system is used to determine whether the current version of the bill data is the latest version; then, any settlement system is used to verify whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing. The global status data corresponding to the bill data is verified twice, which strictly ensures the high consistency of settlement dimensions and calibers in settlement scenarios and many-to-many bill data, and avoids the situation where the same bill data version has inconsistent settlement results in different settlement scenarios.

[0141] Figure 3A schematic diagram of a bill data settlement processing device structure provided in one embodiment of the present application. Figure 3 As shown, the bill data settlement processing device includes: a first sending module 31, an updating module 32, a second sending module 33, a first receiving module 34 and a second receiving module 35.

[0142] A first sending module 31 is used to receive any version of bill data sent by the financial system through a financial node of the blockchain, wherein the blockchain includes multiple nodes and the financial node is one of the multiple nodes;

[0143] A first updating module 32, configured to update the global status data according to the bill data through the financial node of the blockchain, and broadcast the updated global status data in all nodes of the blockchain to complete synchronization;

[0144] The second sending module 33 is used to send the global status data corresponding to the current version of the bill data to any settlement system through the corresponding settlement node in the blockchain, where the settlement node is one of the multiple nodes, so that any settlement system can determine whether the current version of the bill data is the latest version; if it is determined that the current version of the bill data is the latest version, any settlement system starts the settlement program according to its own settlement rules to obtain a settlement file; and verify whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system during settlement processing;

[0145] A first receiving module 34 is used to receive, through a corresponding settlement node in the blockchain, settlement information corresponding to a settlement file sent by any settlement system when determining that the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used in the settlement processing of the settlement system;

[0146] The second receiving module 35 is used to update the global status data according to the settlement information corresponding to the received settlement file through the settlement node corresponding to the blockchain, and broadcast the updated global status data in all nodes of the blockchain to complete synchronization.

[0147] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0148] In one possible design, the first update module 32 is specifically used to obtain billing data through the financial node of the blockchain, and update the billing field information in the global status data, wherein the updated content in the global status data is all field information in the billing field information except the status identifier.

[0149] In one possible design, the second sending module 33 is specifically used to: receive a request for global status data sent by any settlement system through the corresponding settlement node in the blockchain; and send the global status data corresponding to the current version of the bill data to any settlement system.

[0150] In a possible design, the settlement system is a real-time settlement system; the corresponding settlement node in the blockchain is a real-time settlement node; the settlement information includes: real-time settlement status, real-time settlement file list and real-time settlement file access address; the second receiving module 35 is specifically used to: receive real-time settlement information corresponding to the real-time settlement file through the corresponding settlement node in the blockchain; update the global status data, including: the corresponding real-time settlement node in the blockchain, writes back the real-time settlement field in the global status data according to the real-time settlement status, real-time settlement file list and real-time settlement file access address, so as to complete the update of the global status data.

[0151] In a possible design, the settlement system is a quasi-real-time settlement system; the corresponding settlement node in the blockchain is a quasi-real-time settlement node; the settlement information includes: quasi-real-time settlement status, quasi-real-time settlement file list and quasi-real-time settlement file access address; the second receiving module 35 is specifically used to: receive quasi-real-time settlement information corresponding to the quasi-real-time settlement file through the corresponding settlement node in the blockchain; update the global status data, including: the corresponding quasi-real-time settlement node in the blockchain writes back the quasi-real-time settlement field in the global status data according to the quasi-real-time settlement status, quasi-real-time settlement file list and quasi-real-time settlement file access address to complete the update of the global status data.

[0152] In one possible design, the settlement system is a statistical settlement system; the corresponding settlement node in the blockchain is a statistical settlement node; the settlement information includes: statistical settlement status, a statistical settlement file list and a statistical settlement file access address; the second receiving module 35 is specifically used to: receive the statistical settlement information corresponding to the statistical settlement file through the corresponding settlement node in the blockchain; update the global status data, including: the corresponding statistical settlement node in the blockchain, writes back the statistical settlement field in the global status data according to the statistical settlement status, the statistical settlement file list and the statistical settlement file access address, so as to complete the update of the global status data.

[0153] Figure 4 This is a schematic diagram of the hardware structure of the blockchain network provided in the embodiment of this application. Figure 4 As shown, the blockchain network includes: at least one processor 41 and a memory 42; the memory stores computer execution instructions; at least one processor executes the computer execution instructions stored in the memory, so that at least one processor executes the settlement processing method of the bill data as above.

[0154] Optionally, the memory 42 may be independent or integrated with the processor 41 .

[0155] When the memory 42 is independently configured, the blockchain network further includes a bus 43 for connecting the memory 42 and the processor 41 .

[0156] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned bill data settlement processing method is implemented.

[0157] The embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned method for processing the settlement of bill data.

[0158] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0159] The modules described above 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 implement the solution of this embodiment.

[0160] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0161] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the above-mentioned method in each embodiment of the present application.

[0162] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0163] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0164] The bus may be an Industry Standard Architecture (ISA) bus, 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. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0165] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0166] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0167] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for processing bill data settlement, characterized in that: include: The financial system sends any version of the bill data to a financial node of a blockchain, wherein the blockchain includes a plurality of nodes and the financial node is one of the plurality of nodes; The financial node of the blockchain updates the global status data according to the bill data, and broadcasts the updated global status data to all nodes of the blockchain to complete synchronization; Any settlement system obtains global status data corresponding to the current version of the bill data through a corresponding settlement node in the blockchain, wherein the settlement node is one of the multiple nodes; Any of the settlement systems determines whether the current version of the billing data is the latest version; If it is determined that the current version of the bill data is the latest version, then any of the settlement systems initiates a settlement procedure according to its own settlement rules to obtain a settlement file; Any of the settlement systems verifies whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system during settlement processing; if they are consistent, sends the settlement information corresponding to the settlement file to the corresponding settlement node in the blockchain; The corresponding settlement node in the blockchain updates the global status data according to the settlement information corresponding to the received settlement file, and broadcasts the updated global status data in all nodes of the blockchain to complete synchronization.

2. The method according to claim 1, characterized in that The financial node of the blockchain updates the global status data according to the bill data, including: The financial node of the blockchain updates the bill field information in the global status data according to the bill data, wherein the updated content in the global status data is all field information in the bill field information except the status identifier.

3. The method according to claim 1, characterized in that Any of the settlement systems obtains the global status data corresponding to the current version of the bill data through the corresponding settlement node in the blockchain, including: Any of the settlement systems sends a request for global status data to a corresponding settlement node in the blockchain; The corresponding settlement node in the blockchain sends the global status data corresponding to the current version of the bill data to any settlement system according to the request for the global status data.

4. The method according to claim 1, characterized in that: The determining, according to any of the settlement systems, whether the current version of the billing data is the latest version includes: Any of the settlement systems determines whether the hash value of the current version of the billing data obtained is consistent with the hash value of the previously obtained version of the billing data; If the hash value of the current version of the billing data obtained is consistent with the hash value of the previously obtained version of the billing data, it is determined that the current version of the billing data is the latest version; If the hash value of the current version of the billing data obtained is inconsistent with the hash value of the previously obtained version of the billing data, it is determined that the current version of the billing data is not the latest version.

5. The method according to claim 1, characterized in that After determining whether the current version of the bill data is the latest version, any settlement system may further include: Any settlement system, if it determines that the current version of the billing data is not the latest version, requests the latest version of the billing data from the financial system, and starts the settlement procedure to perform settlement processing on the latest version of the billing data according to its own settlement rules to obtain a settlement file.

6. The method according to claim 1, characterized in that After verifying, according to any of the settlement systems, whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used in the settlement processing of the settlement system, the method further includes: If the hash value of the bill attribute field in the current version of the bill data is inconsistent with the hash value of the bill attribute field in the bill data used in the settlement processing of the settlement system, insert new global state data in any of the settlement systems, start the settlement procedure according to the settlement rules of any of the settlement systems, obtain an updated settlement file, and send the settlement information corresponding to the settlement file to the corresponding settlement node in the blockchain; The corresponding settlement node in the blockchain updates the new global status data according to the settlement information corresponding to the received settlement file, and broadcasts the updated new global status data in all nodes of the blockchain to complete synchronization.

7. The method according to claim 6, characterized in that The status identifier, file name and file access path in the bill field information in the new global status data are consistent with the original global status data, and the bill complete metadata, bill Entity object metadata and bill version hash value are updated according to the bill data at the time of settlement.

8. The method according to any one of claims 1 to 7, characterized in that: The settlement system is a real-time settlement system; the corresponding settlement node in the blockchain is a real-time settlement node; the settlement information includes: real-time settlement status, real-time settlement file list and real-time settlement file access address; Accordingly, the corresponding settlement node in the blockchain updates the global state data according to the real-time settlement information corresponding to the received real-time settlement file, including: The corresponding real-time settlement node in the blockchain writes back the real-time settlement field in the global state data according to the status of the real-time settlement, the real-time settlement file list and the real-time settlement file access address to complete the update of the global state data.

9. The method according to claim 1, characterized in that: The settlement system is a quasi-real-time settlement system; the corresponding settlement node in the blockchain is a quasi-real-time settlement node; the settlement information includes: quasi-real-time settlement status, quasi-real-time settlement file list and quasi-real-time settlement file access address; Accordingly, the corresponding settlement node in the blockchain updates the global state data according to the quasi-real-time settlement information corresponding to the received quasi-real-time settlement file, including: The corresponding quasi-real-time settlement node in the blockchain writes back the quasi-real-time settlement field in the global state data according to the status of the quasi-real-time settlement, the quasi-real-time settlement file list and the quasi-real-time settlement file access address to complete the update of the global state data.

10. The method according to claim 1, characterized in that The settlement system is a statistical settlement system; the corresponding settlement node in the blockchain is a statistical settlement node; the settlement information includes: statistical settlement status, statistical settlement file list and statistical settlement file access address; Accordingly, the corresponding settlement node in the blockchain updates the global state data according to the statistical settlement information corresponding to the received statistical settlement file, including: The corresponding statistical settlement node in the blockchain writes back the statistical settlement field in the global state data according to the status of the statistical settlement, the statistical settlement file list and the statistical settlement file access address to complete the update of the global state data.

11. A method for processing bill data settlement, characterized in that: Applications in blockchain include: Receiving any version of bill data sent by a financial system through a financial node of a blockchain, wherein the blockchain includes a plurality of nodes and the financial node is one of the plurality of nodes; The financial node of the blockchain updates the global status data according to the bill data, and broadcasts the updated global status data in all nodes of the blockchain to complete synchronization; Sending global status data corresponding to the current version of the bill data to any settlement system through the corresponding settlement node in the blockchain, wherein the settlement node is one of the multiple nodes, so that any settlement system determines whether the current version of the bill data is the latest version; if it is determined that the current version of the bill data is the latest version, then any settlement system starts the settlement procedure according to its own settlement rules to obtain a settlement file; and verifies whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing; Receiving, through a corresponding settlement node in the blockchain, settlement information corresponding to the settlement file sent by any settlement system when determining that the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system during settlement processing; Through the settlement node corresponding to the blockchain, the global status data is updated according to the settlement information corresponding to the received settlement file, and the updated global status data is broadcast in all nodes of the blockchain to complete synchronization.

12. The method according to claim 11, characterized in that The financial node of the blockchain updates the global status data according to the bill data, including: The bill data is obtained through the financial node of the blockchain, and the bill field information in the global status data is updated, wherein the updated content in the global status data is all field information in the bill field information except the status identifier.

13. The method according to claim 11, characterized in that The global status data corresponding to the current version of the bill data is sent to any settlement system through the corresponding settlement node in the blockchain, including: Receive a request for global status data sent by any settlement system through the corresponding settlement node in the blockchain; and send the global status data corresponding to the current version of the bill data to any settlement system.

14. The method according to claim 11, characterized in that The settlement system is a real-time settlement system; the corresponding settlement node in the blockchain is a real-time settlement node; the settlement information includes: real-time settlement status, real-time settlement file list and real-time settlement file access address; Accordingly, receiving the real-time settlement information corresponding to the real-time settlement file through the corresponding settlement node in the blockchain; updating the global state data, including: The corresponding real-time settlement node in the blockchain writes back the real-time settlement field in the global state data according to the status of the real-time settlement, the real-time settlement file list and the real-time settlement file access address to complete the update of the global state data.

15. The method according to claim 11, characterized in that The settlement system is a quasi-real-time settlement system; the corresponding settlement node in the blockchain is a quasi-real-time settlement node; the settlement information includes: quasi-real-time settlement status, quasi-real-time settlement file list and quasi-real-time settlement file access address; Accordingly, receiving the quasi-real-time settlement information corresponding to the quasi-real-time settlement file through the corresponding settlement node in the blockchain; updating the global state data, including: The corresponding quasi-real-time settlement node in the blockchain writes back the quasi-real-time settlement field in the global state data according to the status of the quasi-real-time settlement, the quasi-real-time settlement file list and the quasi-real-time settlement file access address to complete the update of the global state data.

16. The method according to any one of claims 11 to 15, characterized in that The settlement system is a statistical settlement system; the corresponding settlement node in the blockchain is a statistical settlement node; the settlement information includes: statistical settlement status, statistical settlement file list and statistical settlement file access address; Accordingly, receiving statistical settlement information corresponding to the statistical settlement file through the corresponding settlement node in the blockchain; updating the global state data, including: The corresponding statistical settlement node in the blockchain writes back the statistical settlement field in the global state data according to the status of the statistical settlement, the statistical settlement file list and the statistical settlement file access address to complete the update of the global state data.

17. A bill data settlement processing device, characterized in that: Applications in blockchain include: A first sending module, configured to receive any version of bill data sent by a financial system through a financial node of a blockchain, wherein the blockchain includes a plurality of nodes, and the financial node is one of the plurality of nodes; An update module, used to update the global status data according to the bill data through the financial node of the blockchain, and broadcast the updated global status data in all nodes of the blockchain to complete synchronization; The second sending module is used to send the global status data corresponding to the current version of the bill data to any settlement system through the corresponding settlement node in the blockchain, wherein the settlement node is one of the multiple nodes, so that any settlement system determines whether the current version of the bill data is the latest version; if it is determined that the current version of the bill data is the latest version, then any settlement system starts the settlement procedure according to its own settlement rules to obtain a settlement file; and verifies whether the hash value of the bill attribute field in the current version of the bill data is consistent with the hash value of the bill attribute field in the bill data used by the settlement system for settlement processing; A first receiving module, configured to receive, through a corresponding settlement node in a blockchain, settlement information corresponding to the settlement file sent by any settlement system when determining that a hash value of a bill attribute field in the current version of the bill data is consistent with a hash value of a bill attribute field in the bill data used by the settlement system during settlement processing; The second receiving module is used to update the global status data according to the settlement information corresponding to the received settlement file through the settlement node corresponding to the blockchain, and broadcast the updated global status data in all nodes of the blockchain to complete synchronization.

18. A blockchain network, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the bill data settlement processing method according to any one of claims 11 to 16.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the bill data settlement processing method according to any one of claims 11 to 16.

Citation Information

Cited By

  • Mineral supply chain settlement bill multi-version consistency control method based on block chain

    CN121860769A