CN113516476A - Account checking processing method and device - Google Patents

Account checking processing method and device Download PDF

Info

Publication number
CN113516476A
CN113516476A CN202110541345.8A CN202110541345A CN113516476A CN 113516476 A CN113516476 A CN 113516476A CN 202110541345 A CN202110541345 A CN 202110541345A CN 113516476 A CN113516476 A CN 113516476A
Authority
CN
China
Prior art keywords
transaction
information
service provider
identifier
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110541345.8A
Other languages
Chinese (zh)
Inventor
阳理理
苏泽华
苏宇
毛淑平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110541345.8A priority Critical patent/CN113516476A/en
Publication of CN113516476A publication Critical patent/CN113516476A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a reconciliation processing method and device, which can be used in the financial field or other technical fields. The method comprises the following steps: receiving a calling request sent by each calling party, wherein the calling request comprises transaction identification and transaction information of each transaction, and the transaction information comprises transaction details; performing accounting processing based on the transaction information of each transaction to obtain an accounting processing result of each transaction; registering a transaction record of each transaction in a distributed cache and setting a matching state corresponding to each transaction as a state to be matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result; and returning the response information of the corresponding calling request to each calling party. The device is used for executing the method. The account checking processing method and device provided by the embodiment of the invention simplify the account checking processing flow and improve the account checking efficiency.

Description

Account checking processing method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a reconciliation processing method and device.
Background
Accounting transactions in a distributed system often involve a plurality of different nodes, and in order to ensure final business consistency among the nodes, the nodes need to perform reconciliation after a checking period is finished.
At present, the reconciliation processing method is that a service provider aggregates transaction detail data of different fragments, generates detail reconciliation files of different invokers, and then sends the detail reconciliation files to each invoker. And the caller acquires the detail reconciliation file of the service provider, analyzes the detail reconciliation file into transaction detail data and then checks the transaction detail data with the transaction detail data on the node. Because the data fragmentation rules of different nodes may be inconsistent, the caller needs to gather the transaction detail data of each fragment on the node to a single fragment and then check the transaction detail data, or the transaction detail data of the service provider is redistributed to each fragment of the node according to a new fragmentation rule and then can be checked. In the whole account checking process, the service provider and the caller need to summarize, load and hash the hashed data according to a new rule, so that the processing efficiency is low, the resource consumption is high, and a performance bottleneck and a single point risk exist.
Disclosure of Invention
For the problems in the prior art, embodiments of the present invention provide a reconciliation processing method and apparatus, which can at least partially solve the problems in the prior art.
In a first aspect, the present invention provides a reconciliation processing method, including:
receiving a calling request sent by each calling party, wherein the calling request comprises transaction identification and transaction information of each transaction, and the transaction information comprises transaction details;
performing accounting processing based on the transaction information of each transaction to obtain an accounting processing result of each transaction;
registering a transaction record of each transaction in a distributed cache and setting a matching state corresponding to each transaction as a state to be matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result;
and returning the response information of the corresponding calling request to each calling party.
In a second aspect, the present invention further provides a reconciliation processing method, including:
sending a call request to a service provider to enable the service provider to perform financial processing on each transaction in the call request, wherein the call request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details;
receiving response information of the calling request returned by the service provider, and inquiring corresponding transaction records from a distributed cache according to the transaction identification of each transaction included in the calling request; wherein the transaction record includes a transaction identification;
if the transaction record corresponding to the transaction identifier is inquired, the matching state corresponding to the transaction identifier is changed into matched state; if the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail;
and returning account checking end information to the service provider.
In a third aspect, the present invention provides a reconciliation processing apparatus, comprising:
the receiving module is used for receiving a calling request sent by each calling party, wherein the calling request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details;
the acquisition module is used for carrying out accounting processing on the basis of the transaction information of each transaction and acquiring an accounting processing result of each transaction;
the registration module is used for registering the transaction record of each transaction in the distributed cache and setting the matching state corresponding to each transaction as to-be-matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result;
and the return module is used for returning the response information of the corresponding calling request to each calling party.
In a fourth aspect, the present invention further provides a reconciliation processing apparatus, including:
the system comprises a first sending module, a second sending module and a service providing module, wherein the first sending module is used for sending a calling request to a service providing party so that the service providing party can perform financial processing on each transaction in the calling request, the calling request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details;
the query module is used for receiving response information of the call request returned by the service provider and querying a 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 a transaction identification;
the judging module is used for changing the matching state corresponding to the transaction identification into matched state after the transaction record corresponding to the transaction identification is inquired; after the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail;
and the second sending module returns account checking end information to the service provider.
In a fifth aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the reconciliation processing method described in any of the above embodiments are implemented.
In a sixth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the reconciliation processing method according to any one of the embodiments.
The reconciliation processing method and device provided by the embodiment of the invention can receive the calling request sent by each calling party, perform accounting processing based on the transaction information of each transaction, obtain the accounting processing result of each transaction, register the transaction record of each transaction in the distributed cache, set the matching state corresponding to each transaction as to-be-matched, and return the response information of the corresponding calling request to each calling party, thereby simplifying the flow of reconciliation processing and improving the reconciliation efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic structural diagram of a reconciliation processing system according to a first embodiment of the present invention.
Fig. 2 is a schematic flow chart of a reconciliation processing method according to a second embodiment of the present invention.
Fig. 3 is a flowchart illustrating a reconciliation processing method according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a reconciliation processing apparatus according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a reconciliation processing apparatus according to a fifth embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a reconciliation processing apparatus according to a sixth embodiment of the present invention.
Fig. 7 is a schematic physical structure diagram of an electronic device according to a seventh embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
In order to facilitate understanding of the technical solutions provided in the present application, the following first describes relevant contents of the technical solutions in the present application. In the process of implementing the reconciliation processing method provided by the embodiment of the invention, the reconciliation processing flow is simplified through the characteristics of distributed cache, the operations of data summarization, generation of the reconciliation file, analysis of the reconciliation file and data hashing are not required, and the resource consumption is reduced while the reconciliation efficiency is improved in a situation that a large amount of transaction detail data is required to be reconciled.
Fig. 1 is a schematic structural diagram of a reconciliation processing system according to a first embodiment of the present invention, and as shown in fig. 1, the reconciliation processing system according to the embodiment of the present invention includes a service node 1, at least one calling node 2, and a plurality of cache servers 3, where:
the service node 1 is connected with each calling node 2 in a communication mode, the service node 1 is connected with each cache server 3 in a communication mode, and each calling node 2 is connected with each cache server 3 in a communication mode. Distributed caching is deployed on a plurality of cache servers 3. The service node 1 and each of the calling nodes 2 may employ a server.
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 may serve as a caller, and the service node 1 may serve as a service provider.
The following describes an implementation process of the reconciliation processing method provided by the embodiment of the present invention, taking a service provider as an execution subject.
Fig. 2 is a schematic flow chart of a reconciliation processing method according to a second embodiment of the present invention, and as shown in fig. 2, the reconciliation processing method according to the embodiment of the present invention includes:
s201, receiving a calling request sent by each calling party, wherein the calling request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details;
specifically, each caller may send a call request to a service provider, which receives the call request sent by each caller. The call request comprises transaction identification and transaction information of each transaction, and the transaction information can comprise information such as transaction details. Wherein each transaction has a unique corresponding transaction identification. The transaction amount included in the call request is set according to actual needs, and the embodiment of the invention is not limited.
For example, when a transfer service is required to be performed, the caller may send a transfer request to a service provider providing the transfer service, where the transfer request includes a transaction identifier and transaction information of the transfer transaction, and the transaction information of the transfer transaction may include transaction details including an account transfer-out, an account transfer-in and a transfer amount.
S202, performing accounting processing based on transaction information of each transaction to obtain an accounting processing result of each transaction;
specifically, after receiving the call request, the service provider performs accounting processing based on transaction information of each transaction, and obtains an accounting processing result of each transaction. And the result of the accounting processing is processing success or processing failure. The specific process of accounting processing is the prior art, and the embodiment of the present invention is not described in detail.
For example, after receiving the transfer request, the service provider may initiate an account entry request to an issuer server corresponding to the transferred account according to the transferred account included in the transaction details, where the account entry request includes the transfer amount, and wait for an account entry result returned by the issuer server. And if the account opening bank server successfully accounts into the transferred account and transfers the amount of money, returning account entry success information to the service provider, and after receiving the account entry success information, recording the account processing result of the corresponding transaction as successful processing by the service provider. And if the account opening bank server can not enter the transfer amount into the transferred account, returning account entry failure information to the service provider, and after receiving the account entry failure information, recording an accounting processing result of the corresponding transaction as processing failure by the service provider.
S203, registering transaction records of each transaction in a distributed cache and setting a matching state corresponding to each transaction as to-be-matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result;
specifically, after obtaining the result of the accounting processing of a transaction, the service provider may access the cache server to register the transaction record of the transaction in the distributed cache, and set the matching state corresponding to the transaction as to-be-matched. The service provider repeats the above process, can register the transaction record of each transaction, and register the matching state corresponding to each transaction in the distributed cache. Wherein the transaction record may include information such as the transaction identifier, the transaction details, and the accounting result. It is understood 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.
And S204, returning the response information of the corresponding calling request to each calling party.
Specifically, after the service provider processes the invocation request sent by the caller, the service provider may return response information of the invocation request to the caller. The service provider may return response information of the corresponding invocation request to each of the invokers. Each calling party receives the response information, the response information indicates that the service provider has processed the calling request and registers the transaction record and the corresponding matching state of each transaction in the calling request in the distributed cache, each calling party can inquire the transaction record of each transaction in the distributed cache according to the transaction identification of each transaction in the sent calling request, and if the transaction record corresponding to the transaction identification is inquired, the transaction accounting corresponding to the transaction identification is successful, the matching state corresponding to the transaction identification is changed from the matching waiting state to the matching state; if the transaction record corresponding to the transaction identifier is not inquired, the transaction record corresponding to the transaction identifier shows that the transaction corresponding to the transaction identifier is wrong, the transaction information corresponding to the transaction identifier is registered to the distributed cache, and the matching state corresponding to the transaction identifier is set to be unmatched.
The reconciliation processing method provided by the embodiment of the invention can receive the calling request sent by each calling party, perform accounting processing based on the transaction information of each transaction, obtain the accounting processing result of each transaction, register the transaction record of each transaction in the distributed cache, set the matching state corresponding to each transaction as to-be-matched, and return the response information of the corresponding calling request to each calling party, thereby simplifying the flow of reconciliation processing and improving the reconciliation efficiency.
On the basis of the foregoing embodiments, further, the receiving the invocation request sent by each caller includes:
and receiving a calling request sent by each calling party at regular time.
Specifically, each caller may periodically send a call request to the service provider. The timing is set according to actual service needs, and the embodiment of the present invention is not limited.
For example, for transactions requiring daily batch processing, a call request may be sent to the service provider at 1 am, where the service provider is typically idle to facilitate batch processing of transactions.
On the basis of the foregoing embodiments, further, the reconciliation processing method provided in the embodiment of the present invention further includes:
and after one account checking period is finished, acquiring the transaction records of each transaction with the unmatched matching state from the distributed cache and summarizing the transaction records into error data.
Specifically, after an account checking period is finished, the service provider may query each transaction whose matching status is unmatched from the distributed cache, obtain transaction records of each transaction whose matching status is unmatched, and then summarize the transaction records into error data. The service provider may provide the query data to the relevant personnel for processing. The reconciliation period is set according to actual needs, and the embodiment of the invention is not limited. The end of the reconciliation period can be triggered at fixed time or by a calling party, and is set according to actual needs, which is not limited in the embodiment of the invention.
For example, service provider a provides services for four callers, set at 2 am each day, who send a call request to service provider a. And after the service provider A finishes the accounting processing, registers the transaction records of all transactions and sets the corresponding matching states of all transactions, returning response information of the calling request to each calling party. And the four calling parties respectively perform account checking processing and then return account checking end information to the service provider A. After receiving the reconciliation end information returned by the four calling parties, the service provider A indicates that the current reconciliation period is ended, and the service provider A acquires the transaction records of each transaction with the unmatched matching state from the distributed cache and summarizes the transaction records into error data.
The following describes an implementation process of the reconciliation processing method provided by the embodiment of the present invention by taking a calling party as an execution subject.
Fig. 3 is a schematic flow chart of a reconciliation processing method according to a third embodiment of the present invention, and as shown in fig. 3, the reconciliation processing method according to the embodiment of the present invention includes:
s301, sending a calling request to a service provider to enable the service provider to perform financial processing on each transaction in the calling request, wherein the calling request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details;
specifically, the caller may send a call request to a service provider, and the service provider may receive the call request sent by the caller, where the call request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details. The service provider can perform accounting processing based on the transaction information of each transaction, and obtain an accounting processing result of each transaction. And the result of the accounting processing is processing success or processing failure. The service provider will register the transaction record and corresponding match status for each transaction in a distributed cache. And after the transaction record of each transaction in the calling request and the corresponding matching state are registered, returning response information of the calling request to the calling party. The specific process of accounting processing is the prior art, and the embodiment of the present invention is not described in detail.
S302, receiving response information of the calling request returned by the service provider, and inquiring a corresponding transaction record from a distributed cache according to a transaction identifier of each transaction included in the calling request; wherein the transaction record comprises a unique transaction identifier of the transaction to which the transaction record belongs;
specifically, the caller receives response information of the call request returned by the service provider, where the response information indicates that the service provider has processed the call request and registers, in the distributed cache, the transaction record and the corresponding matching status of each transaction in the call request. And the calling party inquires the transaction record of each transaction from the distributed cache according to the transaction identification of each transaction included in the calling request. The transaction record of each transaction includes a transaction identifier uniquely corresponding to each transaction.
S303, if the transaction record corresponding to the transaction identifier is inquired, changing the matching state corresponding to the transaction identifier into matched state; if the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail;
specifically, if the same transaction identifier is queried from the transaction records of each transaction in the distributed cache according to the transaction identifier, the caller queries the transaction record corresponding to the transaction identifier, and the caller can change the matching state corresponding to the transaction identifier to be matched, which indicates that the transaction is checked and checked. If the same transaction identifier is not inquired from the transaction records of each transaction in the distributed cache according to the transaction identifier by the calling party, the problem of transaction processing corresponding to the transaction identifier is shown, the calling party registers the transaction record corresponding to the transaction identifier into the distributed cache, sets the matching state corresponding to the transaction identifier as unmatched, and shows that the transaction is failed in reconciliation. The caller repeats the above process to complete the reconciliation of each transaction in the call request. Wherein the transaction record includes the transaction identification and the transaction detail.
And S304, returning account checking ending information to the service provider.
Specifically, after the service provider completes reconciliation of each transaction in the call request, the service provider returns reconciliation end information to the service provider to prompt the caller to complete reconciliation processing. The service provider receives the reconciliation end information.
The reconciliation processing method provided by the embodiment of the invention can send a calling request to a service provider so that the service provider can perform accounting processing on each transaction in the calling request, receive response information of the calling request returned by the service provider, inquire a corresponding transaction record from a distributed cache according to a transaction identifier of each transaction in the calling request, and change a matching state corresponding to the transaction identifier into a matched state if the transaction record corresponding to the transaction identifier is inquired; if the transaction record corresponding to the transaction identifier is not inquired, the transaction record corresponding to the transaction identifier is registered into the distributed cache, the matching state corresponding to the transaction identifier is set to be unmatched, account checking ending information is returned to the service provider, the account checking processing flow is simplified, and the account checking efficiency is improved.
On the basis of the foregoing embodiments, further, the sending a call request to a service provider includes:
and sending a call request to the service provider at regular time.
Specifically, the caller may periodically send a call request to the service provider. The timing is set according to actual service needs, and the embodiment of the present invention is not limited.
On one hand, the account checking processing method provided by the embodiment of the invention simplifies the account checking processing flow, does not need centralized processing of data, and reduces the complexity of account checking processing; on the other hand, the error data volume needing to be processed after account checking is greatly reduced, and the processing efficiency is improved. In addition, the summary and the fragmentation of data are not needed in the reconciliation process through the distributed cache, and extra cross-cluster processing is not needed, so that the development workload is reduced.
Fig. 4 is a schematic structural diagram of a reconciliation processing apparatus according to a fourth embodiment of the present invention, and as shown in fig. 4, the reconciliation processing apparatus according to the embodiment of the present invention includes a receiving module 401, an obtaining module 402, a registering module 403, and a returning module 404, where:
the receiving module 401 is configured to receive a call request sent by each calling party, where 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 configured to perform accounting processing based on transaction information of each transaction, and obtain an accounting processing result of each transaction; the registration module 403 is configured to register a transaction record of each transaction in the distributed cache and set a matching state corresponding to each transaction as to-be-matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result; the returning module 404 is configured to return response information of the corresponding invocation request to each caller.
Specifically, each caller may send a call request to the receiving module 401, and the receiving module 401 may receive the call request sent by each caller. The call request comprises transaction identification and transaction information of each transaction, and the transaction information can comprise information such as transaction details. Wherein each transaction has a unique corresponding transaction identification. The transaction amount included in the call request is set according to actual needs, and the embodiment of the invention is not limited.
After receiving the call request, the obtaining module 402 performs accounting processing based on the transaction information of each transaction, and obtains an accounting processing result of each transaction. And the result of the accounting processing is processing success or processing failure. The specific process of accounting processing is the prior art, and the embodiment of the present invention is not described in detail.
After obtaining the result of the accounting processing of a transaction, the registration module 403 may access the cache server to register the transaction record of the transaction in the distributed cache, and set the matching status corresponding to the transaction as to-be-matched. The registration module 403 repeats the above process, may register the transaction record of each transaction, and register the matching status corresponding to each transaction in the distributed cache. Wherein the transaction record may include information such as the transaction identifier, the transaction details, and the accounting result. It is understood 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.
After processing the call request sent by the caller, the returning module 404 may return response information of the call request to the caller. The return module 404 may return response information of the corresponding invocation request to each caller. Each calling party receives the response information, the response information indicates that the service provider has processed the calling request and registers the transaction record and the corresponding matching state of each transaction in the calling request in the distributed cache, each calling party can inquire the transaction record of each transaction in the distributed cache according to the transaction identification of each transaction in the sent calling request, and if the transaction record corresponding to the transaction identification is inquired, the transaction accounting corresponding to the transaction identification is successful, the matching state corresponding to the transaction identification is changed from the matching waiting state to the matching state; if the transaction record corresponding to the transaction identifier is not inquired, the transaction record corresponding to the transaction identifier shows that the transaction corresponding to the transaction identifier is wrong, the transaction information corresponding to the transaction identifier is registered to the distributed cache, and the matching state corresponding to the transaction identifier is set to be unmatched.
The reconciliation processing device provided by the embodiment of the invention can receive the calling request sent by each calling party, perform accounting processing based on the transaction information of each transaction, obtain the accounting processing result of each transaction, register the transaction record of each transaction in the distributed cache, set the matching state corresponding to each transaction as to-be-matched, and return the response information of the corresponding calling request to each calling party, thereby simplifying the flow of reconciliation processing and improving the reconciliation efficiency.
On the basis of the foregoing embodiments, further, the receiving module 401 is specifically configured to:
and receiving a calling request sent by each calling party at regular time.
Fig. 5 is a schematic structural diagram of a reconciliation processing apparatus according to a fifth embodiment of the present invention, and as shown in fig. 5, on the basis of the foregoing embodiments, the reconciliation processing apparatus according to the embodiment of the present invention further includes a summarizing module 405, where:
and the summarizing module 405 is configured to obtain the transaction records of each transaction with the unmatched matching status from the distributed cache after one reconciliation period is finished and summarize the transaction records into error data.
Specifically, after an account checking period is finished, the summarizing module 405 may query each transaction whose matching status is unmatched from the distributed cache, obtain transaction records of each transaction whose matching status is unmatched, and summarize the transaction records into error data. The summary module 405 may provide the query data to relevant personnel for processing. The reconciliation period is set according to actual needs, and the embodiment of the invention is not limited. The end of the reconciliation period can be triggered at fixed time or by a calling party, and is set according to actual needs, which is not limited in the embodiment of the invention.
Fig. 6 is a schematic structural diagram of an account checking apparatus according to a sixth embodiment of the present invention, and as shown in fig. 6, the account checking apparatus according to the sixth embodiment of the present invention includes a first sending module 601, an inquiry module 602, a judgment module 603, and a second sending module 604, where:
the first sending module 601 is 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, where 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 configured to receive response information of the call request returned by the service provider, and query a corresponding transaction record from the distributed cache according to a transaction identifier of each transaction included in the call request; wherein the transaction record includes a transaction identification; the judging module 603 is configured to change a matching state corresponding to the transaction identifier to be matched after querying the transaction record corresponding to the transaction identifier; after the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail; the second sending module 604 returns reconciliation end information to the service provider.
Specifically, the first sending module 601 may send an invocation request to a service provider, and the service provider may receive the invocation request sent by the first sending module 601, where the invocation request includes a transaction identifier and transaction information of each transaction, and the transaction information includes transaction details. The service provider can perform accounting processing based on the transaction information of each transaction, and obtain an accounting processing result of each transaction. And the result of the accounting processing is processing success or processing failure. The service provider will register the transaction record and corresponding match status for each transaction in a distributed cache. After the transaction record and the corresponding matching status of each transaction in the invocation request are registered, the response information of the invocation request is returned to the query module 602. The specific process of accounting processing is the prior art, and the embodiment of the present invention is not described in detail.
The query module 602 receives response information of the invocation request returned by the service provider, where the response information indicates that the service provider has processed the invocation request and registers, in the distributed cache, the transaction record of each transaction in the invocation request and the corresponding matching status. 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.
If the same transaction identifier is found from the transaction records of each transaction in the distributed cache according to the transaction identifier, the determining module 603 finds the transaction record corresponding to the transaction identifier, and the determining module 603 may change the matching state corresponding to the transaction identifier to be matched, indicating that the transaction is checked and checked. If the same transaction identifier is not queried from the transaction records of each transaction in the distributed cache according to the transaction identifier, which indicates that the transaction processing corresponding to the transaction identifier is in a problem, the determining module 603 registers the transaction record corresponding to the transaction identifier in the distributed cache, and sets the matching state corresponding to the transaction identifier to be unmatched, which indicates that the transaction is in a reconciliation failure. The determining module 603 repeats the above process to complete reconciliation of each transaction in the call request. Wherein the transaction record includes the transaction identification and the transaction detail.
After the reconciliation of each transaction in the invocation request is completed, the second sending module 604 returns a reconciliation end message to the service provider to prompt the completion of the reconciliation processing. The service provider receives the reconciliation end information.
The reconciliation processing device provided by the embodiment of the invention can send a calling request to a service provider so that the service provider can perform accounting processing on each transaction in the calling request, receive response information of the calling request returned by the service provider, inquire a corresponding transaction record from a distributed cache according to a transaction identifier of each transaction included in the calling request, and change a matching state corresponding to the transaction identifier into a matched state if the transaction record corresponding to the transaction identifier is inquired; if the transaction record corresponding to the transaction identifier is not inquired, the transaction record corresponding to the transaction identifier is registered into the distributed cache, the matching state corresponding to the transaction identifier is set to be unmatched, account checking ending information is returned to the service provider, the account checking processing flow is simplified, and the account checking efficiency is improved.
On the basis of the foregoing embodiments, further, the first sending module 601 is specifically configured to:
and sending a call request to the service provider at regular time.
The embodiment of the apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flow of the corresponding method embodiment, and the functions of the apparatus are not described herein again, and refer to the detailed description of the corresponding method embodiment.
It should be noted that the reconciliation processing method and apparatus provided by the embodiment of the present invention can be used in the financial field, and can also be used in any technical field except the financial field.
Fig. 7 is a schematic physical structure diagram of an electronic device according to a seventh embodiment of the present invention, and as shown in fig. 7, 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 complete communication with each other through the communication bus 704. The processor 701 may call logic instructions in the memory 703 to perform the following method: receiving a calling request sent by each calling party, wherein the calling request comprises transaction identification and transaction information of each transaction, and the transaction information comprises transaction details; performing accounting processing based on the transaction information of each transaction to obtain an accounting processing result of each transaction; registering a transaction record of each transaction in a distributed cache and setting a matching state corresponding to each transaction as a state to be matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result; and returning the response information of the corresponding calling request to each calling party. Or
Sending a call request to a service provider to enable the service provider to perform financial processing on each transaction in the call request, wherein the call request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details; receiving response information of the calling request returned by the service provider, and inquiring corresponding transaction records from a distributed cache according to the transaction identification of each transaction included in the calling request; wherein the transaction record includes a transaction identification; if the transaction record corresponding to the transaction identifier is inquired, the matching state corresponding to the transaction identifier is changed into matched state; if the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail; and returning account checking end information to the service provider.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: receiving a calling request sent by each calling party, wherein the calling request comprises transaction identification and transaction information of each transaction, and the transaction information comprises transaction details; performing accounting processing based on the transaction information of each transaction to obtain an accounting processing result of each transaction; registering a transaction record of each transaction in a distributed cache and setting a matching state corresponding to each transaction as a state to be matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result; and returning the response information of the corresponding calling request to each calling party. Or
Sending a call request to a service provider to enable the service provider to perform financial processing on each transaction in the call request, wherein the call request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details; receiving response information of the calling request returned by the service provider, and inquiring corresponding transaction records from a distributed cache according to the transaction identification of each transaction included in the calling request; wherein the transaction record includes a transaction identification; if the transaction record corresponding to the transaction identifier is inquired, the matching state corresponding to the transaction identifier is changed into matched state; if the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail; and returning account checking end information to the service provider.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: receiving a calling request sent by each calling party, wherein the calling request comprises transaction identification and transaction information of each transaction, and the transaction information comprises transaction details; performing accounting processing based on the transaction information of each transaction to obtain an accounting processing result of each transaction; registering a transaction record of each transaction in a distributed cache and setting a matching state corresponding to each transaction as a state to be matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result; and returning the response information of the corresponding calling request to each calling party. Or
Sending a call request to a service provider to enable the service provider to perform financial processing on each transaction in the call request, wherein the call request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details; receiving response information of the calling request returned by the service provider, and inquiring corresponding transaction records from a distributed cache according to the transaction identification of each transaction included in the calling request; wherein the transaction record includes a transaction identification; if the transaction record corresponding to the transaction identifier is inquired, the matching state corresponding to the transaction identifier is changed into matched state; if the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail; and returning account checking end information to the service provider.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A reconciliation processing method is characterized by comprising the following steps:
receiving a calling request sent by each calling party, wherein the calling request comprises transaction identification and transaction information of each transaction, and the transaction information comprises transaction details;
performing accounting processing based on the transaction information of each transaction to obtain an accounting processing result of each transaction;
registering a transaction record of each transaction in a distributed cache and setting a matching state corresponding to each transaction as a state to be matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result;
and returning the response information of the corresponding calling request to each calling party.
2. The method of claim 1, wherein receiving the invocation request sent by each caller comprises:
and receiving a calling request sent by each calling party at regular time.
3. The method of claim 1 or 2, further comprising:
and after one account checking period is finished, acquiring the transaction records of each transaction with the unmatched matching state from the distributed cache and summarizing the transaction records into error data.
4. A reconciliation processing method is characterized by comprising the following steps:
sending a call request to a service provider to enable the service provider to perform financial processing on each transaction in the call request, wherein the call request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details;
receiving response information of the calling request returned by the service provider, and inquiring corresponding transaction records from a distributed cache according to the transaction identification of each transaction included in the calling request; wherein the transaction record includes a transaction identification;
if the transaction record corresponding to the transaction identifier is inquired, the matching state corresponding to the transaction identifier is changed into matched state; if the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail;
and returning account checking end information to the service provider.
5. The method of claim 4, wherein sending a call request to a service provider comprises:
and sending a call request to the service provider at regular time.
6. A reconciliation processing apparatus, comprising:
the receiving module is used for receiving a calling request sent by each calling party, wherein the calling request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details;
the acquisition module is used for carrying out accounting processing on the basis of the transaction information of each transaction and acquiring an accounting processing result of each transaction;
the registration module is used for registering the transaction record of each transaction in the distributed cache and setting the matching state corresponding to each transaction as to-be-matched; wherein the transaction record includes the transaction identification, the transaction detail, and the accounting processing result;
and the return module is used for returning the response information of the corresponding calling request to each calling party.
7. The apparatus of claim 6, further comprising:
and the summarizing module is used for acquiring the transaction records of each transaction with the unmatched matching state from the distributed cache after one account checking period is finished and summarizing the transaction records into error data.
8. A reconciliation processing apparatus, comprising:
the system comprises a first sending module, a second sending module and a service providing module, wherein the first sending module is used for sending a calling request to a service providing party so that the service providing party can perform financial processing on each transaction in the calling request, the calling request comprises a transaction identifier and transaction information of each transaction, and the transaction information comprises transaction details;
the query module is used for receiving response information of the call request returned by the service provider and querying a 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 a transaction identification;
the judging module is used for changing the matching state corresponding to the transaction identification into matched state after the transaction record corresponding to the transaction identification is inquired; after the transaction record corresponding to the transaction identifier is not inquired, registering the transaction record corresponding to the transaction identifier into a distributed cache, and setting the matching state corresponding to the transaction identifier as unmatched; wherein the transaction record includes the transaction identification and the transaction detail;
and the second sending module returns account checking end information to the service provider.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 3 are performed by the processor when executing the computer program, or wherein the steps of the method of claim 4 or 5 are performed.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 3, or carries out the steps of the method of claim 4 or 5.
CN202110541345.8A 2021-05-18 2021-05-18 Account checking processing method and device Pending CN113516476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110541345.8A CN113516476A (en) 2021-05-18 2021-05-18 Account checking processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110541345.8A CN113516476A (en) 2021-05-18 2021-05-18 Account checking processing method and device

Publications (1)

Publication Number Publication Date
CN113516476A true CN113516476A (en) 2021-10-19

Family

ID=78064690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110541345.8A Pending CN113516476A (en) 2021-05-18 2021-05-18 Account checking processing method and device

Country Status (1)

Country Link
CN (1) CN113516476A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243586A (en) * 2015-11-11 2016-01-13 中国建设银行股份有限公司 Bank agent insurance system and wrong-account-prevention processing method thereof
CN109118360A (en) * 2018-07-19 2019-01-01 中国联合网络通信集团有限公司 Block chain account checking method, device, equipment and storage medium
CN109377355A (en) * 2018-12-07 2019-02-22 中国银行股份有限公司 Transaction data processing method and device
WO2020047840A1 (en) * 2018-09-07 2020-03-12 威富通科技有限公司 Bill information caching method, bill information query method and terminal device
CN111222869A (en) * 2019-11-27 2020-06-02 中国银行股份有限公司 Transaction data processing method, device, computer equipment and medium
CN111951102A (en) * 2020-08-17 2020-11-17 中国银行股份有限公司 Physical account checking method and device
CN112163946A (en) * 2020-09-30 2021-01-01 中国工商银行股份有限公司 Accounting processing method and device based on distributed transaction system
CN112581296A (en) * 2020-12-16 2021-03-30 中国建设银行股份有限公司 Accounting consistency processing method and device for bank agent insurance system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243586A (en) * 2015-11-11 2016-01-13 中国建设银行股份有限公司 Bank agent insurance system and wrong-account-prevention processing method thereof
CN109118360A (en) * 2018-07-19 2019-01-01 中国联合网络通信集团有限公司 Block chain account checking method, device, equipment and storage medium
WO2020047840A1 (en) * 2018-09-07 2020-03-12 威富通科技有限公司 Bill information caching method, bill information query method and terminal device
CN109377355A (en) * 2018-12-07 2019-02-22 中国银行股份有限公司 Transaction data processing method and device
CN111222869A (en) * 2019-11-27 2020-06-02 中国银行股份有限公司 Transaction data processing method, device, computer equipment and medium
CN111951102A (en) * 2020-08-17 2020-11-17 中国银行股份有限公司 Physical account checking method and device
CN112163946A (en) * 2020-09-30 2021-01-01 中国工商银行股份有限公司 Accounting processing method and device based on distributed transaction system
CN112581296A (en) * 2020-12-16 2021-03-30 中国建设银行股份有限公司 Accounting consistency processing method and device for bank agent insurance system

Similar Documents

Publication Publication Date Title
CN111163129B (en) Resource processing method and device based on cross-link network
TWI706278B (en) Block chain-based transaction processing method and device, and electronic equipment
WO2019042101A1 (en) Cross-chain trading method and apparatus
CN111277639B (en) Method and device for maintaining data consistency
CN111460504B (en) Service processing method, device, node equipment and storage medium
CN108509392B (en) Multi-mechanism account checking method, system, computer equipment and storage medium
CN107203560B (en) Database, multi-database operation transaction consistency ensuring method and system
CN112866421B (en) Intelligent contract operation method and device based on distributed cache and NSQ
WO2021098139A1 (en) Method and device for storing state data of cross-chain transaction, and storage medium
CN112685391B (en) Service data migration method and device, computer equipment and storage medium
CN112446786A (en) Abnormal transaction processing method and device, electronic equipment and readable storage medium
CN108512930B (en) Shared file management method, device, server and storage medium
CN110581893A (en) data transmission method and device, routing equipment, server and storage medium
CN114331382A (en) Batch file processing method, processing device, processor and batch processing system
CN111242621B (en) Transaction data storage method, device, equipment and storage medium
CN115098528B (en) Service processing method, device, electronic equipment and computer readable storage medium
CN112612816A (en) Service result query method, device, equipment and medium for Ether house alliance chain
CN111143040A (en) Transaction processing method, device, system and storage medium
CN113516476A (en) Account checking processing method and device
WO2022206429A1 (en) Distributed transaction implementation method and distributed system
CN113902415A (en) Financial data checking method and device, computer equipment and storage medium
CN115208834A (en) Service flow limiting method based on database storage process design
CN113778950A (en) Credit file obtaining method, index server, query server and medium
CN113298513A (en) Method and system for processing payment request
CN112785302B (en) Message statistics method and device, electronic equipment and readable storage medium

Legal Events

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