CN111652729B - Method and device for reporting transaction information - Google Patents

Method and device for reporting transaction information Download PDF

Info

Publication number
CN111652729B
CN111652729B CN202010639629.6A CN202010639629A CN111652729B CN 111652729 B CN111652729 B CN 111652729B CN 202010639629 A CN202010639629 A CN 202010639629A CN 111652729 B CN111652729 B CN 111652729B
Authority
CN
China
Prior art keywords
information
reported
transaction
real
recombination
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.)
Active
Application number
CN202010639629.6A
Other languages
Chinese (zh)
Other versions
CN111652729A (en
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010639629.6A priority Critical patent/CN111652729B/en
Publication of CN111652729A publication Critical patent/CN111652729A/en
Application granted granted Critical
Publication of CN111652729B publication Critical patent/CN111652729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for reporting transaction information, wherein the method comprises the following steps: receiving transaction real-time information; carrying out information recombination on the received transaction real-time information through a preset first long hanging process to obtain information to be reported; when the information recombination is wrong, the received transaction real-time information is recombined; pushing information to be reported generated by the first long hanging process through a preset second long hanging process; and re-pushing the information to be reported generated by the first long hanging process when the information to be reported generated by the first long hanging process is pushed to have errors. According to the invention, when the information recombination or the information pushing is wrong, the information recombination or the information pushing can be carried out again, so that the timeliness of the transaction information reporting is ensured, the situation that only error data can be recorded when the information reporting is wrong is avoided, and the transaction real-time information can be reported in real time under the condition of batch processing at night, and the timeliness of the transaction information reporting is ensured.

Description

Method and device for reporting transaction information
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for reporting transaction information.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
The bank systems are huge in size, the peripheral bank systems are numerous, and the dependency relationship among the peripheral bank systems is also star chess distribution. And the information report is used as a common mechanism of the banking system and is a starting point of the whole peripheral banking system to receive data. The information reporting refers to collecting information in the account transaction process and reporting the information to a peripheral system for further processing and processing.
In order to improve the efficiency of information reporting, each banking system adopts an asynchronous processing mechanism when reporting information, namely, when trading, part of real-time data is stored in a designated table, and in an asynchronous stage, a long hanging process is used for carrying out information recombination and pushing the recombined information to a peripheral system (the process is the running activity of a program in a computer, and the long hanging process refers to a process which does not stop running, namely, the process is always in a working state).
If error data occurs in the information report, the received information data of the whole downstream peripheral bank system is disordered. For example, the asynchronous processing stage involves techniques such as information reorganization of a banking system, real-time scanning of a long hanging process, and communication of a message queue, and errors are inevitably generated through the above links. For example, when a peripheral bank system discovers error data, time and effort are required to locate the cause of the problem, and repair is difficult, so that great losses are caused to customers and banks.
At present, the mechanism for processing error data in information report of each bank system, namely the error data processing mechanism, is single: when the information is reported and errors occur, the data with errors are recorded in a designated table, and asynchronous processing is carried out again on the data with errors in the designated table through a batch processing program in a night batch mode. Night batch refers to batch processing of fixed operations such as settling, text downloading, data table cleaning, etc. at the end of the day.
As described above, the peripheral banking systems all have clear time requirements for information reporting of the banking systems, and part of the peripheral banking systems require real-time pushing of the banking systems. At present, when information is reported, an asynchronous processing mechanism for processing information report in each bank system is to reconstruct information by a long hanging process and push the reconstructed information to a peripheral system, so that abnormal data is easy to appear, and under the existing abnormal processing mechanism, only abnormal data can be recorded and processed in batches at night, so that timeliness of information report is difficult to guarantee compared with batch at night.
Disclosure of Invention
The embodiment of the invention provides a method for reporting transaction information, which is used for ensuring timeliness of information reporting, and comprises the following steps:
Receiving transaction real-time information;
carrying out information recombination on the received transaction real-time information through a preset first long hanging process to obtain information to be reported;
when the information recombination is wrong, the received transaction real-time information is recombined through a preset first long hanging process until the information recombination is successful or the number of times of carrying out information recombination on the transaction real-time information again exceeds a preset value;
pushing information to be reported generated by the first long hanging process through a preset second long hanging process;
when the information to be reported generated by the first long hanging process is pushed to be wrong, the information to be reported generated by the first long hanging process is pushed again through a preset second long hanging process until the information to be reported is successfully pushed or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value.
The embodiment of the invention also provides a device for reporting transaction information, which is used for ensuring timeliness of information reporting, and comprises the following components:
the transaction real-time information receiving module is used for receiving the transaction real-time information;
the information reorganization module is used for reorganizing the received transaction real-time information through a preset first long hanging process to obtain information to be reported;
The information reorganization retry module is used for reorganizing the transaction real-time information through a preset first long hanging process when the information reorganization is wrong, until the information reorganization is successful or the number of times of reorganizing the transaction real-time information exceeds a preset value;
the information pushing module is used for pushing information to be reported generated by the first long hanging process through a preset second long hanging process;
the information pushing retry module is used for pushing the information to be reported generated by the first long hanging process again through a preset second long hanging process when the information to be reported generated by the first long hanging process is in error, until the information to be reported is successfully pushed or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for reporting the transaction information when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the method for reporting transaction information.
In the embodiment of the invention, transaction real-time information is received; carrying out information recombination on the received transaction real-time information through a preset first long hanging process to obtain information to be reported; when the information recombination is wrong, the received transaction real-time information is recombined through a preset first long hanging process until the information recombination is successful or the number of times of carrying out information recombination on the transaction real-time information again exceeds a preset value; pushing information to be reported generated by the first long hanging process through a preset second long hanging process; when the information to be reported generated by the first long hanging process is pushed to be wrong, the information to be reported generated by the first long hanging process is pushed again through a preset second long hanging process until the information to be reported is pushed successfully or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value, so that when the information recombination or the information pushing is wrong, the information recombination or the information pushing can be carried out again, and the timeliness of transaction information reporting is ensured. Compared with the prior art, the method can directly re-carry out information reorganization or information pushing, can only record error data when error occurs in information reporting, and can enable transaction real-time information to be reported in real time under the condition of batch processing at night, and ensures timeliness of the transaction information reporting.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
fig. 1 is a flow chart of a method for reporting transaction information according to an embodiment of the present invention;
FIG. 2 is a flowchart of an example of a method for reporting transaction information according to an embodiment of the present invention;
FIG. 3 is a flowchart of an example of a method for reporting transaction information according to an embodiment of the present invention;
FIG. 4 is a flowchart of an example of a method for reporting transaction information according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for reporting transaction information according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
The inventors found that: at present, the mechanism of handling abnormality of each bank system is single: the long hanging process performs single asynchronous processing, but only one long hanging process is arranged under the existing mechanism, the process simultaneously completes the functions of information recombination and information pushing to a peripheral system, and meanwhile, no scheme for recording transaction real-time information, information waiting to be sent and pushing failure exists. In the prior art, when the recombination of the long hanging process information is successful, recording the information after the recombination is successful, pushing the record to a peripheral system, updating the record of the pushing state of the report information to be a successful state when the pushing is successful, and updating to be a failure state when the failure is occurred; if the information recombination fails, only recording the error report record of the information recombination failure.
During batch at night, the batch processing program scans unprocessed and unsuccessful records in a record form of transaction real-time information, further performs asynchronous processing again, and then downloads successful records of information report and failure records of information report to a peripheral system. Recording successful report records of the core system on the same day in the record of information report, and downloading the table to avoid data loss in the transmission and receiving processes; the failure record list of information report is abnormal data for telling the peripheral system core system.
At present, when information is reported, an asynchronous processing mechanism for processing information report in each bank system is to reconstruct information by a long hanging process and push the reconstructed information to a peripheral system, so that abnormal data is easy to appear, and under the existing abnormal processing mechanism, only abnormal data can be recorded and processed in batches at night, so that timeliness of information report is difficult to guarantee compared with batch at night.
An embodiment of the present invention provides a method for reporting transaction information, which is used for guaranteeing timeliness of information reporting, as shown in fig. 1, and the method may include:
step 101: receiving transaction real-time information;
step 102: carrying out information recombination on the received transaction real-time information through a preset first long hanging process to obtain information to be reported;
step 103: when the information recombination is wrong, the received transaction real-time information is recombined through a preset first long hanging process until the information recombination is successful or the number of times of carrying out information recombination on the transaction real-time information again exceeds a preset value;
step 104: pushing information to be reported generated by the first long hanging process through a preset second long hanging process;
Step 105: when the information to be reported generated by the first long hanging process is pushed to be wrong, the information to be reported generated by the first long hanging process is pushed again through a preset second long hanging process until the information to be reported is successfully pushed or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value.
In the embodiment of the invention, transaction real-time information is received; carrying out information recombination on the received transaction real-time information through a preset first long hanging process to obtain information to be reported; when the information recombination is wrong, the received transaction real-time information is recombined through a preset first long hanging process until the information recombination is successful or the number of times of carrying out information recombination on the transaction real-time information again exceeds a preset value; pushing information to be reported generated by the first long hanging process through a preset second long hanging process; when the information to be reported generated by the first long hanging process is pushed to be wrong, the information to be reported generated by the first long hanging process is pushed again through a preset second long hanging process until the information to be reported is pushed successfully or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value, so that when the information recombination or the information pushing is wrong, the information recombination or the information pushing can be carried out again, and the timeliness of transaction information reporting is ensured. Compared with the prior art, the method can directly re-carry out information reorganization or information pushing, can only record error data when error occurs in information reporting, and can enable transaction real-time information to be reported in real time under the condition of batch processing at night, and ensures timeliness of the transaction information reporting.
In practice, transaction real-time information is first received.
In an embodiment, a flow of receiving transaction real-time information may be shown in fig. 2, and fig. 2 is a flow diagram of an example of a method for reporting transaction information according to an embodiment of the present invention. In fig. 2, a transaction request is first received, and transaction real-time information is recorded, and key values of the transaction real-time information are recorded.
In the above embodiment, recording the transaction real-time information may include: the transaction real-time information may be recorded into a transaction information record table. In an embodiment, when the transaction real-time information is recorded in the transaction information recording table, the method may further include: and recording the recombination state of the transaction real-time information into a transaction information recording table at the same time, wherein the recombination state of the transaction real-time information can be a transaction real-time information recombination success state and a transaction real-time information recombination failure state. Recording the key value of the transaction real-time information can comprise: after recording the transaction real-time information, acquiring a transaction key value and a transaction public cache from a transaction information record form, and recording the acquired transaction key value and the transaction public cache into the transaction information key value record form; the key value of the real-time transaction information can be used for determining the corresponding real-time transaction information and recording the reorganization state of the real-time transaction information.
For example, the transaction information record TABLE may be named TEMPORRARY_TABLE and the transaction information key record TABLE may be named ORGANIZE_TABLE.
In specific implementation, after receiving the transaction real-time information, performing information reorganization on the received transaction real-time information through a preset first long hanging process to obtain information to be reported, for example, the method may include: after receiving the transaction real-time information, generating a key value record corresponding to the transaction real-time information according to the received transaction real-time information; the method for carrying out information recombination on the received transaction real-time information through the preset first long hanging process to obtain the information to be reported can comprise the following steps: acquiring transaction data from a key value record corresponding to the transaction real-time information through a preset first long hanging process; and calling an information recombination service program, and carrying out information recombination on the transaction data acquired by the first long hanging process to acquire information to be reported.
In an embodiment, the process of obtaining the information to be reported by performing information reorganization on the received transaction real-time information through the preset first long hanging process may be shown in fig. 3, and fig. 3 is a schematic flow diagram of an example of a method for reporting transaction information provided in the embodiment of the present invention. In fig. 3, a preset first long-hanging process (e.g., long-hanging process 1 in fig. 3) may first scan the transaction information key record TABLE and obtain a key of the transaction real-time information that is not submitted therefrom, for example, scan the organize_table TABLE to obtain an unprocessed data (the unprocessed data may include the key of the transaction real-time information that is not submitted). Embodiments may further include obtaining a transaction common buffer corresponding to the transaction real-time information, and further determining real-time transaction information corresponding to the piece of unprocessed data, for example, obtaining data in a TABLE of TEMPORRARY_TABLE (the data may include the transaction common buffer corresponding to the transaction real-time information).
In an embodiment, obtaining a key value record corresponding to the transaction real-time information may include: acquiring real-time transaction information from a scanning transaction information key value record table; then, an information reorganization service program (the information reorganization service program may include an information reorganization service) may be invoked, and information reorganization is performed on the transaction data acquired by the first long hanging process to obtain information to be reported, where the information reorganization service program is used for performing information reorganization on the transaction real-time information to generate the information to be reported; if the information reorganization is successful, updating the reorganization state corresponding to the real-time transaction information in the transaction information record form, and recording the generated information to be reported and the transmission state of the information to be reported respectively, wherein the transmission state of the information to be reported can be information to be reported to be processed, the information to be reported to be transmitted and the information to be reported to be transmitted to be failed; recording the generated information to be reported and the sending state of the information to be reported respectively, which may include: recording the generated information to be reported in a information to be reported record table, and recording the generated information to be reported and the transmission state of the information to be reported in the information to be reported and the state record table. In an embodiment, after the generated information to be reported is recorded, the state of the corresponding real-time transaction information in the transaction information key value record table is also required to be updated.
For example, the to-be-reported information record TABLE may be named report_table, and the REPORT information and status record TABLE may be named out_table.
When the information recombination is wrong, the information recombination is carried out on the received transaction real-time information again through a preset first long hanging process until the information recombination is successful or the number of times of carrying out information recombination on the transaction real-time information again exceeds a preset value.
In an embodiment, as shown in fig. 3, when an error occurs in the information reorganization, a preset number of information reorganization retries is first obtained, and then an information reorganization service program (the information reorganization service program may include an information reorganization service) is invoked, and the received transaction real-time information is reorganized again through a preset first long hanging process until the information reorganization is successful or the number of times of reorganizing the transaction real-time information exceeds a preset value. In the case that the number of retries is less than or equal to a preset number, such as a preset retry parameter, the following two operation modes may be included:
first kind: if the information recombination of the received transaction real-time information fails, transferring the transaction real-time information with the failed information recombination, recording error reporting information when the recombination of the first long hanging process fails, and updating the recorded state of the transaction real-time information corresponding to the failed recombination. The transferring the transaction real-time information of the information recombination failure may include: transferring the key value and public buffer record corresponding to the transaction real-time information with failed information reorganization to a key value and public buffer failure record table; recording error reporting information when the first long hanging process reorganization information fails may include: recording the status of the real-time transaction information recombination failure into a recombination failure error-reporting information recording table; updating the recorded state of the transaction real-time information corresponding to the reorganization failure may include: changing the recombination state of the transaction real-time information in the transaction information record form from the state to be reported to the state of recombination failure;
For example, the key and common buffer failure record TABLE may be named ORGANIZE_EXP_TABLE, and the reorganization failure report ERROR information record TABLE may be named ERROR_LOG_TABLE;
second kind: if the received transaction real-time information is successfully recombined, the next transaction real-time information to be submitted is read, for example, the key value of the next transaction real-time information which is not submitted is obtained from the key value record of the transaction information. In an embodiment, as shown in fig. 3, the method may further include updating the reassembly status of the transaction real-time information in the transaction information record TABLE to be the reassembly success status of the transaction real-time information, writing the reassembled information (i.e. the information to be reported) into the report_table TABLE and the out_table, and updating the status of the transaction real-time information corresponding to the reassembly success in the organize_exp_table.
In the above embodiment, the embodiment of the present invention needs to preset the number of information reorganization retries, where the number of information reorganization retries may be determined according to the transaction amount of the bank. For example, if the data volume of a certain branch is large, the risk of data blocking and the like will increase, and the number of retries can be increased to ensure the real-time transmission of the data.
In the specific implementation, after the information to be reported is obtained, pushing the information to be reported generated by the first long hanging process through a preset second long hanging process.
In an embodiment, a process of pushing information to be reported generated by a first long hanging process through a preset second long hanging process may be shown in fig. 4, and fig. 4 is a schematic flow diagram of an example of a method for reporting transaction information provided in an embodiment of the present invention. In fig. 4, after obtaining the information to be reported, firstly, obtaining an unreported information to be reported, and after obtaining the unreported information to be reported, for example, scanning the out_table TABLE to obtain an unprocessed data (unreported information to be reported), and pushing the unprocessed data to a peripheral bank system: if the pushing is successful, the sending state of the information to be sent corresponding to the pushing success can be updated, and an unreported information to be sent can be obtained from the sending information and the state record TABLE, for example, the sending state of the information to be sent in the OUT_TABLE TABLE is updated to be the sending success state.
When the information to be reported generated by the first long hanging process is pushed to be wrong, the information to be reported generated by the first long hanging process is pushed again through a preset second long hanging process until the information to be reported is pushed successfully or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value.
In an embodiment, as shown in fig. 4, an out_table TABLE may be scanned first to obtain an unprocessed data (the information to be reported that is not reported) and then push the data to the peripheral system. If the information to be reported generated by the first long hanging process is successfully pushed, updating the reporting information and the state corresponding to the information to be reported in the state record table; if an error occurs in pushing the information to be reported generated by the first long-hanging process, a retry parameter (information pushing retry parameter) is obtained, and the information to be reported generated by the first long-hanging process is pushed again through a preset second long-hanging process (such as the long-hanging process 2 in fig. 4) until the information to be reported is pushed successfully or the number of times of pushing the information to be reported generated by the first long-hanging process again exceeds a preset value. If the retried number of times is less than or equal to a preset number (the preset number can comprise a retry parameter), acquiring the next piece of unreported information to be reported from the reporting information and the state record table if the information to be reported is successfully re-pushed; and if the information to be reported again is successfully pushed, transferring the information to be reported, which is failed to push. The transferring the information to be reported, which is failed in pushing, may include: and transferring the information to be reported which is failed to be pushed into a record form of the information to be reported which is failed to be pushed.
For example, the to-be-sent information record TABLE with failed pushing may be named as out_exp_table.
In the above embodiment, the embodiment of the present invention needs to preset the number of information pushing retries, where the number of information pushing retries may be determined according to the transaction amount of the bank. For example, if the data volume of a branch of a certain family is large, risks such as data blockage and the like are increased, and the retry times can be increased so as to ensure real-time data transmission.
In contrast to the prior art, the inventors found that: the abnormal information report of the bank system is mostly caused by uncontrollable factors such as data congestion in the communication process, but the time for the exceptional factors to appear is usually very short, so that the abnormal data can be recovered quickly and completely independent of batch at night. The retry mechanism can avoid such factors, thereby ensuring the real-time performance of the data. The developer can configure the retry parameters of the long hanging process, such as the information pushing retry times and the information recombination retry times, and flexibly allocate the settings of the information pushing retry times and the information recombination retry times according to different data scenes.
For example, for a certain branch line, the number of information reorganization retries and the number of information pushing retries are set to 3, when the first long hanging process fails to asynchronously process a certain real-time transaction information in the ORGANIZE_TABLE, the first long hanging process does not mark the real-time transaction information as abnormal data, but reads a parameter configuration TABLE to obtain that the number of retries corresponding to the line is 3, and then performs at most 3 retries (if a certain time in 3 times succeeds, the retries are terminated): if the retry is successful, modifying the state corresponding to the real-time transaction information into a successful state, and recording the reorganized data to be reported; if the 3 retries fail, the real-time transaction information is recorded as abnormal data, the state corresponding to the real-time transaction information is modified, and the real-time transaction information and the data to be reported corresponding to the real-time transaction information are transferred. And when the pushing of the peripheral bank system by the second long hanging process fails, retrying can be performed. In the embodiment of the present invention, retry parameters of the first long-suspended process and the second long-suspended process may be different.
In specific implementation, the method for reporting transaction information provided by the embodiment of the invention can further include: recording transaction real-time information and information recombination state; the information recombination state is recombination success or recombination failure;
recording information to be reported and an information pushing state; the push state is push success or push failure.
In the embodiment, by recording the transaction real-time information and the information reorganization state and recording the information to be reported and the information pushing state, the method is beneficial for workers to search the transaction real-time information and the data to be reported corresponding to the transaction real-time information quickly and efficiently, and is beneficial for improving the working efficiency.
In specific implementation, the method for reporting transaction information provided by the embodiment of the invention can further include: matching the recorded information to be reported with the received transaction real-time information, and determining whether the non-pushed transaction real-time information exists in the received transaction real-time information according to a matching result; recording the non-pushed transaction real-time information when the received transaction real-time information is determined to exist.
In an embodiment, the recorded information to be reported may be recorded in a banking system, for example, the recorded information to be reported may be recorded in a record table of information to be reported in the banking system. In an embodiment, all transaction information may also be recorded in a detailed transaction information record TABLE, which may be named journal_table, for example, and may be used to record detailed transaction information of a banking system. And matching the recorded information to be reported with the received transaction real-time information, and determining whether the transaction real-time information which is not pushed exists in the received transaction real-time information according to a matching result, so that program verification of the transaction real-time information can be realized. For example, the information to be reported recorded in the report_table is matched with the transaction real-time information recorded in the journal_table, so as to compare whether the reported data has error.
In the above embodiment, the recorded information to be reported is matched with the received transaction real-time information, so that it can be determined whether the reported information has missing and data errors, where joural_table is a detailed record of all transactions in the core, and all the information to be reported to be pushed is recorded in report_table (if the reorganization is successful, the data of the reorganization is successful but the pushing is failed will be recorded in the TABLE, and if the reorganization is successful but the pushing is failed, the report_table may record a successful state, and out_table may record a failed state), so that the two TABLEs need to be compared when matching.
In the above embodiment, compared with the prior art, most of the tables storing the report information in the banking system are daily clear tables, and the peripheral banking system personnel find that the data is missed every other day or longer, which makes it very difficult to repair the abnormal data. Because of the huge daily transaction amount of a banking system, the missed data is difficult to find manually. According to the embodiment of the invention, the recorded information to be reported is matched with the received transaction real-time information, the information to be reported can be adjusted through the operation management terminal of the banking system, a developer can check whether error data exist in the daily report through a log, automatic verification can be carried out, the developer can find problems as early as possible, the timeliness of data restoration is improved, and the data restoration difficulty is reduced.
In specific implementation, the method for reporting transaction information provided by the embodiment of the invention can further include: and pushing the recorded transaction real-time information which is not pushed again.
In the embodiment, on a natural day of a bank, by a batch program, real-time information of the transaction recorded on a natural day before the natural day of the bank, that is, on a last natural day, which is not pushed is reorganized and pushed, and all records of successful report and failure records of the current day are downloaded to a peripheral system.
For example, the embodiment of the invention can scan unsuccessful records in the ORGANIZE_TABLE and all current day data of the ORGANIZE_EXP_TABLE by batch processing procedure at night, and the batch processing procedure can download the REPORT_TABLE and ERROR_LOG_TABLE to the peripheral bank system at night without failed retry.
In specific implementation, the method for reporting transaction information provided by the embodiment of the invention can further include: and storing the recorded transaction real-time information, the information recombination state, the information to be reported and the information pushing state in a table corresponding to the natural date of each bank.
The inventors found that: in the prior art, a bank system has many fixed operations, such as data downloading, data table cleaning and the like, which are all completed in batches at night, in the prior art, program verification is usually carried out before data cleaning, while the batch can be used as a complete function, and the batch is not suspended in the middle, that is, when error and missing data occur in a program verification result, the data cleaning is completed, so that the data is deleted, thus the problem analysis and positioning can be carried out, and the correct data can be timely supplemented to the peripheral system, which causes difficulty.
In the embodiment, on a natural day of a bank, for example, on a T day, the recorded transaction real-time information, information reorganization state, information to be reported and information pushing state are stored in a table corresponding to the natural day of the bank; and at the T+1 day (the next day of the natural day of the bank), storing the recorded transaction real-time information, information reorganization state, information to be reported and information pushing state in a table corresponding to the next day of the natural day of the bank. For example, on the T day, the recorded transaction real-time information, the information reorganization state, the information to be reported and the information pushing state can be stored in a table corresponding to the natural day of the bank, such as a table a; and at the T+1 day, storing the recorded transaction real-time information, the information reorganization state, the information to be reported and the information pushing state in a table, such as a B table, of the following day corresponding to the natural day of the bank. In an embodiment, the saved data is still cleaned up, but not daily, for example: the A table is used on the T day, but the A table is not cleaned at the end of the T day, the B table is used on the T+1 day, and the data of the A table still exists at the moment, because the verification program is operated on the end of the T day, when the verification result shows that the data of the T day is in error leakage, the data of the T day still exists at the moment, namely in the A table, so that the problem location and the correct data supplement are facilitated. The data for Table A is cleaned at the end of day T+1, since Table A will be used for day T+2. Through the tables recorded in different natural daily changes, for example, the A table and the B table are switched and used according to the different natural days, the possibility is provided for program verification, the test defect which cannot be achieved manually is avoided, meanwhile, T day data still exist in the T+1 day, and when the reported information is in error, the difficulty and time of problem positioning and data repairing are greatly shortened.
For example, the data in the above-mentioned text_table and the data in the above-mentioned report_table may be stored in different natural daily record TABLEs by day. For example, such as a TABLE corresponding to T daily_table, report_table, such as daily_table_a and report_table_a; the TABLE B corresponding to the text_table and the report_table, such as text_table_ B, REPORT _table_b, is used at the time t+1, and the TABLE a corresponding to the text_table and the report_table, such as text_table_a and report_table_a, can be switched back at the time t+2. In the embodiment, the table a and the table B are switched in the above manner, so that a necessary condition can be provided for program verification.
In the above embodiment, because the transaction amount of the bank system is huge, if the same table is used for recording the transaction real-time information, the information reorganization state, the information to be reported and the information pushing state in each natural day of the bank, the stored data cannot be cleaned in time, so that the processing efficiency of the asynchronous process is easily affected seriously. Meanwhile, if the same table is used for recording transaction real-time information, information reorganization state, information to be reported and information pushing state in each natural day of the bank, when each natural day of the bank reports the recorded data to the peripheral bank system, all the data recorded in the natural day of the bank are repeatedly downloaded to the peripheral bank system, and the efficiency of batch is seriously affected because the data volume of the recorded data is too huge, and meanwhile, the complexity of processing of the peripheral system is also affected because the downloaded data is not required to be repeatedly downloaded.
For example, by the method for reporting transaction information provided in the embodiment of the invention, a natural day can be reserved for recording real-time transaction information reported on the day. If the fact that a certain real-time transaction information is lost in the transmission process is found, searching is carried out in the record of the real-time transaction information reported in the current day, and the record is supplemented to a peripheral system; if a real-time transaction information reporting error is found, the real-time transaction information can be located in time from the record of the real-time transaction information reported on the day. In the embodiment, through the persistence of the form, when the data corresponding to the real-time transaction information is repaired, only one field of the data error can be repaired, so that the problem location and the correct data feeding are realized on the basis of the original data; but may be directly utilized for the correct other fields. Compared with the prior art, the method of adopting a day clearing table (namely, clearing the data table of table data when the day is over) is adopted for comparison, and when the problem is found in the prior art, the record of the real-time transaction information reported on the day is cleared at every other day, so that the reason can not be located in time.
In the above embodiment, the table a is used on the T day and the table B is used on the t+1 day, so the table a data may not be cleaned during the batch at the T day and night, which does not affect the use of the table B, and the table a data on the T day is cleaned again during the batch at the t+1 day, so the table a data may be kept for one day. Thus, the time for analyzing and positioning the problems and repairing the data by the developer is greatly saved.
In the embodiment of the invention, transaction real-time information is received; carrying out information recombination on the received transaction real-time information through a preset first long hanging process to obtain information to be reported; when the information recombination is wrong, the received transaction real-time information is recombined through a preset first long hanging process until the information recombination is successful or the number of times of carrying out information recombination on the transaction real-time information again exceeds a preset value; pushing information to be reported generated by the first long hanging process through a preset second long hanging process; when the information to be reported generated by the first long hanging process is pushed to be wrong, the information to be reported generated by the first long hanging process is pushed again through a preset second long hanging process until the information to be reported is pushed successfully or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value, so that when the information recombination or the information pushing is wrong, the information recombination or the information pushing can be carried out again, and the timeliness of transaction information reporting is ensured. Compared with the prior art, the method can directly re-carry out information reorganization or information pushing, can only record error data when error occurs in information reporting, and can enable transaction real-time information to be reported in real time under the condition of batch processing at night, and ensures timeliness of the transaction information reporting.
The embodiment of the invention also provides a device for reporting transaction information, which is described in the following embodiment. Because the principle of the device for solving the problem is similar to that of the method for reporting the transaction information, the implementation of the device can refer to the implementation of the method for reporting the transaction information, and the repetition is omitted.
The embodiment of the invention also provides a device for reporting transaction information, which is used for ensuring timeliness of information reporting, as shown in fig. 5, and comprises:
the transaction real-time information receiving module 01 is used for receiving the transaction real-time information;
the information reorganization module 02 is used for reorganizing the received transaction real-time information through a preset first long hanging process to obtain information to be reported;
the information reorganization retry module 03 is configured to reorganize the transaction real-time information through a preset first long hanging process when an error occurs in the information reorganization, until the information reorganization is successful or the number of times of reorganizing the transaction real-time information exceeds a preset value;
the information pushing module 04 is used for pushing information to be reported generated by the first long hanging process through a preset second long hanging process;
the information pushing retry module 05 is configured to, when an error occurs in pushing the information to be reported generated by the first long-hanging process, re-push the information to be reported generated by the first long-hanging process through a preset second long-hanging process until the information to be reported is successfully pushed or the number of times of re-pushing the information to be reported generated by the first long-hanging process exceeds a preset value.
In one embodiment, the device for reporting transaction information provided by the embodiment of the present invention may further include: and the key value recording module is used for generating a key value record corresponding to the transaction real-time information according to the received transaction real-time information after receiving the transaction real-time information.
The information reorganization module is specifically used for: acquiring transaction data from a key value record corresponding to the transaction real-time information through a preset first long hanging process; and calling an information recombination service program, and carrying out information recombination on the transaction data acquired by the first long hanging process to acquire information to be reported.
In one embodiment, the device for reporting transaction information provided by the embodiment of the present invention may further include: a recording module for: recording transaction real-time information and information recombination state; the information recombination state is recombination success or recombination failure; recording information to be reported and an information pushing state; the push state is push success or push failure.
In one embodiment, the device for reporting transaction information provided by the embodiment of the present invention may further include: the transaction real-time information traversing module is used for: matching the recorded information to be reported with the received transaction real-time information, and determining whether the non-pushed transaction real-time information exists in the received transaction real-time information according to a matching result; recording the non-pushed transaction real-time information when the received transaction real-time information is determined to exist.
In one embodiment, the device for reporting transaction information provided by the embodiment of the present invention may further include: a table switching module, configured to: and storing the recorded transaction real-time information, the information recombination state, the information to be reported and the information pushing state in a table corresponding to the natural date of each bank.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for reporting the transaction information when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the method for reporting transaction information.
In the embodiment of the invention, transaction real-time information is received; carrying out information recombination on the received transaction real-time information through a preset first long hanging process to obtain information to be reported; when the information recombination is wrong, the received transaction real-time information is recombined through a preset first long hanging process until the information recombination is successful or the number of times of carrying out information recombination on the transaction real-time information again exceeds a preset value; pushing information to be reported generated by the first long hanging process through a preset second long hanging process; when the information to be reported generated by the first long hanging process is pushed to be wrong, the information to be reported generated by the first long hanging process is pushed again through a preset second long hanging process until the information to be reported is pushed successfully or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value, so that when the information recombination or the information pushing is wrong, the information recombination or the information pushing can be carried out again, and the timeliness of transaction information reporting is ensured. Compared with the prior art, the method can directly re-carry out information reorganization or information pushing, can only record error data when error occurs in information reporting, and can enable transaction real-time information to be reported in real time under the condition of batch processing at night, and ensures timeliness of the transaction information reporting.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (7)

1. A method of reporting transaction information, comprising:
receiving transaction real-time information;
carrying out information recombination on the received transaction real-time information through a preset first long hanging process to obtain information to be reported;
when the information recombination is wrong, the received transaction real-time information is recombined through a preset first long hanging process until the information recombination is successful or the number of times of carrying out information recombination on the transaction real-time information again exceeds a preset value;
pushing information to be reported generated by the first long hanging process through a preset second long hanging process;
when the information to be reported generated by the first long hanging process is pushed to have errors, the information to be reported generated by the first long hanging process is pushed again through a preset second long hanging process until the information to be reported is successfully pushed or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value;
further comprises: after receiving the transaction real-time information, generating a key value record corresponding to the transaction real-time information according to the received transaction real-time information;
the method comprises the steps of carrying out information recombination on received transaction real-time information through a preset first long hanging process to obtain information to be reported, and comprising the following steps: acquiring transaction data from a key value record corresponding to the transaction real-time information through a preset first long hanging process; calling an information recombination service program, and carrying out information recombination on transaction data acquired by the first long hanging process to acquire information to be reported;
Further comprises: and storing the recorded transaction real-time information, the information recombination state, the information to be reported and the information pushing state in a table corresponding to the natural date of each bank.
2. The method as recited in claim 1, further comprising: recording transaction real-time information and information recombination state; the information recombination state is recombination success or recombination failure;
recording information to be reported and an information pushing state; the push state is push success or push failure.
3. The method as recited in claim 2, further comprising: matching the recorded information to be reported with the received transaction real-time information, and determining whether the non-pushed transaction real-time information exists in the received transaction real-time information according to a matching result; recording the non-pushed transaction real-time information when the received transaction real-time information is determined to exist.
4. A device for reporting transaction information, comprising:
the transaction real-time information receiving module is used for receiving the transaction real-time information;
the information reorganization module is used for reorganizing the received transaction real-time information through a preset first long hanging process to obtain information to be reported;
The information reorganization retry module is used for reorganizing the transaction real-time information through a preset first long hanging process when the information reorganization is wrong, until the information reorganization is successful or the number of times of reorganizing the transaction real-time information exceeds a preset value;
the information pushing module is used for pushing information to be reported generated by the first long hanging process through a preset second long hanging process;
the information pushing retry module is used for pushing the information to be reported generated by the first long hanging process again through a preset second long hanging process when the information to be reported generated by the first long hanging process is in error, until the information to be reported is successfully pushed or the number of times of pushing the information to be reported generated by the first long hanging process again exceeds a preset value;
further comprises: the key value record generation module is used for generating a key value record corresponding to the transaction real-time information according to the received transaction real-time information;
the information reorganization module is specifically used for: acquiring transaction data from a key value record corresponding to the transaction real-time information through a preset first long hanging process;
calling an information recombination service program, and carrying out information recombination on transaction data acquired by the first long hanging process to acquire information to be reported;
Further comprises: a table switching module, configured to: and storing the recorded transaction real-time information, the information recombination state, the information to be reported and the information pushing state in a table corresponding to the natural date of each bank.
5. The apparatus as recited in claim 4, further comprising: a recording module for:
recording transaction real-time information and information recombination state; the information recombination state is recombination success or recombination failure;
recording information to be reported and an information pushing state; the push state is push success or push failure.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 3 when executing the computer program.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 1 to 3.
CN202010639629.6A 2020-07-06 2020-07-06 Method and device for reporting transaction information Active CN111652729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010639629.6A CN111652729B (en) 2020-07-06 2020-07-06 Method and device for reporting transaction information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010639629.6A CN111652729B (en) 2020-07-06 2020-07-06 Method and device for reporting transaction information

Publications (2)

Publication Number Publication Date
CN111652729A CN111652729A (en) 2020-09-11
CN111652729B true CN111652729B (en) 2023-10-24

Family

ID=72345433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010639629.6A Active CN111652729B (en) 2020-07-06 2020-07-06 Method and device for reporting transaction information

Country Status (1)

Country Link
CN (1) CN111652729B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070845B (en) * 2021-11-11 2024-04-16 中国银行股份有限公司 Method and device for cooperatively reporting transaction information
CN114124847A (en) * 2021-11-25 2022-03-01 中国银行股份有限公司 Message queue message processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126352A (en) * 2016-06-17 2016-11-16 中国银行股份有限公司 The asynchronous method and device reporting and submitting information
CN106503974A (en) * 2017-01-04 2017-03-15 泰康保险集团股份有限公司 Transaction data processing method and device
CN109785128A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 The automatic repeating method of Transaction Information, device, electronic equipment and storage medium
CN110019023A (en) * 2019-01-24 2019-07-16 阿里巴巴集团控股有限公司 A kind of method for pushing, device and the equipment of organization information message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2494436A (en) * 2011-09-08 2013-03-13 Royal Bank Scotland Plc Wireless payment using blind identifier

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126352A (en) * 2016-06-17 2016-11-16 中国银行股份有限公司 The asynchronous method and device reporting and submitting information
CN106503974A (en) * 2017-01-04 2017-03-15 泰康保险集团股份有限公司 Transaction data processing method and device
CN109785128A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 The automatic repeating method of Transaction Information, device, electronic equipment and storage medium
CN110019023A (en) * 2019-01-24 2019-07-16 阿里巴巴集团控股有限公司 A kind of method for pushing, device and the equipment of organization information message

Also Published As

Publication number Publication date
CN111652729A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111652729B (en) Method and device for reporting transaction information
CN110795420A (en) Automatic MySQL database backup method based on infrastructure
CN113094362B (en) Method and device for reliably delivering and processing asynchronous message
CN109960690A (en) A kind of operation and maintenance method and device of big data cluster
CN104584524A (en) Aggregating data in a mediation system
CN102833281A (en) Method, device and system for realizing distributed automatically-increasing counting
CN111865673A (en) Automatic fault management method, device and system
WO2024149107A1 (en) Software log processing method
CN114092246A (en) Problem positioning method and device for financial transaction link
CN112035530A (en) Transaction message matching method and system in distributed real-time payment system
CN102131002B (en) A kind of data in mobile phone treating method and apparatus
CN111880947B (en) Data transmission method and device
CN112395360A (en) Data synchronization method, device, apparatus and medium based on non-relational database
CN113050925B (en) Block chain intelligent contract repairing method and device
CN113962789A (en) Bank account checking method and device
CN115983784A (en) Automatic information processing system and method for checking assets of telecommunication room
CN113656210A (en) Processing method and device for error reporting information, server and readable storage medium
CN113094208B (en) Method and system for realizing data recovery based on binding interface and Binlog log
US7533132B2 (en) Parallel replication mechanism for state information produced by serialized processing
CN114386894A (en) Logistics abnormity processing method and system, storage medium and electronic equipment
CN112230897A (en) Monitoring method and device for bank branch interface reconstruction
CN113342650A (en) Chaos engineering method and device for distributed system
CN114969072B (en) Data transmission method, device and equipment based on state machine and data persistence
CN110019181A (en) A kind of storage method and device, computer readable storage medium
CN110932990B (en) Bank message sending method and device

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
GR01 Patent grant
GR01 Patent grant