CN107369088A - The treating method and apparatus of account transaction - Google Patents

The treating method and apparatus of account transaction Download PDF

Info

Publication number
CN107369088A
CN107369088A CN201710591790.9A CN201710591790A CN107369088A CN 107369088 A CN107369088 A CN 107369088A CN 201710591790 A CN201710591790 A CN 201710591790A CN 107369088 A CN107369088 A CN 107369088A
Authority
CN
China
Prior art keywords
account
account transaction
transaction
group
transaction group
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.)
Granted
Application number
CN201710591790.9A
Other languages
Chinese (zh)
Other versions
CN107369088B (en
Inventor
陈志鹏
刘帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201710591790.9A priority Critical patent/CN107369088B/en
Publication of CN107369088A publication Critical patent/CN107369088A/en
Application granted granted Critical
Publication of CN107369088B publication Critical patent/CN107369088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

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)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

This application provides a kind for the treatment of method and apparatus of account transaction, this method includes:Pending multiple account transaction groups are obtained, account transaction group includes:First kind account transaction group and the second class account transaction group, first kind account transaction group include multiple account transaction with incidence relation, and the second class account transaction group includes:At least one account without incidence relation is merchandised between each other;Multiple accounts transaction component is fitted in predetermined number business processing table, the predetermined number is more than one;Predetermined number Account Disposal process is called, performs respectively and the account transaction in the account transaction group in predetermined number business processing table is handled.The scheme of the application can realize the multiple account transaction of parallel processing, and reduction handles time-consuming needed for large batch of account transaction, the efficiency of raising processing account transaction.

Description

The treating method and apparatus of account transaction
Technical field
The application is related to data processing technical field, more particularly to a kind for the treatment of method and apparatus of account transaction.
Background technology
In banking system, often the transaction of large batch of account is handled in the specific date, e.g., daily in processing The account transaction such as orientation transferred account service caused by one working day.However, typically handled successively using serial mode at present each Account is merchandised so that is handled the time-consuming longer of large batch of account transaction, is caused the less efficient of Account Disposal.
The content of the invention
In view of this, this application provides a kind for the treatment of method and apparatus of account transaction, to realize that parallel processing is multiple Account is merchandised, and reduction handles time-consuming needed for large batch of account transaction, the treatment effeciency of raising account transaction.
To achieve the above object, on the one hand, this application provides a kind of processing method of account transaction, including:
Pending multiple account transaction groups are obtained, the account transaction group includes:First kind account transaction group and second Class account transaction group, the first kind account transaction group include multiple account transaction with incidence relation, the second class account Business transaction group includes:At least one account without incidence relation is merchandised between each other;
The multiple account transaction component is fitted in predetermined number business processing table, the predetermined number is more than one;
The predetermined number Account Disposal process is called, is performed respectively in the predetermined number business processing table Account transaction in the account transaction group is handled.
Optionally, it is described that the multiple account transaction component is fitted in predetermined number business processing table, including:
Quantity and default allocation rule according to the account transaction in account transaction group, successively by the multiple account Transaction component is fitted in predetermined number business processing table, and the default allocation rule includes:The account transaction group is divided It is fitted in the minimum business processing table of the current total quantity comprising account transaction.
Optionally, the quantity of the account transaction according in account transaction group and default allocation rule, successively will The multiple account transaction component is fitted in predetermined number business processing table, including:
According to the quantity that the account included in account transaction group is merchandised from more to few sequence, by current unassigned account In transaction group of being engaged in, the most forward account transaction group of sequence is defined as current account transaction group to be allocated;
Determine in the predetermined number business processing table, at the minimum business of the total quantity that the account currently included is merchandised Manage table, and the business processing table that current account transaction component dispensing to be allocated is currently determined.
Optionally, it is described to call the predetermined number Account Disposal process, perform respectively to the predetermined number industry Account transaction in the account transaction group in business processing table is handled, including:
The predetermined number Account Disposal process is called, and the default treating capacity business processing table is respectively allocated to The predetermined number Account Disposal is handled;
For each Account Disposal process, from the business processing table handled needed for the Account Disposal process, really Make currently pending target account transaction group;
When the target account transaction group belongs to first kind account transaction group, according to more in the target account transaction group Incidence relation between individual account transaction, multiple accounts transaction in the target account transaction group is handled successively;
When the target account transaction group belongs to the second class account transaction group, then the target account transaction is handled successively Multiple accounts transaction in group.
Optionally, it is preferential to be respectively arranged with different processing for multiple accounts transaction in the first kind account transaction group Level, wherein, the processing priority that the multiple account transaction each has is according to the association between the transaction of the multiple account What relation determined;
It is described when the target account transaction group belongs to first kind account transaction group, according to the target account transaction group Incidence relation between interior multiple account transaction, multiple accounts transaction in the target account transaction group is handled successively, including:
When the target account transaction group belongs to first kind account transaction group, according to more in the target account transaction group The order of the respective processing priority of individual account transaction from high in the end, handles multiple accounts in the target account transaction group successively Business transaction.
Optionally, when the target account transaction group belongs to first kind account transaction group, handed over according to the target account Incidence relation in easy group between multiple account transaction, multiple accounts transaction in the target account transaction group is handled successively, Including:
When the target account transaction group belongs to first kind account transaction group, according to more in the target account transaction group Incidence relation between individual account transaction, currently pending target account transaction is determined from the target account transaction group;
Detect whether the target account transaction is provided with pretreatment mark, the pretreatment mark is used to characterize the mesh Mark the pretreatment operation carried out needed for account transaction;
When target account transaction has pretreatment mark, from preset program library, call and the pretreatment The preprocessor to match is identified to pre-process target account transaction;
When target account transaction is not provided with pretreatment mark or has completed to target account transaction Pretreatment, then judge whether to need to perform the processing to target account transaction;
When the processing to target account transaction need not be performed, then it is described according to target account friendship to return to execution Incidence relation in easy group between multiple account transaction, currently pending target account is determined from the target account transaction group The operation of business transaction;
When needing to perform the processing to target account transaction, the processing to target account transaction is performed;
When completing the processing to target account transaction, detect whether the target account transaction has return processing Mark, and when the target account is merchandised and return processing mark be present, from described program storehouse, call and return processing Processing routine is returned to corresponding to mark, and the result merchandised using the return processing routine to the target account is returned To the Account Disposal process.
On the other hand, present invention also provides a kind of processing unit of account transaction, including:
Transaction acquiring unit, for obtaining pending multiple account transaction groups, the account transaction group includes:The first kind Account transaction group and the second class account transaction group, the first kind account transaction group include multiple accounts with incidence relation and handed over Easily, the second class account transaction group includes:At least one account without incidence relation is merchandised between each other;
Transaction allocation unit, for the multiple account transaction component to be fitted in predetermined number business processing table, institute Predetermined number is stated more than one;
It is parallel to initiate unit, for calling the predetermined number Account Disposal process, perform respectively to the present count Account transaction in the account transaction group in amount business processing table is handled.
Optionally, the transaction allocation unit, specifically, for the quantity according to the account transaction in account transaction group with And default allocation rule, the multiple account transaction component is fitted in predetermined number business processing table successively, it is described pre- If allocation rule include:The account transaction group is assigned to the minimum business processing of the current total quantity comprising account transaction In table.
Optionally, the parallel initiation unit, including:
Process call unit, for calling the predetermined number Account Disposal process, and by the default treating capacity industry Business processing table is respectively allocated to the predetermined number Account Disposal and handled;
Transaction group determining unit, for for each Account Disposal process, from needed for the Account Disposal process In the business processing table of reason, currently pending target account transaction group is determined;
First transaction handling unit, for when the target account transaction group belongs to first kind account transaction group, foundation Incidence relation in the target account transaction group between multiple account transaction, is handled in the target account transaction group successively Multiple account transaction;
Second transaction handling unit, for when the target account transaction group belongs to the second class account transaction group, then according to Multiple accounts transaction in the secondary processing target account transaction group.
Optionally, multiple accounts transaction point in the first kind account transaction group that the transaction acquiring unit is got Different processing priorities is not provided with, wherein, the processing priority that the multiple account transaction each has is according to described in What the incidence relation between multiple account transaction determined;
First transaction handling unit, specifically for belonging to first kind account transaction group when the target account transaction group When, according to the order of the respective processing priority of multiple account transaction from high in the end in the target account transaction group, locate successively Manage multiple accounts transaction in the target account transaction group.
Understood via above-mentioned technical scheme, in the embodiment of the present application, will be multiple with incidence relation between each other Account transaction forms a first kind account transaction group, and the account transaction without incidence relation is then in difference between each other First kind account transaction group or the second class account transaction group in, so, in units of account transaction group, perform parallel to more During account transaction in individual account transaction group is handled, the account transaction in same account transaction group can only Serial process, and multiple accounts transaction in different account transaction groups then can be with parallel processing, so as to both realize multiple accounts The parallel processing of business transaction, it can avoid causing account due to the parallel processing of multiple accounts transaction with incidence relation again The situation of processing failure, improve the efficiency of processing account transaction.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of application, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 shows a kind of schematic flow sheet of processing method one embodiment of account transaction of the application;
Fig. 2 shows a kind of schematic flow sheet of another embodiment of the processing method of account transaction of the application;
Fig. 3 shows a kind of composition structural representation of processing unit one embodiment of account transaction of the application.
Embodiment
The scheme of the embodiment of the present application can apply to banking system for accounts such as the transferred account services between different accounts The processing of transaction, it is of course also possible to be needed applied to other in the scene that is handled of large batch of account transaction.
The scheme of the embodiment of the present application is introduced below in conjunction with the accompanying drawings.
Such as, referring to Fig. 1, it illustrates a kind of flow signal of processing method one embodiment of account transaction of the application Figure, the method for the present embodiment can be with server, such as the server in banking system or other financial platforms.
The method of the present embodiment can include:
S101, obtain pending multiple account transaction groups.
The account transaction group includes:First kind account transaction group and the second class account transaction group.
Wherein, first kind account transaction group includes multiple account transaction with incidence relation.Wherein, there is incidence relation The transaction of multiple accounts refer to that the processing sequence of account transaction has a precedence relationship, or the processing procedure of account transaction has and relied on Relation.Such as, account transaction 2 is needed after the processing of account transaction 1 is completed, and can just be handled account transaction 2, that is, be handled suitable Sequence is relevant;And for example, the processing of account transaction 3 need to rely on the result of account transaction 1 and account transaction 2, therefore, There is dependence between account transaction 3 and account transaction 1 and account transaction 2.
The second class account transaction group includes:At least one account without incidence relation is merchandised between each other.Such as, such as The no any relation of processing of the processing and the transaction of other accounts of one account transaction of fruit, then account transaction may be considered one It is individual not merchandised with independent account of other accounts transaction with incidence relation., can will be each for this kind of independent account transaction Individual independent account transaction is used as a second class account transaction group;It can also be specified quantity (e.g., 10) independent account Transaction forms a second class account transaction group;It is, of course, also possible to be the account that kept accounts according to corresponding to independent account exchange, will Independent account transaction with the identical account that keeps accounts forms a second class account transaction group, in order to be saved in subsequent processes Resource-saving consumes.
Can be that each account transaction group distributes unique group it is understood that in order to distinguish each account transaction group Number.
Particularly, can also be according to different accounts in the first kind account transaction group for first kind account transaction group Incidence relation between business transaction, determine the sequencing that each account transaction is processed in the first kind account transaction group.For The sequencing that each account transaction is processed in the first kind account transaction group is more intuitively embodied, can also be foundation Different processing priorities is respectively arranged with for multiple accounts transaction in first kind account transaction group, wherein, processing priority The processing priority of account transaction is characterized, the processing priority of account transaction is higher, and the processing sequence of account transaction is got over It is forward.
Such as, in one implementation, can be each account transaction allocation sequence number in first kind account transaction group, sequence number The processing priority of smaller sign account transaction is higher, then the account trade fair is preferentially processed.
S102, the plurality of account transaction component is fitted in predetermined number business processing table.
Wherein, the predetermined number is more than one.The predetermined number can be set as needed, specifically can be according to server energy The maximum quantity of the account transaction of enough parallel processings is set.Such as, the server of banking system at most can only parallel processing 20 Individual account transaction, then the predetermined number can be the arbitrary integer between 2 to 20.
Wherein, each business processing table represents the account transaction group of processing needed for a branch in parallel process Set.The purpose that the plurality of account transaction component is fitted in the predetermined number business processing table is to can subsequently pass through Multiple task parallelisms are handled the account transaction in the transaction group included in the plurality of business processing table.
It is understood that because one process of synchronization is responsible for handling the account transaction in a business processing table, If the quantitative difference of the account transaction included in different business processing tables is larger, it is possible to a part of process be present Account through completing its corresponding business processing table is merchandised, and is still suffered from business processing table corresponding to another part process more Account merchandise untreated situation, so as to cause Partial Process to leave unused, and Partial Process is more busy, and then causes to handle account The total time-consuming for being engaged in merchandising is longer.
In order to further improve the efficiency of Account Disposal, the plurality of account transaction component is being fitted on the predetermined number During business processing table, in addition to ensureing that an account transaction group can only be assigned to a business processing table, also need Ensure that the quantity that the account included in different business processing table is merchandised is as identical as possible.Therefore, optionally, can be according to account The quantity and default allocation rule of account transaction in transaction group, are fitted on present count by the plurality of account transaction component successively In amount business processing table, the default allocation rule includes:The account transaction group is assigned to currently merchandises comprising account The minimum business processing table of total quantity in.
Such as, in one implementation, the quantity that first can be merchandised according to the account included in account transaction group is from more to Few sequence, by current unassigned account transaction group, the most forward account transaction group of sequence is defined as current to be allocated Account transaction group;Then, it is determined that in the predetermined number business processing table, the total quantity of the account transaction currently included is minimum Business processing table, and the business processing table that current account transaction component dispensing to be allocated is currently determined.
It is intended merely to facilitate above and understands the allocation rule, and be introduced by taking a kind of implementation as an example, in reality In, sequence that can also be according to the quantity that the account that is included in account transaction group is merchandised from less to more will not divided currently In the account transaction group matched somebody with somebody, the most forward account transaction group of sequence is defined as current account transaction group to be allocated, and will be current In the total quantity minimum traffic processing table for the account transaction that account transaction component dispensing to be allocated currently includes.
It is of course also possible to be not ranked up to account transaction group, and successively using each account transaction group as needing to distribute Account transaction group, and the total quantity that the account that current account transaction component dispensing to be allocated is currently included is merchandised is most In few business processing table.
S103, the predetermined number Account Disposal process is called, performed respectively in the predetermined number business processing table Account transaction group in account transaction handled.
In the embodiment of the present application, for the ease of description, will be referred to as the process for carrying out account trading processing at account Reason process.Wherein, an Account Disposal process is responsible for a business processing table, and Account Disposal process is by the business responsible to its The each account transaction group managed in table is unit, and the account handled successively in each account transaction group in the business processing table is handed over Easily.
Because the application is in units of account transaction group, each account transaction component is fitted on different business processing tables In, so, each business processing process synchronization can only handle the account transaction in an account transaction group, but not Same business processing process can be merchandised with the account in parallel processing difference account transaction group, so as in the multiple accounts of parallel processing While transaction group, it ensure that the transaction of multiple accounts in same account transaction group is performed successively.
It is understood that if there is incidence relation between the transaction of multiple accounts, so, it is impossible to by the plurality of account Business transaction carries out parallel processing, otherwise may result in the failure of account business processing, this is also in the prior art, to large batch of account Business business uses serial mode, the reason for handling each account business successively.And in the embodiment of the present application, will have between each other Relevant multiple accounts transaction forms a first kind account transaction group, and does not have the account of incidence relation between each other Business transaction is then in different first kind account transaction groups or the second class account transaction group, so, using account transaction group as Unit, during parallel execution is handled the account transaction in multiple account transaction groups, merchandised in same account Account transaction in group can only serial process, and multiple accounts transaction in the different account transaction groups can then be located parallel Reason, so as to both realize the parallel processing of multiple account transaction, it can avoid again due to multiple accounts transaction with incidence relation Parallel processing and cause Account Disposal failure situation, improve processing account transaction efficiency.
It is understood that when using account process processing account transaction group, if account transaction group is first kind account Business transaction group, then according to the incidence relation between multiple accounts transaction in the account transaction group, account transaction is handled successively Multiple accounts transaction in group.Wherein, the incidence relation between multiple accounts transaction in first kind account transaction group can be anti- Mirror during being processed between the plurality of account with Ali's relation, the plurality of account transaction can be obtained based on incidence relation Processed sequencing, and the transaction of each account in the account transaction group is handled successively.
Optionally, multiple accounts transaction in first kind account transaction group is respectively arranged with different processing priorities In the case of, can be according to this if the currently processed account transaction group of the Account Disposal process is first kind account transaction group The order of the respective processing priority of multiple accounts transaction from high to low in target account transaction group, handles an account transaction successively Multiple accounts transaction in group.Specifically, the high account of processing priority is merchandised by priority treatment.Such as, processing is used as using sequence number Exemplified by priority, the transaction of multiple accounts in the account transaction group has different sequence numbers, according to the sequence number that account is merchandised from small To big order, each account transaction in the account transaction group is handled successively.
When the account transaction group that Account Disposal process is currently needed for processing is the second class account transaction group, due to the second class May an only account transaction, or there are multiple accounts for not having incidence relation between each other to hand in account transaction group Easily, therefore, there is no dependence between the account transaction that the second class account transaction group is included, in the account transaction group The transaction of any one account, the processing knots of other accounts in the account transaction group is needed not rely on to the account trading processing Fruit, therefore, it need to only be sequentially completed the processing merchandised to each account in the account transaction group.
It is understood that in the embodiment of the present application, in first kind account transaction group, due to each in account transaction group There is incidence relation between individual account transaction, and incidence relation can be embodied in many aspects, e.g., handling the transaction of some account can The result with the transaction of other accounts can be relied on, is changed when having related other accounts transaction with account transaction When, it is necessary to handle the account transaction before, to the account transaction carry out some pretreatment;And for example, account transaction 2 needs to rely on The result of account transaction 1, therefore, it is necessary to which the result that account is merchandised returns to account after account merchandises 1 completion processing Business treatment progress, so that Account Disposal process is according to the result of account transaction 1, account transaction 2 is handled.Certainly, Account transaction is also included when going to the processing to account transaction, if skips account transaction and performs next account Processing of transaction etc..Therefore, in the first kind account transaction group got, each account transaction can also be represented respectively Whether there is pretreatment mark, return to execution mark and skip mark etc..
Wherein, pretreatment mark represents to need the type that account transaction is pre-processed and pre-processed.Return is held The result that line identifier represents to need to merchandise the account returns, and echo plex mode etc..Skipping mark expression can skip The account is merchandised, and performs the account transaction to be processed of next need in the account transaction group.
In order to make it easy to understand, being introduced below with one embodiment, e.g., referring to Fig. 2, it illustrates a kind of account of the application The schematic flow sheet for another embodiment of the processing method of transaction of being engaged in, the method for the present embodiment can include:
S201, obtain pending multiple account transaction groups.
The account transaction group includes:First kind account transaction group and the second class account transaction group.
Wherein, first kind account transaction group includes multiple account transaction with incidence relation, and the first kind account is handed over Multiple accounts transaction in easy group is respectively arranged with different processing priorities, processing priority characterize account transaction this first Processing priority in class account transaction group.
The second class account transaction group includes:At least one account without incidence relation is merchandised between each other.
Specifically, step S201 may refer to the related introduction of preceding embodiment, will not be repeated here.
S202, the quantity merchandised according to the account included in account transaction group will not divided currently from more to few sequence In the account transaction group matched somebody with somebody, the most forward account transaction group of sequence is defined as current account transaction group to be allocated.
S203, determine in predetermined number business processing table, the minimum business of the total quantity that the account currently included is merchandised Handle table, and the business processing table that current account transaction component dispensing to be allocated is currently determined.
Wherein, predetermined number is the integer more than one.
It is understood that step S202 and S203 are so that multiple accounts transaction component is fitted on into predetermined number business It is introduced exemplified by a kind of mode of transaction group, is applied equally to the present embodiment for other methods of salary distribution, is not subject to herein Limitation.
S204, predetermined number Account Disposal process is called, and this is preset into treating capacity business processing table and is respectively allocated to The predetermined number Account Disposal is handled.
S205, for each Account Disposal process, from the business processing table for distributing to the Account Disposal process, determine Currently pending target account transaction group.
Wherein, it is currently pending in the business processing table that will be handled needed for the Account Disposal process for the ease of distinguishing Account transaction group is referred to as target account transaction group.
S206, when the target account transaction group belongs to first kind account transaction group, according in the target account transaction group The order of the respective processing priority of multiple accounts transaction from high in the end, is determined currently pending from target account transaction group Target account is merchandised.
Wherein, for the ease of distinguishing, currently pending account transaction is referred to as the transaction of target account.
It is understood that determine currently to treat according to processing priority between multiple account transaction in target account transaction group The target account transaction of processing, only according to the incidence relation between the transaction of the plurality of account, determine that the target account is merchandised A kind of mode, be applied equally to the embodiment of the present application for other implementations.
S207, detects whether target account transaction is provided with pretreatment mark, if it is, performing step S208;Such as Fruit is no, then performs step S209.
Wherein, pretreatment mark is used to characterize the pretreatment operation carried out needed for the target account transaction;
S208, when target account transaction has pretreatment mark, from preset program library, call and the pretreatment The preprocessor to match is identified to pre-process target account transaction.
Wherein, be prefixed in program library perform different operating needed for program, so, when need complete associative operation needed for Program when, then identical program can be called directly from the program library, so as to realize the multiple multiplexing of program, nothing Different operation processing individually exploitation program need to be directed to, reduces the complexity of exploitation.Such as, by being prefixed not in the program library With the preprocessor needed for pretreatment operation, the pretreatment corresponding with pretreatment mark can be called from the program library Program.Subsequently, the process for handling mark calling return processing routine according to returning is similar.
S209, when target account transaction is not provided with pretreatment mark or has completed to target account transaction Pretreatment, then judge whether to need to perform the processing to target account transaction, step S210 is performed if it is, returning;Such as Fruit is no, then returns and perform step S206.
When the processing to target account transaction need not be performed, then return to step S206, so as to from the target account Next pending target account transaction is determined in transaction group, until all accounts transaction in the target account transaction group is equal Completion is handled.
S210, when needing to perform the processing to target account transaction, perform the processing to target account transaction.
S211, when completing the processing to the transaction of target account, detect whether target account transaction has return processing Mark, if it is, performing step S212;Step S206 is performed if it is not, then returning.
S212, when the target account is merchandised and return processing mark be present, from preset program library, call and the return Processing routine is returned corresponding to processing mark, and is returned to the result that target account is merchandised using the return processing routine The Account Disposal process.
After the result that the target account is merchandised is returned into Account Disposal process, it can equally trigger return and perform step Rapid S206, to determine next pending target account transaction from the target account transaction group, until the target account All accounts transaction in transaction group has been processed.
It is understood that step S206 to S212 is only to currently pending one first with Account Disposal process Illustrated in class account transaction group exemplified by the processing procedure of each account transaction.But it is understood that in Account Disposal After process completion is to the processing of all account transaction in currently pending first kind account transaction group, still return receipt row Step S205, to redefine a pending target account transaction group from the business processing table, and according to the target account Business transaction group is first kind account transaction group, or the second class account transaction group, and selects triggering to perform step S206 or step Rapid S213, untill all account transaction groups have been processed in the business processing table.
S213, when the target account transaction group belongs to the second class account transaction group, then target account friendship is handled successively Multiple accounts transaction in easy group.
Accordingly, after the transaction of multiple accounts in the second class account transaction group has been handled, it can still trigger return and hold Row step S205, to redefine a pending target account transaction group from the business processing table.
A kind of processing unit of account transaction provided in an embodiment of the present invention is introduced below.
Such as Fig. 3, the composition structural representation of the processing unit one embodiment merchandised it illustrates a kind of account of the application, The device of the present embodiment can include:
Transaction acquiring unit 301, for obtaining pending multiple account transaction groups, the account transaction group includes:The A kind of account transaction group and the second class account transaction group, the first kind account transaction group include multiple accounts with incidence relation Business transaction, the second class account transaction group include:At least one account without incidence relation is merchandised between each other;
Transaction allocation unit 302, for the multiple account transaction component to be fitted in predetermined number business processing table, The predetermined number is more than one;
It is parallel to initiate unit 303, for calling the predetermined number Account Disposal process, perform respectively to described default Account transaction in the account transaction group in quantity business processing table is handled.
In one implementation, the transaction allocation unit, specifically, for being handed over according to the account in account transaction group Easy quantity and default allocation rule, the multiple account transaction component is fitted on predetermined number business processing table successively In, the default allocation rule includes:It is minimum that the account transaction group is assigned to the current total quantity comprising account transaction Business processing table in.
Optionally, the transaction allocation unit includes:
To be allocated group of determining unit, for according to the quantity that the account that is included in account transaction group is merchandised from more to few row Sequence, by current unassigned account transaction group, the most forward account transaction group of sequence is defined as current account to be allocated Transaction group;
Transaction allocation subelement, for determining in the predetermined number business processing table, the account currently included is merchandised The minimum business processing table of total quantity, and the business processing that current account transaction component dispensing to be allocated is currently determined Table.
In one implementation, the parallel unit of initiating can include:
Process call unit, for calling the predetermined number Account Disposal process, and by the default treating capacity industry Business processing table is respectively allocated to the predetermined number Account Disposal and handled;
Transaction group determining unit, for for each Account Disposal process, from needed for the Account Disposal process In the business processing table of reason, currently pending target account transaction group is determined;
First transaction handling unit, for when the target account transaction group belongs to first kind account transaction group, foundation Incidence relation in the target account transaction group between multiple account transaction, is handled in the target account transaction group successively Multiple account transaction;
Second transaction handling unit, for when the target account transaction group belongs to the second class account transaction group, then according to Multiple accounts transaction in the secondary processing target account transaction group.
Optionally, multiple accounts transaction point in the first kind account transaction group that the transaction acquiring unit is got Different processing priorities is not provided with, wherein, the processing priority that the multiple account transaction each has is according to described in What the incidence relation between multiple account transaction determined;
First transaction handling unit, specifically for belonging to first kind account transaction group when the target account transaction group When, according to the order of the respective processing priority of multiple account transaction from high in the end in the target account transaction group, locate successively Manage multiple accounts transaction in the target account transaction group.
Further, the first transaction handling unit, including:
Pending transaction determining unit, for when the target account transaction group belongs to first kind account transaction group, according to According to the incidence relation between multiple account transaction in the target account transaction group, determine to work as from the target account transaction group Preceding pending target account transaction;
Detection unit is pre-processed, for detecting whether the target account transaction is provided with pretreatment mark, the pre- place Reason mark is used to characterize the pretreatment operation carried out needed for the target account transaction;
Pre-process execution unit, for when the target account transaction have pretreatment mark when, from preset program library In, call the preprocessor to match with the pretreatment mark to pre-process target account transaction;
Skip detection unit, for when target account transaction is not provided with pretreatment mark or has completed to institute The pretreatment of target account transaction is stated, then judges whether to need to perform the processing to target account transaction, and work as and need not hold During the processing that row is merchandised to the target account, then return and perform the operation that the pending transaction determines, up to the target account Untill the transaction of all accounts has been handled in transaction group;
Transaction execution unit, for when needing to perform the processing to target account transaction, performing to the target The processing of account transaction;
Processing unit is returned to, for when completing the processing to target account transaction, detecting the target account and handing over Whether easily there is return processing mark, and when the target account is merchandised and return processing mark be present, from described program storehouse, Return processing routine corresponding with the return processing mark is called, and using the return processing routine to the target account The result of transaction returns to the Account Disposal process.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including key element, method, article or equipment being also present.
The foregoing description of the disclosed embodiments, those skilled in the art are enable to realize or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and generic principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited The embodiments shown herein is formed on, and is to fit to consistent with principles disclosed herein and features of novelty most wide Scope.
It the above is only the preferred embodiment of the present invention, it is noted that come for those skilled in the art Say, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (10)

  1. A kind of 1. processing method of account transaction, it is characterised in that including:
    Pending multiple account transaction groups are obtained, the account transaction group includes:First kind account transaction group and the second class account Business transaction group, the first kind account transaction group include multiple accounts transaction with incidence relation, and the second class account is handed over Easy group includes:At least one account without incidence relation is merchandised between each other;
    The multiple account transaction component is fitted in predetermined number business processing table, the predetermined number is more than one;
    The predetermined number Account Disposal process is called, is performed respectively to described in the predetermined number business processing table Account transaction in account transaction group is handled.
  2. 2. according to the method for claim 1, it is characterised in that described that the multiple account transaction component is fitted on present count In amount business processing table, including:
    Quantity and default allocation rule according to the account transaction in account transaction group, successively merchandise the multiple account Component is fitted in predetermined number business processing table, and the default allocation rule includes:The account transaction group is assigned to In the minimum business processing table of the current total quantity comprising account transaction.
  3. 3. according to the method for claim 1, it is characterised in that the quantity of the account transaction according in account transaction group And default allocation rule, the multiple account transaction component is fitted in predetermined number business processing table successively, including:
    According to the quantity that the account included in account transaction group is merchandised from more to few sequence, current unassigned account is handed over Yi Zuzhong, the most forward account transaction group of sequence are defined as current account transaction group to be allocated;
    Determine in the predetermined number business processing table, the minimum business processing of the total quantity that the account currently included is merchandised Table, and the business processing table that current account transaction component dispensing to be allocated is currently determined.
  4. 4. according to the method for claim 1, it is characterised in that it is described to call the predetermined number Account Disposal process, Perform respectively and the account transaction in the account transaction group in the predetermined number business processing table is handled, wrap Include:
    Call the predetermined number Account Disposal process, and the default treating capacity business processing table is respectively allocated to described Predetermined number Account Disposal is handled;
    For each Account Disposal process, from the business processing table handled needed for the Account Disposal process, determine Currently pending target account transaction group;
    When the target account transaction group belongs to first kind account transaction group, according to multiple accounts in the target account transaction group Incidence relation between business transaction, multiple accounts transaction in the target account transaction group is handled successively;
    When the target account transaction group belongs to the second class account transaction group, then handle successively in the target account transaction group Multiple accounts transaction.
  5. 5. according to the method for claim 4, it is characterised in that multiple accounts transaction in the first kind account transaction group Different processing priorities is respectively arranged with, wherein, the processing priority that the multiple account transaction each has is according to institute State what the incidence relation between multiple account transaction determined;
    It is described when the target account transaction group belongs to first kind account transaction group, according to more in the target account transaction group Incidence relation between individual account transaction, multiple accounts transaction in the target account transaction group is handled successively, including:
    When the target account transaction group belongs to first kind account transaction group, according to multiple accounts in the target account transaction group The order of the respective processing priority of business transaction from high in the end, the multiple accounts handled successively in the target account transaction group are handed over Easily.
  6. 6. the method according to claim 4 or 5, it is characterised in that when the target account transaction group belongs to first kind account During transaction group of being engaged in, according to the incidence relation between multiple account transaction in the target account transaction group, the mesh is handled successively Multiple accounts transaction in account transaction group is marked, including:
    When the target account transaction group belongs to first kind account transaction group, according to multiple accounts in the target account transaction group Incidence relation between business transaction, currently pending target account transaction is determined from the target account transaction group;
    Detect whether the target account transaction is provided with pretreatment mark, the pretreatment mark is used to characterize the target account The pretreatment operation carried out needed for business transaction;
    When target account transaction has pretreatment mark, from preset program library, call and identified with the pretreatment The preprocessor to match pre-processes to target account transaction;
    When target account transaction is not provided with pretreatment mark or has completed the pre- place to be merchandised to the target account Reason, then judge whether to need to perform the processing to target account transaction;
    When the processing to target account transaction need not be performed, then it is described according to the target account transaction group to return to execution Incidence relation between interior multiple account transaction, determines that currently pending target account is handed over from the target account transaction group Easy operation;
    When needing to perform the processing to target account transaction, the processing to target account transaction is performed;
    When completing the processing to target account transaction, detect whether the target account transaction has return processing mark Know, and when the target account is merchandised and return processing mark be present, from described program storehouse, call and the return processing mark Processing routine is returned to corresponding to knowing, and the result merchandised using the return processing routine to the target account is returned to The Account Disposal process.
  7. A kind of 7. processing unit of account transaction, it is characterised in that including:
    Transaction acquiring unit, for obtaining pending multiple account transaction groups, the account transaction group includes:First kind account Transaction group and the second class account transaction group, the first kind account transaction group include multiple account transaction with incidence relation, The second class account transaction group includes:At least one account without incidence relation is merchandised between each other;
    Transaction allocation unit, it is described pre- for the multiple account transaction component to be fitted in predetermined number business processing table If quantity is more than one;
    It is parallel to initiate unit, for calling the predetermined number Account Disposal process, perform respectively to the predetermined number Account transaction in the account transaction group in business processing table is handled.
  8. 8. device according to claim 7, it is characterised in that the transaction allocation unit, specifically, for according to account The quantity and default allocation rule of account transaction in transaction group, the multiple account transaction component is fitted on successively default In quantity business processing table, the default allocation rule includes:The account transaction group, which is assigned to, currently includes account In the minimum business processing table of the total quantity of transaction.
  9. 9. device according to claim 7, it is characterised in that the parallel initiation unit, including:
    Process call unit, for calling the predetermined number Account Disposal process, and by the default treating capacity business Reason table is respectively allocated to the predetermined number Account Disposal and handled;
    Transaction group determining unit, for for each Account Disposal process, from what is handled needed for the Account Disposal process In business processing table, currently pending target account transaction group is determined;
    First transaction handling unit, for when the target account transaction group belongs to first kind account transaction group, according to described in Incidence relation in target account transaction group between multiple account transaction, is handled multiple in the target account transaction group successively Account is merchandised;
    Second transaction handling unit, for when the target account transaction group belongs to the second class account transaction group, then locating successively Manage multiple accounts transaction in the target account transaction group.
  10. 10. device according to claim 9, it is characterised in that the first kind that the transaction acquiring unit is got Multiple accounts transaction in account transaction group is respectively arranged with different processing priorities, wherein, the multiple account transaction is each From with processing priority be according to the multiple account merchandise between incidence relation determine;
    First transaction handling unit, specifically for when the target account transaction group belongs to first kind account transaction group, According to the order of the respective processing priority of multiple account transaction from high in the end in the target account transaction group, institute is handled successively State multiple accounts transaction in target account transaction group.
CN201710591790.9A 2017-07-19 2017-07-19 Method and device for processing account transaction Active CN107369088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710591790.9A CN107369088B (en) 2017-07-19 2017-07-19 Method and device for processing account transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710591790.9A CN107369088B (en) 2017-07-19 2017-07-19 Method and device for processing account transaction

Publications (2)

Publication Number Publication Date
CN107369088A true CN107369088A (en) 2017-11-21
CN107369088B CN107369088B (en) 2021-05-07

Family

ID=60308237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710591790.9A Active CN107369088B (en) 2017-07-19 2017-07-19 Method and device for processing account transaction

Country Status (1)

Country Link
CN (1) CN107369088B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108961039A (en) * 2018-07-02 2018-12-07 阿里巴巴集团控股有限公司 Transaction processing method, apparatus and system
CN109543865A (en) * 2018-11-13 2019-03-29 中国银行股份有限公司 Reserve transaction processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182898A (en) * 2014-08-13 2014-12-03 中国银行股份有限公司 Additional recording method of on-line transaction during night mode for bank system
CN104714785A (en) * 2015-03-31 2015-06-17 中芯睿智(北京)微电子科技有限公司 Task scheduling device, task scheduling method and data parallel processing device
CN105975334A (en) * 2016-04-25 2016-09-28 深圳市永兴元科技有限公司 Distributed scheduling method and system of task
CN106155794A (en) * 2016-07-21 2016-11-23 浙江大华技术股份有限公司 A kind of event dispatcher method being applied in multi-threaded system and device
CN106383742A (en) * 2016-09-23 2017-02-08 郑州云海信息技术有限公司 Linux-based IO scheduling method
US20170039239A1 (en) * 2015-08-03 2017-02-09 Sap Se Distributed resource-aware task scheduling with replicated data placement in parallel database clusters
CN106502767A (en) * 2015-09-08 2017-03-15 大唐移动通信设备有限公司 A kind of process management method and its device
CN106569896A (en) * 2016-10-25 2017-04-19 北京国电通网络技术有限公司 Data distribution and parallel processing method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182898A (en) * 2014-08-13 2014-12-03 中国银行股份有限公司 Additional recording method of on-line transaction during night mode for bank system
CN104714785A (en) * 2015-03-31 2015-06-17 中芯睿智(北京)微电子科技有限公司 Task scheduling device, task scheduling method and data parallel processing device
US20170039239A1 (en) * 2015-08-03 2017-02-09 Sap Se Distributed resource-aware task scheduling with replicated data placement in parallel database clusters
CN106502767A (en) * 2015-09-08 2017-03-15 大唐移动通信设备有限公司 A kind of process management method and its device
CN105975334A (en) * 2016-04-25 2016-09-28 深圳市永兴元科技有限公司 Distributed scheduling method and system of task
CN106155794A (en) * 2016-07-21 2016-11-23 浙江大华技术股份有限公司 A kind of event dispatcher method being applied in multi-threaded system and device
CN106383742A (en) * 2016-09-23 2017-02-08 郑州云海信息技术有限公司 Linux-based IO scheduling method
CN106569896A (en) * 2016-10-25 2017-04-19 北京国电通网络技术有限公司 Data distribution and parallel processing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭羽成: "MPI高性能云计算平台关键技术研究", 《中国博士学位论文全文数据库信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108961039A (en) * 2018-07-02 2018-12-07 阿里巴巴集团控股有限公司 Transaction processing method, apparatus and system
CN109543865A (en) * 2018-11-13 2019-03-29 中国银行股份有限公司 Reserve transaction processing method and device

Also Published As

Publication number Publication date
CN107369088B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
US11597600B2 (en) Article picking method, server and system
CN106209682A (en) Business scheduling method, device and system
CN104731647B (en) Task processing method and system
CN109087431B (en) Business scheduling processing method, equipment and storage medium for bank outlets
CN108792387B (en) Shelf hit method, apparatus, server and medium
CN105975334A (en) Distributed scheduling method and system of task
CN111738709B (en) Transaction processing method and device
CN107369088A (en) The treating method and apparatus of account transaction
CN105516086B (en) Method for processing business and device
CN106097092A (en) Data processing method and device for reconciliation
CN106502918A (en) A kind of scheduling memory method and device
CN108681481A (en) The processing method and processing device of service request
CN111985860A (en) Task processing method and device
CN112150048B (en) Transport control method, device, electronic equipment and storage medium
CN107657326A (en) A kind of matching system and matching process of On-line matching user and attendant
CN106354552B (en) Parallel computation method for allocating tasks and device
CN109800078A (en) A kind of task processing method, task distribution terminal and task execution terminal
CN111451155B (en) Sorting task processing method and device, warehouse control system and storage medium
CN104899097A (en) Thread allocation quantity calculating method and apparatus
CN104933110B (en) A kind of data prefetching method based on MapReduce
CN105373498B (en) A kind of data handling system and method
CN115619114A (en) Numbering method, numbering device, electronic equipment and computer readable storage medium
CN106529965A (en) Data processing method, apparatus and system
CN106941532A (en) A kind of data transmission method and device applied to distributed system
CN104243587A (en) Load balancing method and system for message servers

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