The content of the invention
In view of this, the application provides a kind of method and device for business processing, to improve business feedback result
Data accuracy.
Specifically, the application is achieved by the following technical solution:
A kind of first aspect, there is provided method for processing business, including:
To the first task system for being responsible for first task, first task corresponding with target service is obtained
Task identification;
Sent at the business for indicating to perform the second task corresponding with target service to transaction processing system
Reason request, carries the task identification of the first task, to cause the industry in the Business Processing request
Business processing system performs first task and the second tasks synchronization according to the task identification.
A kind of second aspect, there is provided method for processing business, including:
Receive the industry for indicating execution the second task corresponding with target service of the second task system transmission
Business treatment request, the Business Processing request carries the task identification of first task corresponding with target service;
The first task that first task system sends is obtained according to the task identification, and by described the
One task and the second tasks synchronization are performed.
A kind of third aspect, there is provided business processing device, including:
Identifier acquisition module, for the first task system for being responsible for first task, obtaining and target
The task identification of the corresponding first task of business;
Request sending module, for being sent for indicating execution corresponding with target service to transaction processing system
The second task Business Processing request, the task of the first task is carried in Business Processing request
Mark, to cause the transaction processing system according to the task identification that first task and the second task is same
Step is performed.
A kind of fourth aspect, there is provided business processing device, including:
Request receiving module, for receiving being performed for instruction and target service for the second task system transmission
The Business Processing request of corresponding second task, the Business Processing request carries corresponding with target service
The task identification of first task;
Task execution module, for obtain that first task system sends according to the task identification described the
One task, and the first task and the second tasks synchronization are performed.
The method and device for business processing that the application is provided, transaction processing system can be according to carrying in business
Task identification in treatment request, will identify corresponding first task and the second task is associated, and will
The two tasks synchronizations are performed, so as to improve the data accuracy of business feedback result.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following
When description is related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous
Key element.Implementation method described in following exemplary embodiment does not represent the institute consistent with the application
There is implementation method.Conversely, they are only with described in detail in such as appended claims, the application
The example of the consistent apparatus and method of a little aspects.
Assuming that being processed, it is necessary to do two aspects when a kind of business is performed, title wherein will can be on the one hand processed
It is first task, it is all correspondence that on the other hand treatment is referred to as the second task, i.e. first task and the second task
Same business, the business can be referred to as target service by the present embodiment.
For example, for certain purchase transaction carried out on the net, this purchase transaction is properly termed as a mesh
Mark business.In current transaction, it is related to the circulation of transaction funds, such as, buyer will can buy
The amount of money of commodity pays businessman, in payment process, can be responsible for by buyer's account by the third-party institution
To the transfer operation of Merchant ID, this is properly termed as first task, and the third-party institution can be to business at family
Family collects the service charge of this transfer operation, then collecting for service charge is properly termed as the second task.Can be with
See, first task and the second task are all this transaction of correspondence, that is, correspond to same target service.
Referring to the example of Fig. 1, first task and the second task can be responsible for by two systems respectively, portion
Administration's first task system on the server 11 can be responsible for first task, and the responsible of the present embodiment refers mainly to
, first task system can obtain the mission bit stream of first task, but specific first task
Perform or the transaction processing system in deployment on the server 12.Such as, first task system can be counted
Calculate this transaction to need the amount of money transferred accounts to businessman is 1000 yuan, then first task system can be by this
The information such as transaction ID, dealing money, the Merchant Account of secondary transaction are sent at the business to server 12
Reason system, transfer operation is performed by transaction processing system.Similarly, it is deployed in second on server 13
The service charge that business system can be responsible for calculating this transaction should be how many, and indicate transaction processing system
Executive proceeding expense takes off operation.
And for transaction processing system, the treatment request of first task and the second task is to connect respectively
Receive, in conventional manner, transaction processing system is each performed to the task that the two are respectively received,
It doesn't matter between the two, such as, transaction processing system receive which task requests be carried out which appoint
Business, it is thus possible to which the priority for the two tasks occur is performed, such as, first carried out taking off for service charge,
But now also not to businessman's money transfer transactions fund, then businessman may receive that " you are taken off service charge
10 yuan " and feel confused.Therefore, the method for processing business of the embodiment of the present application, will be used to avoiding this
Situation, the result of two tasks is notified together when notifying result to businessman as far as possible, so more accurate.
Fig. 2 illustrates the flow chart of the method for processing business of the present embodiment, during the flow can be Fig. 1
The second task system being deployed on server 13 is performed, as shown in Fig. 2 the method can include:
In step 201, to the first task system for being responsible for first task, obtain and target service
The task identification of corresponding first task.
For example, with reference to the example system of Fig. 1, in this step, the second task system will be to first task
System obtains the task identification of first task.Such as, for certain purchase transaction, first task system can
It is how many to be responsible for calculating this service charge concluded the business, and indicates the transaction processing system to carry out the clear of service charge
Calculate." clearance service charge " can issue transaction processing system as first task, then the present embodiment
The task identification of the first task can be fed back to the second task system by one task system, the task identification
The document number that e.g. service charge is charged.
In step 202., sent for indicating to perform corresponding with target service the to transaction processing system
The Business Processing request of two tasks, carries the task identification of the first task in the Business Processing request,
To cause that the transaction processing system performs first task and the second tasks synchronization according to the task identification.
In this step, the second task system can indicate transaction processing system to perform the second task, such as,
Second task can be the clearance that this purchase transaction performs transaction funds.When the second task is indicated,
Simultaneously by the task identification informing business processing system of first task, the first task and the second task are all
Corresponding this transaction.So transaction processing system is when Business Processing request is received, it is possible to learn
The corresponding first task of task identification and the second task of this Business Processing request need synchronous execution, this
In it is synchronous perform refer to clear the two tasks together, as a result also feed back together.
The method for processing business of the present embodiment, by indicate transaction processing system perform the second task when,
The task identification of first task is carried simultaneously so that transaction processing system can be by first task and second
Business is synchronous to be performed, so as to improve the data accuracy of business feedback result.
Fig. 3 illustrates the flow chart of the method for processing business of the present embodiment, during the flow can be Fig. 1
Deployment transaction processing system on the server 12 is performed, as shown in figure 3, the method can include:
In step 301, being performed for instruction for the second task system transmission is received corresponding with target service
The second task Business Processing request, Business Processing request carries corresponding with target service first
The task identification of task.
In step 302, the described first of first task system transmission is obtained according to the task identification
Business, and the first task and the second tasks synchronization are performed.
The method for processing business of the present embodiment, transaction processing system can be asked according to carrying in Business Processing
In task identification, the corresponding first task of mark and the second task are associated, and by the two
Business is synchronous to be performed, so as to improve the data accuracy of business feedback result.
The following method for processing business that the application is described with an example:The example is a real charging
Example, the first operation system can be " collecting charge system ", be responsible for calculating the service charge of transaction, and refer to
Show the clearance (i.e. first task) of transaction processing system executive proceeding expense;Second task system can " be received
Single payment system ", is responsible for the payment of the record and transaction funds of Transaction Information, and payment here can be
Third party is paid, not to final beneficiary such as certain businessman of account transaction, and Business Processing is indicated
System performs the clearance (i.e. the second task) of transaction funds;And transaction processing system can be " clearance system
System ", is responsible for respectively according to the instruction of first task system and the second task system, performs transaction funds
The clearance of clearance and service charge.Fig. 4 illustrates the interaction between these systems:
In step 401, it is assumed that receive the information that single payment system has obtained this transaction.Purchased with certain
As a example by thing transaction, the payment of this step complete can be, buyer by dealing money go to certain the
Tripartite's account, but fund is not also drawn the account to transaction merchant by third party's account.In this case,
Receiving single payment system can send accounting request to charge system is collected, and request collects charge system and calculates this friendship
Easy service charge.
In step 402, collect charge system and service charge is calculated to this transaction, and obtain this service charge
The charge document number for calculating.In this step, charge document number can be that first task i.e. service charge is clear
The task identification of calculation task.
In step 403, collect charge system and indicate first task to system for settling account, that is, indicate system for settling account
The service charge that this is concluded the business is cleared, and carries the task identification in step 402 and charged document number.
It should be noted that the present embodiment is not intended to limit the execution sequence of each step, such as, step 403
Can perform after step 404, etc..
In step 404, collect charge system and return to charge document number to single payment system is received.
In step 405, receiving single payment system can indicate the second task to system for settling account, carry charge
Document number.Such as, single payment system is received when the second task is indicated, and can send to borrow to system for settling account
Note receipt, indicates system for settling account to be traded the clearance of fund, and this transaction funds is gone to the account of businessman
Number.The charge document number obtained in also carrying step 404 when the second task is indicated simultaneously.
Wherein, the present embodiment is not intended to limit the order that system for settling account receives first task or the second task,
Such as, can be that first task is received prior to the second task, or, the second task is prior to first task.
When first task is received prior to the second task, system for settling account will not go to perform first task at once, and
It is when indicating to reach when carrying second task of task identification of the first task, just by the two
Business is performed together;When the second task is received prior to first task, according to the task identification carried in request,
System for settling account can also wait until that the corresponding first task of the task identification indicates to reach and just perform the two tasks.
In a step 406, system for settling account obtain that first task system sends according to the task identification the
One task.Such as, system for settling account can be searched in the first task for receiving is indicated according to task identification,
Which first task carries the task identification, by task identification identical first task and step 405
The the second task association for indicating.
In step 407, system for settling account performs first task and the second tasks synchronization, referring to Fig. 4's
Example, in this example concluded the business, synchronous execution can be by the clearance and service charge of transaction funds
Clearance, netting is carried out in same clearance play, to ensure transaction funds clearance and service charge clearance same
Accounting day is completed.
In a step 408, system for settling account can connect to the first task and the corresponding result of the second task
Receiving end sends business result and notifies, the business result notify to carry the result of the first task and
The result of the second task.Such as, businessman can receive that " you have received the payment 990 of * * orders
Unit, wherein, deduct this transaction procedure and taken 10 yuan " similar information, such businessman will be clearer.
The method for processing business of the present embodiment, transaction processing system can be asked according to carrying in Business Processing
In task identification, the corresponding first task of mark and the second task are associated, and by the two
Business is synchronous to be performed, so that the data accuracy of business feedback result is improved, in external trade company or cooperative institution
In service, more accurately data can be provided, have more preferable trade company's experience.For an integral platform
For, even if there is the difference of process time between each system server of inside, it is also possible to ensure phase
The service synchronization of association is performed.
In order to perform above-mentioned method for processing business, present invention also provides a kind of business processing device, ginseng
As shown in Figure 5, the device can apply to the second task system so that the second task system can be performed
Method for processing business shown in Fig. 2.As shown in figure 5, the device can include:Identifier acquisition module 51
With request sending module 52.
Identifier acquisition module 51, for the first task system for being responsible for first task, obtaining and mesh
The task identification of the corresponding first task of mark business;
Request sending module 52, for being sent for indicating to perform and target service pair to transaction processing system
The Business Processing request of the second task answered, appointing for the first task is carried in the Business Processing request
Business mark, to cause the transaction processing system according to the task identification by first task and the second task
It is synchronous to perform.
In order to perform above-mentioned method for processing business, present invention also provides a kind of business processing device, ginseng
As shown in Figure 6, the device can apply to transaction processing system so that transaction processing system can be performed
Method for processing business shown in Fig. 3.As shown in fig. 6, the device can include:Request receiving module 61
With task execution module 62.
Request receiving module 61, for receiving being performed and target industry for instruction for the second task system transmission
The Business Processing request of corresponding second task of being engaged in, the Business Processing request carries corresponding with target service
First task task identification;
Task execution module 62, described in obtaining the transmission of first task system according to the task identification
First task, and the first task and the second tasks synchronization are performed.
Further, task execution module 62, in the first task by receiving, searching to have institute
State the first task of the task identification carried in Business Processing request;By the first task and the business
The corresponding second task association for the treatment of request, to cause that the first task and the second tasks synchronization are performed.
For example, first task is received prior to the second task, or, the second task is received prior to first task.
Further, referring to Fig. 7, the device can also include:As a result notification module 63, for institute
State first task and the corresponding result receiving terminal of the second task sends business result and notifies, the business result
Notify to carry the result of the first task and the result of the second task.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, it is all at this
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.