CN107797854B - Transaction file processing method and device, storage medium and computer equipment - Google Patents

Transaction file processing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN107797854B
CN107797854B CN201710495461.4A CN201710495461A CN107797854B CN 107797854 B CN107797854 B CN 107797854B CN 201710495461 A CN201710495461 A CN 201710495461A CN 107797854 B CN107797854 B CN 107797854B
Authority
CN
China
Prior art keywords
transaction
file
asynchronous task
database
type
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
CN201710495461.4A
Other languages
Chinese (zh)
Other versions
CN107797854A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710495461.4A priority Critical patent/CN107797854B/en
Publication of CN107797854A publication Critical patent/CN107797854A/en
Priority to PCT/CN2018/084841 priority patent/WO2019001125A1/en
Application granted granted Critical
Publication of CN107797854B publication Critical patent/CN107797854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The invention relates to a transaction file processing method, which comprises the following steps: receiving the uploaded batch transaction files; creating a corresponding file analysis asynchronous task for each transaction file; executing each file analysis asynchronous task in parallel; the executing of each file parsing asynchronous task comprises: acquiring the transaction type of the transaction file; if the transaction type is successfully matched with a pre-stored transaction type, a file analysis method corresponding to the transaction type is obtained in a database; and analyzing the transaction file according to the file analysis method, and storing the transaction data obtained by analysis into a database. By adopting the method, the processing efficiency of the transaction file can be improved. A transaction document processing apparatus, a storage medium and a computer device are also provided.

Description

Transaction file processing method and device, storage medium and computer equipment
Technical Field
The invention relates to the technical field of computers, in particular to a transaction finger file processing method, a transaction finger file processing device, a storage medium and computer equipment.
Background
The traditional transaction file processing method is to process each transaction file according to the receiving time sequence of the transaction file, including analyzing the received transaction file to obtain transaction data, and using the transaction data.
However, when an analysis process of a certain file is abnormal in the transaction files of the same batch, the conventional file processing method can analyze other transaction files of the same batch only by solving the problem of the abnormality of the file first, and then uses other transaction data, so that the processing efficiency of the file is low.
Disclosure of Invention
The embodiment of the invention provides a transaction file processing method, a transaction file processing device, a storage medium and computer equipment, which can improve the efficiency of transaction file processing.
A transaction document processing method, the method comprising:
receiving the uploaded batch transaction files;
creating a corresponding file analysis asynchronous task for each transaction file;
executing each file analysis asynchronous task in parallel;
the executing of each file parsing asynchronous task comprises:
acquiring the transaction type of the transaction file;
if the transaction type is successfully matched with a pre-stored transaction type, a file analysis method corresponding to the transaction type is obtained in a database;
and analyzing the transaction file according to the file analysis method, and storing the transaction data obtained by analysis into a database.
In one embodiment, before creating the corresponding file parsing asynchronous task for each transaction file, the method further includes:
verifying the security of the batch transaction file;
and if the batch transaction files are verified to be safe, a step of establishing a corresponding file analysis asynchronous task for each transaction file is carried out.
In one embodiment, before the obtaining, in the database, the file parsing method corresponding to the transaction type, the method further includes:
acquiring a file verification method corresponding to the transaction type from a database;
verifying the transaction file according to the file verification method;
and if the verification is passed, entering the step of acquiring the file analysis method corresponding to the transaction type in the database.
In one embodiment, the method further comprises:
judging whether the transaction types of the batch transaction files are the same transaction type;
if so, creating a corresponding transaction application asynchronous task for each transaction file; executing each transaction application asynchronous task in parallel, wherein executing each transaction application asynchronous task comprises: acquiring transaction data corresponding to the transaction file from a database; executing the transaction data;
if not, acquiring corresponding transaction data from the database in sequence according to a preset transaction logic sequence, and executing the transaction data.
In one embodiment, before the determining whether the transaction types of the batch transaction files are the same transaction type, the method further includes:
detecting whether the batch transaction files are analyzed completely;
if yes, the step of judging whether the transaction types of the batch transaction files are the same transaction type is carried out.
A transaction document processing apparatus, the apparatus comprising:
the transaction file receiving module is used for receiving the uploaded batch transaction files;
the file analysis asynchronous task creating module is used for creating a corresponding file analysis asynchronous task for each transaction file;
the file analysis asynchronous task execution module is used for executing each file analysis asynchronous task in parallel;
the file analysis asynchronous task execution module is used for acquiring the transaction type of the transaction file; if the transaction type is successfully matched with a pre-stored transaction type, a file analysis method corresponding to the transaction type is obtained in a database; and analyzing the transaction file according to the file analysis method, and storing the transaction data obtained by analysis into a database.
In one embodiment, the file parsing asynchronous task creation module is further configured to verify the security of the batch transaction file; and if the batch transaction files are verified to be safe, a step of establishing a corresponding file analysis asynchronous task for each transaction file is carried out.
In one embodiment, the file parsing asynchronous task execution module is further configured to obtain a file verification method corresponding to the transaction type in a database; verifying the transaction file according to the file verification method; and if the verification is passed, entering the step of acquiring the file analysis method corresponding to the transaction type in the database.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving the uploaded batch transaction files;
creating a corresponding file analysis asynchronous task for each transaction file;
executing each file analysis asynchronous task in parallel;
the executing of each file parsing asynchronous task comprises:
acquiring the transaction type of the transaction file;
if the transaction type is successfully matched with a pre-stored transaction type, a file analysis method corresponding to the transaction type is obtained in a database;
and analyzing the transaction file according to the file analysis method, and storing the transaction data obtained by analysis into a database.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving the uploaded batch transaction files;
creating a corresponding file analysis asynchronous task for each transaction file;
executing each file analysis asynchronous task in parallel;
the executing of each file parsing asynchronous task comprises:
acquiring the transaction type of the transaction file;
if the transaction type is successfully matched with a pre-stored transaction type, a file analysis method corresponding to the transaction type is obtained in a database;
and analyzing the transaction file according to the file analysis method, and storing the transaction data obtained by analysis into a database.
The above method, apparatus, storage medium and computer device for processing transaction files, which receive uploaded batch transaction files, create corresponding file parsing asynchronous tasks for each transaction file, execute each file parsing asynchronous task in parallel, and execute each file parsing asynchronous task, include: the method comprises the steps of obtaining a transaction type of a transaction file, obtaining a file analysis method corresponding to the transaction type in a database if the transaction type is successfully matched with a pre-stored transaction type, analyzing the transaction file according to the file analysis method, and storing transaction data obtained through analysis into the database. Each transaction file of the same batch corresponds to a file analysis asynchronous task, and each file analysis asynchronous task directly obtains a corresponding file analysis method from a database according to the transaction type of each transaction file, so that the transaction files are analyzed in parallel, and the processing efficiency of the transaction files is improved.
Drawings
FIG. 1 is a diagram of an application environment of a transaction document processing method in one embodiment;
FIG. 2 is an internal block diagram of a server in one embodiment;
FIG. 3 is a flow diagram of a transaction document processing method in one embodiment;
FIG. 4 is a flow chart of a transaction document verification method in yet another embodiment;
FIG. 5 is a flow diagram of a method for transactional data execution in one embodiment;
FIG. 6 is a block diagram of a transaction document processing device in accordance with one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The transaction document processing method provided by the embodiment of the invention can be applied to the environment shown in fig. 1. Referring to fig. 1, the server 102 may receive the batch transaction file uploaded by the terminal 104 and process the transaction file. Specifically, the server 102 communicates with the terminal 104 through a network, the server 102 receives the uploaded batch transaction files, creates a corresponding file parsing asynchronous task for each transaction file, and executes each file parsing asynchronous task in parallel, where executing each file parsing asynchronous task includes: and acquiring the transaction type of the transaction file, if the transaction type is successfully matched with a pre-stored transaction type, acquiring a file analysis method corresponding to the transaction type in a database, analyzing the transaction file according to the file analysis method, storing the transaction data obtained by analysis in the database, and the like. The terminal includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and the like.
In one embodiment, as shown in fig. 2, a server is further provided, where the server includes a processor, a nonvolatile storage medium, an internal memory, and a network connection port, which are connected through a system bus, and the nonvolatile storage medium stores therein an operating system and computer-executable instructions for implementing a transaction file processing method applicable to a terminal provided in an embodiment of the present application. The processor is used for improving the calculation and control capacity and supporting the operation of the whole server. The internal memory is used to provide an environment for the operating system and the execution of computer-executable instructions in the non-volatile storage medium. The network interface is used for network communication with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 2 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, and in particular that a server may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
In one embodiment, as shown in fig. 3, there is provided a transaction document processing method, which is described as applied to the server in fig. 2, and includes:
step 302, receiving the uploaded batch transaction file.
The transaction file is a data file formed by various operations (such as applying for registering an account, modifying account information, purchasing commodities and the like) performed by a user in the commodity transaction system, and the transaction file is distinguished by transaction types, such as an account opening file, an account modifying file, a purchase requisition file, a purchase subscription file and the like. In this embodiment, the server receives batch transaction files uploaded by the user through the commodity transaction system.
Each transaction document corresponds to a transaction type, and the transaction document processing method provided in this embodiment is a processing method based on a plurality of transaction documents.
Step 304, a corresponding file parsing asynchronous task is created for each transaction file.
The asynchronous task is a task which directly executes subsequent operations without waiting for the completion of the execution of the current task when the current task is executed, namely the asynchronous task is used for simultaneously executing a plurality of tasks.
After the batch transaction files are received, the server creates a corresponding file analysis asynchronous task for each received transaction file, and the corresponding file analysis asynchronous task is used for quickly analyzing each transaction file.
Step 306, executing each file parsing asynchronous task in parallel.
And after the file analysis asynchronous task is established, distributing the established file analysis asynchronous task according to the number of the file analysis asynchronous tasks and the preset maximum task processing number. Specifically, when the number of the file analysis asynchronous tasks does not exceed the preset maximum task processing number, the created file analysis asynchronous tasks can be directly distributed to a server which currently creates the file analysis asynchronous tasks; when the number of the file analysis asynchronous tasks is greater than the preset maximum task processing number, a first ratio of the number of the file analysis asynchronous tasks to the preset maximum task processing number can be calculated, the first ratio is rounded up to obtain a second ratio, then the file analysis asynchronous tasks are distributed to servers with the number of the servers being the second ratio, for example, the number of the file analysis asynchronous tasks is 18 (namely the number of the received batch transaction files is 18), the preset maximum task processing number is 7, the asynchronous tasks are distributed to 3 servers to be executed, the number of the file analysis asynchronous tasks distributed by the 3 servers can be 7, 7, 4 (namely being distributed according to the preset maximum task processing number), and can also be 6, 6, 6 (namely average distribution), and the like.
And after the file analysis asynchronous task is distributed, executing all the created file analysis asynchronous tasks in parallel. Wherein, the step of executing each file analysis asynchronous task comprises:
step 3062, obtain the transaction type of the transaction document.
In this embodiment, the transaction files are divided by transaction types. For example, the transaction types may be, but are not limited to, an account opening file, an account modification file, a subscription file, an underwriting file, and the like. Specifically, the transaction type may be obtained by directly parsing the transaction file, or the transaction type may be obtained by first parsing the transaction file to obtain a file source (e.g., a PC end system, a wechat platform, etc.), and then obtaining the transaction type of the transaction file according to the file source.
Step 3064, if the transaction type is successfully matched with the pre-stored transaction type, a file analysis method corresponding to the transaction type is obtained in the database.
The file parsing method is a method for parsing a file that is pre-stored in a database. In this embodiment, the transaction type of the received transaction file needs to be matched with the pre-stored transaction type to filter out files that are mistakenly transmitted by the terminal. If the matching is successful, a file analysis method corresponding to the transaction type is obtained from the database, namely the file analysis method is stored in the database in advance, so that the template of the subsequent transaction file is changed, the original file analysis method in the database can be directly replaced by the corresponding new file analysis method, and the operations of connection testing and the like caused by rewriting of methods stored in a program are reduced.
Step 3066, analyze the trade file according to the file analytic method, and keep the trade data that is analyzed to the database.
And after the server analyzes the transaction file according to the analysis method corresponding to the transaction file to obtain transaction data, the transaction data is stored in a database for subsequent use.
In this embodiment, each transaction file of the same batch corresponds to one file parsing asynchronous task, and each file parsing asynchronous task directly obtains a corresponding file parsing method from the database according to the transaction type of each transaction file, so that parallel parsing of the transaction files is achieved, and processing efficiency of the transaction files is improved.
In one embodiment, before step 304, the method further comprises verifying the security of the batch transaction file; and if the batch transaction files are verified to be safe, a step of establishing a corresponding file analysis asynchronous task for each transaction file is carried out.
Specifically, by obtaining the security identifier of each transaction file, if the security identifier is consistent with the preset security identifier, the transaction file is verified to be safe. For example, the field corresponding to the security identifier is "security signs", the preset value of "security signs" is "DEAL-R", and the value corresponding to "security signs" in the received transaction file is also "DEAL-R", so that the transaction file is verified as safe. In the embodiment, the security of the transaction files is ensured by adding the security verification step to the received batch transaction files.
In an embodiment, as shown in fig. 4, before obtaining a file parsing method corresponding to a transaction type in a database, a file verification method for a transaction file is further provided, further including:
and step 402, if the transaction type is successfully matched with the pre-stored transaction type, acquiring a file verification method corresponding to the transaction type from the database.
The file checking method comprises physical checking and logical checking of the file. Physical checks are used to check the coding of the file and the integrity of the data, and a common data integrity check may be a Cyclic redundancy check Algorithm (CRC, including CRC8, CRC16, and CRC32), a Secure Hash Algorithm (SHA, including SHA1, SHA256, SHA384, SHA512), a Message Digest Algorithm (Message Digest Algorithm, including MD2, MD4, MD5), or the like; the logic check is used for checking the logic of the data, such as whether repeated input of the same field is consistent, whether the sequence execution order of the data accords with preset logic, and the like.
In this embodiment, the database stores the file verification method corresponding to the pre-stored transaction type in advance, and after the transaction type of the transaction file is obtained, the file verification method corresponding to the transaction type can be easily found out.
Step 404, the transaction document is verified according to the document verification method.
Verifying the transaction file by using a file verification method corresponding to the transaction file type, and if the transaction file passes the verification, performing subsequent steps of acquiring a file analysis corresponding to the transaction type from a database; if the verification is not passed, the processing of the transaction file is terminated.
In the embodiment, the received transaction file is verified, so that illegal files are filtered, and the data integrity of the transaction file is ensured.
In one embodiment, as shown in fig. 5, after step 306, the method further includes:
step 502, determining whether the transaction types of the batch transaction files are the same transaction type, if so, entering step 504, otherwise, entering step 508.
Step 504, a corresponding transaction application asynchronous task is created for each transaction file.
The transaction application asynchronous task is an execution request task of transaction data in the transaction file. When the transaction types of the received transaction files in the same batch are the same, if the transaction files are account opening files, the running efficiency of the task can be improved by creating a plurality of task threads.
Step 506, executing each transaction application asynchronous task in parallel.
Similar to step 306, after the transaction application asynchronous tasks are created, the created transaction application asynchronous tasks may be distributed according to the number of transaction application asynchronous tasks and the preset maximum task processing number, and then all the created transaction application asynchronous tasks are executed in parallel. Wherein, executing each transaction application asynchronous task comprises:
at step 5062, transaction data corresponding to the transaction document is obtained from the database.
The transaction file stores the corresponding analysis data in the database after analysis, so that the transaction file can be directly acquired from the database when the transaction data is required to be used. The transaction data is data that a user performs any operation in the transaction system, and includes, but is not limited to, a login account number, a login password, purchased commodity information, and the like of the transaction system.
At step 5064, transaction data is executed.
And after the transaction data corresponding to the transaction file is acquired in the database, executing the transaction data according to the preset logic sequence of the transaction types, thereby completing the whole transaction application. For example, for a fund subscription file, the server obtains the fund type and the fund quantity selected by the user for purchase from a fund subscription application table, obtains the fund unit price, the commission fee, the discount and the like corresponding to the fund type from a fund information table, calculates the fee required to be paid by the user according to the preset calculation rule, obtains the payment information of the fee, and generates a corresponding fund subscription order, thereby realizing the complete process of fund subscription.
And step 508, acquiring corresponding transaction data from the database in sequence according to a preset transaction logic sequence, and executing the transaction data.
The preset transaction logic is set according to the pre-stored transaction types, such as an account opening file, an account modification file, a purchase applying file and a purchase subscribing file which are processed in sequence. In particular, this may be achieved by setting different processing priorities for transaction files of different transaction types.
In the embodiment, whether the transaction types of the transaction files in the same batch are the same or not is judged, if yes, a corresponding transaction application asynchronous task is created for each transaction file, and then each transaction application asynchronous task is executed in parallel; if not, establishing a transaction application asynchronous task for the batch transaction file and executing the transaction application asynchronous task, wherein the transaction application asynchronous task comprises the following steps: and corresponding transaction data are sequentially acquired from the database according to a preset transaction logic sequence, and the transaction data are executed, so that the execution efficiency of the transaction data is improved. Meanwhile, the analysis of each transaction file and the execution process of the transaction data are separated, so that the dependency of the analysis of the transaction data and the execution of the transaction files is reduced, and the stability of the use and execution functions of the transaction data is improved.
In other embodiments, if there are two or more batches of batch transactions to be processed, a corresponding transaction application asynchronous task is created for each batch of batch transactions to be processed, and then each transaction application asynchronous task is executed in parallel. Wherein, executing each transaction application asynchronous task comprises: and judging whether the transaction types of the batch transaction files in one batch are the same transaction type, if so, creating a corresponding transaction application asynchronous subtask for each batch transaction file in the same batch, and then executing each transaction application asynchronous subtask in parallel. Wherein, executing each transaction application asynchronous subtask comprises: acquiring transaction data corresponding to the transaction file from a database, and executing the transaction data; if not, acquiring corresponding transaction data from the database in sequence according to a preset transaction logic sequence, and executing the transaction data.
In an embodiment, before step 502, a step of detecting whether the batch transaction file is analyzed completely, and if so, a step of determining whether the transaction type of the batch transaction file is the same transaction type is performed.
Specifically, a plurality of file processing states corresponding to the batch number in the file list (including the batch number, the file code, the transaction type, the file source, the file state, and the initial value of the file state being "pending") may be traversed, and if all the file processing states are "parsing completed", the parsing of the batch transaction file is completed.
In one embodiment, as shown in fig. 6, there is provided a transaction document processing apparatus including:
a transaction file receiving module 602, configured to receive the uploaded batch transaction files;
a file parsing asynchronous task creating module 604, configured to create a corresponding file parsing asynchronous task for each transaction file;
a file parsing asynchronous task execution module 606, configured to execute each file parsing asynchronous task in parallel;
the file parsing asynchronous task execution module 606 is used for acquiring the transaction type of the transaction file; if the transaction type is successfully matched with the pre-stored transaction type, acquiring a file analysis method corresponding to the transaction type from the database; and analyzing the transaction file according to a file analysis method, and storing the transaction data obtained by analysis into a database.
In one embodiment, the file parsing asynchronous task execution module 606 is also used to verify the security of the batch transaction files; and if the batch transaction files are verified to be safe, a step of establishing a corresponding file analysis asynchronous task for each transaction file is carried out.
In one embodiment, the file parsing asynchronous task execution module 606 is further configured to obtain a file verification method corresponding to the transaction type in the database; verifying the transaction file according to a file verification method; and if the verification is passed, the step of obtaining a file analysis method corresponding to the transaction type in the database is carried out.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
receiving the uploaded batch transaction files;
creating a corresponding file analysis asynchronous task for each transaction file;
executing each file analysis asynchronous task in parallel;
executing each file parsing asynchronous task, including:
acquiring the transaction type of the transaction file;
if the transaction type is successfully matched with the pre-stored transaction type, acquiring a file analysis method corresponding to the transaction type from the database;
and analyzing the transaction file according to a file analysis method, and storing the transaction data obtained by analysis into a database.
In one embodiment, before creating a corresponding file parsing asynchronous task for each transaction file, the method further comprises: verifying the security of the batch transaction files; and if the batch transaction files are verified to be safe, a step of establishing a corresponding file analysis asynchronous task for each transaction file is carried out.
In one embodiment, before obtaining the file parsing method corresponding to the transaction type in the database, the method further includes: acquiring a file verification method corresponding to the transaction type from a database; verifying the transaction file according to a file verification method; and if the verification is passed, the step of obtaining a file analysis method corresponding to the transaction type in the database is carried out.
In one embodiment, the program when executed by the processor further performs the steps of: judging whether the transaction types of the batch transaction files are the same transaction type or not; if so, creating a corresponding transaction application asynchronous task for each transaction file; executing each transaction application asynchronous task in parallel, and executing each transaction application asynchronous task, wherein the executing comprises the following steps: acquiring transaction data corresponding to the transaction file from a database; executing the transaction data; if not, acquiring corresponding transaction data from the database in sequence according to a preset transaction logic sequence, and executing the transaction data.
In one embodiment, before determining whether the transaction types of the batch transaction file are the same transaction type, the method further includes: detecting whether the batch transaction files are analyzed completely; if yes, the step of judging whether the transaction type of the batch transaction file is the same transaction type is carried out.
In one embodiment, a computer device is provided, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving the uploaded batch transaction files;
creating a corresponding file analysis asynchronous task for each transaction file;
executing each file analysis asynchronous task in parallel;
executing each file parsing asynchronous task, including:
acquiring the transaction type of the transaction file;
if the transaction type is successfully matched with the pre-stored transaction type, acquiring a file analysis method corresponding to the transaction type from the database;
and analyzing the transaction file according to a file analysis method, and storing the transaction data obtained by analysis into a database.
In one embodiment, before creating a corresponding file parsing asynchronous task for each transaction file, the method further comprises: verifying the security of the batch transaction files; and if the batch transaction files are verified to be safe, a step of establishing a corresponding file analysis asynchronous task for each transaction file is carried out.
In one embodiment, before obtaining the file parsing method corresponding to the transaction type in the database, the method further includes: acquiring a file verification method corresponding to the transaction type from a database; verifying the transaction file according to a file verification method; and if the verification is passed, the step of obtaining a file analysis method corresponding to the transaction type in the database is carried out.
In one embodiment, the program when executed by the processor further performs the steps of: judging whether the transaction types of the batch transaction files are the same transaction type or not; if so, creating a corresponding transaction application asynchronous task for each transaction file; executing each transaction application asynchronous task in parallel, and executing each transaction application asynchronous task, wherein the executing comprises the following steps: acquiring transaction data corresponding to the transaction file from a database; executing the transaction data; if not, acquiring corresponding transaction data from the database in sequence according to a preset transaction logic sequence, and executing the transaction data.
In one embodiment, before determining whether the transaction types of the batch transaction file are the same transaction type, the method further includes: detecting whether the batch transaction files are analyzed completely; if yes, the step of judging whether the transaction type of the batch transaction file is the same transaction type is carried out.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A transaction document processing method, the method comprising:
receiving the uploaded batch transaction files;
creating a corresponding file analysis asynchronous task for each transaction file;
executing each file analysis asynchronous task in parallel;
the executing of each file parsing asynchronous task comprises:
acquiring the transaction type of the transaction file; each transaction file corresponds to a transaction type;
if the transaction type is successfully matched with a pre-stored transaction type, a file analysis method corresponding to the transaction type is obtained in a database;
analyzing the transaction file according to the file analysis method, and storing the transaction data obtained by analysis into a database;
the method further comprises the following steps:
judging whether the transaction types of the batch transaction files are the same transaction type;
if so, creating a corresponding transaction application asynchronous task for each transaction file; executing each transaction application asynchronous task in parallel, wherein executing each transaction application asynchronous task comprises: acquiring transaction data corresponding to the transaction file from a database; executing the transaction data;
if not, acquiring corresponding transaction data from the database in sequence according to a preset service logic sequence, and executing the transaction data.
2. The method of claim 1, further comprising, prior to said creating a corresponding file parsing asynchronous task for each of said transaction files:
verifying the security of the batch transaction file;
and if the batch transaction files are verified to be safe, a step of establishing a corresponding file analysis asynchronous task for each transaction file is carried out.
3. The method of claim 1, further comprising, prior to said obtaining a file parsing method corresponding to the transaction type in a database:
acquiring a file verification method corresponding to the transaction type from a database;
verifying the transaction file according to the file verification method;
and if the verification is passed, entering the step of acquiring the file analysis method corresponding to the transaction type in the database.
4. The method of claim 1, prior to said determining whether the transaction types of the batch transaction file are the same transaction type, further comprising:
detecting whether the batch transaction files are analyzed completely;
if yes, the step of judging whether the transaction types of the batch transaction files are the same transaction type is carried out.
5. A transaction document processing apparatus, characterized in that the apparatus comprises:
the transaction file receiving module is used for receiving the uploaded batch transaction files;
the file analysis asynchronous task creating module is used for creating a corresponding file analysis asynchronous task for each transaction file;
the file analysis asynchronous task execution module is used for executing each file analysis asynchronous task in parallel;
the file analysis asynchronous task execution module is used for acquiring the transaction type of the transaction file; each transaction file corresponds to a transaction type; if the transaction type is successfully matched with a pre-stored transaction type, a file analysis method corresponding to the transaction type is obtained in a database; analyzing the transaction file according to the file analysis method, and storing the transaction data obtained by analysis into a database;
the device further comprises:
the judging module is used for judging whether the transaction types of the batch transaction files are the same transaction type;
the transaction application asynchronous task creating module is used for creating a corresponding transaction application asynchronous task for each transaction file if the transaction types of the batch transaction files are the same transaction type;
a transaction application asynchronous task execution module, configured to execute each transaction application asynchronous task in parallel, where the execution of each transaction application asynchronous task includes: acquiring transaction data corresponding to the transaction file from a database; executing the transaction data;
if not, acquiring corresponding transaction data from the database in sequence according to a preset service logic sequence, and executing the transaction data.
6. The apparatus of claim 5, wherein the file parsing asynchronous task creation module is further configured to verify security of the batch transaction file; and if the batch transaction files are verified to be safe, a step of establishing a corresponding file analysis asynchronous task for each transaction file is carried out.
7. The apparatus of claim 5, wherein the file parsing asynchronous task execution module is further configured to obtain a file verification method corresponding to the transaction type in a database; verifying the transaction file according to the file verification method; and if the verification is passed, entering the step of acquiring the file analysis method corresponding to the transaction type in the database.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
9. 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 steps of the method according to any of claims 1 to 4 when executing the computer program.
CN201710495461.4A 2017-06-26 2017-06-26 Transaction file processing method and device, storage medium and computer equipment Active CN107797854B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710495461.4A CN107797854B (en) 2017-06-26 2017-06-26 Transaction file processing method and device, storage medium and computer equipment
PCT/CN2018/084841 WO2019001125A1 (en) 2017-06-26 2018-04-27 Method and device for processing transaction files, storage medium, and computer apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710495461.4A CN107797854B (en) 2017-06-26 2017-06-26 Transaction file processing method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN107797854A CN107797854A (en) 2018-03-13
CN107797854B true CN107797854B (en) 2020-08-11

Family

ID=61531062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710495461.4A Active CN107797854B (en) 2017-06-26 2017-06-26 Transaction file processing method and device, storage medium and computer equipment

Country Status (2)

Country Link
CN (1) CN107797854B (en)
WO (1) WO2019001125A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797854B (en) * 2017-06-26 2020-08-11 平安科技(深圳)有限公司 Transaction file processing method and device, storage medium and computer equipment
CN108537528B (en) * 2018-04-10 2021-08-06 平安科技(深圳)有限公司 Batch file auditing and payment-for-delivery method and system
CN109086330A (en) * 2018-07-03 2018-12-25 深圳鼎盛电脑科技有限公司 A kind of document handling method, device, equipment and storage medium
CN109359147B (en) * 2018-09-27 2021-01-26 北京京东尚科信息技术有限公司 Business component processing method, component server and system
CN111859205A (en) * 2020-07-14 2020-10-30 上海悦易网络信息技术有限公司 Analytic method and equipment for batch processing tasks
CN112433994A (en) * 2020-11-24 2021-03-02 北京神州数字科技有限公司 File processing method
CN112597228A (en) * 2020-12-26 2021-04-02 中国农业银行股份有限公司 File processing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6990466B1 (en) * 2000-08-08 2006-01-24 International Business Machines Corporation Method and system for integrating core banking business processes
CN101484924A (en) * 2004-06-09 2009-07-15 美国银行股份有限公司 Automated transaction processing system and approach
CN102509238A (en) * 2011-11-29 2012-06-20 成都安朗电气自控设备有限公司 Bank non-cash business processing method, apparatus and system
CN102571720A (en) * 2010-12-27 2012-07-11 中国移动通信集团辽宁有限公司 Method and device for processing heterogeneous information contents
CN105894366A (en) * 2016-04-22 2016-08-24 上海瀚之友信息技术服务有限公司 Seckilling type transaction processing system and method
CN106055315A (en) * 2016-05-19 2016-10-26 乐视控股(北京)有限公司 Method and system for processing batched tasks

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10223716B2 (en) * 2014-06-19 2019-03-05 Lexmark International, Inc. Systems and methods for monitoring and valuating transactions for document processes
CN105389209B (en) * 2015-12-25 2019-04-26 中国建设银行股份有限公司 A kind of asynchronous batch tasks processing method and system
CN107797854B (en) * 2017-06-26 2020-08-11 平安科技(深圳)有限公司 Transaction file processing method and device, storage medium and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6990466B1 (en) * 2000-08-08 2006-01-24 International Business Machines Corporation Method and system for integrating core banking business processes
CN101484924A (en) * 2004-06-09 2009-07-15 美国银行股份有限公司 Automated transaction processing system and approach
CN102571720A (en) * 2010-12-27 2012-07-11 中国移动通信集团辽宁有限公司 Method and device for processing heterogeneous information contents
CN102509238A (en) * 2011-11-29 2012-06-20 成都安朗电气自控设备有限公司 Bank non-cash business processing method, apparatus and system
CN105894366A (en) * 2016-04-22 2016-08-24 上海瀚之友信息技术服务有限公司 Seckilling type transaction processing system and method
CN106055315A (en) * 2016-05-19 2016-10-26 乐视控股(北京)有限公司 Method and system for processing batched tasks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
如何做一个对账系统;纯洁的微笑;《知乎》;20170623;全文 *

Also Published As

Publication number Publication date
CN107797854A (en) 2018-03-13
WO2019001125A1 (en) 2019-01-03

Similar Documents

Publication Publication Date Title
CN107797854B (en) Transaction file processing method and device, storage medium and computer equipment
CN107730385B (en) Order information simulation processing method and device, storage medium and computer equipment
CN106815031B (en) Kernel module loading method and device
US20160162686A1 (en) Method for verifying integrity of dynamic code using hash background of the invention
CN110708335A (en) Access authentication method and device and terminal equipment
CN104753909A (en) Updated information authentication method, device and system
CN111598575A (en) Business process control method and device, electronic equipment and readable storage medium
CN107480513B (en) Authentication implementation method and device, computer device and readable storage medium
CN111273891A (en) Business decision method and device based on rule engine and terminal equipment
WO2015188780A1 (en) Method and apparatus for processing account information
US11899770B2 (en) Verification method and apparatus, and computer readable storage medium
CN109033818B (en) Terminal, authentication method, and computer-readable storage medium
CN110781134A (en) Data processing method and device, computer storage medium and electronic equipment
CN103440460A (en) Application system change validation method and system
CN116055769B (en) CID advertisement early warning method, apparatus, computer device and storage medium
CN110968860A (en) Security verification method for application account, computer equipment and computer-readable storage medium
CN110855718A (en) Enterprise user registration method and device, electronic equipment and computer readable medium
US20240031166A1 (en) Web-side data signature method and apparatus and computer device
CN106445807B (en) Application installation package detection method and device for intelligent terminal
CN110674491B (en) Method and device for real-time evidence obtaining of android application and electronic equipment
CN115708339A (en) Data processing method, device and storage medium
KR20150032606A (en) System and method for testing of credit authorization terminal
CN109472148B (en) Method, device and storage medium for loading hot patch
CN110955464A (en) Service processing method and device, computer equipment and storage medium
CN113015156A (en) Mobile phone number batch binding changing method, terminal and computer readable storage medium

Legal Events

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