CN109697663A - Method and device, storage medium and the electronic equipment of batch transaction - Google Patents
Method and device, storage medium and the electronic equipment of batch transaction Download PDFInfo
- Publication number
- CN109697663A CN109697663A CN201811317850.9A CN201811317850A CN109697663A CN 109697663 A CN109697663 A CN 109697663A CN 201811317850 A CN201811317850 A CN 201811317850A CN 109697663 A CN109697663 A CN 109697663A
- Authority
- CN
- China
- Prior art keywords
- batch
- transaction
- batch transaction
- node
- tree structure
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Batch method of commerce provided by the invention, when receiving the request of batch transaction, batch transaction file corresponding to batch transaction request can be obtained, and obtains the transaction of batch in batch transaction file and and the corresponding batch transaction ID of each batch transaction.According to the transaction of each batch and batch transaction ID, the corresponding particular batch transaction tree structure figure of the batch transaction file is generated.Based on batch transaction tree structure figure, each executable node is executed, when judging that each executable node in the batch transaction tree structure figure is in completion status, completes the transaction this time to the batch transaction file.In the present invention, it can be according to the transaction of batch and batch transaction ID, layout classification is carried out to all kinds of transaction for including in batch transaction, generate specific batch transaction tree structure figure, to be executed to batch transaction, the complexity of transaction is reduced, server process speed is improved, reduces the customer transaction waiting time.
Description
Technical field
The present invention relates to transaction request technical field more particularly to a kind of method and devices of batch transaction, storage medium
And electronic equipment.
Background technique
With the development of the times, banking is increasing, and the transaction request of bank-user also gradually increases.It is traditional by
The mode of a processing transaction request can no longer meet the demand of user, and for large batch of transaction request, people start to use
The mode of batch transaction is handled.
Inventor has found that the same time can only execute a batch transaction during batch is traded,
Large batch of transaction request increases the complexity of transaction, can not handle all kinds of transaction simultaneously, and it is slow just to will appear server process
Slowly, the problems such as customer transaction waiting time is too long.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method of batch transaction, it can be by raw using transaction file
At specific tree-like structure chart, realizes that same time parallel executes multiple transaction requests, reduce the complexity of transaction, improve service
Device processing speed reduces the customer transaction waiting time.
The present invention also provides a kind of devices of batch transaction, to guarantee above method realization in practice and answer
With.
A kind of batch method of commerce, comprising:
When receiving batch transaction request, the corresponding batch transaction file of the batch transaction request is obtained;
Obtain each batch transaction in the batch transaction file and the corresponding batch of each batch transaction
Transaction ID;
It trades corresponding batch transaction ID according to each batch transaction and each batch, described in generation
The corresponding batch transaction tree structure figure of batch transaction file;
Execute each executable node in the batch transaction tree structure figure;And it is each executable described in real-time judge
Whether node is in completion status;
When each executable node in batch transaction tree structure figure is in completion status, complete to described
The transaction of batch transaction file.
Above-mentioned method, optionally, each batch transaction obtained in the batch transaction file and each institute
State the corresponding batch transaction ID of batch transaction, comprising:
In the batch transaction file, current each batch transaction to be transacted is obtained;
It trades to each batch, by preset regular expression, matches its corresponding sub- transaction file name;
It trades in corresponding sub- transaction file name in each batch, extracts batch and trade corresponding batch friendship
Easily mark.
Above-mentioned method, it is optionally, described corresponding with each batch transaction according to each batch transaction
Batch transaction ID, generate the batch transaction file corresponding batch transaction tree structure figure, comprising:
Obtain preconfigured tree structure artwork plate in database;
Determine each batch transaction ID, the corresponding tree node in the tree structure artwork plate, and should
The corresponding batch transaction of batch transaction ID is uploaded in the corresponding tree node of batch transaction ID, to generate described batch
Measure the corresponding batch transaction tree structure figure of transaction file.
Above-mentioned method, optionally, each executable node executed in the batch transaction tree structure figure, packet
It includes:
The batch transaction tree structure figure is scanned, determines each executable section in the batch transaction tree structure figure
Point;
Whether the previous task number of each executable node described in real-time judge is 0;
When the previous task number of any executable node is 0, the executable node is executed.
Above-mentioned method, optionally, whether the previous task number of each executable node of real-time judge is 0, comprising:
Determine each preamble node associated by each executable node;
Whether each preamble node of each executable node of real-time judge is in completion status, and in each institute
When stating each preamble node of executable node and being in completion status, determine that the previous task number of the executable node is 0.
Whether above-mentioned method, optionally, each executable node described in the real-time judge are in completion status, packet
It includes:
Whether the previous task number for judging the end node in the batch transaction tree structure figure is 0;
When the previous task number of the end node is 0, determine in batch transaction tree structure figure it is each can
It executes node and is in completion status.
Above-mentioned method, optionally, further includes:
In the implementation procedure of each executable node in batch transaction tree structure figure, event occurs for executing
The executable node of barrier, is modified, and after amendment, re-executes the executable node.
A kind of batch the transaction device, comprising:
Acquiring unit obtains the batch transaction for obtaining the corresponding batch transaction file of the batch transaction request
The transaction of each batch and the corresponding batch transaction ID of each batch transaction in file;
Generation unit, for according to each batch transaction and the corresponding batch transaction of each batch transaction
Mark generates the corresponding batch transaction tree structure figure of the batch transaction file;
Execution unit, for executing each executable node in the batch transaction tree structure figure;
Whether judging unit is in completion status for each executable node described in real-time judge;
When each executable node in batch transaction tree structure figure is in completion status, complete to described
The transaction of batch transaction file.
A kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein transported in described program
Equipment where controlling the storage medium when row executes above-mentioned batch method of commerce.
A kind of electronic equipment, which is characterized in that including memory and one or more than one program, wherein one
A perhaps more than one program is stored in memory and is configured to execute above-mentioned batch by one or more than one processor
Measure method of commerce.
Compared with prior art, the present invention includes the following advantages:
The present invention provides a kind of batch method of commerce, comprising: when receiving batch transaction request, obtains the batch and hands over
Easily request corresponding batch transaction file;Obtain the transaction of each batch and each batch in the batch transaction file
The corresponding batch transaction ID of son transaction;According to each batch transaction and the corresponding batch of each batch transaction
Transaction ID generates the corresponding batch transaction tree structure figure of the batch transaction file;Execute the tree-like knot of the batch transaction
Each executable node in composition;And whether each executable node described in real-time judge is in completion status;When described
When each executable node in batch transaction tree structure figure is in completion status, complete to the batch transaction file
Transaction.Batch method of commerce provided by the invention can obtain the batch transaction request when receiving the request of batch transaction
Corresponding batch transaction file, and obtain the transaction of batch in the batch transaction file and and each batch friendship
Easy corresponding batch transaction ID.According to each batch transaction and the corresponding batch transaction of each batch transaction
Mark generates the corresponding specific batch transaction tree structure figure of the batch transaction file.It is traded based on the batch tree-like
Structure chart executes each executable node, and whether each executable node described in real-time judge is in completion status, when sentencing
When each executable node in batch transaction tree structure figure that breaks is in completion status, complete this time to the batch
The transaction of transaction file.It in the present invention, can be each to include in batch transaction according to the transaction of batch and batch transaction ID
Class transaction carries out layout classification, generates specific batch transaction tree structure figure, and be based on the tree structure figure, hands over batch
It is easily executed, to realize that same time parallel executes multiple transaction requests, reduces the complexity of transaction, improve server
Processing speed reduces the customer transaction waiting time.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of method flow diagram of batch method of commerce provided by the invention;
Fig. 2 be another embodiment of the present invention provides a kind of batch method of commerce method flow diagram;
Fig. 3 be another embodiment of the present invention provides a kind of batch method of commerce method flow diagram;
Fig. 4 be another embodiment of the present invention provides a kind of batch method of commerce method flow diagram;
Fig. 5 be another embodiment of the present invention provides a kind of batch method of commerce method flow diagram;
Fig. 6 be another embodiment of the present invention provides a kind of batch method of commerce method flow diagram;
Fig. 7 is a kind of structural schematic diagram of batch the transaction device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of a kind of electronic equipment provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In this application, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion,
So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having
The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having
There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element
There is also other identical elements in journey, method, article or equipment.
The present invention can be used in numerous general or special purpose computing device environment or configurations.Such as: personal computer, service
Device computer, handheld device or portable device, laptop device, multi-processor device including any of the above devices or devices
Distributed computing environment etc..
The embodiment of the invention provides a kind of batch method of commerce, this method can be applied in all kinds of servers, or each
In the subsystem of class server, executing subject can be the processor of all kinds of servers or the subsystem of all kinds of servers
Processor in system, Fig. 1 show the method flow diagram of batch method of commerce provided in an embodiment of the present invention, comprising:
S101: when receiving batch transaction request, the corresponding batch transaction file of the batch transaction request is obtained;
In method provided in an embodiment of the present invention, the method can be applied in all kinds of servers, and the server can
For bank transaction processing server or other transaction processing servers.In practical applications, when user needs to carry out batch transaction,
When initiating the request of batch transaction to the server, the server can receive batch transaction request, and obtain the batch
The corresponding batch transaction file of transaction request.
S102: obtaining each batch transaction in the batch transaction file and the transaction of each batch is corresponding
Batch transaction ID;
In method provided in an embodiment of the present invention, the server can trade to batch in the batch transaction file
And each batch corresponding batch transaction ID of trading is obtained.
S103: raw according to each batch transaction and the corresponding batch transaction ID of each batch transaction
At the corresponding batch transaction tree structure figure of the batch transaction file;
In method provided in an embodiment of the present invention, the server is according to each batch transaction and each described batch
The corresponding batch transaction ID of quantum transaction generates batch transaction tree structure figure corresponding with the batch transaction file.
S104: each executable node in the batch transaction tree structure figure is executed;And it is each described in real-time judge
Whether executable node is in completion status;
In method provided in an embodiment of the present invention, the server can execute the batch transaction tree structure figure of generation
In each executable node, and whether each executable node described in real-time judge is in completion status.
S105: it when each executable node in batch transaction tree structure figure is in completion status, completes
Transaction to the batch transaction file.
In method provided in an embodiment of the present invention, when server judge in batch transaction tree structure figure it is each can
When execution node is in completion status, complete to transaction corresponding with the batch transaction file.
In method provided in an embodiment of the present invention, when receiving batch transaction request, the batch transaction request is obtained
Corresponding batch transaction file;Obtain the transaction of each batch and each batch transaction in the batch transaction file
Corresponding batch transaction ID;According to each batch transaction and the corresponding batch trading standard of each batch transaction
Know, generates the corresponding batch transaction tree structure figure of the batch transaction file;It executes in the batch transaction tree structure figure
Each executable node;And whether each executable node described in real-time judge is in completion status;When the batch is handed over
When each executable node in easy tree structure figure is in completion status, the transaction to the batch transaction file is completed.
Batch method of commerce provided in an embodiment of the present invention can obtain described batch when receiving the request of batch transaction
Batch transaction file corresponding to transaction request is measured, and obtains the transaction of batch in the batch transaction file and and each institute
State the corresponding batch transaction ID of batch transaction.It is corresponded to according to each batch transaction and each batch transaction
Batch transaction ID, generate the corresponding specific batch transaction tree structure figure of the batch transaction file.Based on described batch
Amount transaction tree structure figure, executes each executable node, and whether each executable node described in real-time judge has been in
This is completed when judging that each executable node in the batch transaction tree structure figure is in completion status at state
The secondary transaction to the batch transaction file.In the present invention, batch can be handed over according to the transaction of batch and batch transaction ID
All kinds of transaction for including in easily carry out layout classification, generate specific batch transaction tree structure figure, and be based on the tree-like knot
Composition executes batch transaction, to realize that same time parallel executes multiple transaction requests, reduces the complexity of transaction
Property, server process speed is improved, the customer transaction waiting time is reduced.
In order to which method more provided in an embodiment of the present invention is described, it is specific that the embodiment of the present invention provides one
Batch method of commerce provided by the invention is described in detail in example, specific as follows:
Assuming that method provided in an embodiment of the present invention is applied in bank transaction processing server, executing theme is that bank hands over
Easy to handle server, during bank transaction processing server processing batch is traded, user, which initiates batch transaction, to be asked
It asks, the bank transaction processing server starts to process batch and trades.
It such as include all types of friendships such as money transfer transactions, transaction of refunding, purchase fund transaction in the batch transaction file
Easy business, during handling batch transaction file, since batch transaction is serializable transaction, the same time can only execute one
Batch transaction, therefore all types of transaction business can only be handled one by one, cause server process slow, customer transaction waiting time mistake
The problems such as long.
Therefore, the embodiment of the present invention provides a kind of batch method of commerce, and executing theme is the bank transaction processing service
Device, when receiving Client-initiated batch transaction request, the bank transaction processing server can obtain the batch transaction
Request corresponding batch transaction file, and obtain all types of transaction business for including in the batch transaction file and with it is all types of
The corresponding batch type of transaction mark of transaction business.According to all types of transaction business and corresponding with all types of transaction business
Batch type of transaction mark generates batch transaction tree structure figure, and executes all types of transaction industry in the tree structure figure
It is engaged in, whether each executable node described in last real-time judge is in completion status, when batch transaction tree structure figure
In each executable node when being in completion status, complete the transaction to the batch transaction file.It is provided in the present invention
Embodiment in, in the tree structure figure of generation, all types of transaction business be each executable node, existing serial connection,
Also there is parallel connection, so that multiple transaction requests can be executed in the same time, reduce the complexity of transaction, improve
The processing speed of server reduces the transaction waiting time of user.
The present invention also provides another embodiments, as shown in Fig. 2, may comprise steps of:
S201: when receiving batch transaction request, the corresponding batch transaction file of the batch transaction request is obtained;
Another embodiment of the present invention provides method in, the method can be applied in all kinds of servers, the service
Device can be bank transaction processing server or other transaction processing servers.In practical applications, when user needs to carry out batch
Transaction, when initiating the request of batch transaction to the server, the server can receive batch transaction request, and described in acquisition
The corresponding batch transaction file of batch transaction request.
S202: obtaining each batch transaction in the batch transaction file and the transaction of each batch is corresponding
Batch transaction ID;
Another embodiment of the present invention provides method in, the server can be to each batch in the batch transaction file
Quantum transaction and the corresponding batch transaction ID of each batch transaction are obtained.
S203: raw according to each batch transaction and the corresponding batch transaction ID of each batch transaction
At the corresponding batch transaction tree structure figure of the batch transaction file;
Another embodiment of the present invention provides method in, the server is according to each batch transaction for getting and every
A batch is traded corresponding batch transaction ID, is generated specific batch corresponding with the batch transaction file and is traded
Tree structure figure.
S204: each executable node in the batch transaction tree structure figure is executed;And it is each described in real-time judge
Whether executable node is in completion status;
Another embodiment of the present invention provides method in, the batch that the server can execute generation is traded tree-like knot
Each executable node in composition, and judge whether each executable node is in completion status.
S205: it when each executable node in batch transaction tree structure figure is in completion status, completes
Transaction to the batch transaction file;
Another embodiment of the present invention provides method in, server judgement is when in batch transaction tree structure figure
Each executable node when being in completion status, complete the transaction to the batch transaction file;
S206: in the implementation procedure of each executable node in batch transaction tree structure figure, for executing
The executable node to break down, is modified, and after amendment, re-executes the executable node.
Another embodiment of the present invention provides method in, when the batch transaction tree structure figure in each executable section
In the implementation procedure of point, the executable node that the server can break down to execution is modified, and after amendment, again
Execute the executable node.
Another embodiment of the present invention provides method, further comprise the amendment to the executable node to break down, it is ensured that
Each node can be executed.And can also according to batch transaction and batch transaction ID, to batch transaction in include
All kinds of transaction carry out layout classification, generate specific batch transaction tree structure figure, and be based on the tree structure figure, to batch
Amount transaction is executed, to realize that same time parallel executes multiple transaction requests, is reduced the complexity of transaction, is improved clothes
Business device processing speed, reduces the customer transaction waiting time.
The present invention also provides another embodiment, another embodiment of the present invention provides method in, described in the acquisition batch
The transaction of each batch and each batch in amount transaction file are traded the process of corresponding batch transaction ID, are such as schemed
Shown in 3, it may comprise steps of:
S301: in the batch transaction file, current each batch transaction to be transacted is obtained;
Another embodiment of the present invention provides method in, each to be transacted batch has been pre-set in batch transaction file
Quantum transaction, the server can read each batch to be transacted pre-set in the batch transaction file and hand over
Easily.
S302: it trades to each batch, by preset regular expression, matches its corresponding sub- transaction file
Name;
Another embodiment of the present invention provides method in, trade to above-mentioned each batch for getting, by what is preset
Regular expression matches corresponding sub- transaction file name.
S303: trading in corresponding sub- transaction file name in each batch, extract batch trade it is corresponding
Batch transaction ID.
Another embodiment of the present invention provides method in, trade corresponding sub- transaction file name in each batch
In, extract batch transaction ID corresponding with the sub- transaction of the batch.
In order to make another embodiment of the present invention provides method, can be easier to obtain each in the batch transaction file
A batch transaction and the corresponding batch transaction ID of each batch transaction, another embodiment of the present invention is in advance in batch
Each batch transaction to be transacted is pre-set in transaction file, another embodiment of the present invention is handed over by reading the batch
Easy file, gets each batch transaction pre-set, and based on each batch transaction, using it is preset just
Then expression formula matches corresponding sub- transaction file name, to extract from the fixation position in the sub- transaction file name
Batch transaction ID corresponding with each batch transaction.
Another embodiment of the present invention provides method in, when receiving batch transaction request, obtain batch transaction
Request corresponding batch transaction file;In the batch transaction file, current each batch transaction to be transacted is obtained;It is right
Each batch transaction, by preset regular expression, matches its corresponding sub- transaction file name;In each batch
Son is traded in corresponding sub- transaction file name, and the corresponding batch transaction ID of batch transaction is extracted;According to described each batch
Quantum transaction and the corresponding batch transaction ID of each batch transaction, generate the corresponding batch of the batch transaction file
Transaction tree structure figure;Execute each executable node in the batch transaction tree structure figure;And it is each described in real-time judge
Whether a executable node is in completion status;When each executable node in batch transaction tree structure figure is located
When completion status, the transaction to the batch transaction file is completed.
Another embodiment of the present invention provides batch method of commerce, when receive batch transaction request when, institute can be obtained
Batch transaction file corresponding to batch transaction request is stated, currently to be transacted each batch is obtained in the batch transaction file
Quantum transaction is the corresponding sub- transaction file of each sub- deals match of batch according to the regular expression preset
Name, and trading in corresponding sub- transaction file name in each batch extracts batch corresponding batch of trading and trades
Mark.According to each batch transaction and the corresponding batch transaction ID of each batch transaction, described batch is generated
Measure the corresponding specific batch transaction tree structure figure of transaction file.Based on batch transaction tree structure figure, execute each
Executable node, and whether each executable node described in real-time judge is in completion status, when judging the batch transaction
When each executable node in tree structure figure is in completion status, the friendship this time to the batch transaction file is completed
Easily.Another embodiment of the present invention provides method in, the transaction of each batch has been pre-set in batch transaction file,
Server process speed is improved, and can be each to include in batch transaction according to the transaction of batch and batch transaction ID
Class transaction carries out layout classification, generates specific batch transaction tree structure figure, and be based on the tree structure figure, hands over batch
It is easily executed, to realize that same time parallel executes multiple transaction requests, reduces the complexity of transaction, improve server
Processing speed reduces the customer transaction waiting time.
The present invention also provides another embodiment, another embodiment of the present invention provides method in, it is described according to described each
A batch transaction and the corresponding batch transaction ID of each batch transaction, it is corresponding to generate the batch transaction file
The process of batch transaction tree structure figure, as shown in figure 4, may comprise steps of:
S401: preconfigured tree structure artwork plate in database is obtained;
Another embodiment of the present invention provides method in, the server can obtain pre-configured tree-like in database
Structure chart template.
S402: determining each batch transaction ID, the corresponding tree node in the tree structure artwork plate, and
The corresponding batch transaction of the batch transaction ID is uploaded in the corresponding tree node of batch transaction ID, to generate
State the corresponding batch transaction tree structure figure of batch transaction file.
Another embodiment of the present invention provides method in, the server can determine whether each batch transaction ID,
Corresponding tree node in the template of the tree structure figure, and the corresponding batch transaction of the batch transaction ID is uploaded to
In tree node corresponding with the batch transaction ID, to generate the corresponding batch transaction of the specific batch transaction file
Tree structure figure.
In order to make another embodiment of the present invention provides method, can be more easier according to each batch transaction and
Each batch is traded corresponding batch transaction ID, is generated the corresponding batch of the batch transaction file and is traded tree-like knot
Composition, another embodiment of the present invention are configured with tree structure artwork plate in the database in advance, according to the batch transaction ID,
In the tree structure artwork plate, the corresponding tree node of each batch transaction is determined, and batch that will acquire is handed over
It is easily uploaded in the tree node, to generate the corresponding batch transaction tree structure of the specific batch transaction file
Figure.
Another embodiment of the present invention provides method in, when receiving batch transaction request, obtain batch transaction
Request corresponding batch transaction file;Obtain each batch transaction in the batch transaction file and each batch
It trades corresponding batch transaction ID;Obtain preconfigured tree structure artwork plate in database;Determine each batch
Transaction ID, the corresponding tree node in the tree structure artwork plate, and the corresponding batch of the batch transaction ID is sub
Transaction is uploaded in the corresponding tree node of batch transaction ID, to generate the corresponding batch transaction of the batch transaction file
Tree structure figure;Execute each executable node in the batch transaction tree structure figure;And it is each described in real-time judge can
Execute whether node is in completion status;When each executable node in batch transaction tree structure figure has been in
When at state, the transaction to the batch transaction file is completed.
Another embodiment of the present invention provides batch method of commerce, when receive batch transaction request when, institute can be obtained
Batch transaction file corresponding to batch transaction request is stated, and obtains the transaction of batch in the batch transaction file and and every
A batch is traded corresponding batch transaction ID.Preconfigured tree structure artwork plate in database is obtained, and really
Fixed each batch transaction ID, the corresponding tree node in the template of the tree structure figure, and the batch is traded
It identifies corresponding batch transaction to be uploaded in tree node corresponding with the batch transaction ID, to generate specific described
The corresponding batch transaction tree structure figure of batch transaction file.Based on batch transaction tree structure figure, each holds is executed
Row node, and whether each executable node described in real-time judge is in completion status, when judging that the batch transaction is tree-like
When each executable node in structure chart is in completion status, the transaction this time to the batch transaction file is completed.This
The method that another embodiment provides is invented, is configured with tree structure artwork plate in the database in advance, need to only trade batch text
Each batch transaction in part is uploaded in the tree structure artwork plate, that is, produces tree corresponding with batch transaction file
Shape structure chart greatly improves server operation processing speed, and can be right according to the transaction of batch and batch transaction ID
All kinds of transaction for including in batch transaction carry out layout classification, generate specific batch transaction tree structure figure, and based on described
Tree structure figure executes batch transaction, to realize that same time parallel executes multiple transaction requests, reduces transaction
Complexity, improve server process speed, reduce the customer transaction waiting time.
The present invention also provides another embodiment, another embodiment of the present invention provides method in, described in the execution batch
The process of executable node in amount transaction tree structure figure, as shown in Figure 5, comprising the following steps:
S501: scanning the batch transaction tree structure figure, determines executable in the batch transaction tree structure figure
Node;
Another embodiment of the present invention provides method in, first scan the batch transaction tree structure figure of generation, and obtain institute
The each executable node in batch transaction tree structure figure stated.
S502: whether the previous task number of each executable node described in real-time judge is 0;
Another embodiment of the present invention provides method in, batch described in real-time judge trade tree structure figure in it is each
Whether the previous task number of executable node is 0.
S503: when the previous task number of any executable node is 0, then the executable node is executed.
Another embodiment of the present invention provides method in, judge when the previous task number of any executable node as 0 when
It waits, executes the described executable node.
Another embodiment of the present invention provides method in, when receiving batch transaction request, obtain batch transaction
Request corresponding batch transaction file;Obtain each batch transaction in the batch transaction file and each batch
It trades corresponding batch transaction ID;It is handed over according to each batch transaction and the corresponding batch of each batch transaction
Easily mark generates the corresponding batch transaction tree structure figure of the batch transaction file;Scan the batch transaction tree structure
Figure determines the executable node in the batch transaction tree structure figure;Each executable node is preposition described in real-time judge
Whether number of tasks is 0;When the previous task number of any executable node is 0, then the executable node is executed;And in real time
Judge whether each executable node is in completion status;When each holding in batch transaction tree structure figure
When row node is in completion status, the transaction to the batch transaction file is completed.
Another embodiment of the present invention provides method in, determining and real-time judge has been carried out to executable node so that
Implementation procedure is more accurate, and can be each to include in batch transaction according to the transaction of batch and batch transaction ID
Class transaction carries out layout classification, generates specific batch transaction tree structure figure, and be based on the tree structure figure, hands over batch
It is easily executed, to realize that same time parallel executes multiple transaction requests, reduces the complexity of transaction, improve server
Processing speed reduces the customer transaction waiting time.
The present invention also provides another embodiment, another embodiment of the present invention provides method in, the real-time judge is each
The previous task number of a executable node whether the process for being 0, as shown in Figure 6, comprising the following steps:
S601: each preamble node associated by each executable node is determined;
Another embodiment of the present invention provides method in, the preamble node be in the process of implementation, execution sequence exist
Node before the executable node.The server can determine whether out each preamble associated by each executable node
Node.
S602: whether each preamble node of each executable node of real-time judge is in completion status, and
When each preamble node of each executable node is in completion status, the previous task number of the executable node is determined
It is 0.
Another embodiment of the present invention provides method in, the server can be to each of each executable node
Whether preamble node is in completion status and carries out real-time judge, and equal in each preamble node of each executable node
When in completion status, determine that the previous task number of the executable node is 0.
In order to make another embodiment of the present invention provides method, each executable node of real-time judge can be more easier
Whether previous task number is 0, another embodiment of the present invention provides method can determine whether associated by each executable node
Each preamble node, and sentenced in real time to whether each preamble node of each executable node is in completion status
It is disconnected, to simplify implementation procedure, improve efficiency.
Another embodiment of the present invention provides method in, when receiving batch transaction request, obtain batch transaction
Request corresponding batch transaction file;Obtain each batch transaction in the batch transaction file and each batch
It trades corresponding batch transaction ID;It is handed over according to each batch transaction and the corresponding batch of each batch transaction
Easily mark generates the corresponding batch transaction tree structure figure of the batch transaction file;Scan the batch transaction tree structure
Figure determines each executable node in the batch transaction tree structure figure;It determines associated by each executable node
Each preamble node;Whether each preamble node of each executable node of real-time judge is in completion status, and
When each preamble node of each executable node is in completion status, the previous task of the executable node is determined
Number is 0;When the previous task number of any executable node is 0, the executable node is executed;And it is each described in real-time judge
Whether a executable node is in completion status;When each executable node in batch transaction tree structure figure is located
When completion status, the transaction to the batch transaction file is completed.
Another embodiment of the present invention provides method in, can determine whether it is each associated by each executable node before
Sequence node, and real-time judge is carried out to whether each preamble node of each executable node is in completion status, from
And implementation procedure is simplified, improve efficiency.And another embodiment of the present invention provides method can according to batch transaction and
Batch transaction ID carries out layout classification to all kinds of transaction for including in batch transaction, generates tree-like knot of specifically trading in batches
Composition, and it is based on the tree structure figure, batch transaction is executed, to realize that same time parallel executes multiple transaction
Request reduces the complexity of transaction, improves server process speed, reduces the customer transaction waiting time.
Corresponding with method described in Fig. 1, the embodiment of the invention also provides a kind of batch the transaction devices, for figure
The specific implementation of method in 1, batch the transaction device provided in an embodiment of the present invention can be applied in all kinds of servers or all kinds of
In the subsystem of server, structural schematic diagram is as shown in fig. 7, specifically include:
Acquiring unit 701 obtains the batch and hands over for obtaining the corresponding batch transaction file of the batch transaction request
The transaction of each batch and the corresponding batch transaction ID of each batch transaction in easy file;
Generation unit 702, for according to each batch transaction and the corresponding batch of each batch transaction
Transaction ID generates the corresponding batch transaction tree structure figure of the batch transaction file;
Execution unit 703, for executing each executable node in the batch transaction tree structure figure;
Whether judging unit 704 is in completion status for each executable node described in real-time judge;When described batch
When each executable node in amount transaction tree structure figure is in completion status, the friendship to the batch transaction file is completed
Easily.
In device provided in an embodiment of the present invention, when receiving batch transaction request, the batch transaction request is obtained
Corresponding batch transaction file;Obtain the transaction of each batch and each batch transaction in the batch transaction file
Corresponding batch transaction ID;According to each batch transaction and the corresponding batch trading standard of each batch transaction
Know, generates the corresponding batch transaction tree structure figure of the batch transaction file;It executes in the batch transaction tree structure figure
Each executable node;And whether each executable node described in real-time judge is in completion status;When the batch is handed over
When each executable node in easy tree structure figure is in completion status, the transaction to the batch transaction file is completed.
Batch the transaction device provided in an embodiment of the present invention can obtain the batch transaction and ask when receiving the request of batch transaction
Corresponding batch transaction file is sought, and obtains the transaction of batch in the batch transaction file and and each batch
It trades corresponding batch transaction ID.It is handed over according to each batch transaction and the corresponding batch of each batch transaction
Easily mark generates the corresponding specific batch transaction tree structure figure of the batch transaction file.It is traded and is set based on the batch
Shape structure chart executes each executable node, and whether each executable node described in real-time judge is in completion status, when
When judging that each executable node in the batch transaction tree structure figure is in completion status, complete this time to described batch
Measure the transaction of transaction file.In the present invention, can according to batch transaction and batch transaction ID, to batch transaction in include
All kinds of transaction carry out layout classification, specific batch transaction tree structure figure are generated, and be based on the tree structure figure, to batch
Transaction is executed, to realize that same time parallel executes multiple transaction requests, is reduced the complexity of transaction, is improved service
Device processing speed reduces the customer transaction waiting time.
The embodiment of the invention also provides a kind of storage medium, the storage medium includes the program of storage, wherein in institute
It states the equipment where controlling the storage medium when program operation and executes above-mentioned batch method of commerce, the method specifically includes:
When receiving batch transaction request, the corresponding batch transaction file of the batch transaction request is obtained;
Obtain each batch transaction in the batch transaction file and the corresponding batch of each batch transaction
Transaction ID;
It trades corresponding batch transaction ID according to each batch transaction and each batch, described in generation
The corresponding batch transaction tree structure figure of batch transaction file;
Execute each executable node in the batch transaction tree structure figure;And it is each executable described in real-time judge
Whether node is in completion status;
When each executable node in batch transaction tree structure figure is in completion status, complete to described
The transaction of batch transaction file.
Above-mentioned method, optionally, each batch transaction obtained in the batch transaction file and each institute
State the corresponding batch transaction ID of batch transaction, comprising:
In the batch transaction file, current each batch transaction to be transacted is obtained;
It trades to each batch, by preset regular expression, matches its corresponding sub- transaction file name;
It trades in corresponding sub- transaction file name in each batch, extracts batch and trade corresponding batch friendship
Easily mark.
Above-mentioned method, it is optionally, described corresponding with each batch transaction according to each batch transaction
Batch transaction ID, generate the batch transaction file corresponding batch transaction tree structure figure, comprising:
Obtain preconfigured tree structure artwork plate in database;
Determine each batch transaction ID, the corresponding tree node in the tree structure artwork plate, and should
The corresponding batch transaction of batch transaction ID is uploaded in the corresponding tree node of batch transaction ID, to generate described batch
Measure the corresponding batch transaction tree structure figure of transaction file.
Above-mentioned method, optionally, each executable node executed in the batch transaction tree structure figure, packet
It includes:
The batch transaction tree structure figure is scanned, determines each executable section in the batch transaction tree structure figure
Point;
Whether the previous task number of each executable node described in real-time judge is 0;
When the previous task number of any executable node is 0, the executable node is executed.
Above-mentioned method, optionally, whether the previous task number of each executable node of real-time judge is 0, comprising:
Determine each preamble node associated by each executable node;
Whether each preamble node of each executable node of real-time judge is in completion status, and in each institute
When stating each preamble node of executable node and being in completion status, determine that the previous task number of the executable node is 0.
Whether above-mentioned method, optionally, each executable node described in the real-time judge are in completion status, packet
It includes:
Whether the previous task number for judging the end node in the batch transaction tree structure figure is 0;
When the previous task number of the end node is 0, determine in batch transaction tree structure figure it is each can
It executes node and is in completion status.
Above-mentioned method, optionally, further includes:
In the implementation procedure of each executable node in batch transaction tree structure figure, event occurs for executing
The executable node of barrier, is modified, and after amendment, re-executes the executable node.
The embodiment of the invention also provides a kind of electronic equipment, structural schematic diagram is as shown in figure 8, specifically include memory
801 and one perhaps more than one 802 one of them or more than one program 802 of program be stored in memory 801
In, and be configured to by one or more than one processor 803 execute the one or more programs 802 include use
In the instruction performed the following operation:
When receiving batch transaction request, the corresponding batch transaction file of the batch transaction request is obtained;
Obtain each batch transaction in the batch transaction file and the corresponding batch of each batch transaction
Transaction ID;
It trades corresponding batch transaction ID according to each batch transaction and each batch, described in generation
The corresponding batch transaction tree structure figure of batch transaction file;
Execute each executable node in the batch transaction tree structure figure;And it is each executable described in real-time judge
Whether node is in completion status;
When each executable node in batch transaction tree structure figure is in completion status, complete to described
The transaction of batch transaction file.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system or
For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method
The part of embodiment illustrates.System and system embodiment described above is only schematical, wherein the conduct
The unit of separate part description may or may not be physically separated, component shown as a unit can be or
Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root
According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill
Personnel can understand and implement without creative efforts.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of batch method of commerce characterized by comprising
When receiving batch transaction request, the corresponding batch transaction file of the batch transaction request is obtained;
Obtain the transaction of each batch and the corresponding batch transaction of each batch transaction in the batch transaction file
Mark;
According to each batch transaction and the corresponding batch transaction ID of each batch transaction, the batch is generated
The corresponding batch transaction tree structure figure of transaction file;
Execute each executable node in the batch transaction tree structure figure;And each executable node described in real-time judge
Whether completion status is in;
When each executable node in batch transaction tree structure figure is in completion status, complete to the batch
The transaction of transaction file.
2. the method according to claim 1, wherein each batch obtained in the batch transaction file
Son transaction and the corresponding batch transaction ID of each batch transaction, comprising:
In the batch transaction file, current each batch transaction to be transacted is obtained;
It trades to each batch, by preset regular expression, matches its corresponding sub- transaction file name;
It trades in corresponding sub- transaction file name in each batch, extracts the corresponding batch trading standard of batch son transaction
Know.
3. the method according to claim 1, wherein described according to each batch transaction and each described
The corresponding batch transaction ID of batch transaction generates the corresponding batch transaction tree structure figure of the batch transaction file, packet
It includes:
Obtain preconfigured tree structure artwork plate in database;
Determine each batch transaction ID, the corresponding tree node in the tree structure artwork plate, and by the batch
The corresponding batch transaction of transaction ID is uploaded in the corresponding tree node of batch transaction ID, is handed over generating the batch
The easily corresponding batch transaction tree structure figure of file.
4. the method according to claim 1, wherein each in the execution batch transaction tree structure figure
A executable node, comprising:
The batch transaction tree structure figure is scanned, determines each executable node in the batch transaction tree structure figure;
Whether the previous task number of each executable node described in real-time judge is 0;
When the previous task number of any executable node is 0, the executable node is executed.
5. according to the method described in claim 4, it is characterized in that, the previous task of each executable node of the real-time judge
Whether number is 0, comprising:
Determine each preamble node associated by each executable node;
Whether each preamble node of each executable node of real-time judge is in completion status, and it is each it is described can
When each preamble node of execution node is in completion status, determine that the previous task number of the executable node is 0.
6. the method according to claim 1, wherein whether each executable node described in the real-time judge is equal
In completion status, comprising:
Whether the previous task number for judging the end node in the batch transaction tree structure figure is 0;
When the previous task number of the end node is 0, determine each executable in the batch transaction tree structure figure
Node is in completion status.
7. the method according to claim 1, wherein further include:
In the implementation procedure of each executable node in batch transaction tree structure figure, break down for execution
Executable node is modified, and after amendment, re-executes the executable node.
8. a kind of batch the transaction device characterized by comprising
Acquiring unit obtains the batch transaction file for obtaining the corresponding batch transaction file of the batch transaction request
In the transaction of each batch and each batch trade corresponding batch transaction ID;
Generation unit, for according to each batch transaction and the corresponding batch trading standard of each batch transaction
Know, generates the corresponding batch transaction tree structure figure of the batch transaction file;
Execution unit, for executing each executable node in the batch transaction tree structure figure;
Whether judging unit is in completion status for each executable node described in real-time judge;When the batch is traded
When each executable node in tree structure figure is in completion status, the transaction to the batch transaction file is completed.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the equipment where the storage medium and execute batch method of commerce as described in claim 1~7 any one.
10. a kind of electronic equipment, which is characterized in that including memory and one or more than one program, one of them
Perhaps more than one program is stored in memory and is configured to be executed by one or more than one processor as right is wanted
Seek batch method of commerce described in 1~7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811317850.9A CN109697663A (en) | 2018-11-07 | 2018-11-07 | Method and device, storage medium and the electronic equipment of batch transaction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811317850.9A CN109697663A (en) | 2018-11-07 | 2018-11-07 | Method and device, storage medium and the electronic equipment of batch transaction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109697663A true CN109697663A (en) | 2019-04-30 |
Family
ID=66229809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811317850.9A Pending CN109697663A (en) | 2018-11-07 | 2018-11-07 | Method and device, storage medium and the electronic equipment of batch transaction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109697663A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545267A (en) * | 2019-08-20 | 2019-12-06 | 上海艾融软件股份有限公司 | transaction data transmission method and device, electronic equipment and storage medium |
CN111179076A (en) * | 2019-12-18 | 2020-05-19 | 平安证券股份有限公司 | IT system intelligent management method, IT system intelligent management device and computer readable storage medium |
CN112925752A (en) * | 2021-02-25 | 2021-06-08 | 平安普惠企业管理有限公司 | Batch file processing method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001350635A (en) * | 2000-06-07 | 2001-12-21 | Nec Corp | Starting scheduling system and starting scheduling method for telegram batch processing system |
CN1828607A (en) * | 2006-04-03 | 2006-09-06 | 无锡永中科技有限公司 | Data search method for tree-type structural file |
CN101017546A (en) * | 2007-03-12 | 2007-08-15 | 中国建设银行股份有限公司 | Method and device for categorical data batch processing |
CN103617199A (en) * | 2013-11-13 | 2014-03-05 | 北京京东尚科信息技术有限公司 | Data operating method and data operating system |
CN108140049A (en) * | 2015-10-20 | 2018-06-08 | 国际商业机器公司 | The parallel batch processing of data structure based on tree |
CN108509284A (en) * | 2018-03-08 | 2018-09-07 | 华南理工大学 | A kind of tree shaped model task management system applied to functional expression programming |
-
2018
- 2018-11-07 CN CN201811317850.9A patent/CN109697663A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001350635A (en) * | 2000-06-07 | 2001-12-21 | Nec Corp | Starting scheduling system and starting scheduling method for telegram batch processing system |
CN1828607A (en) * | 2006-04-03 | 2006-09-06 | 无锡永中科技有限公司 | Data search method for tree-type structural file |
CN101017546A (en) * | 2007-03-12 | 2007-08-15 | 中国建设银行股份有限公司 | Method and device for categorical data batch processing |
CN103617199A (en) * | 2013-11-13 | 2014-03-05 | 北京京东尚科信息技术有限公司 | Data operating method and data operating system |
CN108140049A (en) * | 2015-10-20 | 2018-06-08 | 国际商业机器公司 | The parallel batch processing of data structure based on tree |
CN108509284A (en) * | 2018-03-08 | 2018-09-07 | 华南理工大学 | A kind of tree shaped model task management system applied to functional expression programming |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545267A (en) * | 2019-08-20 | 2019-12-06 | 上海艾融软件股份有限公司 | transaction data transmission method and device, electronic equipment and storage medium |
CN111179076A (en) * | 2019-12-18 | 2020-05-19 | 平安证券股份有限公司 | IT system intelligent management method, IT system intelligent management device and computer readable storage medium |
CN112925752A (en) * | 2021-02-25 | 2021-06-08 | 平安普惠企业管理有限公司 | Batch file processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021000577A1 (en) | Method and apparatus for face-swiping payment | |
US20100017321A1 (en) | Adaptive Implied Spread Matching | |
US20220164791A1 (en) | Method for distributing collectables ownership based on blockchain networks and online transaction server using the same | |
CN110135856A (en) | A kind of repeat business risk monitoring method, device and computer readable storage medium | |
CN107547759A (en) | A kind of quality detecting method and device to contact staff's call | |
WO2022017293A1 (en) | Information processing method and apparatus, and electronic device and storage medium | |
CN109345417A (en) | The on-line examination method and terminal device of the business personnel of identity-based certification | |
CN1956454B (en) | Method and system for bundling and sending work units to a server based on a weighted cost | |
CN109697663A (en) | Method and device, storage medium and the electronic equipment of batch transaction | |
CN107783861A (en) | transaction rollback method, device, storage medium and computer equipment | |
CN106294746A (en) | A kind of concurrent transaction data processing method and device | |
CN109377369A (en) | Checking method, device and the computer readable storage medium of transaction data | |
CN108629560A (en) | Task distributing method, electronic equipment and storage medium | |
WO2022041980A1 (en) | Concept prediction to create new intents and assign examples automatically in dialog systems | |
CN109255671A (en) | Processing method, device and the computer readable storage medium of order request | |
CN108765134A (en) | Order data processing method and processing device, electronic equipment, storage medium | |
Jokela et al. | Usability in RFP’s: The current practice and outline for the future | |
JP2021039631A (en) | Information processing method, program, and information processing device | |
CN109935287A (en) | A kind of similarity analysis method, device and equipment of medical record information | |
CN114037504A (en) | Collection, recruitment and bidding system based on Internet | |
EP3285179A1 (en) | Data transfer method and device | |
CN110223080A (en) | The determination method and device of the target account of brush face payment platform | |
CN110119602B (en) | Man-machine recognition method, device, server, client and storage medium | |
KR20210080748A (en) | Method for processing covering of cryptocurrency collateral and System for the same | |
CN110532810A (en) | Information processing method, device, electronic equipment and readable storage medium storing program for executing |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190430 |