Data synchronization method, device, equipment, and storage medium

By applying blockchain technology in the clearing and settlement business system, combined with the hyper ledger system, IPFS system and database, efficient synchronization of bureau data is achieved, solving the problem of inaccurate and consistency of bureau data synchronization in multi-service systems, and improving the efficiency and reliability of data synchronization.

CN116032947BActive Publication Date: 2025-04-29中移信息技术有限公司 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211722997.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-04-29
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In the existing clearing and settlement business processing system, the synchronization of bureau data involves multiple business systems, resulting in inaccurate information processing and differences, and it is difficult to maintain, consistency and data audit.

Method used

By applying blockchain technology in the clearing and settlement business system, the combination of hyper ledger system, IPFS system and database can achieve synchronization of bureau data. The specific steps include receiving the synchronization request from the client, obtaining service management information through the service management chain code, sending data to the IPFS system, generating an IPFS hash value, and storing it in the hyperledger system, and finally loading the data synchronously into the target service system.

Benefits of technology

The synchronization of the bureau data among multiple network-wide first-level systems is achieved, which reduces the inaccuracy and differences in the data transmission process, ensures data consistency, and improves the efficiency and reliability of data synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032947B_ABST
    Figure CN116032947B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, device, and storage medium for data synchronization, the method comprising receiving a client-initiated bureau data synchronization service request including a bureau data file name; obtaining service management information matching the prefix information of the bureau data file name in response to the bureau data synchronization service request; sending the bureau data file name and service management information to the IPFS system by calling the bureau data storage service interface to obtain the IPFS hash value; receiving the IPFS hash value sent by the IPFS system; calling the API corresponding to the service management chain code, and sending the IPFS hash value and the corresponding bureau data file information to the hyperledger system; receiving feedback information from the hyperledger system; in response to the feedback information, sending the bureau data file to the target database according to the service management information by calling the bureau data storage service interface; synchronously loading the bureau data file of the target database to the target business system by calling the service management chain code to complete data synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of local data application technology, and in particular, relates to a method, device, equipment, and storage medium for data synchronization. Background Art

[0002] Bureau data is usually the network and tariff parameters related to the clearing and settlement business processing system, switching equipment, and billing and settlement. Bureau data includes but is not limited to roaming voice services in different regions, IVR (Interactive Voice Response) voice value-added services, domestic long-distance area codes, switches, numbers and other data information. After the bureau data published by the exchange website is published, it will be maintained in the management system and published to multiple first-level systems in the entire network. After receiving the bureau data file, the first-level systems in the entire network will each enter the bureau data into the database and table, and will regularly audit the bureau data to ensure the accuracy of the subsequent system call bill processing.

[0003] The existing bureau data synchronization of the clearing and settlement business processing system involves the bureau data synchronization of multiple business systems, and the bureau data is transmitted through multiple channels in various types of texts, which will lead to inaccurate bureau data information processing and information differences, making the maintenance, consistency and data auditing of bureau data more difficult. Summary of the invention

[0004] The embodiment of the present application provides a method for data synchronization, which can synchronize local data to multiple first-level systems in the entire network through fewer channels, reduce the inaccuracies and differences caused by multiple channels, frequent changes, and untimely synchronization during the transmission and circulation of data, and ensure data consistency.

[0005] In a first aspect, an embodiment of the present application provides a data synchronization method, which is applied to a clearing and settlement business system, including:

[0006] receiving a bureau data synchronization service request initiated by a client, where the bureau data synchronization service request includes a bureau data file name;

[0007] In response to the bureau data synchronization service request, the service management information matching the prefix information of the bureau data file name is obtained from the Hyperledger system by calling the application interface API corresponding to the service management chain code;

[0008] By calling the local data storage service interface, the local data file name and service management information are sent to the IPFS system, so that the IPFS system can obtain the IPFS hash value based on the local data file name and service management information.

[0009] Receive the IPFS hash value sent by the IPFS system;

[0010] By calling the API corresponding to the service management chaincode, the IPFS hash value and the local data file information corresponding to the IPFS hash value are sent to the Hyperledger system, so that the Hyperledger system can save the local data file information and IPFS hash value;

[0011] Receive feedback from the Hyperledger system;

[0012] In response to the feedback information, the bureau data file is sent to the target database according to the service management information by calling the bureau data storage service interface;

[0013] By calling the service management chain code, the local data files of the target database are synchronously loaded into the target business system to complete data synchronization.

[0014] In a second aspect, an embodiment of the present application provides a data synchronization method, which is applied to a hyperledger system, comprising:

[0015] When receiving the bureau data synchronization service request sent by the clearing and settlement business system by calling the application interface API corresponding to the service management chain code, the service management information matching the prefix information of the bureau data file name is sent to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data and service management information corresponding to the bureau data file name to the IPFS system through the bureau data storage service interface, so that the IPFS system can generate the IPFS hash value according to the bureau data file name and service management information calculation;

[0016] In the case where the clearing and settlement business system receives the IPFS hash value sent by the IPFS system, the receiving clearing and settlement business system sends the bureau data file information and IPFS hash value corresponding to the IPFS hash value by calling the API corresponding to the service management chain code;

[0017] Save the bureau data file and IPFS hash value, and send feedback information to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data file to the target database according to the service management information by calling the bureau data warehousing service interface to complete data synchronization.

[0018] In a third aspect, an embodiment of the present application provides a method for data synchronization, which is applied to an IPFS system, and the method includes:

[0019] Upon receiving the service management information and bureau data file name sent by the clearing and settlement business system by calling the warehousing service interface corresponding to the service management chain code, the IPFS hash value corresponding to the bureau data file name is generated by calculation;

[0020] The IPFS hash value is sent to the clearing and settlement business system through the service management chain code calling the corresponding warehousing service interface, so that the clearing and settlement business system can store the IPFS hash value in the hyperledger system by calling the corresponding API of the service management chain code, and feedback information to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data file to the target database according to the service management information by calling the bureau data warehousing service interface to complete data synchronization.

[0021] In a fourth aspect, an embodiment of the present application provides a data synchronization device, which is applied to a clearing and settlement business system, and the device includes:

[0022] A receiving module, used for receiving a synchronization service request for office data initiated by a client, wherein the synchronization service request includes an office data file name;

[0023] The acquisition module is used to respond to the bureau data synchronization service request and obtain the service management information matching the prefix information of the required bureau data file name from the hyperledger system by calling the application interface API corresponding to the service management chain code;

[0024] The sending module is used to send the local data file name and service management information to the IPFS system by calling the local data storage service interface, so that the IPFS system can obtain the IPFS hash value according to the local data file name and service management information calculation;

[0025] The receiving module is also used to receive the IPFS hash value sent by the IPFS system;

[0026] The sending module is also used to call the API corresponding to the service management chain code and send the IPFS hash value and the local data file information corresponding to the IPFS hash value to the hyperledger system, so that the hyperledger system can save the local data file information and the IPFS hash value;

[0027] The receiving module is also used to receive feedback information from the Hyperledger system;

[0028] The sending module is also used to respond to the feedback information and send the bureau data file to the target database according to the service management information by calling the bureau data storage service interface;

[0029] The loading module is used to synchronously load the local data files of the target database into the target business system by calling the service management chain code to complete data synchronization.

[0030] In a fifth aspect, an embodiment of the present application provides a data synchronization device, including a processor and a memory storing computer program instructions;

[0031] The above-mentioned data synchronization method is implemented when the processor executes computer program instructions.

[0032] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the above-mentioned data synchronization method is implemented.

[0033] The data synchronization method of the embodiment of the present application receives a local data synchronization service request initiated by a client, calls the application interface API corresponding to the service management chain code in response to the local data synchronization service request, obtains the service management information matching the prefix information of the local data file name from the hyperledger system, and sends the local data file name and service management information to the IPFS system by calling the local data storage service interface, obtains the unique IPFS hash value corresponding to the local data by calculating the local data file name and service management information through the IPFS system, and then returns the PIPFS hash value, and sends and stores the IPFS hash value by calling the API corresponding to the service management chain code. The data is then stored in the Hyperledger system, and then the feedback information stored in the Hyperledger system is stored according to the IPFS hash value. The bureau data storage service interface is called according to the feedback information, and the bureau data file is sent to the target database for storage according to the service management information. Finally, the service management chain code is called to synchronously load the bureau data file stored in the target database into the target business system to complete the synchronization of bureau data and improve the efficiency of bureau data synchronization. The isolation mechanism formed by the multi-channel chain code of the Hyperledger system is used to ensure the reliability of the bureau data synchronization process of each access system, and avoid the inaccuracy and differences in the synchronization of bureau data due to multiple upload channels and untimely synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0035] Figure 1 It is the underlying bureau data synchronization system architecture of this application;

[0036] Figure 2 It is a synchronization flow diagram of a data synchronization method provided by an embodiment of the present application;

[0037] Figure 3 It is a query flow diagram of a data synchronization method provided by another embodiment of the present application;

[0038] Figure 4 It is a structural diagram of a device for data synchronization applied to a clearing and settlement business system provided in yet another embodiment of the present application;

[0039] Figure 5is a structural diagram of a device for data synchronization applied to a hyperledger system provided by yet another embodiment of the present application;

[0040] Figure 6 It is a structural diagram of a device for data synchronization applied to an IPFS system provided by another embodiment of the present application;

[0041] Figure 7 A flowchart of data synchronization storage provided by another embodiment of the present application;

[0042] Figure 8 is a flowchart of data query provided by another embodiment of the present application;

[0043] Fig. 9 A structural schematic diagram of a data synchronization device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0044] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0045] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0046] The following are the meanings or full English and Chinese names of some professional terms:

[0047] Hyperledger Fabric ledger, which is the hyperledger system referred to in this application;

[0048] IPFS system, namely InterPlanetary File System, interstellar file system.

[0049] As pointed out in the background technology section, from the perspective of technical implementation and data security, the existing technology still has the following specific problems:

[0050] 1) The process of publishing bureau data from the communication website to the first-level system of the entire network involves the interaction of multiple systems, and there are multiple ways to publish bureau data, which makes the operation more complicated;

[0051] 2) Bureau data files exported from communication websites or other system databases include txt and csv text files. Transferring files via FTP or manually may cause data errors, data consistency, and metadata tracing difficulties, which is not conducive to the maintenance and audit of bureau data.

[0052] 3) After receiving the bureau data, the first-level system of the entire network synchronizes the bureau data files to the clearing and settlement business system. The storage methods are diverse, the operations are cumbersome, and there are many circulation links. The bureau data changes frequently, and there is a situation where the bureau data synchronization is not timely, resulting in bureau data verification errors or information differences.

[0053] The first-level system of the entire network refers to the international bureau, intelligent network, first-level BOSS (Business & Operation Support System, BOSS, i.e. business operation support system), communication website, content billing system, VGOP (Value-added Service General Operation Platform, value-added service comprehensive operation platform) and other systems. After receiving the bureau data files, these first-level systems will enter the bureau data into the database as shown in the table, and will regularly audit the bureau data to ensure the accuracy of subsequent system call record processing.

[0054] This application creates a member for each system in the above-mentioned first-level system of the entire network, and adds each member to the corresponding organization to form an alliance chain containing multiple member organizations. Based on the alliance chain, multi-channel messages are supported on the consensus service, and N channels are created, so that the peer nodes of different channels can maintain the corresponding ledgers and status of each channel, and realize the safe isolation of bureau data. The first-level system of the entire network can upload bureau data text files in real time, or edit service management information, such as database IP, port, and library table information. The bureau data text file and / or service management information is encrypted by smart contracts to form a ledger and then uploaded to the blockchain. In the process of querying and auditing bureau data, members in each channel can call smart contracts in real time to query, add, delete, modify, and query the data information and all records on the chain, so as to ensure data security, transparency, traceability, and non-tamperability, so as to meet personalized configuration, and the service management information is traceable and safe and reliable.

[0055] Figure 1The architecture of the underlying bureau data synchronization system of this application is shown as follows: Figure 1 As shown in the figure, the bureau data synchronization system architecture is divided into five layers, and the description of each layer is as follows:

[0056] 1) Presentation layer: The presentation layer is the client of the B / S architecture, and is mainly responsible for providing a friendly interactive interface for the first-level system of the entire network. The first-level system of the entire network can perform business operations on this interface, such as logging in and registering, maintaining system information, and querying the local data link.

[0057] 2) Business layer: The business layer is the core layer of the blockchain-based bureau data synchronization system architecture, which is mainly responsible for the logical implementation of the business functions of the entire system. The business functions mainly include service information management, bureau data chain application, bureau data chain management, bureau data chain query, etc. The service information management example includes the name of the first-level system of the whole network, database IP, port, and library table information for the application intervention, so as to provide target data information for the subsequent bureau data chain execution bureau data synchronization.

[0058] 3) Interface layer: The interface layer is the hub between the business layer and the chain code layer and storage layer below. It is mainly responsible for the interaction process of the bureau data in each layer. This layer includes the chain code call interface, IPFS interaction interface and database interaction interface. The chain code call interface encapsulates the chain code operations of the business layer on the chain code layer through the SDK, such as the installation, instantiation, upgrade, and call of the chain code, and establishes a connection with the chain code through the gRPC remote call, thereby realizing the remote call of the chain code service. The IPFS interaction interface mainly realizes the data interaction between the business layer and the IPFS system, and undertakes the task of operating large memory bureau data. The database interaction interface is mainly responsible for importing bureau data files into the IPFS system, and executing the operation of synchronizing bureau data to the first-level system database of the entire network after the bureau data is uploaded to the blockchain.

[0059] 4) Chaincode layer: The chaincode layer mainly implements the functions of uploading local data to the chain and querying local data on the chain. It is the hub between the chaincode call interface and the blockchain ledger data. Chaincode is a smart contract, which is a code segment.

[0060] Among them, the service chain code mainly provides the query of the bureau data information on the chain by the first-level system of the whole network; the system chain code mainly provides the query and maintenance of the bureau data submitted by the first-level system of the whole network. The service chain code provides the query, addition, deletion and modification of service management information. Users upload bureau data text files in real time and edit service management information, such as database IP, port, and library table information. Because the bureau data file name is unique and the bureau data file name ends with a timestamp, such as SWCH_ID_CD_NDB1_20200103.txt, the prefix SWCH_ID_CD_NDB1 is extracted as the account, and the service management information is used as the account book information. After being encrypted by the smart contract to form an account book, it is uploaded to the blockchain. The account book information of the service management information can be obtained through the blockchain account query. The database IP, port, database table and bureau data file name in the service management information are taken as json strings, and the string is hashed to obtain a unique hash value. Therefore, a bureau data file corresponds to a unique hash value, which is the subsequent IPFS hash value.

[0061] The system chain code mainly provides local data management and data maintenance stored in the blockchain ledger. It mainly uses the IPFS hash value to query, add, delete and modify local data and related information stored on the blockchain.

[0062] 5) Storage layer: As the bottom layer of the entire system, the storage layer is mainly responsible for persisting the bureau data information. This layer consists of three parts, namely blockchain, IPFS system and database. The database is mainly used for the synchronization of the bureau data files of the first-level system of the entire network after they are uploaded to the chain. The IPFS system is mainly used for the bureau data files of the village school, and returns the unique hash value of the bureau data file information to the blockchain as the index of the bureau data file. This way of storing bureau data can greatly reduce the storage pressure of the blockchain node. At the same time, the IPFS system is a decentralized distributed storage system with safe and reliable characteristics, so this storage method not only reasonably allocates the storage space of the system, but also ensures the security of the bureau data files. Blockchain, as the core of storage, uses Hyperledger Fabric as the underlying chain. Its multi-channel mechanism and CA certification can protect sensitive data of the system and improve security.

[0063] In order to solve the problems of the prior art, the embodiment of the present application provides a method for data synchronization. The method for data synchronization provided by the embodiment of the present application is first introduced below.

[0064] Figure 2 A schematic diagram of a data synchronization method according to an embodiment of the present application is shown. Figure 2As shown, when a user initiates a request for a bureau data synchronization service in a client interface, the method applied to the clearing and settlement service system includes:

[0065] S1. The clearing and settlement service system receives a bureau data synchronization service request initiated by a client, where the bureau data synchronization service request includes a bureau data file name;

[0066] The client here may be a mobile client or a client displayed on a display, for initiating a request for an office data synchronization service.

[0067] S2. The clearing and settlement business system responds to the bureau data synchronization business request, obtains the service management information matching the prefix information of the bureau data file name from the hyperledger system by calling the application interface API corresponding to the service management chain code, and returns the service management information to the clearing and settlement business system by calling the service management chain code;

[0068] The service management chain code obtains the service management information by matching the prefix of the local data file name and parses it. The service management information here is exemplified by the first-level system name of the entire network, database IP, port, and library table information.

[0069] S3. After obtaining the service management information, the clearing and settlement business system sends the bureau data file name and service management information to the IPFS system by calling the bureau data storage service interface, so that the IPFS system can obtain the IPFS hash value based on the bureau data file name and service management information.

[0070] S4. The clearing and settlement business system receives the IPFS hash value sent by the IPFS system;

[0071] S5. The clearing and settlement business system calls the API corresponding to the service management chain code and sends the IPFS hash value and the local data file information corresponding to the IPFS hash value to the Hyperledger system, so that the Hyperledger system can save the local data file information and IPFS hash value.

[0072] S6. The clearing and settlement business system receives feedback information from the Hyperledger system;

[0073] The feedback information here is the feedback information of whether the IPFS hash value is saved successfully or failed. If the saving is successful, it will facilitate the next step of local data storage. If the saving fails, the storage of local data will be suspended.

[0074] S7, the clearing and settlement business system responds to the feedback information of successful IPFS hash value storage sent by the hyperledger, and sends the bureau data file to the target database according to the service management information by calling the bureau data storage service interface;

[0075] S8. The clearing and settlement business system synchronously loads the target data's bureau data file into the target business system by calling the service management chain code to complete data synchronization.

[0076] The target business system here can be one or more of the first-level systems in the entire network.

[0077] The data synchronization method of the embodiment of the present application receives a bureau data synchronization service request initiated by a client, calls an application interface API corresponding to the service management chain code in response to the bureau data synchronization service request, obtains service management information matching the prefix information of the bureau data file name from the hyperledger system, and sends the bureau data file name and service management information to the IPFS system by calling the bureau data storage service interface, obtains a unique IPFS hash value corresponding to the bureau data by the IPFS system according to the bureau data file name and service management information, and then returns the IPFS hash value, sends and stores the IPFS hash value to the hyperledger system by calling the API corresponding to the service management chain code, then calls the bureau data storage service interface according to the feedback information stored in the hyperledger system according to the IPFS hash value, and sends the bureau data file to the target database for storage, and finally calls the service management chain code to synchronously load the bureau data file stored in the target database into the target business system to complete the synchronization of the bureau data and improve the efficiency of the bureau data synchronization; and uses the isolation mechanism formed by the multi-channel chain code of the hyperledger system to ensure the reliability of the bureau data synchronization process of each access system, and avoid the inaccuracy and differences in the synchronization of the bureau data due to multiple upload paths and untimely synchronization.

[0078] The data synchronization method of the embodiment of the present application adopts blockchain technology to realize the synchronization of bureau data in the clearing and settlement business system, combines the hyperledger system, IPFS system, and database technology, and provides a trustworthy, secure and traceable bureau data synchronization method for the first-level system of the entire network.

[0079] Bureau data mainly refers to bureau data generated by the pre-processing of bills in the clearing and settlement business system, file sorting and distribution, and settlement and allocation. Bill pre-processing mainly involves file and format verification; file sorting and distribution involves user attribution and long-distance area code judgment; settlement and allocation involves settlement rules and allocation ratios.

[0080] In one embodiment, the data synchronization method of the embodiment of the present application further includes:

[0081] S9. The clearing and settlement business system sends information to the client indicating that the synchronization of bureau data is completed.

[0082] To complete the interaction of bureau data synchronization processing, the processing results of bureau data synchronization are displayed on the client.

[0083] In one embodiment, the data synchronization method of the embodiment of the present application further includes:

[0084] S200. The clearing and settlement business system responds to the bureau data synchronization business request and obtains the target database information corresponding to the bureau data file name from the hyperledger system by calling the application interface API corresponding to the service management chain code, so as to subsequently store the bureau data file corresponding to the IPFS hash value into the target database according to the target database information.

[0085] In one embodiment, if Figure 2 As shown, in step S7, the clearing and settlement business system responds to the feedback information of successful saving of the IPFS hash value sent by the hyperledger, and sends the bureau data file to the target database by calling the bureau data storage service interface, and also includes:

[0086] S701. The clearing and settlement business system generates operation information for synchronizing bureau data files by calling the service management chain code; for example, the operation information here includes information for uploading bureau data.

[0087] S702, the clearing and settlement business system sends the operation information to the hyperledger system, so that the hyperledger system stores the operation information, and returns the result to the client for display, so that the user can obtain the corresponding result.

[0088] The data synchronization method of the embodiment of the present application, while storing the bureau data into the target database, generates operation information for processing the bureau data and stores it in the hyperledger system, so as to facilitate the query of the metadata, original source, processing information and processing process of the bureau data and the processor, and to conduct data audit.

[0089] When you need to query the original source of local data, you can query it based on the unique IPFS hash value corresponding to the local data. Figure 3 As shown, the data synchronization method of the embodiment of the present application also includes:

[0090] S10, the clearing and settlement service system receives a request for a bureau data query service initiated by the client, where the request for the bureau data query service includes a bureau data file name;

[0091] S11. The clearing and settlement business system responds to the request of the bureau data query business and obtains the IPFS hash value corresponding to the bureau data file name from the hyperledger system by calling the application interface API corresponding to the service management chain code;

[0092] S12. The clearing and settlement business system queries the IPFS system for the bureau data file corresponding to the IPFS hash value by calling the bureau data query service interface. The IPFS system returns the bureau data file corresponding to the IPFS hash value to the clearing and settlement business system.

[0093] S13. The clearing and settlement business system receives the bureau data file sent by the IPFS system;

[0094] S14. Send the local data file to the client.

[0095] The data synchronization method of the embodiment of the present application completes the compilation and upload of the service information of the clearing and settlement business system to the hyperledger system by calling the service management chain code, thereby improving the efficiency of the synchronization of the bureau data. At the same time, after the bureau data is stored in the IPFS system based on the service management chain code, the bureau data is converted into metadata and transmitted to the blockchain, i.e., the hyperledger system, and the unique IPFS hash value generated by the operation is stored in the hyperledger system as a query index for the bureau data file. Based on the service management chain code, the corresponding original bureau data can be queried and viewed in real time through the IPFS hash value, thereby realizing the rapid query and audit of the bureau data.

[0096] When the bureau data needs to be modified, added or deleted, you can first query based on the IPFS hash value of the bureau data to obtain the bureau data, and then add, delete or modify the obtained bureau data to complete the maintenance of the bureau data, and then continue to synchronize the data according to the data synchronization method of the original bureau data to facilitate the subsequent traceability and audit of the bureau data.

[0097] Specifically, in one embodiment, the data synchronization method of the embodiment of the present application further includes:

[0098] S15, receiving an edit request sent by the client, the edit request including a bureau data file name and information for editing the bureau data file, the edit information including adding, deleting or modifying;

[0099] S16. In response to the edit request, the IPFS hash value corresponding to the bureau data file name is obtained from the Hyperledger system by calling the application interface API corresponding to the service management chain code;

[0100] S17. By calling the local data query service interface, the local data corresponding to the IPFS hash value is queried from the IPFS system, and the local data is edited based on the editing information.

[0101] The data synchronization method of the embodiment of the present application first receives the on-chain management request for bureau data sent by the client, and calls the application interface API corresponding to the service management chain code in response to the on-chain management request for bureau data, obtains the IPFS hash value corresponding to the bureau data file name from the hyperledger system, and queries the bureau data corresponding to the IPFS hash value from the IPFS system by calling the bureau data query service interface, adds, deletes or modifies the bureau data based on the on-chain management request for bureau data, and completes the maintenance of bureau data. Then, the added, deleted or modified bureau data is synchronized again according to the data synchronization method, so as to query and audit the changes and processing operation information of the bureau data.

[0102] The above is a method for data synchronization. The following is an explanation of a device for data synchronization.

[0103] Another embodiment of the present application provides a data synchronization device 2 applied to a clearing and settlement service system, such as Figure 4 As shown, including:

[0104] The receiving module 21 is used to receive a synchronization service request for local data initiated by the client 1, where the synchronization service request includes a local data file name;

[0105] The acquisition module 22 is used to respond to the bureau data synchronization service request and obtain the service management information matching the prefix information of the required bureau data file name from the hyperledger system by calling the application interface API corresponding to the service management chain code;

[0106] The sending module 23 is used to send the local data file name and service management information to the IPFS system by calling the local data storage service interface, so that the IPFS system can obtain the IPFS hash value according to the local data file name and service management information calculation;

[0107] The receiving module 21 is also used to receive the IPFS hash value sent by the IPFS system;

[0108] The sending module 22 is also used to call the API corresponding to the service management chain code and send the IPFS hash value and the local data file information corresponding to the IPFS hash value to the hyperledger system, so that the hyperledger system can save the local data file information and the IPFS hash value;

[0109] The receiving module 21 is also used to receive feedback information from the hyperledger system;

[0110] The sending module 22 is also used to respond to the feedback information and send the bureau data file to the target database according to the service management information by calling the bureau data storage service interface;

[0111] The loading module 24 is used to synchronously load the local data file of the target database into the target business system by calling the service management chain code to complete data synchronization.

[0112] The data synchronization device applied to the clearing and settlement business system of the embodiment of the present application receives the bureau data synchronization business request sent by the client through the receiving module, responds to the bureau data synchronization business request through the acquisition module and calls the application interface API corresponding to the service management chain code to obtain the service management information matching the prefix information of the bureau data file name from the super account system, and the sending module sends the obtained service management information and bureau data file name to the IPFS system, and the IPFS system obtains the unique IPFS hash value corresponding to the bureau data file according to the service management information and the bureau data file name operation, returns the IPFS hash value and stores it in the super account system of the receiving module, and then stores the bureau data file corresponding to the IPFS hash value according to the service management information according to the IPFS hash value storage result fed back by the super account system in the target database, and then the loading module calls the service management chain code to load the bureau data corresponding to the IPFS hash value in the target database into the target business system synchronously, completing the data synchronization; the organization members in the clearing and settlement business management system can obtain the IPFS hash value in the super account system through the service management chain code, and view and process the bureau data file information in real time. The entire interactive process of uploading and storing the entire bureau data is recorded on the blockchain, realizing the unified and transparent processing of bureau data information.

[0113] In one embodiment, the service management information includes target database information; the sending module is specifically used to send the local data file to the target database corresponding to the target database information by calling the local data storage service interface in response to the feedback information.

[0114] In one embodiment, the data synchronization device further includes a generation module.

[0115] A generation module, used to generate operation information for synchronization of bureau data files;

[0116] The sending module is also used to send operation information to the hyperledger system so that the hyperledger system can store the operation information.

[0117] In one embodiment, the data synchronization device further includes a query module.

[0118] The receiving module is also used to receive a request for a bureau data query service sent by a client, the request including a bureau data file name;

[0119] The acquisition module is also used to respond to the request of the bureau data query service, and obtain the IPFS hash value corresponding to the bureau data file name from the hyperledger system by calling the application interface API corresponding to the service management chain code;

[0120] The query module is used to query the local data file corresponding to the IPFS hash value from the IPFS system by calling the local data query service interface;

[0121] The receiving module is also used to receive local data files sent by the IPFS system;

[0122] The sending module is also used to send the local data file to the client.

[0123] In one embodiment, the data synchronization device further includes:

[0124] The receiving module is further used to receive an editing request sent by a client, the editing request includes a local data file name and information about editing the local data file, the editing information includes adding, deleting or modifying;

[0125] The acquisition module is also used to respond to the edit request and obtain the IPFS hash value corresponding to the bureau data file name from the hyperledger system by calling the application interface API corresponding to the service management chain code;

[0126] The query module is also used to query the local data corresponding to the IPFS hash value from the IPFS system through the local data query service interface, and edit the local data based on the editing information.

[0127] In one embodiment, the sending module is further used to send information indicating that the synchronization of the local data is completed to the client.

[0128] The embodiment of the present application is applied to the device for data synchronization of the clearing and settlement business system, by synchronously writing the service management information and bureau data files corresponding to the clearing and settlement business system into the blockchain, that is, the hyperledger system, to form a service management chain code that can be checked by consensus of all parties, and then designing the service management chain code to automatically execute the operation of synchronizing bureau data into the warehouse, which has the advantages of traceable and irreversible processing process, high efficiency and security. When members of the clearing and settlement business system have questions about the bureau data synchronization data, they can initiate the bureau data audit process, and the hyperledger system completes the record of all the processing processes of the bureau data, which can quickly locate the problem and avoid the problems of data mismodification, data consistency and metadata traceability existing in the existing bureau data synchronization.

[0129] Figure 4 Each module in the data synchronization device of the clearing and settlement business system shown in the figure has the function of realizing Figure 2 and Figure 3 In the data synchronization method shown, the clearing and settlement business system executes each method / step and achieves its corresponding technical effect. For the sake of concise description, it will not be repeated here.

[0130] In one embodiment, if Figure 5As shown, the data synchronization device 3 applied to the hyperledger system in the embodiment of the present application includes:

[0131] The sending module 31 is used to send service management information matching the prefix information of the bureau data file name to the clearing and settlement business system when receiving the bureau data synchronization business request sent by the clearing and settlement business system by calling the application interface API corresponding to the service management chain code, so that the clearing and settlement business system can send the bureau data and service management information corresponding to the bureau data file name to the IPFS system through the bureau data storage service interface, so that the IPFS system can generate an IPFS hash value according to the bureau data file name and service management information calculation;

[0132] The receiving module 32 is used to receive the bureau data file information and IPFS hash value corresponding to the IPFS hash value sent by the clearing and settlement business system by calling the API corresponding to the service management chain code when the clearing and settlement business system receives the IPFS hash value sent by the IPFS system;

[0133] Storage module 33, used to store the IPFS hash value;

[0134] The sending module 31 is also used to send feedback information to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data file to the target database by calling the bureau data warehousing service interface, so that the clearing and settlement business system can synchronously load the bureau data file of the target database into the target business system by calling the service management chain code to complete data synchronization.

[0135] Figure 5 Each module in the data synchronization device of the hyperledger system shown has the function of implementing Figure 2 and Figure 3 The various methods / steps executed by the hyperledger system in the data synchronization method shown and the corresponding technical effects achieved are not described here for the sake of brevity.

[0136] In one embodiment, if Figure 6 As shown, the device 4 for data synchronization applied to the IPFS system includes:

[0137] The receiving module 41 is used to receive the service management information and bureau data file name sent by the clearing and settlement business system by calling the warehousing service interface corresponding to the service management chain code;

[0138] The operation module 42 is used to generate an IPFS hash value corresponding to the bureau data file name based on the service management information and bureau data file name sent by the clearing and settlement business system through calling the warehousing service interface corresponding to the service management chain code;

[0139] The sending module 43 is used to send the IPFS hash value to the clearing and settlement business system through the service management chain code calling the corresponding warehousing service interface, so that the clearing and settlement business system can store the IPFS hash value into the hyperledger system by calling the API corresponding to the service management chain code, and feedback information to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data file to the target database by calling the bureau data warehousing service interface according to the feedback information, so that the clearing and settlement business system can synchronously load the bureau data file of the target database into the target business system by calling the service management chain code to complete data synchronization.

[0140] Figure 6 Each module in the data synchronization device of the IPFS system shown has the following functions: Figure 2 and Figure 3 The various methods / steps executed by the hyperledger system in the data synchronization method shown and the corresponding technical effects achieved are not described here for the sake of brevity.

[0141] The data synchronization device of the embodiment of the present application can improve the accuracy of call record processing and the traceability of bureau data information in the clearing and settlement business system, which is beneficial to bureau data maintenance and bureau data auditing, and can help build a unified bureau data management and synchronization platform in the clearing and settlement field, eliminate the differentiated warehousing mechanism of bureau data, and reduce the cost of bureau data synchronization.

[0142] In order to more clearly illustrate the technical solution of the present application, the technical solution of the present application is described in detail below through the implementation examples of the synchronous storage process of bureau data and the bureau data query process.

[0143] In one embodiment, Figure 7 As shown, this embodiment stores the bureau data information data in the hyperledger system, IPFS system and database respectively, where the database is the target database required to be stored in the first-level system of the entire network. For members joining the channel, the target data source and library table information can be customized. The bureau data is finally loaded synchronously into the target database, while the bureau data file information is stored in the hyperledger and IPFS systems. Among them, the bureau data information stored in the IPFS system is mainly the full storage of bureau data, including the data information of each first-level system of the entire network, which is mainly based on blockchain technology for subsequent bureau data tracing and data synchronization verification, and the database refers to the database of each first-level system of the entire network, which mainly loads synchronized specific data for subsequent business processing of each system.

[0144] like Figure 7As shown, in the bureau data synchronization storage process, the user initiates an HTTP request for the bureau data synchronization service on the client interface, and the bureau data synchronization service request includes the bureau data file name; the Java web service of the clearing and settlement business system receives and responds to the bureau data synchronization service HTTP request initiated by the client, and obtains the service management information matching the prefix information of the bureau data file name from the hyperledger system by calling the application interface API corresponding to the service management chain code, and parses it to extract the bureau data information such as database IP, port and library table, target database information, etc.; among which, the target database information exists in the service management information, and the service management information mainly includes database IP, port, and library table.

[0145] After receiving the service management information, the Java web service sends the bureau data file name and service management information to the IPFS system by calling the bureau data storage service interface; after receiving the bureau data file name and service management information sent by the Java web service, the IPFS system stores the bureau data in the IPFS system; the IPFS system concatenates the bureau data file name and service management information into a string, performs a hash operation to obtain a unique IPFS hash value (i.e., as metadata) and returns it to the Java web service, and the bureau data can be queried in the blockchain account book based on the IPFS hash value;

[0146] Specifically, take the switch and domestic long-distance area code table file as the bureau data file (SWCH_ID_CD_NDB1_20200103.txt) synchronized to the VoLTE roaming settlement system (destination database address 10.248.9.33:3306, database table name MCBDBA.SWCH_ID_ID_CD) as the national first-level system as an example, extract the information and splice it into a string and perform a hash operation, HASH (10.248.9.33:3306+MCBDBA.SWCH_ID_ID_CD+SWCH_ID_CD_NDB1_20200103.txt), get a unique hash value and return it to the Java web service, that is, as the IPFS hash value.

[0147] After receiving the IPFS hash value sent by the IPFS system, the Java web service calls the API corresponding to the service management chain code through fabric-sdk-java, and stores this IPFS hash value in the Hyperledger system; at this time, the name of the bureau data text file is used as the account, for example: SWCH_ID_CD_NDB1_20200103.txt, and the IPFS hash value is used as the ledger;

[0148] After receiving the IPFS hash value storage feedback result from the Hyperledger system, the Java web service sends the local data to the target database for storage by calling the storage service interface according to the target database information; at the same time, it generates the operation information of the local data file synchronization and sends the operation information to the Hyperledger system for storage; and returns the storage result to the Java web service;

[0149] By calling the application interface API corresponding to the service management chain code, the bureau data is synchronized to the target business system, the bureau data synchronization is completed, and the synchronization results are returned to the service management chain code, Java web service, and client layer by layer, and the data synchronization results are displayed on the client. The user initiates an HTTP request for the bureau data synchronization service on the client interface, and the service management information on the blockchain is queried synchronously. The corresponding service management information is obtained from the blockchain based on the bureau data file name prefix as the account.

[0150] In another embodiment, Figure 8 As shown, the user initiates an HTTP request for a designated bureau data query service on the client interface, and the request includes the bureau data file name;

[0151] After receiving the request, the Java web service responds to the request of the designated bureau data query service by calling the corresponding service management chain code through fabric-sdk-java. The chain code then calls the corresponding API interface of the bureau data chain code query, and uses the bureau data file name that initiates the query as the account to query and obtain the IPFS hash value corresponding to the bureau data file name from the Hyperledger system. Then the IPFS hash value is returned to the Java web service layer by layer.

[0152] After receiving the IPFS hash value returned by the IPFS system, the Java web service queries the local data file corresponding to the IPFS hash value from the IPFS system by calling the local data query service interface. The IPFS system returns the local data file to the Java web service; the Java web service receives the local data file sent by the IPFS system and sends the local data file to the client; finally, the user queries and obtains the specified local data on the client.

[0153] This application is dedicated to establishing a bureau data synchronization platform based on blockchain technology, which can be applied to the field of clearing and settlement, and performs several management and maintenance on the bureau data synchronization loading process. Subsequently, based on this application, the bureau data of the first-level processing system of the clearing and settlement network can be sorted, designed, and developed to build a bureau data synchronization platform that is secure, transparent, traceable, and cannot be tampered with.

[0154] Fig. 9 FIG. 1 is a schematic diagram showing the hardware structure of a data synchronization device provided in an embodiment of the present application. Fig. 9As shown, the data synchronization device may include a processor 801 and a memory 802 storing computer program instructions. Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0155] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.

[0156] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0157] The processor 801 implements any one of the data synchronization methods in the above embodiments by reading and executing computer program instructions stored in the memory 802 .

[0158] In one example, the data synchronization device may further include a communication interface 803 and a bus 810. Figure 5 As shown, the processor 801, the memory 802, and the communication interface 803 are connected and communicate with each other via a bus 810. The communication interface 803 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present application.

[0159] Bus 810 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 810 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0160] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0161] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0162] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or they can be different from the order in the embodiment, or several steps can be performed simultaneously. The above reference is made to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the functions / actions specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart, and combinations of boxes in the block diagram and / or flowchart, can also be implemented by dedicated hardware that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0163] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for data synchronization, characterized in that: Applied to a clearing and settlement business system, the method comprises: Receiving a bureau data synchronization service request initiated by a client, wherein the bureau data synchronization service request includes a bureau data file name; In response to the bureau data synchronization service request, the service management information matching the prefix information of the bureau data file name is obtained from the hyperledger system by calling the application interface API corresponding to the service management chain code; Send the bureau data file name and the service management information to the IPFS system by calling the bureau data storage service interface, so that the IPFS system can obtain the IPFS hash value according to the bureau data file name and the service management information; Receiving the IPFS hash value sent by the IPFS system; By calling the API corresponding to the service management chain code, the IPFS hash value and the local data file information corresponding to the IPFS hash value are sent to the hyperledger system, so that the hyperledger system can save the local data file information and the IPFS hash value; Receiving feedback information from the hyperledger system; In response to the feedback information, the bureau data file is sent to the target database according to the service management information by calling the bureau data storage service interface; The bureau data file of the target database is synchronously loaded into the target business system by calling the service management chain code to complete data synchronization.

2. The method according to claim 1, characterized in that The service management information includes target database information, and the response to the feedback information, by calling the bureau data storage service interface, sends the bureau data file to the target database according to the service management information, including: In response to the feedback information, the local data file is sent to the target database corresponding to the target database information by calling the local data warehousing service interface.

3. The method according to claim 1, characterized in that Also includes: Generate operation information for synchronization of bureau data files; The operation information is sent to the hyperledger system so that the hyperledger system stores the operation information.

4. The method according to claim 1, characterized in that: Also includes: Receiving a request for a bureau data query service initiated by a client, wherein the request for the bureau data query service includes a bureau data file name; In response to the request of the bureau data query service, the IPFS hash value corresponding to the bureau data file name is obtained from the hyperledger system by calling the application interface API corresponding to the service management chain code; By calling the local data query service interface, query the local data file corresponding to the IPFS hash value from the IPFS system; Receiving the local data file sent by the IPFS system; The local data file is sent to the client.

5. The method according to claim 1, characterized in that The method further comprises: Receiving an editing request sent by a client, the editing request including a local data file name and information for editing the local data file, the editing information including adding, deleting or modifying; In response to the edit request, the IPFS hash value corresponding to the bureau data file name is obtained from the hyperledger system by calling the application interface API corresponding to the service management chain code; By calling the local data query service interface, the local data corresponding to the IPFS hash value is queried from the IPFS system, and the local data is edited based on the editing information.

6. The method according to claim 1, characterized in that The method further comprises: Send the information that the bureau data synchronization is completed to the client.

7. A method for data synchronization, characterized in that: Applied to the Hyperledger system, including: When receiving a bureau data synchronization service request sent by the clearing and settlement business system by calling the application interface API corresponding to the service management chain code, the service management information matching the prefix information of the bureau data file name is sent to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data corresponding to the bureau data file name and the service management information to the IPFS system through the bureau data storage service interface, so that the IPFS system can generate an IPFS hash value according to the bureau data file name and the service management information; In the case where the clearing and settlement business system receives the IPFS hash value sent by the IPFS system, receiving the bureau data file information and IPFS hash value corresponding to the IPFS hash value sent by the clearing and settlement business system by calling the API corresponding to the service management chain code; Save the bureau data file and IPFS hash value, and send feedback information to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data file to the target database according to the service management information by calling the bureau data storage service interface; In the clearing and settlement business system, the bureau data file of the target database is synchronously loaded into the target business system by calling the service management chain code to complete data synchronization.

8. A method for data synchronization, characterized in that: Applied to the IPFS system, the method includes: Upon receiving the service management information and bureau data file name sent by the clearing and settlement business system by calling the warehousing service interface corresponding to the service management chain code, the IPFS hash value corresponding to the bureau data file name is generated by calculation; The IPFS hash value is sent to the clearing and settlement business system through the service management chain code calling the corresponding warehousing service interface, so that the clearing and settlement business system can store the IPFS hash value in the hyperledger system by calling the API corresponding to the service management chain code, and feedback information to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data file to the target database according to the service management information by calling the bureau data warehousing service interface according to the feedback information, so that the clearing and settlement business system can synchronously load the bureau data file of the target database into the target business system by calling the service management chain code to complete data synchronization.

9. A data synchronization device, characterized in that: Applied to a clearing and settlement business system, the device comprises: A receiving module, used to receive a synchronization service request for local data initiated by a client, wherein the synchronization service request includes a local data file name; An acquisition module, configured to respond to the bureau data synchronization service request and acquire service management information matching the prefix information of the bureau data file name from the hyperledger system by calling an application interface API corresponding to the service management chain code; A sending module, used to send the bureau data file name and the service management information to the IPFS system by calling the bureau data storage service interface, so that the IPFS system can obtain the IPFS hash value according to the bureau data file name and the service management information; The receiving module is further used to receive the IPFS hash value sent by the IPFS system; The sending module is further used to call the API corresponding to the service management chain code and send the IPFS hash value and the local data file information corresponding to the IPFS hash value to the hyperledger system, so that the hyperledger system can save the local data file information and the IPFS hash value; The receiving module is further used to receive feedback information from the hyperledger system; The sending module is further used to respond to the feedback information and send the bureau data file to the target database according to the service management information by calling the bureau data storage service interface; The loading module is used to synchronously load the bureau data file of the target database into the target business system by calling the service management chain code to complete data synchronization.

10. A data synchronization device, characterized in that: Applied to the Hyperledger system, including: A sending module is used to send service management information matching the prefix information of the bureau data file name to the clearing and settlement business system when receiving a bureau data synchronization business request sent by the clearing and settlement business system by calling the application interface API corresponding to the service management chain code, so that the clearing and settlement business system can send the bureau data corresponding to the bureau data file name and the service management information to the IPFS system through the bureau data storage service interface, so that the IPFS system can generate an IPFS hash value according to the bureau data file name and the service management information; A receiving module, configured to receive, when the clearing and settlement business system receives the IPFS hash value sent by the IPFS system, the bureau data file information and the IPFS hash value corresponding to the IPFS hash value sent by the clearing and settlement business system by calling the API corresponding to the service management chain code; A storage module, used to store the IPFS hash value; The sending module is also used to send feedback information to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data file to the target database according to the service management information by calling the bureau data warehousing service interface, so that the clearing and settlement business system can synchronously load the bureau data file of the target database into the target business system by calling the service management chain code to complete data synchronization.

11. A data synchronization device, characterized in that: Applied to IPFS system, including: The receiving module is used to receive the service management information and bureau data file name sent by the clearing and settlement business system by calling the warehousing service interface corresponding to the service management chain code; The calculation module is used to calculate and generate the IPFS hash value corresponding to the bureau data file name based on the service management information and bureau data file name sent by the clearing and settlement business system through calling the warehousing service interface corresponding to the service management chain code; The sending module is used to send the IPFS hash value to the clearing and settlement business system by calling the corresponding warehousing service interface of the service management chain code, so that the clearing and settlement business system can store the IPFS hash value in the hyperledger system by calling the API corresponding to the service management chain code, and feedback information to the clearing and settlement business system, so that the clearing and settlement business system can send the bureau data file to the target database according to the service management information by calling the bureau data warehousing service interface according to the feedback information, so that the clearing and settlement business system can synchronously load the bureau data file of the target database into the target business system by calling the service management chain code to complete data synchronization.

12. A data synchronization device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for data synchronization as described in any one of claims 1-8 is implemented.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for data synchronization according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Block chain-based evidence storage method, device and equipment, and medium

    CN111552676A

  • Material assistance traceability system based on Fabric

    CN111967057A