CN114493616A - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN114493616A
CN114493616A CN202210143104.2A CN202210143104A CN114493616A CN 114493616 A CN114493616 A CN 114493616A CN 202210143104 A CN202210143104 A CN 202210143104A CN 114493616 A CN114493616 A CN 114493616A
Authority
CN
China
Prior art keywords
transaction
state
transfer
serial number
request
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
CN202210143104.2A
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.)
Boc Financial Technology Co ltd
Original Assignee
Boc Financial Technology Co ltd
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 Boc Financial Technology Co ltd filed Critical Boc Financial Technology Co ltd
Priority to CN202210143104.2A priority Critical patent/CN114493616A/en
Publication of CN114493616A publication Critical patent/CN114493616A/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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/407Cancellation of a transaction

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a data processing method, a data processing device and electronic equipment, which can be applied to the financial field or other fields. The communication server receives a correction request sent by the request initiating server, records the correction easy state of the target original front-end serial number as an initial state, searches whether a transaction flow meter has a first record that the transaction type is normal transfer transaction and the front-end serial number is the target original front-end serial number, if not, changes the correction easy state from the initial state to a first state, and sends information that the original transfer transaction is cancelled to the request initiating server, wherein the first state represents that the correction request comes first and the normal transfer transaction needs to be cancelled. The transfer request corresponding to the correction operation is inquired whether the transfer request arrives first or not when the correction operation is carried out, if the transfer request does not arrive first, the correction request arrives first, the normal transfer transaction needs to be cancelled, the transfer request is directly returned to the request initiating server to send the information that the original transfer transaction is cancelled, and the normal execution of the transaction process is ensured.

Description

Data processing method and device and electronic equipment
Technical Field
The invention relates to the field of transaction correction, in particular to a data processing method and device and electronic equipment.
Background
The reversal, i.e., the withdrawal, withdraws the transaction that was successful in the previous normal transfer, and compared to the reverse transaction, not only restores the previous debit or credit side account balance to the previous one, but also restores the debit or credit side account balance to the previous one, i.e., as much as the previous normal transfer transaction never occurred.
When the reversal operation is carried out, the success of the normal transfer transaction needing the reversal operation needs to be ensured. However, in practical application, a scene that the forward message is sent first exists, the normal transfer transaction message does not arrive yet, the normal transfer transaction is not successful, and the forward message sending operation cannot be executed normally, so that the transaction flow is abnormal.
Disclosure of Invention
In view of this, the present invention provides a data processing method, an apparatus and an electronic device, so as to solve the problem that when a positive message is sent before a negative message is sent, a transaction flow is abnormal.
In order to solve the technical problems, the invention adopts the following technical scheme:
a data processing method is applied to a communication server, and comprises the following steps:
receiving a request for making positive sent by a request initiating server, and acquiring a target original front-end serial number in the request for making positive;
recording the orthogonal exchange state of the target original front-end serial number as an initial state in a transaction flow water meter;
searching whether a first record that the transaction type is normal transfer transaction and the front-end serial number is the target original front-end serial number exists in the transaction flow water meter;
if the transaction does not exist, changing the orthogonal transaction state from the initial state to a first state, and sending information that the original transfer transaction is cancelled to the request initiation server, wherein the first state represents that the forwarding request comes first and the normal transfer transaction needs to be cancelled;
if the transfer transaction state corresponding to the target original front-end serial number is successful or unknown and the conflict normal easy state is not successful, calling a core conflict normal interface of a core processing server to carry out conflict normal operation on the transfer transaction of the target original front-end serial number, adjusting the conflict normal easy state according to a conflict normal result returned by the core processing server, and sending the conflict normal easy state to the request initiating server.
Optionally, in the presence of the first record, further comprising:
and under the condition that the transfer transaction state corresponding to the target original front-end serial number is failure or the orthogonal transaction conflict state is success, setting the orthogonal transaction conflict state as success, and returning positive success conflict information to the request initiating server.
Optionally, the method further comprises:
receiving a transfer request sent by the request initiating server, and determining the front-end serial number of the transfer request;
recording the front-end serial number in a transaction flow meter, wherein the transfer transaction state of the front-end serial number is an initial state;
inquiring whether a second record that the transaction type is orthogonal and easy and the original front-end serial number is the front-end serial number exists in the transaction flow water meter;
if the transfer transaction state of the front-end serial number exists, changing the transfer transaction state of the front-end serial number from the initial state to a second state, and sending information that the transfer transaction is cancelled to the request initiating server; the second state is indicative of the transfer transaction being cancelled.
Optionally, in the absence of the second record, further comprising:
and calling a core transfer interface of a core processing server, performing transfer operation corresponding to the front-end serial number, adjusting the transfer transaction state according to a transfer result returned by the core processing server, and sending the transfer transaction state to the request initiation server.
Optionally, the method further comprises:
receiving a transaction state query request sent by the request initiation server, wherein the transaction state query request comprises a target transaction to be queried;
inquiring a transaction state corresponding to the front-end serial number of the target transaction from the transaction flow meter, wherein the transaction state comprises a transaction state and a transfer transaction state;
and returning the transaction state to the request initiating server.
A data processing apparatus applied to a communication server, the data processing apparatus comprising:
the first request receiving module is used for receiving a request for making positive sent by a request initiating server and acquiring a target original front-end serial number in the request for making positive;
the first state setting module is used for recording the orthogonal running state of the target original front-end serial number as an initial state in the transaction flow water meter;
the first record searching module is used for searching whether a first record exists in the transaction flow meter, wherein the transaction type is normal transfer transaction, and the front-end serial number is the target original front-end serial number;
the second state setting module is used for changing the orthogonal transaction conflict state from the initial state to the first state if the orthogonal transaction conflict state does not exist, and sending information that the original transfer transaction is cancelled to the request initiating server, wherein the first state represents that the positive transfer request comes first and the normal transfer transaction needs to be cancelled;
and if the transfer transaction state corresponding to the target original front-end serial number is successful or unknown and the orthogonal easy state is not successful, calling a core orthogonal interface of a core processing server to carry out orthogonal operation on the transfer transaction of the target original front-end serial number, adjusting the orthogonal easy state according to an orthogonal result returned by the core processing server, and sending the orthogonal easy state to the request initiating server.
Optionally, the flushing processing module is further configured to:
and under the condition that the transfer transaction state corresponding to the target original front-end serial number is failure or the orthogonal transaction conflict state is success, setting the orthogonal transaction conflict state as success, and returning positive success conflict information to the request initiating server.
Optionally, the method further comprises:
the second request receiving module is used for receiving the transfer request sent by the request initiating server and determining the front-end serial number of the transfer request;
the third state setting module is used for recording the front-end serial number in the transaction flow meter, and the transfer transaction state of the end serial number is an initial state;
the second record searching module is used for inquiring whether a second record that the transaction type is orthogonal and easy and the original front-end serial number is the front-end serial number exists in the transaction flow meter;
the transfer processing module is used for changing the transfer transaction state of the front-end serial number from an initial state to a second state and sending information that the transfer transaction is cancelled to the request initiating server if the front-end serial number exists; the second state is indicative of the transfer transaction being cancelled.
Optionally, the transfer processing module is further configured to:
and calling a core transfer interface of a core processing server, performing transfer operation corresponding to the front-end serial number, adjusting the transfer transaction state according to a transfer result returned by the core processing server, and sending the transfer transaction state to the request initiation server.
An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to execute the above-described data processing method.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a data processing method, a device and electronic equipment.A communication server receives a correction request sent by a request initiating server, acquires a target original front-end serial number in the correction request, records the orthogonal easy state of the target original front-end serial number as an initial state in a transaction stream water meter, searches whether the transaction type in the transaction stream water meter is normal transfer transaction and the front-end serial number is a first record of the target original front-end serial number, if not, changes the orthogonal easy state from the initial state to the first state, and sends information that the original transfer transaction is cancelled to the request initiating server, wherein the first state represents that the correction request comes first, the normal transfer transaction needs to be cancelled, and if so, the transfer transaction state corresponding to the target original front-end serial number is successful or unknown, And if the conflict orthogonal easy state is not successful, calling a core conflict interface of a core processing server to carry out conflict orthogonal operation on the transfer transaction of the target original front-end serial number, adjusting the conflict orthogonal easy state according to a conflict orthogonal result returned by the core processing server, and sending the conflict orthogonal easy state to the request initiating server. In the invention, when the correction operation is carried out, whether the transfer request corresponding to the correction operation arrives first or not is inquired, if not, the correction request arrives first, the normal transfer transaction needs to be cancelled, and the information that the original transfer transaction is cancelled is directly returned to the request initiation server, so that the normal execution of the transaction process is ensured, and the reliability of the transaction which arrives first after the correction message is sent is improved.
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 embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another data processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the examples of the present invention, some terms appear as follows:
the reversal, i.e., the withdrawal, withdraws the transaction that was successful in the previous normal transfer, and compared to the reverse transaction, not only restores the previous debit or credit side account balance to the previous one, but also restores the debit or credit side account balance to the previous one, i.e., as much as the previous normal transfer transaction never occurred.
Original transaction: the conflict is easy to designate the normal transfer transaction needing to be resolved, called as the original transaction, when a transaction initiator initiates the transaction, the normal transfer transaction is initiated first, then the conflict transaction is initiated if the transaction initiator is unknown or adjusted, and the conflict is easy to designate which specific normal transaction is made before the conflict.
Front-end serial number: a serial number of the transaction initiator that uniquely identifies the initiator's transaction. The front-end serial number is used for both normal transfer transaction and forward transaction.
In practical application, the conventional financial processing logic of the transfer transaction of the intermediate business system of the bank is that when a normal transfer transaction request initiated by a pedestrian system is received, TIPS (national library system server) of the bank firstly records transaction running water, then a core transfer interface is called to initiate the transfer transaction to a background (core processing server), then the transaction state of the transfer transaction in the transaction running water is updated according to the processing result of the background transfer transaction of the bank, when a transaction request of transaction right is received, the transaction state and the transaction right-flushing state of the original normal transfer transaction to be right-flushing are obtained from a transaction running water table according to the original front-end running water number of the right-flushing transaction, if the original transaction does not exist or the original transaction fails or the original transaction is right-flushing, the same-flushing is successful, the right-flushing is not initiated to the background of the bank any more, and if the transaction state of the original transaction is successful and the right-flushing state is not successful, initiating the reversal to the bank background and updating the reversal state of the original transaction according to the processing result of the background reversal. Regarding the processing logic of normal transfer transaction and reversal transaction, the processing logic is not only commonly processed by the intermediate business system of the department, but also roughly processed by the current core system of the department. When a first-Time (TIPS) and pedestrian system joint debugging test of a national library system of China occurs, a transaction request initiated by a pedestrian arrives at the TIPS system of the pedestrian (MQ remote queue is adopted between the TIPS system of the pedestrian and the pedestrian system for data transmission) in advance than a normal transfer message to be positively flushed at some time, namely the positive message is flushed and then sent first, if the TIPS system processes according to the conventional financial logic, the transfer transaction which needs to be cancelled is not cancelled but the front end (the pedestrian system) is informed that the positive flushing is successful, the financial processing is incorrect, and the transaction flow is abnormal.
In order to solve the technical problem, the inventor finds, through research, that in order to support a scenario in which a transaction is issued first after the transaction is executed, the transaction state of a transaction flow meter in a database needs to be extended and defined, and two new transaction states are added: a-the positive transaction (positive request) comes first, and the normal transfer transaction needs to be cancelled; b, after the normal transaction (transfer transaction), the transaction is cancelled, and when the transaction is just performed, the corresponding transaction state can be inquired, and the subsequent transaction flow is performed according to the difference of the contents of the transaction state.
It should be noted that, interfaces of transactions between the TIPS system and the pedestrian system in my bank need to be agreed in advance, for example, a transaction code field determines a transaction type, a front-end serial number field determines a unique transaction initiated by a pedestrian, and for the forward transaction, an original front-end serial number field is also needed in the interfaces to determine which normal transfer transaction is just before the forward transaction.
The communication server receives a correction request sent by a request initiating server, acquires a target original front-end serial number in the correction request, records the orthogonal easy state of the target original front-end serial number as an initial state in a transaction stream water meter, searches whether a transaction type in the transaction stream water meter is a normal transfer transaction and the front-end serial number is a first record of the target original front-end serial number or not, if not, changes the orthogonal easy state from the initial state to a first state, and sends information that the original transfer transaction is cancelled to the request initiating server, wherein the first state represents that the correction request comes first and the normal transaction needs to be cancelled, and if so, the transfer transaction state corresponding to the target original front-end serial number is successful or unknown, And if the conflict orthogonal easy state is not successful, calling a core conflict interface of a core processing server to carry out conflict orthogonal operation on the transfer transaction of the target original front-end serial number, adjusting the conflict orthogonal easy state according to a conflict orthogonal result returned by the core processing server, and sending the conflict orthogonal easy state to the request initiating server. In the invention, when the correction operation is carried out, whether the transfer request corresponding to the correction operation arrives first or not is inquired, if not, the correction request arrives first, the normal transfer transaction needs to be cancelled, and the information that the original transfer transaction is cancelled is directly returned to the request initiation server, so that the normal execution of the transaction process is ensured, and the reliability of the transaction which arrives first after the correction message is sent is improved.
It should be noted that the data processing method, the data processing device and the electronic device provided by the invention can be used in the financial field or other fields, for example, can be used in correction application scenarios in the financial field. The other fields are arbitrary fields other than the financial field, for example, the communication field. The foregoing is merely an example, and does not limit the application fields of the data processing method, the data processing apparatus, and the electronic device provided by the present invention.
On the basis of the above content, the embodiment of the present invention provides a data processing method, which is applied to a communication server, where the communication server may be a TIPS system server in my linens.
Referring to fig. 1, may include:
s11, receiving a request for positive flushing sent by the request initiating server, and acquiring the target original front-end serial number in the request for positive flushing.
The request initiation server in this embodiment may be the pedestrian system server, that is, after receiving the forward rushing request sent by the pedestrian system server, the my pedestrian TIPS system server obtains the target original front-end serial number in the forward rushing request, so as to perform forward rushing operation.
And S12, recording the orthogonal reciprocal state of the target original front-end serial number in the transaction flow meter as an initial state.
In practical application, the punching orthogonal book is firstly subjected to floor processing, namely the punching orthogonal book records the transaction flow meter, and the punching orthogonal book state of the punching positive transaction is an initial state.
S13, whether a first record exists; if not, go to step S14; if so, go to step S15.
Specifically, whether a first record that the transaction type is normal transfer transaction and the front-end serial number is the target original front-end serial number exists in the transaction flow meter is searched.
In detail, according to the original front-end serial number of the positive transaction, a transaction flow meter is searched to see whether the transaction type is normal transfer transaction and the front-end serial number is the record of the original front-end serial number of the positive transaction.
In this embodiment, the presence of the record is found to determine whether the corrective request corresponding to the transfer transaction has arrived prior to the arrival of the transfer request.
S14, changing the conflict orthogonal state from the initial state to the first state, and sending the information that the original transfer transaction is cancelled to the request initiating server.
Wherein the first state characterizes that the request for positive transfer comes first and that normal transfer transactions need to be cancelled.
Specifically, if no normal transfer transaction record exists, namely the normal transfer transaction to be cancelled does not arrive, the transaction state of the transaction to be cancelled is set as 'a', the transaction to be cancelled (the request to be cancelled) comes first, and meanwhile, the information that the original transfer transaction is cancelled (the same transaction is considered to be successful) is returned to the personnel. At the moment, the transfer transaction of the target original front-end serial number does not need to be carried out with the correction operation by calling a core correction interface of the core processing server.
And S15, if the transfer transaction state corresponding to the target original front-end serial number is successful or unknown and the direct transaction state is not successful, calling a core direct interface of a core processing server to perform direct operation on the transfer transaction of the target original front-end serial number, and returning the original normal deduction transaction. And adjusting the orthogonal reciprocity state according to the alignment result returned by the core processing server, and sending the orthogonal reciprocity state to the request initiating server.
Specifically, if the normal transfer transaction record exists, the transfer transaction state and the reversal normal transaction state of the transfer transaction are judged, and if the transfer transaction state is successful or unknown and the reversal normal transaction state is not successful, a core reversal interface of a core processing server is called to initiate a reversal request to a background, so that the background carries out reversal operation on the transfer transaction of the target original front-end serial number.
And then setting the conflict normal state of the normal transfer transaction according to the conflict positive result returned by the background, setting the conflict normal state of the conflict positive transaction, and returning the conflict positive result to the pedestrian.
In another implementation manner of the present invention, in a case where the first record exists, the method further includes:
and under the condition that the transfer transaction state corresponding to the target original front-end serial number is failure or the orthogonal transaction conflict state is success, setting the orthogonal transaction conflict state as success, and returning positive success conflict information to the request initiating server.
Specifically, in other situations where the transaction state of the transfer transaction and the conflict state are combined, for example, the transfer transaction state is failed, or the conflict state is successful (in a scenario where the conflict request is repeatedly sent for many times), the conflict request is not initiated to the background according to the conflict success, only the conflict state of the conflict transaction is set to be successful, and the conflict success information is returned to the pedestrian.
In another implementation of the present invention, referring to fig. 2, the method further includes:
and S21, receiving the transfer request sent by the request initiating server, and determining the front-end serial number of the transfer request.
In this embodiment, when the pedestrian system server has a transfer demand, a transfer request is initiated, and at this time, after the TIPS system of the self receives a normal transfer transaction request sent by the pedestrian, the TIPS system server of the self configures a front-end serial number for the transfer request.
And S22, recording the front-end serial number in the transaction flow meter, wherein the transfer transaction state of the front-end serial number is an initial state.
Specifically, the transfer transaction is recorded on a transaction flow meter, and the transfer transaction state is an initial state.
S23, whether a second record exists; if yes, go to step S24; if not, go to step S25.
Specifically, whether a second record that the transaction type is orthogonal and easy and the original front-end serial number is the front-end serial number exists in the transaction flow meter is inquired.
In detail, according to the front-end serial number of the normal transaction, the transaction flow meter is searched to see whether the transaction type is orthogonal transaction and the original front-end serial number is the record of the front-end serial number of the normal transaction.
And determining whether the second record exists or not, wherein the second record is used for determining whether the second record is sent first after a correction request exists or not, and the abnormity of the transaction flow is avoided.
S24, changing the state of the transfer transaction of the front-end serial number from the initial state to a second state, and sending the information that the transfer transaction is cancelled to the request initiating server.
Wherein the second status indicates that the transfer transaction has been cancelled.
Specifically, if the second record exists, namely the orthogonal easy record exists, the transfer transaction state of the normal transfer transaction is set as ' b ' -the transfer transaction is cancelled after the normal transfer transaction (transfer transaction '), and meanwhile, the information that the transfer transaction is cancelled is returned to the personnel.
In the step, the transaction flow meter is also required to be recorded when the normal transfer transaction is reached, whether the transaction is positive in the flow is inquired before the transfer, and if the transaction is positive in the flow, the transfer transaction is cancelled without initiating a transfer request to a background. Namely, when the transaction is sent first and then arrived, the normal transfer transaction which is sent first and then arrived can be cancelled, and the account can be correctly processed.
In the case where the second recording does not exist, step S25 is executed.
And S25, calling a core transfer interface of a core processing server, performing transfer operation corresponding to the front-end serial number, adjusting the transfer transaction state according to the transfer result returned by the core processing server, and sending the transfer transaction state to the request initiation server.
Specifically, if no positive transaction record exists, a core transfer interface of a core processing server is called to initiate a transfer request to a background, the background performs transfer operation corresponding to the front-end serial number, and specifically, a transfer transaction module of the background completes fund transfer between two accounts of a bank core system.
And then, setting the transfer transaction state of the normal transfer transaction according to the transfer result returned by the background, and simultaneously returning the transfer transaction state to the pedestrian.
In the implementation process, under some special conditions, after the pedestrian initiates a normal transfer transaction or a forward transaction, the pedestrian may not receive a processing result returned by the TIPS system of the pedestrian, and at this time, the pedestrian may initiate a transaction state query to the pedestrian to obtain a transaction processing result.
Specifically, a transaction state query request sent by the request initiation server is received, the transaction state query request includes a target transaction to be queried, a transaction state corresponding to a front-end serial number of the target transaction is queried from the transaction flow meter, the transaction state includes a transaction state and a transfer transaction state, and the transaction state is returned to the request initiation server.
In this embodiment, a communication server receives a request for direct transfer sent by a request initiation server, obtains a target original front-end serial number in the request for direct transfer, records an orthogonal transaction state of the target original front-end serial number as an initial state in a transaction flow water meter, searches whether a first record that a transaction type is a normal transfer transaction and the front-end serial number is the target original front-end serial number exists in the transaction flow water meter, if not, changes the orthogonal transaction state from the initial state to a first state, and sends information that the original transfer transaction is cancelled to the request initiation server, where the first state represents that the request for direct transfer comes first, the normal transfer transaction needs to be cancelled, and if so, if the transfer transaction state corresponding to the target original front-end serial number is successful or unknown and the orthogonal transaction state is not successful, a core direct transfer interface of a core processing server is called to forward transfer the transfer transaction of the target original front-end serial number And line alignment operation, namely adjusting the alignment easy state according to an alignment result returned by the core processing server, and sending the alignment easy state to the request initiating server. In the invention, when the correction operation is carried out, whether the transfer request corresponding to the correction operation arrives first or not is inquired, if not, the correction request arrives first, the normal transfer transaction needs to be cancelled, and the information that the original transfer transaction is cancelled is directly returned to the request initiation server, so that the normal execution of the transaction process is ensured, and the reliability of the transaction which arrives first after the correction message is sent is improved.
In addition, in the embodiment, when the transaction is sent first after the transaction is executed, no matter the transaction is executed orthogonally or the original transaction reaches the system, the financial processing interface of the background core of the bank does not need to be called, and only the transaction state needs to be set locally, so that the processing efficiency of the bank system is greatly improved.
Alternatively, on the basis of the above embodiment of the data processing method, another embodiment of the present invention provides a data processing apparatus applied to a communication server, and referring to fig. 3, the data processing apparatus includes:
the first request receiving module 11 is configured to receive a request for making positive sent by a request initiating server, and obtain a target original front-end serial number in the request for making positive;
the first state setting module 12 is configured to record, in the transaction flow meter, that the orthogonal reciprocal state of the target original front-end serial number is an initial state;
the first record searching module 13 is configured to search whether a first record exists in the transaction flow meter, where the transaction type is a normal transfer transaction and a front-end serial number is the target original front-end serial number;
a second state setting module 14, configured to change the orthogonal transaction state from the initial state to a first state if the orthogonal transaction state does not exist, and send information that the original transfer transaction has been cancelled to the request initiation server, where the first state indicates that the forwarding request comes first and the normal transfer transaction needs to be cancelled;
and the correcting processing module 15 is configured to, if the transfer transaction state corresponding to the target original front-end serial number is successful or unknown and the correcting easy state is not successful, call a core correcting interface of a core processing server to perform correcting operation on the transfer transaction of the target original front-end serial number, adjust the correcting easy state according to a correcting result returned by the core processing server, and send the correcting easy state to the request initiation server.
Further, the flushing processing module is further configured to:
and under the condition that the transfer transaction state corresponding to the target original front-end serial number is failure or the orthogonal transaction conflict state is success, setting the orthogonal transaction conflict state as success, and returning positive success conflict information to the request initiating server.
Further, still include:
the second request receiving module is used for receiving the transfer request sent by the request initiating server and determining the front-end serial number of the transfer request;
the third state setting module is used for recording the front-end serial number in the transaction flow meter, and the transfer transaction state of the end serial number is an initial state;
the second record searching module is used for inquiring whether a second record that the transaction type is orthogonal and easy and the original front-end serial number is the front-end serial number exists in the transaction flow meter;
the transfer processing module is used for changing the transfer transaction state of the front-end serial number from an initial state to a second state and sending information that the transfer transaction is cancelled to the request initiating server if the front-end serial number exists; the second state is indicative of the transfer transaction being cancelled.
Further, the transfer processing module is further configured to:
and calling a core transfer interface of a core processing server, performing transfer operation corresponding to the front-end serial number, adjusting the transfer transaction state according to a transfer result returned by the core processing server, and sending the transfer transaction state to the request initiation server.
Further, still include:
and the transaction inquiry module is used for receiving a transaction state inquiry request sent by the request initiating server, inquiring a transaction state corresponding to a front-end serial number of the target transaction from the transaction flow meter, wherein the transaction state comprises a transaction state and a transfer transaction state, and returning the transaction state to the request initiating server.
In this embodiment, a communication server receives a request for direct transfer sent by a request initiation server, obtains a target original front-end serial number in the request for direct transfer, records an orthogonal transaction state of the target original front-end serial number as an initial state in a transaction flow water meter, searches whether a first record that a transaction type is a normal transfer transaction and the front-end serial number is the target original front-end serial number exists in the transaction flow water meter, if not, changes the orthogonal transaction state from the initial state to a first state, and sends information that the original transfer transaction is cancelled to the request initiation server, where the first state represents that the request for direct transfer comes first, the normal transfer transaction needs to be cancelled, and if so, if the transfer transaction state corresponding to the target original front-end serial number is successful or unknown and the orthogonal transaction state is not successful, a core direct transfer interface of a core processing server is called to forward transfer the transfer transaction of the target original front-end serial number And line alignment operation, namely adjusting the alignment easy state according to an alignment result returned by the core processing server, and sending the alignment easy state to the request initiating server. In the invention, when the correction operation is carried out, whether the transfer request corresponding to the correction operation arrives first or not is inquired, if not, the correction request arrives first, the normal transfer transaction needs to be cancelled, and the information that the original transfer transaction is cancelled is directly returned to the request initiation server, so that the normal execution of the transaction process is ensured, and the reliability of the transaction which arrives first after the correction message is sent is improved.
It should be noted that, for the working process of each module in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of the embodiments of the data processing method and apparatus, another embodiment of the present invention provides an electronic device, where the electronic device may be the communication server, and the electronic device includes: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to execute the above-described data processing method.
In this embodiment, a communication server receives a positive request sent by a request initiation server, acquires a target original front-end serial number in the positive request, records a positive easily state of the target original front-end serial number as an initial state in a transaction serial meter, searches whether a first record that a transaction type is a normal transfer transaction and a front-end serial number is the target original front-end serial number exists in the transaction serial meter, if the first record does not exist, changes the positive easily state from the initial state to a first state, and sends information that the original transfer transaction is cancelled to the request initiation server, wherein the first state represents that the positive request comes first, the normal transfer transaction needs to be cancelled, and if the positive easily state exists, if the positive easily state is a successful state or an unknown state and the positive easily state does not succeed, a core positive interface of a core processing server is called to facilitate transfer of the target original front-end serial number And line alignment operation, namely adjusting the alignment easy state according to an alignment result returned by the core processing server, and sending the alignment easy state to the request initiating server. In the invention, when the correction operation is carried out, whether the transfer request corresponding to the correction operation arrives first or not is inquired, if not, the correction request arrives first, the normal transfer transaction needs to be cancelled, and the information that the original transfer transaction is cancelled is directly returned to the request initiation server, so that the normal execution of the transaction process is ensured, and the reliability of the transaction which arrives first after the correction message is sent is improved.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A data processing method is applied to a communication server, and the data processing method comprises the following steps:
receiving a request for making positive sent by a request initiating server, and acquiring a target original front-end serial number in the request for making positive;
recording the orthogonal exchange state of the target original front-end serial number as an initial state in a transaction flow water meter;
searching whether a first record that the transaction type is normal transfer transaction and the front-end serial number is the target original front-end serial number exists in the transaction flow water meter;
if the transaction does not exist, the conflict normal transaction state is changed from the initial state to a first state, and information that the original transfer transaction is cancelled is sent to the request initiating server, wherein the first state represents that the conflict normal transaction request comes first and the normal transfer transaction needs to be cancelled;
if the transfer transaction state corresponding to the target original front-end serial number is successful or unknown and the conflict normal easy state is not successful, calling a core conflict normal interface of a core processing server to carry out conflict normal operation on the transfer transaction of the target original front-end serial number, adjusting the conflict normal easy state according to a conflict normal result returned by the core processing server, and sending the conflict normal easy state to the request initiating server.
2. The data processing method according to claim 1, further comprising, in the presence of the first record:
and under the condition that the transfer transaction state corresponding to the target original front-end serial number is failure or the orthogonal-to-easy-to-forward state is success, setting the orthogonal-to-easy-to-forward state as success, and returning forward-to-forward success information to the request initiating server.
3. The data processing method of claim 1, further comprising:
receiving a transfer request sent by the request initiating server, and determining the front-end serial number of the transfer request;
recording the front-end serial number in a transaction flow meter, wherein the transfer transaction state of the front-end serial number is an initial state;
inquiring whether a second record that the transaction type is orthogonal and easy and the original front-end serial number is the front-end serial number exists in the transaction flow water meter;
if the transfer transaction state of the front-end serial number exists, changing the transfer transaction state of the front-end serial number from the initial state to a second state, and sending information that the transfer transaction is cancelled to the request initiating server; the second state is indicative of the transfer transaction being cancelled.
4. The data processing method of claim 3, further comprising, in the absence of the second record:
and calling a core transfer interface of a core processing server, performing transfer operation corresponding to the front-end serial number, adjusting the transfer transaction state according to a transfer result returned by the core processing server, and sending the transfer transaction state to the request initiation server.
5. The data processing method of claim 1, further comprising:
receiving a transaction state query request sent by the request initiation server, wherein the transaction state query request comprises a target transaction to be queried;
inquiring a transaction state corresponding to the front-end serial number of the target transaction from the transaction flow meter, wherein the transaction state comprises a transaction state and a transfer transaction state;
and returning the transaction state to the request initiating server.
6. A data processing apparatus, applied to a communication server, the data processing apparatus comprising:
the first request receiving module is used for receiving a request for making positive sent by a request initiating server and acquiring a target original front-end serial number in the request for making positive;
the first state setting module is used for recording the orthogonal running state of the target original front-end serial number as an initial state in the transaction flow water meter;
the first record searching module is used for searching whether a first record exists in the transaction flow meter, wherein the transaction type is normal transfer transaction, and the front-end serial number is the target original front-end serial number;
the second state setting module is used for changing the orthogonal transaction conflict state from the initial state to the first state if the orthogonal transaction conflict state does not exist, and sending information that the original transfer transaction is cancelled to the request initiating server, wherein the first state represents that the positive transfer request comes first and the normal transfer transaction needs to be cancelled;
and if the transfer transaction state corresponding to the target original front-end serial number is successful or unknown and the orthogonal easy state is not successful, calling a core orthogonal interface of a core processing server to carry out orthogonal operation on the transfer transaction of the target original front-end serial number, adjusting the orthogonal easy state according to an orthogonal result returned by the core processing server, and sending the orthogonal easy state to the request initiating server.
7. The data processing apparatus of claim 6, wherein the flushing processing module is further configured to:
and under the condition that the transfer transaction state corresponding to the target original front-end serial number is failure or the orthogonal-to-easy-to-forward state is success, setting the orthogonal-to-easy-to-forward state as success, and returning forward-to-forward success information to the request initiating server.
8. The data processing apparatus of claim 6, further comprising:
the second request receiving module is used for receiving the transfer request sent by the request initiating server and determining the front-end serial number of the transfer request;
the third state setting module is used for recording the front-end serial number in the transaction flow meter, and the transfer transaction state of the end serial number is an initial state;
the second record searching module is used for inquiring whether a second record that the transaction type is orthogonal and easy and the original front-end serial number is the front-end serial number exists in the transaction flow meter;
the transfer processing module is used for changing the transfer transaction state of the front-end serial number from an initial state to a second state and sending information that the transfer transaction is cancelled to the request initiating server if the front-end serial number exists; the second state is indicative of the transfer transaction being cancelled.
9. The data processing method of claim 8, wherein the transfer processing module is further configured to:
and calling a core transfer interface of a core processing server, performing transfer operation corresponding to the front-end serial number, adjusting the transfer transaction state according to a transfer result returned by the core processing server, and sending the transfer transaction state to the request initiation server.
10. An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
a processor calls a program and is arranged to perform the data processing method of any of claims 1-5.
CN202210143104.2A 2022-02-16 2022-02-16 Data processing method and device and electronic equipment Pending CN114493616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210143104.2A CN114493616A (en) 2022-02-16 2022-02-16 Data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210143104.2A CN114493616A (en) 2022-02-16 2022-02-16 Data processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114493616A true CN114493616A (en) 2022-05-13

Family

ID=81483132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210143104.2A Pending CN114493616A (en) 2022-02-16 2022-02-16 Data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114493616A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097625A (en) * 2006-06-29 2008-01-02 中国银联股份有限公司 Method for enhancing bank card transaction processing system RAS performance and system
WO2015085809A1 (en) * 2013-12-09 2015-06-18 成都达信通通讯设备有限公司 Mobile payment security system with wireless data private network physically isolated from internet
CN108961060A (en) * 2018-07-16 2018-12-07 中国银行股份有限公司 A kind of abnormality eliminating method and system of cross-border money transfer transactions
CN113159960A (en) * 2021-05-20 2021-07-23 中国建设银行股份有限公司 Processing method, device, equipment and storage medium for hedge transaction

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097625A (en) * 2006-06-29 2008-01-02 中国银联股份有限公司 Method for enhancing bank card transaction processing system RAS performance and system
WO2015085809A1 (en) * 2013-12-09 2015-06-18 成都达信通通讯设备有限公司 Mobile payment security system with wireless data private network physically isolated from internet
CN108961060A (en) * 2018-07-16 2018-12-07 中国银行股份有限公司 A kind of abnormality eliminating method and system of cross-border money transfer transactions
CN113159960A (en) * 2021-05-20 2021-07-23 中国建设银行股份有限公司 Processing method, device, equipment and storage medium for hedge transaction

Similar Documents

Publication Publication Date Title
CN107436799B (en) Method and device for realizing consistency of distributed transactions
CN111277639B (en) Method and device for maintaining data consistency
CN106844014B (en) Method and device for realizing suspension prevention of distributed transactions
CN109542964B (en) Data calling method and data calling system
WO2011120452A2 (en) Method for updating data and control apparatus thereof
CN112288577B (en) Transaction processing method, device, electronic equipment and medium for distributed service
CN112446786A (en) Abnormal transaction processing method and device, electronic equipment and readable storage medium
CN111062723A (en) Virtual account transfer method, device, system and storage medium
CN111026769A (en) Working method of dual-core front-end system and related equipment thereof
CN112995262B (en) Distributed transaction submission method, system and computing equipment
CN112596801B (en) Transaction processing method, device, equipment, storage medium and database
CN109325073B (en) Method and device for realizing distributed transaction
CN113111077A (en) Consistency control method, consistency control device, electronic equipment, consistency control medium and program product
CN114493616A (en) Data processing method and device and electronic equipment
CN111259032A (en) Service processing method and device
CN111143040A (en) Transaction processing method, device, system and storage medium
WO2022199229A1 (en) Suspended transaction inspection method and apparatus, electronic device and storage medium
CN113191901B (en) Transaction service processing method, device, equipment and storage medium
JP5979719B2 (en) ATM system and method
CN111768293B (en) Transaction information processing method, device, equipment and storage medium
CN109347940B (en) Method and device for processing cross-domain service request and request for cross-domain service
CN114579406A (en) Method and device for realizing consistency of distributed transactions
CN114066476A (en) Method, device and storage medium for solving issue-first issue of distributed application transaction
CN111861746A (en) Method and device for processing transaction data
CN110008010B (en) System calling method, device, 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