Method and device for transferring business data
Through blockchain service docking, the problem that the transfer and connection platform cannot trace the entire process status when storing transfer and connection records is solved, and the secure transfer and reliability of data is improved, ensuring the immutability of data and traceability of data.
Patent Information
- Application Number
- CN202011384392.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-11-30
AI Technical Summary
The existing transfer and connection platforms cannot trace the entire process status when storing the contact letter status of the transfer and connection record, and there is a risk of data loss or tampering.
By connecting with blockchain services, calling blockchain services to carry out business data chain, the transaction status flow record query and data security transfer are realized, and the smart contract management transfer continuation number and contact letter status mapping relationship is used to ensure the data Improper and traceable.
The full process tracking of transfer and continuation records and the secure transfer of business data are realized, the reliability of the transfer and continuation platform is improved, and the risks of data loss and tampering are avoided.
Smart Images

Figure CN112435027B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for transferring business data. Background Art
[0002] In recent years, the mobility of employees who pay housing provident funds has been increasing, and the number of employees' personal housing provident fund accounts transferred and continued across regions has increased significantly. In order to facilitate cross-provincial employees to handle housing provident fund transfer and continued operations, improve the speed of cross-region transfer and continued operations of housing provident fund personal accounts between provident fund management centers in various places, and unify the channels for handling cross-region transfer and continued operations, the Ministry of Housing and Urban-Rural Development has decided to build a unified national housing provident fund cross-region transfer and continued platform.
[0003] In the prior art, each provident fund center and the transfer and continuation platform usually perform data request and response based on the Transmission Control Protocol (TCP) to realize the transfer of business data. In summary, when storing the contact letter status of the transfer and continuation record, the existing transfer and continuation platform cannot trace the entire process status flow, and there is a risk of data loss or tampering. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for transferring business data, which can solve the problem that the existing method cannot trace the entire process status flow when storing the contact letter status of the transfer continuation record.
[0005] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for transferring service data is provided.
[0006] The method for transferring service data in an embodiment of the present invention includes:
[0007] Receiving a transaction request for transferring business data sent by a request center;
[0008] Calling the blockchain service according to the transaction request to upload the business data to the blockchain to complete the transfer of the business data;
[0009] Receive a response message returned by the blockchain indicating a result of the business data transfer, and send the response message to the request center.
[0010] Optionally, after the step of receiving the transaction request for transferring business data sent by the request center, the method further includes:
[0011] Forwarding the transaction request for transferring business data sent by the request center to the processing center, and receiving a first response message returned by the processing center according to the transaction request, wherein the first response message is related to the status of the contact letter;
[0012] The transaction status recorded in the database is updated according to the contact letter status in the first response message.
[0013] Optionally, the business data includes at least: contact letter data and provident fund account information; the first response message includes at least: transfer and continuation number and contact letter status.
[0014] Optionally, the transaction request includes at least: a transaction code, a function number agreed upon with the provident fund center, a transfer number and an operation record number.
[0015] Optionally, calling a blockchain service according to the transaction request to upload business data to the blockchain to complete the transfer of the business data includes:
[0016] Obtaining a transfer connection number from the transaction request;
[0017] Formatting the transaction code, function number, transfer connection number and operation record number in the transaction request as additional information field data of the transaction;
[0018] According to the transfer connection number obtained by parsing, the additional information field data is transmitted to the designated smart contract of the blockchain to upload the business data to the chain to complete the transfer of the business data.
[0019] Optionally, obtaining the transfer connection number according to the analysis, transmitting the additional information field data to a designated smart contract on the blockchain to upload the business data to the blockchain to complete the transfer of the business data includes:
[0020] Determine whether there is a mapping relationship of the transfer and continuation number in the smart contract, where the mapping relationship is used to represent the relationship between the transfer and continuation number and the contact letter status;
[0021] If it exists, then add a transaction identifier to the mapping relationship of the transfer and continuation number to upload the business data to the chain to complete the transfer of the business data;
[0022] If it does not exist, a mapping relationship of the transfer and continuation number is created in the smart contract to upload the business data to the chain to complete the transfer of the business data.
[0023] Optionally, the transaction code, function number, transfer connection number and operation record number in the transaction request are formatted as additional information field data of the transaction, including:
[0024] The transaction code, function number, transfer connection number and operation record number in the transaction request are formed into a data string, and the data string is converted into a preset data format to serve as additional information field data of the transaction.
[0025] Optionally, the data string is a JSON string, and the preset data format is a hexadecimal format.
[0026] Optionally, after the step of calling a blockchain service according to the transaction request to upload the business data to the blockchain to complete the transfer of the business data, the method further includes:
[0027] Receiving a query request sent by the request center;
[0028] According to the query request, the blockchain interface is called to perform a query down-chain operation, an on-chain transaction identifier of the contact letter corresponding to the query request is obtained, an on-chain transaction corresponding to the on-chain transaction identifier is queried according to the on-chain transaction identifier, and status flow information is obtained according to the additional information field data.
[0029] Optionally, calling a blockchain interface according to the query request to perform a query down-chain operation includes:
[0030] The blockchain interface is called according to the query request, and the query down-chain operation is performed through the smart contract.
[0031] Optionally, before the step of calling a blockchain service according to the transaction request to upload business data to the blockchain to complete the transfer of the business data, the method further includes:
[0032] Determine whether the response returned by the processing center has timed out;
[0033] If yes, a timeout response message is returned to the request center, where the timeout response message is used to indicate that the response returned by the transaction request has timed out;
[0034] Otherwise, execute the step of calling the blockchain service according to the transaction request to upload the business data to the chain to complete the transfer of the business data, and return a response message indicating the response result of the transaction request to the request center.
[0035] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for transferring service data is provided.
[0036] The device for transferring service data according to the embodiment of the present invention includes:
[0037] A first receiving module, used for receiving a transaction request for transferring business data sent by a request center;
[0038] A calling module, used to call the blockchain service according to the transaction request to upload the business data to the chain to complete the transfer of the business data;
[0039] The sending module is used to receive a response message returned by the blockchain indicating the result of the business data transfer, and send the response message to the request center.
[0040] Optionally, the service data transfer device further includes:
[0041] A second receiving module is used to forward the transaction request for transferring business data sent by the request center to the processing center, and receive a first response message returned by the processing center according to the transaction request, wherein the first response message is related to the status of the contact letter;
[0042] An updating module is used to update the transaction status recorded in the database according to the contact letter status in the first response message.
[0043] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0044] The electronic device according to the embodiment of the present invention comprises:
[0045] one or more processors;
[0046] a storage device for storing one or more programs,
[0047] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0048] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0049] The computer-readable medium of the embodiment of the present invention stores a computer program, and when the program is executed by a processor, the method described above is implemented.
[0050] One embodiment of the above invention has the following advantages or beneficial effects:
[0051] In an embodiment of the present invention, by connecting the transfer and continuation platform with the blockchain service, the transfer and continuation records can be uploaded to the chain, and the transaction status flow record query can be performed. Since the blockchain has the advantages of data that cannot be tampered with and is traceable, the full process tracking of the transfer and continuation records and the safe transfer of the transfer and continuation business data can be achieved, thereby improving the reliability of the transfer and continuation platform.
[0052] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0054] Figure 1 is a flowchart of a method for transferring service data according to a first embodiment of the present invention;
[0055] Figure 2 is a flow chart of a method for transferring service data according to a second embodiment of the present invention;
[0056] Figure 3 is a flowchart of a downlink query process according to an embodiment of the present invention;
[0057] Figure 4 It is a flowchart of the transaction on-chain process of an embodiment of the present invention;
[0058] Figure 5 is a schematic diagram of modules of a device for transferring service data according to a first embodiment of the present invention;
[0059] Figure 6 is a module diagram of a device for transferring service data according to a second embodiment of the present invention;
[0060] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0061] Figure 8 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0063] In order to solve the problem that the existing transfer and continuation platform cannot trace the whole process status flow when storing the contact letter status of the transfer and continuation record, wherein the contact letter status can be understood as the record of the provident fund inter-regional transfer and continuation. An embodiment of the present invention provides a method for transferring business data, and the execution subject of the method for transferring business data is a transfer and continuation platform. Figure 1 FIG. 1 is a flow chart of a method for transferring service data according to an embodiment of the present invention. Figure 1 As shown, the method for transferring business data may include the following steps S101 to S103.
[0064] Step S101: receiving a transaction request for transferring business data sent by a request center.
[0065] In step S101, the business data at least includes: contact letter data and provident fund account information; the transaction request at least includes: transaction code, function number agreed with the provident fund center, transfer and continuation number and operation record number. The transaction request should be submitted in json string format.
[0066] It should be noted that the request center is not necessarily a fixed party. When a transfer-in application is initiated, the request center is the transfer-in center; if it is to confirm the acceptance of the transfer-in application contact letter, the request center is the transfer-out center (the opposite is true for the acceptance center). The transaction request can be sent to the transfer and continuation platform through the transfer-out center front-end service.
[0067] After step S101, the transfer and continuation platform can forward the transaction request for transferring business data sent by the request center to the processing center, receive the first response message returned by the processing center according to the transaction request, and the first response message is related to the status of the contact letter; update the transaction status recorded in the database according to the contact letter status in the first response message.
[0068] It is understandable that the request center is used to send a transaction request to the transfer and continuation platform. The processing center is used to receive the transaction request and return a first response message to the transfer and continuation platform according to the transaction request. The first response message at least includes: the transfer and continuation number and the contact letter status.
[0069] Step S102: calling the blockchain service according to the transaction request to upload the business data to the chain to complete the transfer of the business data.
[0070] In step S102, the transfer continuation number is obtained from the parsed transaction request; the transaction code, function number and requested business data in the transaction request are formatted as additional information field data of the transaction; based on the transfer continuation number obtained through the parsing, the additional information field data is transmitted to the designated smart contract of the blockchain to upload the business data to the chain to complete the transfer of the business data.
[0071] When transmitting the additional information field data to the designated smart contract of the blockchain, it is determined whether there is a mapping relationship of the transfer and continuation number in the smart contract, and the mapping relationship is used to indicate the relationship between the transfer and continuation number and the contact letter status; if so, a transaction identifier is added to the mapping relationship of the transfer and continuation number to upload the business data to the chain to complete the transfer of the business data; if not, a mapping relationship of the transfer and continuation number is created in the smart contract to upload the business data to the chain to complete the transfer of the business data.
[0072] Furthermore, the transaction code, function number, transfer connection number and operation record number in the transaction request may be formed into a data string, and the data string may be converted into a preset data format to serve as the additional information field data of the transaction. For example, the data string may be a json string. The preset data format may be a hexadecimal format.
[0073] Step S103: Receive a response message returned by the blockchain indicating the result of the business data transfer, and send the response message to the request center.
[0074] In step S103, the data transfer result may be a successful transfer or a response timeout, etc. It should be noted that, in addition to this, the transaction receipt returned by the blockchain is received, and then the transaction receipt is saved locally on the transfer and continuation platform, and the transaction receipt is mapped to the transfer and continuation code.
[0075] In order to realize the query of the downchain, on the basis of the above embodiment, the embodiment of the present invention also includes: receiving the query request sent by the request center; calling the blockchain interface to perform the query downchain operation according to the query request, obtaining the on-chain transaction identifier of the contact letter corresponding to the query request, querying the on-chain transaction corresponding to the on-chain transaction identifier according to the on-chain transaction identifier, and obtaining the status flow information according to the additional information field data.
[0076] In an embodiment of the present invention, by connecting the transfer and continuation platform with the blockchain service, the transfer and continuation records can be uploaded to the chain, and the transaction status flow record query can be performed. Since the blockchain has the advantages of data that cannot be tampered with and is traceable, the full process tracking of the transfer and continuation records and the safe transfer of the transfer and continuation business data can be achieved, thereby improving the reliability of the transfer and continuation platform.
[0077] Figure 2 FIG. 1 is a flow chart of a method for transferring service data according to a second embodiment of the present invention. Figure 2 As shown, the method for transferring business data may include the following steps S201 to S209.
[0078] Step S201: The request center initiates a transaction request to the transfer and continuation platform.
[0079] In step S201, the business data at least includes: contact letter data and provident fund account information; the transaction request at least includes: transaction code, function number agreed with the provident fund center, transfer and continuation number and operation record number.
[0080] It should be noted that the request center is not necessarily a fixed party. When a transfer-in application is initiated, the request center is the transfer-in center; if it is to confirm the acceptance of the transfer-in application contact letter, the request center is the transfer-out center (the opposite is true for the acceptance center). The transaction request can be sent to the transfer and continuation platform through the transfer-out center front-end service.
[0081] Step S202: After the transfer platform performs verification services and warehousing operations, the transaction request is forwarded to the front-end service of the acceptance center.
[0082] It should be noted that step S202 can be added or deleted according to actual needs. The transfer and continuation platform provides verification services, and a new transfer and continuation record application needs to be initialized for storage, and then the transaction request is forwarded to the front-end service of the acceptance center.
[0083] In step S202, the transfer and continuation platform needs to verify the legitimacy of the request center number. When applying for a new record, it needs to verify whether it is the provident fund center number that has been connected to the platform; when modifying the record circulation status, in addition to verifying the legitimacy of the center number, it is also necessary to verify whether it is the transfer-in center or the transfer-out center, and to verify whether the transfer and continuation number exists and whether it is an application record under the center. The storage operation only exists when a new record is applied, and the contact letter information, transfer-in center, transfer-out center, initial status and transaction serial number need to be recorded in the database transfer and continuation information table.
[0084] Step S203: The acceptance center responds to the transaction request.
[0085] Step S204: The transfer and connection platform determines whether the response returned by the acceptance center has timed out; if so, execute step S205; if not, execute step S206.
[0086] Step S205: If the response times out, organize a response timeout message.
[0087] Step S206: If the response has not timed out, receive the first response message returned by the acceptance center and parse the first response message.
[0088] In step S206, after receiving the response from the acceptance center, the transfer and continuation platform parses the received response, wherein the received response includes two fixed fields: the transfer and continuation number and the contact letter status.
[0089] For example, the transaction status flow of all contact letters includes the following 9 statuses: 01-contact letter review passed, 02-confirmation of receipt of contact letter, 05-transfer-in cancellation business completion, 06-under negotiation, 08-account information review passed, 13-transfer-out review failed, 00-normal completion (terminated status), 20-business completion after negotiation (terminated status), 40-transfer-out failed business completion (terminated status).
[0090] Step S207: Update the transaction status according to the parsing result of the first response message.
[0091] If the transaction is successful, the transaction status in the database is updated and the blockchain service is called to put the transaction on the chain.
[0092] The received response will contain two fixed fields: the transfer number and the contact letter status. The corresponding number database record status will be updated based on these two fields.
[0093] For example, the transaction status of the contact letter includes the above 9 statuses during its circulation process. The response of the acceptance center will include the specific circulation status, and the transaction status recorded in the database will be updated accordingly.
[0094] Step S208: Call the blockchain interface to put this transaction on the chain, add the contact letter information on the chain, or realize the contact letter status transfer. The blockchain will return the transaction receipt of this status transfer, and the transfer and continuation platform will save the transaction receipt locally, where the transaction receipt corresponds to the transfer and continuation number.
[0095] Step S209: Organize a response message and return it to the request center. The response message also includes the transfer number and contact letter status.
[0096] In step S209, the transfer and continuation platform sends a response to the transaction request to the request center.
[0097] In an embodiment of the present invention, in the transfer and succession platform service, transaction data can be uploaded to the chain through an external blockchain interface service.
[0098] In order to realize the downlink query, Figure 1 or Figure 2 Based on the embodiment, the embodiment of the present invention also provides a method for transferring business data. Figure 3 is a flowchart of the downlink query process of an embodiment of the present invention, such as Figure 3 As shown, the downlink query process may include the following steps S301 to S304.
[0099] Step S301: The request center initiates a query request to the transfer and continuation platform.
[0100] In step S301, the data after the transaction is initiated in each state flow link can be queried by the request center through the transfer and continuation platform. The request center can be a transfer-in center or a transfer-out center.
[0101] Step S302: Transfer the connection platform to provide verification services.
[0102] In step S302, the purpose of the transfer and continuation platform verification service is that only the transferee and transferor centers can query the business transaction block information.
[0103] Step S303: The transfer and continuation platform calls the blockchain interface and performs query operations on the chain through the smart contract to obtain all transaction status flow records of the contact letter.
[0104] In step S303, the list corresponds to the on-chain transaction identifier (txHash) of the blockchain. Each item can query an on-chain transaction. Through the extra information field (extra) of the transaction, all state flow information can be obtained after parsing the hexadecimal data.
[0105] Step S304: the transfer and continuation platform sends a response to the transaction request to the request center and returns all transaction status flow records of the obtained contact letter.
[0106] In the embodiment of the present invention, in the transfer and continuation platform service, the transaction data can be put on the chain through the external blockchain interface service. After the transaction request is completed, the blockchain query downlink service is called to obtain the contact letter transaction flow history record through the smart contract.
[0107] In order to further realize the transaction on-chain, Figure 1 or Figure 2 Based on the embodiment, the embodiment of the present invention also provides a method for transferring business data. Figure 4 : is a flowchart of the transaction chain process of an embodiment of the present invention, such as Figure 4 As shown, the transaction chain process may include the following steps S401 to S406.
[0108] Step S401: The transfer and continuation platform receives a transaction request, wherein the transaction request at least includes a transfer and continuation number.
[0109] In step S401, the transfer connection number is a unique value, and the transfer connection number is a unique value, and relevant data is received to perform an uplink operation.
[0110] Among the above 9 status transfer scenarios, 3 scenarios require business data to be uploaded to the chain. Business data includes contact letter data and provident fund account information. The specific scenario is that when the transfer-in center reviews and approves the contact letter and initiates the application for the contact letter, the contact letter data is required; when the transfer-out center feedbacks the account information and the transfer-in center negotiates and completes the transaction, the provident fund account information is required. For other status transfers, only the contact letter status needs to be modified and uploaded to the chain.
[0111] Step S402: parse and verify the transaction request and block malicious requests.
[0112] In step S402, the received transaction request is parsed and parameter-checked before being uploaded to the chain, and malicious requests are blocked. The transaction request should be submitted in the json string format, including the field txCode transaction code, the txFunc function number agreed upon by the transfer and continuation center and the provident fund center, and the C-Request-Body business data, where the C-Request-Body business data can be in json format, including the transfer and continuation code, the operation record number, and the operation record number is used to identify the uniqueness. When it belongs to the three scenarios in step S401, business data is required, and other scenarios also require flow status. Any request message that does not meet the requirements will be blocked and rejected. It can be understood that request messages that do not conform to the json format or do not contain the above-specified fields will be blocked and rejected.
[0113] Step S403: During the on-chain operation, the information in the transaction request is formatted as the additional information field data (extra) of the transaction, and the additional information field data is transmitted to the designated smart contract of the blockchain.
[0114] In step S403, when formatting data, the five fields of information in the transaction request: transaction code, function number, transfer and continuation code, operation record number and business data can be organized into a json string, and the json string is converted into hexadecimal. The smart contract maintains a mapping relationship for the transfer and continuation data, the mapping key is the transfer and continuation number, the mapping value is a list, and each item in the list is the transaction identifier (txHash) of the state change.
[0115] It should be noted that the additional information is all the request data after data formatting, that is, 5 fields of information: transaction code, function number, transfer and continuation code, operation record number, business data organized into json string and formatted, including the transfer and continuation flow status and business data (if any). The additional information will exist in the block transaction record of the blockchain, but not in the list of smart contract mapping relationships. The list saves all blockchain transaction identifiers (txHash) involving the corresponding transfer and continuation number records.
[0116] Step S404: Determine whether there is a mapping relationship of the transfer and continuation number in the smart contract; if so, execute step S406; if not, execute step S405.
[0117] Step S405: Create a mapping relationship between the transfer and continuation numbers and put the transaction on the chain.
[0118] It is understandable that if it is a new transfer record (that is, the transfer number has no corresponding data), a new mapping relationship is created and the transaction is put on the chain.
[0119] Step S406: Add a transaction identifier to the mapping relationship of the transfer and connection number.
[0120] It can be understood that when the transfer is continued on the chain, if it is a state flow (that is, the transfer and continuation number has data on the chain and there is a mapping of the number), the transaction identifier (txHash) of the data is added to the end of the list corresponding to the mapping, and the transaction is put on the chain.
[0121] In the embodiment of the present invention, in the transfer and continuation platform service, the transaction data can be put on the chain through the external blockchain interface service. In the data on-chain link, the data is transferred to the smart contract, and the new contact letter record or the contact letter status flow is realized according to whether the transfer and continuation number exists on the chain.
[0122] See also Figure 5 The embodiment of the present invention provides a device 500 for transferring business data, and the device 500 for transferring business data includes at least the following modules:
[0123] The first receiving module 501 is used to receive a transaction request for transferring business data sent by a request center;
[0124] A calling module 502 is used to call a blockchain service according to the transaction request to upload business data to the blockchain to complete the transfer of the business data;
[0125] The sending module 503 is used to receive a response message returned by the blockchain indicating the result of the business data transfer, and send the response message to the request center.
[0126] Optionally, the service data transfer device 500 further includes:
[0127] A second receiving module is used to forward the transaction request for transferring business data sent by the request center to the processing center, and receive a first response message returned by the processing center according to the transaction request, wherein the first response message is related to the status of the contact letter;
[0128] An updating module is used to update the transaction status recorded in the database according to the contact letter status in the first response message.
[0129] Optionally, the business data includes at least: contact letter data and provident fund account information; the first response message includes at least: transfer and continuation number and contact letter status.
[0130] Optionally, the transaction request includes at least: a transaction code, a function number agreed upon with the provident fund center, a transfer number and an operation record number.
[0131] Optionally, the calling module 502 is further used to:
[0132] Obtaining a transfer connection number from the transaction request;
[0133] Formatting the transaction code, function number, transfer connection number and operation record number in the transaction request as additional information field data of the transaction;
[0134] According to the transfer connection number obtained by parsing, the additional information field data is transmitted to the designated smart contract of the blockchain to upload the business data to the chain to complete the transfer of the business data.
[0135] Optionally, the calling module 502 is further used to:
[0136] Determine whether there is a mapping relationship of the transfer and continuation number in the smart contract, where the mapping relationship is used to represent the relationship between the transfer and continuation number and the contact letter status;
[0137] If it exists, then add a transaction identifier to the mapping relationship of the transfer and continuation number to upload the business data to the chain to complete the transfer of the business data;
[0138] If it does not exist, a mapping relationship of the transfer and continuation number is created in the smart contract to upload the business data to the chain to complete the transfer of the business data.
[0139] Optionally, the calling module 502 is further used to:
[0140] The transaction code, function number, transfer connection number and operation record number in the transaction request are formed into a data string, and the data string is converted into a preset data format to serve as additional information field data of the transaction.
[0141] Optionally, the data string is a JSON string, and the preset data format is a hexadecimal format.
[0142] Optionally, the service data transfer device 500 further includes:
[0143] A judgment module is used to judge whether the response returned by the processing center has timed out;
[0144] A first execution module, configured to return a timeout response message to the request center if yes, wherein the timeout response message is used to indicate that the response returned by the transaction request has timed out;
[0145] The second execution module is used to execute the step of calling the blockchain service according to the transaction request to upload the business data to the chain to complete the transfer of the business data, and return a response message indicating the response result of the transaction request to the request center.
[0146] Optionally, the service data transfer device 500 further includes:
[0147] A third receiving module, used to receive the query request sent by the request center;
[0148] The query module is used to call the blockchain interface according to the query request to perform a query down-chain operation, obtain the on-chain transaction identifier of the contact letter corresponding to the query request, query the on-chain transaction corresponding to the on-chain transaction identifier according to the on-chain transaction identifier, and obtain the state flow information according to the additional information field data.
[0149] Optionally, the query module is further used to
[0150] The blockchain interface is called according to the query request, and the query down-chain operation is performed through the smart contract.
[0151] In an embodiment of the present invention, by connecting the transfer and continuation platform with the blockchain service, the transfer and continuation records can be uploaded to the chain, and the transaction status flow record query can be performed. Since the blockchain has the advantages of data that cannot be tampered with and is traceable, the full process tracking of the transfer and continuation records and the safe transfer of the transfer and continuation business data can be achieved, thereby improving the reliability of the transfer and continuation platform.
[0152] See also Figure 6 An embodiment of the present invention provides a business data transfer device, which includes at least the following modules: a data verification unit 601, a smart contract execution unit 602 and an on-chain unit 603.
[0153] It can be understood that the system device is divided into three layers from top to bottom. Among them, the data verification unit 601 is responsible for request reception. At this layer, the received transaction request needs to be parsed and parameter verified, and malicious requests need to be blocked and shielded. The smart contract execution unit 602 is responsible for the processing of business logic. The smart contract execution unit 602 can judge according to the state flow rules and the current business request: if it is a new transfer and continuation record, that is, the transfer and continuation number has no corresponding data), then create a new mapping relationship; if it is a state flow, that is, the transfer and continuation number already has data on the chain, and there is a mapping for the number, then add the transaction identifier (txHash) of the data at the end of the list corresponding to the mapping. The chain unit 603 uses the blockchain platform as the underlying data storage medium, and verifies and stores the data on the disk through the logic preset by the smart contract.
[0154] Figure 7 An exemplary system architecture 700 to which the method or apparatus for transferring service data according to an embodiment of the present invention may be applied is shown.
[0155] like Figure 7As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0156] Users can use terminal devices 701, 702, and 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0157] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0158] The server 705 may be a server that provides various services, such as a backend management server (only for example) that supports shopping websites browsed by users using the terminal devices 701, 702, and 703. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only for example) to the terminal device.
[0159] It should be noted that the method for transferring business data provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the device for transferring business data is generally arranged in the server 705 .
[0160] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0161] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device suitable for implementing an embodiment of the present invention. Figure 8 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0162] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0163] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0164] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.
[0165] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving a transaction request for transferring business data sent by a request center; calling a blockchain service according to the transaction request to upload business data to the chain to complete the transfer of the business data; receiving a response message returned by the blockchain to indicate the result of the business data transfer, and sending the response message to the request center.
[0168] This implementation method can put transfer and continuation records on the chain and can query transaction status flow records. Since blockchain has the advantages of data being tamper-proof and traceable, it can achieve full-process tracking of transfer and continuation records and secure transfer of transfer and continuation business data, thereby improving the reliability of the transfer and continuation platform.
[0169] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for transferring business data, characterized in that: The method comprises: Receiving a transaction request for transferring business data sent by a request center, the transaction request at least including: a transfer connection number; The blockchain service is called according to the transaction request to upload the business data to the blockchain to complete the transfer of the business data; the transfer connection number is a unique value, and the relevant data is received to perform the chain operation through the transfer connection number as a unique value. During the chain operation, the information corresponding to the relevant data in the transaction request is formatted as additional information field data of the transaction, and the additional information field data is transmitted to the designated smart contract of the blockchain according to the transfer connection number; Receive a response message returned by the blockchain indicating a result of the business data transfer, and send the response message to the request center.
2. The method according to claim 1, characterized in that After the step of receiving the transaction request for transferring business data sent by the request center, the method further includes: Forwarding the transaction request for transferring business data sent by the request center to the processing center, and receiving a first response message returned by the processing center according to the transaction request, wherein the first response message is related to the status of the contact letter; The transaction status recorded in the database is updated according to the contact letter status in the first response message.
3. The method according to claim 2, characterized in that The business data at least includes: contact letter data and provident fund account information; the first response message at least includes: transfer and continuation number and contact letter status.
4. The method according to claim 1, characterized in that The transaction request at least includes: a transaction code, a function number agreed upon with the provident fund center, a transfer and continuation number, and an operation record number.
5. The method according to claim 4, characterized in that Calling the blockchain service according to the transaction request to upload the business data to the blockchain to complete the transfer of the business data includes: Obtaining a transfer connection number from the transaction request; Formatting the transaction code, function number, transfer connection number and operation record number in the transaction request as additional information field data of the transaction; According to the transfer connection number obtained by analysis, the additional information field data is transmitted to the designated smart contract of the blockchain to upload the business data to the chain to complete the transfer of the business data.
6. The method according to claim 5, characterized in that According to the transfer connection number obtained by parsing, the additional information field data is transmitted to the designated smart contract of the blockchain to carry out the business data on-chain to complete the transfer of the business data, including: Determine whether there is a mapping relationship of the transfer and continuation number in the smart contract, where the mapping relationship is used to represent the relationship between the transfer and continuation number and the contact letter status; If it exists, then add a transaction identifier to the mapping relationship of the transfer and continuation number to upload the business data to the chain to complete the transfer of the business data; If it does not exist, a mapping relationship of the transfer and continuation number is created in the smart contract to upload the business data to the chain to complete the transfer of the business data.
7. The method according to claim 5, characterized in that The transaction code, function number, transfer connection number and operation record number in the transaction request are formatted as additional information field data of the transaction including: The transaction code, function number, transfer connection number and operation record number in the transaction request are formed into a data string, and the data string is converted into a preset data format to serve as additional information field data of the transaction.
8. The method according to claim 7, characterized in that The data string is a json string, and the preset data format is a hexadecimal format.
9. The method according to claim 5, characterized in that After the step of calling the blockchain service according to the transaction request to upload the business data to the chain to complete the transfer of the business data, the method further includes: Receiving a query request sent by the request center; According to the query request, the blockchain interface is called to perform a query down-chain operation, an on-chain transaction identifier of the contact letter corresponding to the query request is obtained, an on-chain transaction corresponding to the on-chain transaction identifier is queried according to the on-chain transaction identifier, and status flow information is obtained according to the additional information field data.
10. The method according to claim 9, characterized in that Calling the blockchain interface according to the query request to perform a query down-chain operation includes: The blockchain interface is called according to the query request, and the query down-chain operation is performed through the smart contract.
11. The method according to claim 1, characterized in that Before the step of calling the blockchain service according to the transaction request to upload the business data to the blockchain to complete the transfer of the business data, the method further includes: Determine whether the response returned by the processing center has timed out; If yes, a timeout response message is returned to the request center, where the timeout response message is used to indicate that the response returned by the transaction request has timed out; Otherwise, execute the step of calling the blockchain service according to the transaction request to upload the business data to the chain to complete the transfer of the business data, and return a response message indicating the response result of the transaction request to the request center.
12. A device for transferring service data, characterized in that: include: A first receiving module is used to receive a transaction request for transferring business data sent by a request center, wherein the transaction request at least includes: a transfer connection number; A calling module is used to call a blockchain service according to the transaction request to upload business data to the blockchain to complete the transfer of the business data; the transfer connection number is a unique value, and the relevant data is received to perform an on-chain operation through the transfer connection number as a unique value. During the on-chain operation, the information corresponding to the relevant data in the transaction request is formatted as additional information field data of the transaction, and the additional information field data is transmitted to a designated smart contract of the blockchain according to the transfer connection number; The sending module is used to receive a response message returned by the blockchain indicating the result of the business data transfer, and send the response message to the request center.
13. The device for transferring service data according to claim 12, characterized in that: Also includes: A second receiving module is used to forward the transaction request for transferring business data sent by the request center to the processing center, and receive a first response message returned by the processing center according to the transaction request, wherein the first response message is related to the status of the contact letter; An updating module is used to update the transaction status recorded in the database according to the contact letter status in the first response message.
14. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 11.
15. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.