Account reconciliation processing method and device

By registering and querying transaction records in distributed cache, the problems of low reconciliation processing and high resource consumption in distributed systems are solved, and efficient reconciliation processing is achieved, simplifying the process and reducing complexity.

CN113516476BActive Publication Date: 2024-11-29INDUSTRIAL AND COMMERCIAL BANK OF CHINA
2 Cites 0 Cited by

Patent Information

Application Number
CN202110541345.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-18
Publication Date
2024-11-29
Estimated Expiration
2041-05-18

Smart Images

  • Figure HDA0003071685580000011
    Figure HDA0003071685580000011
  • Figure HDA0003071685580000021
    Figure HDA0003071685580000021
  • Figure HDA0003071685580000031
    Figure HDA0003071685580000031
Patent Text Reader

Abstract

The present invention provides a reconciliation processing method and device, which can be used in the financial field or other technical fields. The method includes: receiving a call request sent by each caller, the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; performing account processing based on the transaction information of each transaction, and obtaining an account processing result for each transaction; registering the transaction record of each transaction in a distributed cache and setting the matching status corresponding to each transaction to pending matching; wherein the transaction record includes the transaction identifier, the transaction details and the account processing result; and returning the corresponding call request response information to each caller. The device is used to execute the above method. The reconciliation processing method and device provided in the embodiment of the present invention simplifies the process of reconciliation processing and improves the efficiency of reconciliation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for reconciliation processing. Background Art

[0002] Accounting transactions in distributed systems often involve multiple different nodes. In order to ensure the ultimate business consistency between nodes, each node needs to perform reconciliation after a verification cycle.

[0003] At present, the reconciliation processing method is that the service provider aggregates the transaction details of different shards, generates detailed reconciliation files for different callers, and then sends them to each caller. The caller obtains the detailed reconciliation file of the service provider and parses it into transaction details, and then verifies it with the transaction details on this node. Since the data sharding rules between different nodes may be inconsistent, the caller must first aggregate the transaction details of each shard on this node into a single shard before verification, or redistribute the transaction details of the service provider to each shard of this node according to the new sharding rules before verification. During the entire reconciliation processing process, the service provider and the caller need to aggregate, load, and hash the hashed data according to the new rules. The processing efficiency is low, resource consumption is large, and there are performance bottlenecks and single-point risks. Summary of the invention

[0004] In view of the problems in the prior art, the embodiments of the present invention provide a reconciliation processing method and device, which can at least partially solve the problems in the prior art.

[0005] In a first aspect, the present invention provides a reconciliation processing method, comprising:

[0006] receiving a call request sent by each caller, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details;

[0007] Perform accounting processing based on the transaction information of each transaction and obtain the accounting processing results of each transaction;

[0008] Registering a transaction record of each transaction in a distributed cache and setting a matching status corresponding to each transaction to pending matching; wherein the transaction record includes the transaction identifier, the transaction details and the accounting processing result;

[0009] Return the response information of the corresponding call request to each caller.

[0010] In a second aspect, the present invention further provides a reconciliation processing method, comprising:

[0011] Sending a call request to a service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details;

[0012] Receive response information of the call request returned by the service provider, and query corresponding transaction records from the distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes the transaction identifier;

[0013] If the transaction record corresponding to the transaction identifier is found, the matching status corresponding to the transaction identifier is changed to matched; if the transaction record corresponding to the transaction identifier is not found, the transaction record corresponding to the transaction identifier is registered in the distributed cache, and the matching status corresponding to the transaction identifier is set to unmatched; wherein the transaction record includes the transaction identifier and the transaction details;

[0014] Return reconciliation completion information to the service provider.

[0015] In a third aspect, the present invention provides an account reconciliation processing device, comprising:

[0016] A receiving module, used to receive a call request sent by each caller, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details;

[0017] An acquisition module is used to perform accounting processing based on the transaction information of each transaction and obtain the accounting processing result of each transaction;

[0018] A registration module, used to register the transaction record of each transaction in the distributed cache and set the matching status corresponding to each transaction to pending matching; wherein the transaction record includes the transaction identifier, the transaction details and the accounting processing result;

[0019] The return module is used to return the response information of the corresponding call request to each caller.

[0020] In a fourth aspect, the present invention further provides an account reconciliation processing device, comprising:

[0021] A first sending module, configured to send a call request to a service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details;

[0022] A query module, configured to receive the response information of the call request returned by the service provider, and query the corresponding transaction record from the distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes the transaction identifier;

[0023] A judgment module, configured to change the matching state corresponding to the transaction identifier to matched after the transaction record corresponding to the transaction identifier is queried; if the transaction record corresponding to the transaction identifier is not queried, register the transaction record corresponding to the transaction identifier into a distributed cache, and set the matching state corresponding to the transaction identifier to unmatched; wherein the transaction record includes the transaction identifier and the transaction details;

[0024] The second sending module returns the reconciliation completion information to the service provider.

[0025] In a fifth aspect, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the reconciliation processing method described in any of the above embodiments when executing the program.

[0026] In a sixth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the reconciliation processing method described in any of the above embodiments.

[0027] The reconciliation processing method and device provided in the embodiments of the present invention can receive a call request sent by each caller, perform account processing based on the transaction information of each transaction, obtain the account processing result of each transaction, register the transaction record of each transaction in the distributed cache and set the matching status corresponding to each transaction to be matched, and return the response information of the corresponding call request to each caller, thereby simplifying the reconciliation processing process and improving the reconciliation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0029] Figure 1 It is a structural diagram of the account reconciliation processing system provided by the first embodiment of the present invention.

[0030] Figure 2 It is a flowchart of the reconciliation processing method provided by the second embodiment of the present invention.

[0031] Figure 3 It is a flowchart of the reconciliation processing method provided by the third embodiment of the present invention.

[0032] Figure 4 It is a schematic diagram of the structure of the account reconciliation processing device provided in the fourth embodiment of the present invention.

[0033] Figure 5 It is a structural diagram of an account reconciliation processing device provided in a fifth embodiment of the present invention.

[0034] Figure 6 It is a structural diagram of an account reconciliation processing device provided in a sixth embodiment of the present invention.

[0035] Figure 7 It is a schematic diagram of the physical structure of an electronic device provided by the seventh embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0037] In order to facilitate understanding of the technical solution provided by the present application, the relevant contents of the technical solution of the present application are first described below. In the process of implementing the reconciliation processing method provided by the embodiment of the present invention, the reconciliation processing flow is simplified by using the characteristics of distributed cache, and there is no need to perform data aggregation, reconciliation file generation, reconciliation file parsing, and data hashing operations. In the scenario where a large amount of transaction detail data needs to be reconciled, the reconciliation efficiency is improved while reducing resource consumption.

[0038] Figure 1 is a schematic diagram of the structure of the account reconciliation processing system provided by the first embodiment of the present invention. Figure 1 As shown, the reconciliation processing system provided by the embodiment of the present invention includes a service node 1, at least one calling node 2 and multiple cache servers 3, wherein:

[0039] The service node 1 is connected in communication with each calling node 2, the service node 1 is connected in communication with each cache server 3, and each calling node 2 is connected in communication with each cache server 3. Distributed cache is deployed on multiple cache servers 3. The service node 1 and each calling node 2 can adopt servers.

[0040] The calling node 2 sends a calling request to the service node 1, and the service node 1 receives the calling request and performs accounting processing. The service node 1 can access the cache server 3 to store the transaction record of each transaction in the distributed cache, and the calling node 2 can access the transaction record in the distributed cache on the cache server 3. In the embodiment of the present invention, each calling node 2 can act as a caller, and the service node 1 can act as a service provider.

[0041] The following takes the service provider as an example of the execution subject to illustrate the implementation process of the reconciliation processing method provided by the embodiment of the present invention.

[0042] Figure 2 is a flow chart of a reconciliation processing method provided by a second embodiment of the present invention, such as Figure 2 As shown, the reconciliation processing method provided by the embodiment of the present invention includes:

[0043] S201, receiving a call request sent by each caller, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details;

[0044] Specifically, each caller may send a call request to the service provider, and the service provider will receive the call request sent by each caller. The call request includes a transaction identifier and transaction information of each transaction, and the transaction information may include information such as transaction details. Each transaction has a unique corresponding transaction identifier. The number of transactions included in the call request is set according to actual needs, and is not limited in the embodiment of the present invention.

[0045] For example, when the caller needs to perform a transfer service, it can send a transfer request to the service provider that provides the transfer service. The transfer request includes a transaction identifier and transaction information of the transfer transaction. The transaction information of the transfer transaction may include transaction details, and the transaction details include a transfer-out account, a transfer-in account, and a transfer amount.

[0046] S202, performing accounting processing based on the transaction information of each transaction, and obtaining the accounting processing result of each transaction;

[0047] Specifically, after receiving the call request, the service provider performs account processing based on the transaction information of each transaction and obtains the account processing result of each transaction. The account processing result is a successful processing or a failed processing. The specific process of the account processing is a prior art and will not be described in detail in the embodiment of the present invention.

[0048] For example, after receiving the transfer request, the service provider may initiate an account entry request to the server of the account-opening bank corresponding to the transfer-in account according to the transfer-in account included in the transaction details, the account entry request includes the transfer amount, and waits for the account entry result returned by the server of the account-opening bank. If the server of the account-opening bank successfully enters the transfer amount into the transfer-in account, it returns an account entry success message to the service provider. After receiving the account entry success message, the service provider will record the corresponding transaction account processing result as a successful process. If the server of the account-opening bank fails to enter the transfer amount into the transfer-in account, it returns an account entry failure message to the service provider. After receiving the account entry failure message, the service provider will record the corresponding transaction account processing result as a failed process.

[0049] S203, registering a transaction record of each transaction in a distributed cache and setting a matching status corresponding to each transaction to pending matching; wherein the transaction record includes the transaction identifier, the transaction details and the accounting processing result;

[0050] Specifically, after obtaining the accounting processing result of a transaction, the service provider can access the cache server to register the transaction record of the transaction into the distributed cache, and set the matching status corresponding to the transaction to be matched. The service provider repeats the above process, and can register the transaction record of each transaction, and register the matching status corresponding to each transaction into the distributed cache. Among them, the transaction record may include information such as the transaction identifier, the transaction details and the accounting processing result. It is understandable that since each transaction has a unique corresponding transaction identifier, the transaction record of the corresponding transaction can be queried in the distributed cache according to the transaction identifier.

[0051] S204: Return response information of the corresponding call request to each caller.

[0052] Specifically, after the service provider processes the call request sent by the caller, it can return the response information of the call request to the caller. The service provider can return the response information of the corresponding call request to each caller. Each caller will receive the response information, which indicates that the service provider has processed the call request and registered the transaction record and corresponding matching status of each transaction in the call request in the distributed cache. Each caller can query the transaction record of each transaction in the distributed cache according to the transaction identifier of each transaction in the sent call request. If the transaction record corresponding to the transaction identifier is queried, it means that the transaction corresponding to the transaction identifier is successfully reconciled, and the matching status corresponding to the transaction identifier will be changed from pending matching to matched; if the transaction record corresponding to the transaction identifier is not queried, it means that the transaction corresponding to the transaction identifier has an error, and the transaction information corresponding to the transaction identifier will be registered in the distributed cache, and the matching status corresponding to the transaction identifier will be set to unmatched.

[0053] The reconciliation processing method provided in the embodiment of the present invention can receive a call request sent by each caller, perform account processing based on the transaction information of each transaction, obtain the account processing result of each transaction, register the transaction record of each transaction in the distributed cache and set the matching status corresponding to each transaction to be matched, and return the response information of the corresponding call request to each caller, thereby simplifying the reconciliation processing process and improving the reconciliation efficiency.

[0054] On the basis of the above embodiments, further, receiving the call request sent by each caller includes:

[0055] Receive the call request sent by each caller at regular intervals.

[0056] Specifically, each caller may send a call request to the service provider at a fixed time, wherein the timing is set according to actual business needs and is not limited in the embodiment of the present invention.

[0057] For example, for transactions that need to be processed in batches every day, a call request can be sent to the service provider at 1 a.m. At this time, the service provider is usually relatively idle, which is conducive to batch processing of transactions.

[0058] On the basis of the above embodiments, the reconciliation processing method provided by the embodiment of the present invention further includes:

[0059] After a reconciliation cycle ends, the transaction record of each transaction whose matching status is unmatched is obtained from the distributed cache and summarized into error data.

[0060] Specifically, after a reconciliation cycle ends, the service provider can query each transaction with an unmatched matching status from the distributed cache, and obtain the transaction record of each transaction with an unmatched matching status, and then summarize it into error data. The service provider can provide the query data to relevant personnel for processing. Among them, the reconciliation cycle is set according to actual needs, and the embodiment of the present invention does not limit it. The end of the reconciliation cycle can be triggered regularly or by the caller, and is set according to actual needs, and the embodiment of the present invention does not limit it.

[0061] For example, service provider A provides services to four callers, and it is set that at 2 a.m. every day, the four callers send call requests to service provider A. After completing the account processing, registering the transaction records of each transaction and setting the matching status corresponding to each transaction, service provider A returns the response information of the call request to each caller. The four callers perform reconciliation processing respectively, and then return the reconciliation completion information to service provider A. After service provider A receives the reconciliation completion information returned by the four callers, it means that the current reconciliation cycle is over, and service provider A will obtain the transaction records of each transaction with the matching status of unmatched from the distributed cache and summarize them into error data.

[0062] The following takes the caller as an example to illustrate the implementation process of the reconciliation processing method provided by the embodiment of the present invention.

[0063] Figure 3 is a flow chart of a reconciliation processing method provided by a third embodiment of the present invention, such as Figure 3 As shown, the reconciliation processing method provided by the embodiment of the present invention includes:

[0064] S301, sending a call request to a service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details;

[0065] Specifically, the caller can send a call request to the service provider, and the service provider will receive the call request sent by the caller, the call request includes the transaction identifier and transaction information of each transaction, and the transaction information includes transaction details. The service provider will perform account processing based on the transaction information of each transaction and obtain the account processing result of each transaction. The account processing result is a successful processing or a failed processing. The service provider will register the transaction record and the corresponding matching status of each transaction in the distributed cache. After registering the transaction record and the corresponding matching status of each transaction in the call request, the response information of the call request is returned to the caller. Among them, the specific process of account processing is a prior art, and the embodiment of the present invention will not be repeated.

[0066] S302, receiving the response information of the call request returned by the service provider, and querying the corresponding transaction record from the distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes the unique transaction identifier of the transaction to which the transaction record belongs;

[0067] Specifically, the caller will receive the response information of the call request returned by the service provider, and the response information indicates that the service provider has processed the call request and registered the transaction record and corresponding matching status of each transaction in the call request in the distributed cache. The caller will query the transaction record of each transaction from the distributed cache according to the transaction identifier of each transaction included in the call request. Among them, the transaction record of each transaction will include a transaction identifier uniquely corresponding to each transaction.

[0068] S303. If a transaction record corresponding to the transaction identifier is found, the matching status corresponding to the transaction identifier is changed to matched; if a transaction record corresponding to the transaction identifier is not found, the transaction record corresponding to the transaction identifier is registered in a distributed cache, and the matching status corresponding to the transaction identifier is set to unmatched; wherein the transaction record includes the transaction identifier and the transaction details;

[0069] Specifically, if the caller finds the same transaction identifier from the transaction records of each transaction in the distributed cache based on the transaction identifier, then the transaction record corresponding to the transaction identifier is found, and the caller can change the matching status corresponding to the transaction identifier to matched, indicating that the transaction reconciliation is successful. If the caller does not find the same transaction identifier from the transaction records of each transaction in the distributed cache based on the transaction identifier, it means that there is a problem with the transaction processing corresponding to the above transaction identifier. The caller will register the transaction record corresponding to the transaction identifier in the distributed cache, and set the matching status corresponding to the transaction identifier to unmatched, indicating that the transaction reconciliation has failed. The caller will repeat the above process to complete the reconciliation of each transaction in the call request. Among them, the transaction record includes the transaction identifier and the transaction details.

[0070] S304: Return the reconciliation completion information to the service provider.

[0071] Specifically, after completing the reconciliation of each transaction in the call request, the service provider will return reconciliation completion information to the service provider to prompt the caller to complete the reconciliation process. The service provider will receive the reconciliation completion information.

[0072] The reconciliation processing method provided by the embodiment of the present invention can send a call request to a service provider so that the service provider performs account processing on each transaction in the call request, receive response information of the call request returned by the service provider, and query the corresponding transaction record from the distributed cache according to the transaction identifier of each transaction included in the call request. If the transaction record corresponding to the transaction identifier is queried, the matching state corresponding to the transaction identifier is changed to matched; if the transaction record corresponding to the transaction identifier is not queried, the transaction record corresponding to the transaction identifier is registered in the distributed cache, and the matching state corresponding to the transaction identifier is set to unmatched, and reconciliation completion information is returned to the service provider, thereby simplifying the process of reconciliation processing and improving reconciliation efficiency.

[0073] On the basis of the above embodiments, further, sending the call request to the service provider includes:

[0074] Send a call request to the service provider at a regular interval.

[0075] Specifically, the caller may send a call request to the service provider at a fixed time, wherein the timing is set according to actual business needs and is not limited in the embodiment of the present invention.

[0076] The reconciliation processing method provided in the embodiment of the present invention, on the one hand, simplifies the reconciliation processing process, does not need to perform centralized data processing, and reduces the complexity of reconciliation processing; on the other hand, the amount of error data that needs to be processed after reconciliation is greatly reduced, and the processing efficiency is improved. In addition, in the process of reconciliation processing through distributed cache, there is no need to aggregate and shard data, and no need to introduce additional cross-cluster processing, which reduces the development workload.

[0077] Figure 4 is a schematic diagram of the structure of the account reconciliation processing device provided by the fourth embodiment of the present invention. Figure 4 As shown, the reconciliation processing device provided by the embodiment of the present invention includes a receiving module 401, an obtaining module 402, a registration module 403 and a returning module 404, wherein:

[0078] The receiving module 401 is used to receive a call request sent by each caller, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; the obtaining module 402 is used to perform account processing based on the transaction information of each transaction and obtain the account processing result of each transaction; the registration module 403 is used to register the transaction record of each transaction in the distributed cache and set the matching status corresponding to each transaction to be matched; wherein the transaction record includes the transaction identifier, the transaction details and the account processing result; the returning module 404 is used to return the response information of the corresponding call request to each caller.

[0079] Specifically, each caller may send a call request to the receiving module 401, and the receiving module 401 receives the call request sent by each caller. The call request includes a transaction identifier and transaction information of each transaction, and the transaction information may include information such as transaction details. Each transaction has a unique corresponding transaction identifier. The number of transactions included in the call request is set according to actual needs, and is not limited in the embodiment of the present invention.

[0080] After receiving the call request, the acquisition module 402 performs account processing based on the transaction information of each transaction and obtains the account processing result of each transaction. The account processing result is a successful processing or a failed processing. The specific process of the account processing is a prior art and will not be described in detail in the embodiment of the present invention.

[0081] After obtaining the accounting processing result of a transaction, the registration module 403 can access the cache server to register the transaction record of the transaction into the distributed cache, and set the matching status corresponding to the transaction to be matched. The registration module 403 repeats the above process, and can register the transaction record of each transaction, and register the matching status corresponding to each transaction into the distributed cache. Among them, the transaction record can include information such as the transaction identifier, the transaction details and the accounting processing result. It is understandable that since each transaction has a unique corresponding transaction identifier, the transaction record of the corresponding transaction can be queried in the distributed cache according to the transaction identifier.

[0082] After processing the call request sent by the caller, the return module 404 can return the response information of the call request to the caller. The return module 404 can return the response information of the corresponding call request to each caller. Each caller will receive the response information, which indicates that the service provider has processed the call request and registered the transaction record and corresponding matching status of each transaction in the call request in the distributed cache. Each caller can query the transaction record of each transaction in the distributed cache according to the transaction identifier of each transaction in the sent call request. If the transaction record corresponding to the transaction identifier is queried, it means that the transaction corresponding to the transaction identifier is successfully reconciled, and the matching status corresponding to the transaction identifier will be changed from pending matching to matched; if the transaction record corresponding to the transaction identifier is not queried, it means that the transaction corresponding to the transaction identifier has an error, and the transaction information corresponding to the transaction identifier will be registered in the distributed cache, and the matching status corresponding to the transaction identifier will be set to unmatched.

[0083] The reconciliation processing device provided in the embodiment of the present invention can receive a call request sent by each caller, perform account processing based on the transaction information of each transaction, obtain the account processing result of each transaction, register the transaction record of each transaction in the distributed cache and set the matching status corresponding to each transaction to be matched, and return the response information of the corresponding call request to each caller, thereby simplifying the reconciliation processing process and improving the reconciliation efficiency.

[0084] On the basis of the above embodiments, further, the receiving module 401 is specifically used for:

[0085] Receive the call request sent by each caller at regular intervals.

[0086] Figure 5 is a schematic diagram of the structure of the account reconciliation processing device provided in the fifth embodiment of the present invention. Figure 5 As shown, based on the above embodiments, the reconciliation processing device provided in the embodiment of the present invention further includes a summary module 405, wherein:

[0087] The aggregation module 405 is used to obtain the transaction record of each transaction with the matching status of unmatched from the distributed cache after a reconciliation cycle ends, and aggregate the transaction record into error data.

[0088] Specifically, after a reconciliation cycle ends, the summary module 405 can query each transaction with a matching status of unmatched from the distributed cache, and obtain the transaction record of each transaction with a matching status of unmatched, and then summarize it into error data. The summary module 405 can provide the query data to relevant personnel for processing. Among them, the reconciliation cycle is set according to actual needs, and the embodiment of the present invention does not limit it. The end of the reconciliation cycle can be triggered regularly or by the caller, and is set according to actual needs, and the embodiment of the present invention does not limit it.

[0089] Figure 6 is a schematic diagram of the structure of the account reconciliation processing device provided by the sixth embodiment of the present invention. Figure 6 As shown, the reconciliation processing device provided in the embodiment of the present invention includes a first sending module 601, a query module 602, a judgment module 603 and a second sending module 604, wherein:

[0090] The first sending module 601 is used to send a call request to the service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; the query module 602 is used to receive the response information of the call request returned by the service provider, and query the corresponding transaction record from the distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes the transaction identifier; the judgment module 603 is used to change the matching status corresponding to the transaction identifier to matched after the transaction record corresponding to the transaction identifier is queried; after the transaction record corresponding to the transaction identifier is not queried, the transaction record corresponding to the transaction identifier is registered in the distributed cache, and the matching status corresponding to the transaction identifier is set to unmatched; wherein the transaction record includes the transaction identifier and the transaction details; the second sending module 604 returns the reconciliation completion information to the service provider.

[0091] Specifically, the first sending module 601 can send a call request to the service provider, and the service provider will receive the call request sent by the first sending module 601, and the call request includes the transaction identifier and transaction information of each transaction, and the transaction information includes transaction details. The service provider will perform account processing based on the transaction information of each transaction and obtain the account processing result of each transaction. The account processing result is a successful processing or a failed processing. The service provider will register the transaction record and the corresponding matching status of each transaction in the distributed cache. After registering the transaction record and the corresponding matching status of each transaction in the call request, the response information of the call request is returned to the query module 602. Among them, the specific process of account processing is a prior art, and the embodiment of the present invention will not be repeated.

[0092] The query module 602 receives the response information of the call request returned by the service provider, and the response information indicates that the service provider has processed the call request and registered the transaction record and corresponding matching status of each transaction in the call request in the distributed cache. The query module 602 queries the transaction record of each transaction from the distributed cache according to the transaction identifier of each transaction included in the call request. The transaction record of each transaction includes a transaction identifier uniquely corresponding to each transaction.

[0093] If the judgment module 603 finds the same transaction identifier from the transaction records of each transaction in the distributed cache according to the transaction identifier, then the transaction record corresponding to the transaction identifier is found, and the judgment module 603 can change the matching status corresponding to the transaction identifier to matched, indicating that the transaction reconciliation has passed. If the judgment module 603 does not find the same transaction identifier from the transaction records of each transaction in the distributed cache according to the transaction identifier, it means that there is a problem with the transaction processing corresponding to the above transaction identifier. The judgment module 603 will register the transaction record corresponding to the transaction identifier in the distributed cache, and set the matching status corresponding to the transaction identifier to unmatched, indicating that the transaction reconciliation has failed. The judgment module 603 will repeat the above process to complete the reconciliation of each transaction in the call request. Among them, the transaction record includes the transaction identifier and the transaction details.

[0094] After completing the reconciliation of each transaction in the call request, the second sending module 604 returns reconciliation completion information to the service provider to prompt the completion of the reconciliation process. The service provider receives the reconciliation completion information.

[0095] The reconciliation processing device provided by the embodiment of the present invention can send a call request to a service provider so that the service provider performs account processing on each transaction in the call request, receive response information of the call request returned by the service provider, and query the corresponding transaction record from the distributed cache according to the transaction identifier of each transaction included in the call request. If the transaction record corresponding to the transaction identifier is queried, the matching state corresponding to the transaction identifier is changed to matched; if the transaction record corresponding to the transaction identifier is not queried, the transaction record corresponding to the transaction identifier is registered in the distributed cache, and the matching state corresponding to the transaction identifier is set to unmatched, and reconciliation completion information is returned to the service provider, thereby simplifying the process of reconciliation processing and improving reconciliation efficiency.

[0096] On the basis of the above embodiments, further, the first sending module 601 is specifically used for:

[0097] Send a call request to the service provider at a regular interval.

[0098] The embodiment of the device provided by the embodiment of the present invention can be specifically used to execute the processing flow of the above-mentioned corresponding method embodiment. Its functions are not repeated here, and reference can be made to the detailed description of the above-mentioned corresponding method embodiment.

[0099] It should be noted that the account reconciliation processing method and device provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the account reconciliation processing method and device.

[0100] Figure 7 is a schematic diagram of the physical structure of an electronic device provided by the seventh embodiment of the present invention, such as Figure 7 As shown, the electronic device may include: a processor (processor) 701, a communication interface (Communications Interface) 702, a memory (memory) 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704. The processor 701 can call the logic instructions in the memory 703 to execute the following method: receiving a call request sent by each caller, the call request including the transaction identifier and transaction information of each transaction, the transaction information including transaction details; performing account processing based on the transaction information of each transaction, and obtaining the account processing result of each transaction; registering the transaction record of each transaction in the distributed cache and setting the matching status corresponding to each transaction to be matched; wherein the transaction record includes the transaction identifier, the transaction details and the account processing result; returning the corresponding call request response information to each caller. Or

[0101] Sending a call request to a service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; receiving a response message to the call request returned by the service provider, and querying a corresponding transaction record from a distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes a transaction identifier; if a transaction record corresponding to the transaction identifier is queried, changing the matching status corresponding to the transaction identifier to matched; if a transaction record corresponding to the transaction identifier is not queried, registering the transaction record corresponding to the transaction identifier in the distributed cache, and setting the matching status corresponding to the transaction identifier to unmatched; wherein the transaction record includes the transaction identifier and the transaction details; returning reconciliation completion information to the service provider.

[0102] In addition, the logic instructions in the above-mentioned memory 703 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0103] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: receiving a call request sent by each caller, the call request including a transaction identifier and transaction information of each transaction, and the transaction information including transaction details; performing account processing based on the transaction information of each transaction to obtain an account processing result for each transaction; registering the transaction record of each transaction in a distributed cache and setting the matching status corresponding to each transaction to pending matching; wherein the transaction record includes the transaction identifier, the transaction details and the account processing result; returning the corresponding call request response information to each caller. Or

[0104] Sending a call request to a service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; receiving a response message to the call request returned by the service provider, and querying a corresponding transaction record from a distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes a transaction identifier; if a transaction record corresponding to the transaction identifier is queried, changing the matching status corresponding to the transaction identifier to matched; if a transaction record corresponding to the transaction identifier is not queried, registering the transaction record corresponding to the transaction identifier in the distributed cache, and setting the matching status corresponding to the transaction identifier to unmatched; wherein the transaction record includes the transaction identifier and the transaction details; returning reconciliation completion information to the service provider.

[0105] This embodiment provides a computer-readable storage medium, which stores a computer program. The computer program enables the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: receiving a call request sent by each caller, the call request including a transaction identifier and transaction information of each transaction, the transaction information including transaction details; performing account processing based on the transaction information of each transaction to obtain an account processing result for each transaction; registering the transaction record of each transaction in a distributed cache and setting the matching status corresponding to each transaction to pending matching; wherein the transaction record includes the transaction identifier, the transaction details and the account processing result; returning the corresponding call request response information to each caller. Or

[0106] Sending a call request to a service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; receiving a response message to the call request returned by the service provider, and querying a corresponding transaction record from a distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes a transaction identifier; if a transaction record corresponding to the transaction identifier is queried, changing the matching status corresponding to the transaction identifier to matched; if a transaction record corresponding to the transaction identifier is not queried, registering the transaction record corresponding to the transaction identifier in the distributed cache, and setting the matching status corresponding to the transaction identifier to unmatched; wherein the transaction record includes the transaction identifier and the transaction details; returning reconciliation completion information to the service provider.

[0107] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0108] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0111] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0112] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for reconciliation processing, characterized in that: include: receiving a call request sent by each caller, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; Perform accounting processing based on the transaction information of each transaction and obtain the accounting processing results of each transaction; Registering a transaction record of each transaction in a distributed cache and setting a matching status corresponding to each transaction to pending matching; wherein the transaction record includes the transaction identifier, the transaction details and the accounting processing result; Return the response information of the corresponding call request to each caller; The response information indicates that the call request has been processed and the transaction record and corresponding matching status of each transaction in the call request have been registered in the distributed cache.

2. The method according to claim 1, characterized in that The receiving of the call request sent by each caller includes: Receive the call request sent by each caller at regular intervals.

3. The method according to claim 1 or 2, characterized in that: Also includes: After a reconciliation cycle ends, the transaction record of each transaction whose matching status is unmatched is obtained from the distributed cache and summarized into error data.

4. A method for reconciliation processing, characterized in that: include: Sending a call request to a service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; receiving response information of the call request returned by the service provider, and querying the corresponding transaction record from the distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes the transaction identifier; the response information indicates that the service provider has processed the call request and registered the transaction record and the corresponding matching status of each transaction in the call request in the distributed cache; If the transaction record corresponding to the transaction identifier is found, the matching status corresponding to the transaction identifier is changed to matched; if the transaction record corresponding to the transaction identifier is not found, the transaction record corresponding to the transaction identifier is registered in the distributed cache, and the matching status corresponding to the transaction identifier is set to unmatched; wherein the transaction record includes the transaction identifier and the transaction details; Return reconciliation completion information to the service provider.

5. The method according to claim 4, characterized in that The sending of a call request to the service provider includes: Send a call request to the service provider at a regular interval.

6. A reconciliation processing device, characterized in that: include: A receiving module, used to receive a call request sent by each caller, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; An acquisition module is used to perform accounting processing based on the transaction information of each transaction and obtain the accounting processing result of each transaction; A registration module, used to register the transaction record of each transaction in the distributed cache and set the matching status corresponding to each transaction to pending matching; wherein the transaction record includes the transaction identifier, the transaction details and the accounting processing result; The return module is used to return the response information of the corresponding call request to each caller; the response information indicates that the call request has been processed and the transaction record and corresponding matching status of each transaction in the call request have been registered in the distributed cache.

7. The device according to claim 6, characterized in that Also includes: The aggregation module is used to obtain the transaction record of each transaction with a matching status of unmatched from the distributed cache after a reconciliation cycle ends, and aggregate the transaction record into error data.

8. A reconciliation processing device, characterized in that: include: A first sending module, configured to send a call request to a service provider so that the service provider performs accounting processing on each transaction in the call request, wherein the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details; A query module, configured to receive the response information of the call request returned by the service provider, and query the corresponding transaction record from the distributed cache according to the transaction identifier of each transaction included in the call request; wherein the transaction record includes the transaction identifier; the response information indicates that the service provider has processed the call request and registered the transaction record and the corresponding matching status of each transaction in the call request in the distributed cache; A judgment module, configured to change the matching state corresponding to the transaction identifier to matched after the transaction record corresponding to the transaction identifier is queried; if the transaction record corresponding to the transaction identifier is not queried, register the transaction record corresponding to the transaction identifier into a distributed cache, and set the matching state corresponding to the transaction identifier to unmatched; wherein the transaction record includes the transaction identifier and the transaction details; The second sending module returns the reconciliation completion information to the service provider.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processor implements the steps of the method according to any one of claims 1 to 3, or implements the steps of the method according to claim 4 or 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 3, or implements the steps of the method according to claim 4 or 5.

Citation Information

Patent Citations

  • Block chain reconciliation method, apparatus, device and storage medium

    CN109118360A

  • Transaction data processing method and device

    CN109377355A