CN114266659A - Account checking file full-flow processing method, device, equipment and medium - Google Patents

Account checking file full-flow processing method, device, equipment and medium Download PDF

Info

Publication number
CN114266659A
CN114266659A CN202111559985.8A CN202111559985A CN114266659A CN 114266659 A CN114266659 A CN 114266659A CN 202111559985 A CN202111559985 A CN 202111559985A CN 114266659 A CN114266659 A CN 114266659A
Authority
CN
China
Prior art keywords
file
processing
state
abnormal
reconciliation
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
CN202111559985.8A
Other languages
Chinese (zh)
Inventor
张荐
王越
杨传印
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202111559985.8A priority Critical patent/CN114266659A/en
Publication of CN114266659A publication Critical patent/CN114266659A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for processing a whole flow of an account checking file. The method comprises the following steps: performing data processing operation on the initial reconciliation file through a file processing module to obtain a data processing result file and storing the data processing result file in a file storage module; receiving a processing result of data processing operation through the process monitoring module, and storing a processing state after format conversion to the state matrix module; if an abnormal account checking file occurs in the data processing operation process, obtaining a processing state corresponding to the abnormal account checking file through an abnormal processing module; and matching subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, and finishing the processing of the abnormal account checking file. By the technical scheme of the embodiment of the invention, the accurate monitoring of the account checking file processing flow and the continuous intelligent processing of the abnormal account checking file can be realized, and the processing rate of the account checking file is improved.

Description

Account checking file full-flow processing method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a reconciliation file full-flow processing method, device, equipment and medium.
Background
In a financial transaction system, inter-platform reconciliation is one of important scenarios. In the reconciliation scenario, the transaction details between two or more systems interact and complete the related accounting check in the form of a reconciliation file to ensure that the accounts of all parties are consistent. Generally, in order to ensure confidentiality and data integrity of the account file, an account file provider needs to perform a series of operations on the account file, such as encryption, signature, compression or splitting, and the like, and an account file receiver needs to perform a series of corresponding processes to process the account file, such as downloading, decompressing or decrypting. Because the confidentiality and data integrity of the reconciliation file are very important to the financial transaction system, if the reconciliation file is subjected to data loss, error or damage, the reconciliation between platforms is wrong, so that serious system faults such as financial errors and the like occur. Therefore, a relatively complete flow monitoring mechanism is needed to track the processing result of the reconciliation file in real time, and when the reconciliation file processing fails, a more intelligent and efficient method is needed to process the abnormal reconciliation file.
In the prior art, most of the reconciliation file processing flow is linear processing, and the coupling degree of each functional module is relatively high, so that when any one step in the reconciliation file processing flow is abnormal, the whole reconciliation file processing flow is failed, and the initial reconciliation file is marked as an abnormal reconciliation file, but the position of the abnormal reconciliation file processing failure is marked due to no fine state in the prior art, and if the abnormal reconciliation file is processed subsequently, the abnormal reconciliation file cannot be judged to be caused by which data processing operation step fails, and only the processing step of the abnormal reconciliation file can be executed from the beginning, so that the low efficiency of the abnormal reconciliation file processing and the excessive occupation of resources are caused. Therefore, how to realize accurate monitoring of each processing flow of the account checking files and realize continuous intelligent processing of the abnormal account checking files is a problem which needs to be solved urgently at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for processing a whole flow of a reconciliation file, which can realize accurate monitoring of each processing flow of the reconciliation file and continuous intelligent processing of an abnormal reconciliation file.
In a first aspect, an embodiment of the present invention provides a method for processing a reconciliation file full flow, where the method is applied to a reconciliation file receiving end, and the method includes:
performing data processing operation on the initial reconciliation file through a file processing module to obtain a data processing result file;
storing the data processing result file through a file storage module;
receiving a processing result of data processing operation through a process monitoring module, and performing format conversion on the processing result to obtain a corresponding processing state;
storing the processing state in the form of a state code through a state matrix module;
if an abnormal account checking file occurs in the data processing operation process of the initial account checking file, acquiring a state code in a state matrix module, and processing the state code through an abnormal processing module to obtain a processing state corresponding to the abnormal account checking file; and matching subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, and finishing the processing of the abnormal account checking file.
In a second aspect, an embodiment of the present invention further provides a device for processing a whole flow of a reconciliation file, where the device is applied to a reconciliation file receiving end, and the device includes:
the file processing module is used for carrying out data processing operation on the initial reconciliation file to obtain a data processing result file;
the file storage module is used for storing the data processing result file;
the flow monitoring module is used for receiving a processing result of data processing operation and performing format conversion on the processing result to obtain a corresponding processing state;
the state matrix module is used for storing the processing state in a state code form;
the abnormal processing module is used for acquiring the state code in the state matrix module if the abnormal reconciliation file occurs in the data processing operation process of the initial reconciliation file, and processing the state code to obtain the processing state corresponding to the abnormal reconciliation file; and matching subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, and finishing the processing of the abnormal account checking file.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing the whole flow of the account checking file according to any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for processing a whole flow of an account checking file according to any embodiment of the present invention.
The technical scheme of the embodiment of the invention monitors the process of data processing operation on the initial account checking file, records the processing result corresponding to each step, converts the processing result into the corresponding processing state, stores the processing state into the state matrix module in the form of the state code, obtains the processing state corresponding to the abnormal account checking file through the state code of the abnormal account checking file when processing the abnormal account checking file again, matches the subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, completes the processing of the abnormal account checking file, solves the problems of insufficient monitoring granularity of the account checking file processing flow and incapability of continuous processing of the abnormal account checking file in the prior art, can realize the accurate monitoring of each processing flow of the account checking file and the continuous intelligent processing of the abnormal account checking file, the processing speed of the account checking file is improved.
Drawings
FIG. 1 is a flow chart of a prior art reconciliation file processing method;
fig. 2a is a flowchart of a method for processing a reconciliation file in a full flow according to an embodiment of the present invention;
fig. 2b is a flowchart of an account checking file processing method according to an embodiment of the present invention;
fig. 2c is a flowchart of a monitoring method for a reconciliation document processing flow according to an embodiment of the present invention;
fig. 3a is a flowchart of a method for processing a reconciliation file in a full flow according to an embodiment of the present invention;
fig. 3b is a flowchart of an abnormal account checking file continuation processing method according to an embodiment of the present invention;
fig. 4a is a schematic structural diagram of a preferred reconciliation file full-flow processing apparatus according to an embodiment of the present invention;
fig. 4b is a flowchart of the operation of a preferred reconciliation file full-flow processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for processing a reconciliation file in a full flow process according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Nowadays, in an important financial transaction system, account checking between systems is an essential link for ensuring the accuracy of accounts and the consistency of accounts. In a reconciliation scenario, transaction information between two or more systems is typically interacted and a relevant accounting check is completed in the form of a reconciliation file to ensure that accounts of the various parties remain consistent.
Fig. 1 is a flow chart of a reconciliation file processing method in the prior art. As shown in fig. 1, the prior art is generally based on the expression "P1: file download- > P2: file decompression- > P3: file ordering- > P4: the order of reconciliation "linearly performs the processing of the reconciliation file. When any one of the steps is abnormal, the whole processing flow fails, the position of the reconciliation file processing failure is marked without a refined state, and if the abnormal reconciliation file which fails to be processed is processed again, the step in which the reconciliation file fails cannot be judged, and the reconciliation file processing flow from P1 to P4 can only be executed from the beginning.
However, in a scenario of account checking file processing, since the preamble step needs to be executed again after the Pn step of account checking file processing fails, a large portion of time is wasted on the preamble step that is successfully processed originally, which causes inefficiency of abnormal account checking file processing and excessive occupation of resources, such as: when the P3 processing fails, the exception reconciliation file reprocessing steps are as follows: p1- > P2- > P3- > P4.
Therefore, the embodiment of the invention provides a method for processing the whole flow of the account checking file, which can realize the accurate monitoring of each processing flow of the account checking file and the continuous intelligent processing of the abnormal account checking file, and improve the processing speed of the account checking file.
Fig. 2a is a flowchart of a reconciliation file full-flow processing method according to an embodiment of the present invention, which can be applied to a reconciliation file receiving end and can be applied to a situation where a processing flow of a reconciliation file is monitored and an abnormal reconciliation file is continuously processed.
As shown in fig. 2a, a method for processing a reconciliation file full flow provided by the embodiment of the present invention includes the following specific steps:
s210: and performing data processing operation on the initial account checking file through a file processing module to obtain a data processing result file.
The initial reconciliation file may refer to a reconciliation file obtained from a file storage server of the reconciliation file provider system. The data processing operation may refer to an operation of performing format conversion on the initial reconciliation file according to the actual application requirement to obtain a reconciliation file consistent with that in the reconciliation file provider system, for example, an operation of downloading the initial reconciliation file or decrypting the initial reconciliation file, and a processing operation of performing reconciliation. The data processing result file may refer to a result file generated in the process of data processing, for example, an initial reconciliation file generated in the process of an initial reconciliation file downloading operation, or a post-decryption reconciliation file generated in the process of an initial reconciliation file decryption operation, and the like.
In an optional implementation manner, the performing, by the file processing module, a data processing operation on the initial reconciliation file to obtain a data processing result file includes: downloading a corresponding initial reconciliation file from a file memory of a reconciliation file provider system through a file downloading unit in a file processing module; decrypting the initial reconciliation file through a file decryption unit in a file processing module to obtain a compressed reconciliation file; decompressing the compressed reconciliation file through a file decompressing unit in a file processing module to obtain a reconciliation file; merging and sorting the reconciliation files through a merging and sorting unit in a file processing module to obtain source reconciliation files; acquiring a target account checking file at an account checking file receiving end through a data extraction unit in a file processing module; and comparing the target account checking file with the source account checking file through a financial checking unit in the file processing module to finish account checking operation. The decryption key may refer to secret information used to complete cryptographic applications such as encryption, decryption, integrity verification, and the like; in order to prevent other people from stealing account checking file information and ensure the safety of the account checking file, an account checking file provider and an account checking file receiver need to respectively encrypt and decrypt the account checking file by using keys. Merging and sorting can refer to a sorting method realized by using a merging idea, and the algorithm adopts a classical dividing and treating strategy to decompose a problem into a plurality of segments and then carry out recursive solution, and combines the results of the segments together to obtain a final result. A source reconciliation file may refer to a reconciliation file consistent with a reconciliation file provider system; the target account checking file can refer to the account checking file of the system in the account checking file receiving end; comparing the target reconciliation file with the source reconciliation file may refer to comparing contents in the target reconciliation file with contents in the source reconciliation file according to a transaction serial number, a transaction amount, a transaction date, or the like. Therefore, the account checking operation can be completed by obtaining the initial account checking file, downloading, decrypting, decompressing, merging and sequencing the initial account checking file to obtain the source account checking file which is consistent with the account checking file provider system, and comparing the source account checking file with the target account checking file.
In another optional implementation manner, the decrypting the initial reconciliation file by the file decryption unit in the file processing module to obtain the compressed reconciliation file includes: and acquiring a corresponding decryption key from the key storage module, and decrypting the initial reconciliation file by using the decryption key through a file decryption unit in the file processing module to obtain a compressed reconciliation file. The decryption key is a key which is agreed between the account checking file receiver and the account checking file provider and is used for decrypting the initial account checking file. Therefore, the security of the initial account checking file can be ensured, and only the account checking file provider and the account checking file receiver can operate the initial account checking file.
S220: and storing the data processing result file through a file storage module.
The storage of the data processing result file by the file storage module may refer to the corresponding storage of a result file generated in the data processing process.
Specifically, as shown in fig. 2b, a flowchart of a reconciliation file processing method according to an embodiment of the present invention is provided. As shown in fig. 2b, first, the file downloading unit accesses the file storage server of the reconciliation file provider system through the file transfer protocol, determines whether an initial reconciliation file exists, downloads the initial reconciliation file with a specified date, and stores the initial reconciliation file in the file storage module; then, the file decryption unit acquires a decryption key in the key storage module, decrypts the initial reconciliation file through the decryption key to obtain a compressed reconciliation file, and stores the compressed reconciliation file into the file storage module; decompressing the compressed reconciliation file by a file decompressing unit to obtain a reconciliation file, and storing the reconciliation file into a file storage module; merging and sorting the reconciliation files through the merging and sorting unit to obtain source reconciliation files, and storing the source reconciliation files into the file storage module; and finally, acquiring a target account checking file at the account checking file receiving end through the data extraction unit, and checking the file contents of the target account checking file and the source account checking file one by utilizing the financial checking unit to finish the account checking operation.
The processing result of the data processing operation may be used to display a processing result after the reconciliation file is correspondingly processed by each data processing operation, and for example, taking the downloading operation of the initial reconciliation file as an example, the corresponding processing result may be that the downloading of the initial reconciliation file is completed, the initial reconciliation file does not exist, the downloading of the initial reconciliation file is interrupted, the connection is failed, the file downloading unit is abnormal, and the like.
S230: and receiving a processing result of the data processing operation through the flow monitoring module, and performing format conversion on the processing result to obtain a corresponding processing state.
The format conversion may refer to dividing the processing result into corresponding processing states according to the state type of the processing result. The processing status may be success, failure, or exception.
In an optional embodiment, the receiving, by the process monitoring module, a processing result of the data processing operation and performing format conversion on the processing result to obtain the corresponding processing state includes: receiving a processing result of the data processing operation in real time through a message receiving unit in a process monitoring module; and converting the processing result of the data processing operation into a corresponding processing state according to a state conversion rule by a state conversion unit in the process monitoring module. The state conversion rule may refer to a preset rule for converting a processing result of the data processing operation into a corresponding processing state, for example, if the data processing operation is an initial account checking file download, and the processing result of the data processing operation is a file download completion, the processing result of the file download completion may be converted into a successful processing state according to the preset processing result, so that the processing result of the data processing operation may be timely obtained by monitoring the processing result of the data processing operation, and the data processing flow of the initial account checking file is tracked in real time. The problems that in the prior art, only the final account checking file processing result is concerned, a certain link in the account checking file processing flow is not monitored, the caused monitoring is not in place, and the monitoring granularity is too coarse are solved, and the processing state corresponding to the processing result of the data processing operation can be more intuitively known.
S240: and storing the processing state in the form of a state code through a state matrix module.
The state code may refer to a digital code for storing processing states corresponding to different steps of the data processing operation, and the processing states corresponding to different steps of the data processing operation may be labeled as corresponding state codes according to a preset state transition rule.
As shown in table 1, which is a state transition rule table applicable to the embodiment of the present invention, it can be seen from table 1 that, if a data processing operation is an initial reconciliation file download, if a processing result corresponding to the data processing operation is the initial reconciliation file download completed, a corresponding processing state is successful, and a corresponding state code is 00. Taking this as an example, the processing states corresponding to the different processing results of the other data processing operations and the state codes corresponding to the different processing states of the other data processing operations can be obtained.
TABLE 1 State transition rule Table
Figure BDA0003420402720000081
Specifically, as shown in fig. 2c, a flowchart of a monitoring method for an account checking file processing flow according to an embodiment of the present invention is shown, and as shown in fig. 2c, first, a flow monitoring module is started; then, the file processing module carries out data processing operations such as downloading, decryption, decompression, merging and sorting, data extraction and account checking on the initial account checking file and generates a processing result of the data processing operation, at the moment, the flow monitoring module carries out real-time monitoring on the generated processing result of the data processing operation and receives the processing result by the message receiving unit, and after the message receiving unit receives the processing result, the processing result is converted into a corresponding processing state according to the state conversion rule by the state conversion unit; and finally, storing the processing state in the form of a state code through a state matrix module. Therefore, the processing process of the data processing operation is monitored in real time, the execution state of the data processing operation is stored, and the implementation of subsequent work is facilitated.
S250: if an abnormal account checking file occurs in the data processing operation process of the initial account checking file, acquiring a state code in a state matrix module, and processing the state code through an abnormal processing module to obtain a processing state corresponding to the abnormal account checking file; and matching subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, and finishing the processing of the abnormal account checking file.
The abnormal account checking file may refer to an initial account checking file in which a data processing process is interrupted during a data processing operation performed on the initial account checking file. The subsequent data processing operation may refer to a data processing operation in which the exception reconciliation file was interrupted when the data processing operation was first performed and a data processing operation thereafter. Illustratively, when the data processing operation is performed on the abnormal reconciliation file again, the state code of the abnormal reconciliation file in the state matrix module is acquired, the state code of the abnormal reconciliation file is processed through the abnormal processing module to obtain a corresponding processing state, and finally, the subsequent data processing operation is matched for the abnormal reconciliation file according to the processing state to complete the processing of the abnormal reconciliation file. Specifically, if the status code of the abnormal reconciliation file in the status matrix module is 21 when the data processing operation is performed on the abnormal reconciliation file again, the processing status corresponding to the status code 21 is "decompression failure of the compressed reconciliation file" can be obtained through the abnormal processing module, and the "decompression of the compressed reconciliation file" and the subsequent data processing operation are matched for the abnormal reconciliation file according to the processing status, so that the continuing processing of the abnormal reconciliation file is completed, and the processing rate of the reconciliation file is improved.
The technical scheme of the embodiment of the invention monitors the process of data processing operation on the initial account checking file, records the processing result corresponding to each step, converts the processing result into the corresponding processing state, stores the processing state into the state matrix module in the form of the state code, obtains the processing state corresponding to the abnormal account checking file through the state code of the abnormal account checking file when processing the abnormal account checking file again, matches the subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, completes the processing of the abnormal account checking file, solves the problems of insufficient monitoring granularity of the account checking file processing flow and incapability of continuous processing of the abnormal account checking file in the prior art, can realize the accurate monitoring of each processing flow of the account checking file and the continuous intelligent processing of the abnormal account checking file, the processing speed of the account checking file is improved.
Fig. 3a is a flowchart of a method for processing a reconciliation file in a full flow according to an embodiment of the present invention. In this embodiment, optionally, if an abnormal reconciliation file occurs in the process of performing data processing operation on the initial reconciliation file, acquiring a status code in the status matrix module, and processing the status code through the abnormal handling module to obtain a processing status corresponding to the abnormal reconciliation file includes: if an abnormal account checking file occurs in the data processing operation process of the initial account checking file, acquiring a state code in a state matrix module; screening out the state code meeting the abnormal processing condition through a state screening unit in the abnormal processing module; and analyzing the state code meeting the abnormal processing condition through a state analysis unit in the abnormal processing module to obtain a processing state corresponding to the abnormal reconciliation file.
Optionally, matching subsequent data processing operations for the abnormal reconciliation file according to the processing state corresponding to the abnormal reconciliation file, where completing the processing of the abnormal reconciliation file includes: if the processing state corresponding to the abnormal account checking file is failure of the first step of the data processing operation, executing all steps of the data processing operation; and if the processing state corresponding to the abnormal account checking file is failure except for the first step of the data processing operation, acquiring a data processing result file corresponding to the data processing operation step, and executing the subsequent step of data processing corresponding to the processing state.
As shown in fig. 3a, a method for processing a reconciliation file full flow provided by the embodiment of the present invention includes the following specific steps:
s310: and performing data processing operation on the initial account checking file through a file processing module to obtain a data processing result file, and storing the data processing result file through a file storage module.
S320: and receiving a processing result of the data processing operation through the flow monitoring module, and performing format conversion on the processing result to obtain a corresponding processing state.
S330: and storing the processing state in the form of a state code through a state matrix module.
S340: and if the abnormal account checking file occurs in the data processing operation process of the initial account checking file, acquiring the state code in the state matrix module.
Specifically, when the abnormal account checking file is processed again, the state code of the abnormal account checking file in the state matrix module is firstly acquired, data processing operation is not required to be directly performed, and the problems of low processing rate and excessive resource occupation caused by the fact that the data processing operation is directly performed when the abnormal account checking file is large are solved.
S350: and screening out the state code meeting the exception handling condition through a state screening unit in the exception handling module.
As shown in table 1, for example, if the status code is 19, it indicates that the initial reconciliation file decryption is abnormal, and it is known that the reason for the initial reconciliation file decryption abnormality may be that the initial reconciliation file itself is abnormal or the decryption is abnormal, and such a reason cannot be solved in the subsequent data processing operation process, so that the status code may not be changed in the subsequent data processing operation process, and therefore, the status code that does not meet the abnormal processing condition needs to be screened out.
In an optional embodiment, the screening out, by the status screening unit in the exception handling module, the status code that meets the exception handling condition includes: and screening out the state code which represents that the processing state is not abnormal through a state screening unit in the exception processing module, and reserving the state code. The non-exception status code may refer to a status code corresponding to a successful or failed execution status. Specifically, as shown in table 1, if the status code is 09, 19, 29, 39, 49 or 59, the status code is removed, and if the status code is another status code, the status code is retained, so that unnecessary resource waste during the data processing operation can be reduced, and the processing rate of the abnormal reconciliation file can be increased.
S360: and analyzing the state code meeting the abnormal processing condition through a state analysis unit in the abnormal processing module to obtain a processing state corresponding to the abnormal reconciliation file.
The analyzing the status code meeting the exception handling condition may refer to a process of obtaining a handling status corresponding to the exception reconciliation file according to the status code meeting the exception handling condition, for example, by analyzing the status code 11 meeting the exception handling condition, it may be known that the handling status of the exception reconciliation file is an initial reconciliation file decryption failure.
S370: judging whether the processing state corresponding to the abnormal account checking file is the first step failure of the data processing operation or not; if yes, go to S380; if not, go to S390.
The first step of the data processing operation may refer to a step of downloading the initial reconciliation file.
S380: all steps of the data processing operation are performed.
Specifically, if the processing state corresponding to the abnormal account checking file is the initial account checking file downloading failure of the data processing operation, all steps of the data processing operation are directly performed.
S390: and acquiring a data processing result file corresponding to the data processing operation step, and executing the subsequent step of data processing corresponding to the processing state.
Illustratively, if the processing state corresponding to the abnormal reconciliation file is not the initial reconciliation file downloading failure of the data processing operation, the corresponding data processing operation is matched according to the processing state corresponding to the current abnormal reconciliation file. Specifically, if the processing state corresponding to the abnormal reconciliation file is that the reconciliation file merging and sorting fails, the reconciliation file merging and sorting, the target reconciliation file extraction and the reconciliation data processing operation are matched for the abnormal reconciliation file, and the data processing operation before the reconciliation file merging and sorting can be omitted, so that the intelligent continuing processing of the abnormal reconciliation file is realized, and the processing speed of the abnormal reconciliation file is improved.
It should be noted that, after the abnormal reconciliation file module in the embodiment of the present invention is started, data processing is performed only once on the abnormal reconciliation, and if the abnormal reconciliation file module fails, the abnormal reconciliation file module is ended and is not restarted.
As shown in fig. 3b, which is a flowchart of a method for processing continuation of an abnormal reconciliation file according to an embodiment of the present invention, in fig. 3b, when an abnormal reconciliation file is processed again, first, a state matrix module is accessed to obtain a state code in the state matrix module; then, the state code is screened by a state screening unit in the exception handling module, and if the state code does not accord with the exception handling condition, the continuation processing of the exception reconciliation file is directly finished; if the status code meets the abnormal processing condition, analyzing the status code meeting the abnormal processing condition through a status analyzing unit in the abnormal processing module, judging whether the processing status corresponding to the abnormal reconciliation file is the initial reconciliation file downloading failure or not, if so, executing an initial reconciliation file downloading step, and performing subsequent data processing operation after the initial reconciliation file is successfully downloaded; if not, the file storage module is accessed to obtain a data processing result file corresponding to the data processing operation step, and subsequent data processing operation is executed until the continuing processing of the abnormal account checking file is completed.
The technical scheme of the embodiment of the invention monitors the process of data processing operation on the initial account checking file, records the processing result corresponding to each step, converts the processing result into the corresponding processing state, stores the processing state into the state matrix module in the form of the state code, when processing the abnormal account checking file again, firstly obtains the state code in the state matrix module, analyzes the state code meeting the abnormal processing condition to obtain the processing state corresponding to the abnormal account checking file, then judges whether the processing state corresponding to the abnormal account checking file is the failure of the first step of the data processing operation or not, and completes the continuous processing of the abnormal account checking file according to the corresponding judgment result, solves the problems of insufficient monitoring granularity of the account checking file processing flow and the incapability of continuous processing of the abnormal account checking file in the prior art, can realize the accurate monitoring of each processing flow of the account checking file and realize the continuous intelligent processing of the abnormal account checking file, the processing speed of the account checking file is improved.
Fig. 4a is a schematic structural diagram of a preferred reconciliation file full-flow processing apparatus according to an embodiment of the present invention. As shown in fig. 4a, the preferred reconciliation file full-flow processing device comprises a file processing unit (i.e. a file processing module), a storage unit, an exception handling unit (i.e. an exception handling module), and a flow monitoring unit (i.e. a flow monitoring module). The file processing unit comprises a file downloader (namely a file downloading unit), a file decryptor (namely a file decrypting unit), a file decompressor (namely a file decompressing unit), a merging sequencer (namely a merging sequencing unit), a data extractor (namely a data extracting unit) and a financial verifier (namely a financial checking unit), and is mainly used for initial checking file downloading, decrypting, decompressing, sequencing, extracting and checking; the storage unit comprises a file memory (namely a file storage module), a key memory (namely a key storage module) and a state matrix (namely a state matrix module), wherein the file memory is used for storing downloaded initial reconciliation files and additional reconciliation files such as compressed reconciliation files and the like generated by each file processor, the key memory is used for storing key serial numbers required by decryption of the initial reconciliation files, and the state matrix is used for storing processing states of processors such as a file downloader and a file decryptor; the exception handling unit comprises a status filter (namely a status filter unit) and a status analyzer (namely a status analysis unit), and is mainly used for processing the exception reconciliation file independently, screening status codes in a status matrix through the status filter for processing, analyzing the reason of the exception reconciliation file and subsequent required processing steps through the status analyzer, and combining the two to realize the continuing processing of the exception reconciliation file; the process monitoring unit comprises a message receiver (namely a message receiving unit) and a state converter (namely a state conversion unit), wherein the message receiver is used for receiving the processing result of the file processing unit, and the state converter is used for converting the processing result of each processor in the file processing unit into a corresponding processing state to realize the conversion of the event result and the state. Specifically, the file processing unit is connected with the storage unit and the process monitoring unit, the process monitoring unit is connected with the storage unit and the exception handling unit, and the storage unit is connected with the exception handling unit.
Fig. 4b is a flowchart of a preferred reconciliation file full-flow processing apparatus according to an embodiment of the present invention. As shown in fig. 4b, the preferred workflow of the reconciliation file full-flow processing apparatus is specifically: firstly, starting a monitor to start monitoring the processing result of each file processor in the file processing unit; then, executing the downloading of the initial account checking file, and storing the downloaded initial account checking file into a file memory; acquiring a decryption key from a key memory, carrying out initial reconciliation file decryption to obtain a compressed reconciliation file, decompressing the compressed reconciliation file to obtain a reconciliation file, merging and sequencing the reconciliation file to obtain a source reconciliation file, extracting a target reconciliation file at a receiving end of the reconciliation file, completing the reconciliation of the source reconciliation file and the target reconciliation file, and sending a processing result of each file processor to a message receiver of a flow monitoring unit; after receiving the processing result, the message receiver converts the processing result into a corresponding processing state, such as success, exception or failure, through a state converter, and stores the converted processing state into a state matrix; and when the file processor fails to execute, triggering the exception handling unit, acquiring the state code in the state matrix, analyzing the processing state, accessing the file memory to acquire the data processing result file and executing the subsequent data processing operation step to complete the continuing processing of the exception account checking file.
Fig. 5 is a schematic structural diagram of a reconciliation file full-flow processing apparatus according to an embodiment of the present invention, which can execute the reconciliation file full-flow processing method related in each of the embodiments. The apparatus may be implemented in a software and/or hardware manner, and as shown in fig. 5, the apparatus for processing the account checking file through the whole flow specifically includes: a file processing module 510, a file storage module 520, a process monitoring module 530, a state matrix module 540, and an exception handling module 550.
The file processing module 510 is configured to perform data processing operation on the initial reconciliation file to obtain a data processing result file;
a file storage module 520, configured to store the data processing result file;
a process monitoring module 530, configured to receive a processing result of the data processing operation and perform format conversion on the processing result to obtain a corresponding processing state;
a state matrix module 540, configured to store the processing state in a form of a state code;
the exception handling module 550 is configured to, if an exception reconciliation file occurs during a data processing operation of an initial reconciliation file, obtain a status code in the status matrix module, and handle the status code to obtain a handling status corresponding to the exception reconciliation file; and matching subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, and finishing the processing of the abnormal account checking file.
The technical scheme of the embodiment of the invention monitors the process of data processing operation on the initial account checking file, records the processing result corresponding to each step, converts the processing result into the corresponding processing state, stores the processing state into the state matrix module in the form of the state code, obtains the processing state corresponding to the abnormal account checking file through the state code of the abnormal account checking file when processing the abnormal account checking file again, matches the subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, completes the processing of the abnormal account checking file, solves the problems of insufficient monitoring granularity of the account checking file processing flow and incapability of continuous processing of the abnormal account checking file in the prior art, can realize the accurate monitoring of each processing flow of the account checking file and the continuous intelligent processing of the abnormal account checking file, the processing speed of the account checking file is improved.
Optionally, the exception handling module 550 may specifically include a status code obtaining unit, a status screening unit, and a status analyzing unit;
the system comprises a status code acquisition unit, a status matrix module and a status code processing unit, wherein the status code acquisition unit is used for acquiring a status code in the status matrix module if an abnormal account checking file occurs in the data processing operation process of an initial account checking file;
the state screening unit is used for screening out the state codes meeting the abnormal processing conditions;
and the state analyzing unit is used for analyzing the state codes meeting the abnormal processing conditions to obtain the processing state corresponding to the abnormal reconciliation file.
Optionally, the exception handling module 550 may specifically include a continuation processing unit, configured to execute all steps of the data processing operation if the processing state corresponding to the exception reconciliation file is a first step failure of the data processing operation; and if the processing state corresponding to the abnormal account checking file is failure except for the first step of the data processing operation, acquiring a data processing result file corresponding to the data processing operation step, and executing the subsequent step of data processing corresponding to the processing state.
Optionally, the file processing module 510 may specifically include a file downloading unit, a file decrypting unit, a file decompressing unit, a merging and sorting unit, a data extracting unit, and a financial checking unit;
the system comprises a file downloading unit, a reconciliation file providing unit and a reconciliation file processing unit, wherein the file downloading unit is used for downloading a corresponding initial reconciliation file from a file memory of a reconciliation file providing system;
the file decryption unit is used for decrypting the initial reconciliation file to obtain a compressed reconciliation file;
the file decompression unit is used for decompressing the compressed reconciliation file to obtain a reconciliation file;
the merging and sorting unit is used for merging and sorting the reconciliation files to obtain source reconciliation files;
the data extraction unit is used for acquiring a target reconciliation file at a reconciliation file receiving end;
and the financial checking unit is used for comparing the target account checking file with the source account checking file to finish the account checking operation.
Optionally, the flow monitoring module 530 may specifically include a message receiving unit and a state converting unit;
the message receiving unit is used for receiving the processing result of the data processing operation in real time;
and the state conversion unit is used for converting the processing result of the data processing operation into a corresponding processing state according to a state conversion rule.
Optionally, the file decryption unit may be specifically configured to obtain a corresponding decryption key from the key storage module, and decrypt the initial reconciliation file to obtain a compressed reconciliation file.
Optionally, the state screening unit may be specifically configured to screen out a state code indicating that the processing state is not abnormal, and perform retention.
The reconciliation file full-flow processing device provided by the embodiment of the invention can execute the reconciliation file full-flow processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of a computer apparatus according to an embodiment of the present invention, as shown in fig. 6, the computer apparatus includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of processors 610 in the computer device may be one or more, and one processor 610 is taken as an example in fig. 6; the processor 610, the memory 620, the input device 630 and the output device 640 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 6.
The memory 620 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for processing the whole flow of the reconciliation document in the embodiment of the present invention (for example, the document processing module 510, the document storage module 520, the flow monitoring module 530, the state matrix module 540, and the exception handling module 550 in the device for processing the whole flow of the reconciliation document). The processor 610 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 620, that is, the method for processing the account checking file through the flow is realized.
The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 620 may further include memory located remotely from the processor 610, which may be connected to a computer device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 640 may include a display device such as a display screen.
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a reconciliation file full-flow processing method, where the method includes:
performing data processing operation on the initial reconciliation file through a file processing module to obtain a data processing result file;
storing the data processing result file through a file storage module;
receiving a processing result of data processing operation through a process monitoring module, and performing format conversion on the processing result to obtain a corresponding processing state;
storing the processing state in the form of a state code through a state matrix module;
if an abnormal account checking file occurs in the data processing operation process of the initial account checking file, acquiring a state code in a state matrix module, and processing the state code through an abnormal processing module to obtain a processing state corresponding to the abnormal account checking file; and matching subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, and finishing the processing of the abnormal account checking file.
Of course, the storage medium provided by the embodiment of the present invention includes computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the reconciliation file full-flow processing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the reconciliation file full-flow processing apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for processing a whole flow of account checking files is characterized in that the method is applied to an account checking file receiving end and comprises the following steps:
performing data processing operation on the initial reconciliation file through a file processing module to obtain a data processing result file;
storing the data processing result file through a file storage module;
receiving a processing result of data processing operation through a process monitoring module, and performing format conversion on the processing result to obtain a corresponding processing state;
storing the processing state in the form of a state code through a state matrix module;
if an abnormal account checking file occurs in the data processing operation process of the initial account checking file, acquiring a state code in a state matrix module, and processing the state code through an abnormal processing module to obtain a processing state corresponding to the abnormal account checking file; and matching subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, and finishing the processing of the abnormal account checking file.
2. The method according to claim 1, wherein if an abnormal reconciliation file occurs during a data processing operation of the initial reconciliation file, acquiring a status code in a status matrix module, and obtaining a processing status corresponding to the abnormal reconciliation file by processing the status code through an abnormal handling module comprises:
if an abnormal account checking file occurs in the data processing operation process of the initial account checking file, acquiring a state code in a state matrix module;
screening out the state code meeting the abnormal processing condition through a state screening unit in the abnormal processing module;
and analyzing the state code meeting the abnormal processing condition through a state analysis unit in the abnormal processing module to obtain a processing state corresponding to the abnormal reconciliation file.
3. The method according to claim 1, wherein the matching of the abnormal reconciliation file with subsequent data processing operations according to the processing state corresponding to the abnormal reconciliation file comprises:
if the processing state corresponding to the abnormal account checking file is failure of the first step of the data processing operation, executing all steps of the data processing operation;
and if the processing state corresponding to the abnormal account checking file is failure except for the first step of the data processing operation, acquiring a data processing result file corresponding to the data processing operation step, and executing the subsequent step of data processing corresponding to the processing state.
4. The method of claim 1, wherein the performing, by the file processing module, the data processing operation on the initial reconciliation file to obtain the data processing result file comprises:
downloading a corresponding initial reconciliation file from a file memory of a reconciliation file provider system through a file downloading unit in a file processing module;
decrypting the initial reconciliation file through a file decryption unit in a file processing module to obtain a compressed reconciliation file;
decompressing the compressed reconciliation file through a file decompressing unit in a file processing module to obtain a reconciliation file;
merging and sorting the reconciliation files through a merging and sorting unit in a file processing module to obtain source reconciliation files;
acquiring a target account checking file at an account checking file receiving end through a data extraction unit in a file processing module;
and comparing the target account checking file with the source account checking file through a financial checking unit in the file processing module to finish account checking operation.
5. The method of claim 1, wherein the receiving, by the process monitoring module, the processing result of the data processing operation and performing format conversion on the processing result to obtain the corresponding processing state comprises:
receiving a processing result of the data processing operation in real time through a message receiving unit in a process monitoring module;
and converting the processing result of the data processing operation into a corresponding processing state according to a state conversion rule by a state conversion unit in the process monitoring module.
6. The method of claim 4, wherein decrypting the initial reconciliation file by a file decryption unit in a file processing module to obtain a compressed reconciliation file comprises:
and acquiring a corresponding decryption key from the key storage module, and decrypting the initial reconciliation file by using the decryption key through a file decryption unit in the file processing module to obtain a compressed reconciliation file.
7. The method of claim 2, wherein the screening out, by a status screening unit in the exception handling module, the status code that meets the exception handling condition comprises:
and screening out the state code which represents that the processing state is not abnormal through a state screening unit in the exception processing module, and reserving the state code.
8. The utility model provides a reconciliation file full-flow processing apparatus, its characterized in that, the device is applied to reconciliation file receiving terminal, the device includes:
the file processing module is used for carrying out data processing operation on the initial reconciliation file to obtain a data processing result file;
the file storage module is used for storing the data processing result file;
the flow monitoring module is used for receiving a processing result of data processing operation and performing format conversion on the processing result to obtain a corresponding processing state;
the state matrix module is used for storing the processing state in a state code form;
the abnormal processing module is used for acquiring the state code in the state matrix module if the abnormal reconciliation file occurs in the data processing operation process of the initial reconciliation file, and processing the state code to obtain the processing state corresponding to the abnormal reconciliation file; and matching subsequent data processing operation for the abnormal account checking file according to the processing state corresponding to the abnormal account checking file, and finishing the processing of the abnormal account checking file.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the reconciled document full-flow processing method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the reconciliation file full-flow processing method according to any one of claims 1 to 7.
CN202111559985.8A 2021-12-20 2021-12-20 Account checking file full-flow processing method, device, equipment and medium Pending CN114266659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111559985.8A CN114266659A (en) 2021-12-20 2021-12-20 Account checking file full-flow processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111559985.8A CN114266659A (en) 2021-12-20 2021-12-20 Account checking file full-flow processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114266659A true CN114266659A (en) 2022-04-01

Family

ID=80828014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111559985.8A Pending CN114266659A (en) 2021-12-20 2021-12-20 Account checking file full-flow processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114266659A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594961A (en) * 2023-07-19 2023-08-15 安徽华云安科技有限公司 File processing method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594961A (en) * 2023-07-19 2023-08-15 安徽华云安科技有限公司 File processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107797854B (en) Transaction file processing method and device, storage medium and computer equipment
CN112365001B (en) Model generation method, device and server
CN104504347A (en) Data consistency matching processing method and device
CN112437060B (en) Data transmission method and device, computer equipment and storage medium
CN114218322B (en) Data display method, device, equipment and medium based on ciphertext transmission
CN111741268B (en) Video transmission method, device, server, equipment and medium
CN114266659A (en) Account checking file full-flow processing method, device, equipment and medium
CN113660205B (en) Encryption method for software authorization code
CN111405013A (en) Cloud platform data management system
CN111628863B (en) Data signature method and device, electronic equipment and storage medium
CN110837373A (en) Continuous integration and continuous delivery method, device, computer equipment and storage medium
CN110674511A (en) Offline data protection method and system based on elliptic curve encryption algorithm
CN111356132A (en) Bluetooth access control method, system, electronic device and storage medium
CN114629917A (en) Data processing method and device for cross-system communication and electronic equipment
CN115102701A (en) Multi-chip data encryption and decryption processing method and device
CN114979109A (en) Behavior track detection method and device, computer equipment and storage medium
CN111343170B (en) Electronic signing method and system
CN114884696A (en) Fraud early warning method, device, equipment and storage medium
CN114205142A (en) Data transmission method and device, electronic equipment and storage medium
CN110264383B (en) Electronic contract filing method and device, readable storage medium and server
CN112118366A (en) Method and device for transmitting face picture data
CN110569646B (en) File recognition method and medium
CN115118523B (en) Security chip encryption processing method and device for adjusting encryption strategy by terminal equipment
CN116775365B (en) Lossless upgrading method for loadable execution file, security chip and storage medium
CN114090981B (en) Access method and device for remote host

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