CN107016536B - The method and trading server of trading processing - Google Patents

The method and trading server of trading processing Download PDF

Info

Publication number
CN107016536B
CN107016536B CN201710027703.7A CN201710027703A CN107016536B CN 107016536 B CN107016536 B CN 107016536B CN 201710027703 A CN201710027703 A CN 201710027703A CN 107016536 B CN107016536 B CN 107016536B
Authority
CN
China
Prior art keywords
account
money transfer
transfer transactions
batch
total amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710027703.7A
Other languages
Chinese (zh)
Other versions
CN107016536A (en
Inventor
张元良
刘俊杰
高巍
黄劲霄
蔡俊杰
于立新
李�浩
金杰
陈梓培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN201710027703.7A priority Critical patent/CN107016536B/en
Publication of CN107016536A publication Critical patent/CN107016536A/en
Application granted granted Critical
Publication of CN107016536B publication Critical patent/CN107016536B/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present invention relates to the method and trading server of a kind of trading processing, the method for the trading processing includes:After the batch transfer request for an account is received, trading server generates the first flag that the account representative is stopped payment temporarily, so that the account is from there is Account History lock status to become no Account History lock status;Summarize first to be produced total amount of the account with the first flag based on all money transfer transactions in the batch transfer request;It is more than or equal to described first when total amount is produced in the current remaining sum of the account, the account of all money transfer transactions into the batch transfer request produces corresponding transfer amounts, and carry out Transaction Information processing.The present invention can improve the speed that high concurrent transaction performs, and improve the efficiency of transaction work.

Description

The method and trading server of trading processing
Technical field
The present invention relates to financial technology field more particularly to the methods and trading server of a kind of trading processing.
Background technology
At present, often there are a large amount of money transfer transactions and needs to update the data same in library in the core transaction system of bank Account History, for example, for electric business platform " Alibaba's electric business platform ", trade company passes through electric business gondola sales product, consumer The spending amount for buying product is transferred in the specified intermediate account of electric business platform, and intermediate account is specified in preset time by this The spending amount of consumer batch is transferred in the bank account of trade company afterwards.Namely in some accounts (for example, electric business platform Specified intermediate account) high concurrent transaction when, core transaction system needs fight for and wait for the Account History lock of the account to complete Transaction, i.e., all transaction are required to be lined up and be handled one by one so that high concurrent transaction performs slowly, and transaction is likely to occur super When in addition Fail Transaction.
Invention content
The purpose of the present invention is to provide the methods and trading server of a kind of trading processing, it is intended to improve high concurrent transaction The speed of execution improves the efficiency of transaction work.
To achieve the above object, the present invention provides a kind of method of trading processing, and the method for the trading processing includes:
S1, after the batch transfer request for an account is received, trading server generates the account and represents temporarily The first flag stopped payment, so that the account is from there is Account History lock status to become no Account History lock status;
S2 summarizes the account with the first flag based on all money transfer transactions in the batch transfer request First total amount to be produced;
S3 is more than or equal to described first when total amount is produced in the current remaining sum of the account, transfers accounts to the batch The account of all money transfer transactions in request produces corresponding transfer amounts, and carries out Transaction Information processing.
Preferably, the step S1 includes:
The quantity of all money transfer transactions in the batch transfer request is obtained, be less than in the quantity of all money transfer transactions etc. When preset quantity threshold value, queuing processing is carried out one by one according to serial process rule to the batch transfer request, at all turns When the quantity of account transaction is more than preset quantity threshold value, the first flag that the account representative is stopped payment temporarily is generated.
Preferably, it is further included after the step S2:
S4 is less than described first when total amount is produced, to the batch money transfer transactions in the current remaining sum of the account Money transfer transactions in request are arranged according to the sequencing of request, sequentially to remove the money transfer transactions in queue, and are summarized Second total amount to be produced of the money transfer transactions not removed;
S5 is more than or equal to described second when total amount is produced in the current remaining sum of the account, transfers accounts to selected The account of transaction produces corresponding transfer amounts, and carries out Transaction Information processing;
S6, the prompting message that can not be handled to the removed money transfer transactions of scheduled terminal transmission.
Preferably, described the step of being traded information processing, includes:
The account remaining newest remaining sum after corresponding transfer amounts are produced is obtained, and to processed money transfer transactions It is arranged according to the sequencing of transaction;
Processed money transfer transactions are calculated one by one according to the opposite sequence to put in order based on the newest remaining sum, with Generate the Transaction Information of each processed money transfer transactions.
Preferably, it is further included after the step S2:
S7 is less than described first when total amount is produced in the current remaining sum of the account, turns in batches described in refusal respond Account transaction request and/or, sending that the account current balance is not enough to complete the batch money transfer transactions to scheduled terminal please The prompting message asked.
Preferably, it further includes:
When the batch for receiving the account is transferred to transaction request, generation represents the second identifier stopped payment temporarily, so that The account from there is Account History lock status to become no Account History lock status, summarize the account based on the batch be transferred to please What all in asking were transferred to transaction is transferred to total amount, by total amount to be transferred to described in the current balance increase of the account, and carries out Transaction Information processing.
To achieve the above object, the present invention also provides a kind of trading server, the trading server includes:
First generation module, for after the batch transfer request for an account is received, trading server to generate institute The first flag stopped payment temporarily of account representative is stated, so that the account is from there is Account History lock status to become no Account History lock shape State;
First summarizing module, for summarizing the account with the first flag based in the batch transfer request First total amount to be produced of all money transfer transactions;
First transfers accounts module, for being more than or equal to described first when total amount is produced in the current remaining sum of the account, The account of all money transfer transactions into the batch transfer request produces corresponding transfer amounts, and carries out at Transaction Information Reason.
Preferably, first generation module is specifically used for obtaining all money transfer transactions in the batch transfer request Quantity, when the quantity of all money transfer transactions is less than or equal to preset quantity threshold value, to the batch transfer request according to serial place Reason rule carries out queuing processing one by one, when the quantity of all money transfer transactions is more than preset quantity threshold value, generates the account generation The first flag that table is stopped payment temporarily.
Preferably, the trading server further includes:
Remove module, for being less than described first when total amount is produced in the current remaining sum of the account, to described batch Money transfer transactions in amount money transfer transactions request are arranged according to the sequencing of request, sequentially to remove the friendship of transferring accounts in queue Easily, and summarize the second total amount to be produced of the money transfer transactions not removed;
Second transfers accounts module, for being more than or equal to described second when total amount is produced in the current remaining sum of the account, Corresponding transfer amounts are produced, and carry out Transaction Information processing to the account of selected money transfer transactions;
Sending module, for the prompting message that can not be handled to the removed money transfer transactions of scheduled terminal transmission.
Preferably, described first transfer accounts module or second transfer accounts module be specifically used for obtaining the account produce it is corresponding Remaining newest remaining sum after transfer amounts, and processed money transfer transactions are arranged according to the sequencing of transaction;It is based on The newest remaining sum calculates processed money transfer transactions according to the opposite sequence to put in order one by one, each processed to generate Money transfer transactions Transaction Information.
Preferably, it further includes:
Processing module, for being less than described first when total amount is produced in the current remaining sum of the account, refusal respond Batch money transfer transactions request and/or, send the account current balance to scheduled terminal and be not enough to complete the batch The prompting message of money transfer transactions request.
Preferably, it further includes:
Module is transferred to, during for being transferred to transaction request in the batch for receiving the account, generation represents what is stopped payment temporarily Second identifier, so that the account summarizes the account and be based on from there is Account History lock status to become no Account History lock status The batch be transferred in request it is all be transferred to transaction be transferred to total amount, will wait to be transferred to described in the current balance increase of the account Total amount, and carry out Transaction Information processing.
The beneficial effects of the invention are as follows:The present invention firstly generates the account when for a certain account transfer accounts in batches Represent the mark stopped payment temporarily so that the account from there is Account History lock status to become no Account History lock status, then summarizes First total amount to be produced of the money transfer transactions in transferring accounts in batches, waits to produce total gold in the account current remaining sum not less than first It during volume, carries out batch and transfers accounts, the present invention is for the mark stopped payment of account generation transferred accounts in batches temporarily so that the account is from there is account Family record lock status becomes no Account History lock status, summarizes the total amount transferred accounts of batch and transfers accounts again, do not need to be lined up into Row is handled one by one, is improved the speed that high concurrent transaction performs, is improved the efficiency of transaction work.
Description of the drawings
Fig. 1 is the flow diagram of the method first embodiment of trading processing of the present invention;
Fig. 2 is the flow diagram of the method second embodiment of trading processing of the present invention;
Fig. 3 is the flow diagram of the method 3rd embodiment of trading processing of the present invention;
Fig. 4 is the structure diagram of trading server first embodiment of the present invention;
Fig. 5 is the structure diagram of trading server second embodiment of the present invention;
Fig. 6 is the structure diagram of trading server 3rd embodiment of the present invention.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
As shown in FIG. 1, FIG. 1 is the flow diagram of one embodiment of method of trading processing of the present invention, the trading processing Method includes the following steps:
Step S1, after the batch transfer request for an account is received, trading server generates the account and represents The first flag stopped payment temporarily, so that the account is from there is Account History lock status to become no Account History lock status;
In the present embodiment, trading server carries out the batch transfer request transferred accounts of batch receiving for a certain account When, the generation account represents the first flag stopped payment temporarily, and the effect for generating the first flag is so that the account is from there is account Record lock status becomes no Account History lock status, so there is no need to fight for or wait for the Account History of the account to lock, and And the account is after interim stop payment, it is impossible to which the class of drawing for handling any amount of money is merchandised (in addition to particular provisions), and the account exists The interim amount of money newly to keep accounts afterwards of stopping payment also does not allow to draw (that is the account balance of the account is without update), in this batch After the completion of amount is transferred accounts, the account becomes have Account History lock status from no Account History lock status.
Step S2 summarizes the account with the first flag based on all friendships of transferring accounts in the batch transfer request The first easy total amount to be produced;
In the present embodiment, the amount of money of all money transfer transactions in the batch transfer request is summarized, to obtain first Total amount to be produced.Such as the quantity of all money transfer transactions in the batch transfer request is 5, turn of each money transfer transactions It is 2000 yuan to go out the amount of money, then it is 2000*5=10000 members to summarize the first total amount to be produced that 5 money transfer transactions obtain.
Wherein, all money transfer transactions in batch transfer request can be registered in and stop payment in table temporarily by the present embodiment, face When stop payment in table record and have the details of each money transfer transactions, the account information including each money transfer transactions other side turns Go out amount of money etc..In this stops payment table temporarily, the amount of money can be carried out to all money transfer transactions and summarized.
Step S3 is more than or equal to described first when total amount is produced, to the batch in the current remaining sum of the account The account of all money transfer transactions in transfer request produces corresponding transfer amounts, and carries out Transaction Information processing.
In the present embodiment, summarizing the first of all money transfer transactions after total amount is produced, analyzing the current of the account Whether remaining sum is more than or equal to first total amount to be produced, and first waits to produce if the current remaining sum of the account is more than or equal to this Total amount, then trading server the current remaining sum of the account is deducted into first total amount to be produced, to batch transfer request In the accounts of all money transfer transactions produce corresponding transfer amounts, then, carry out the Transaction Information processing of preset kind, example Such as, Transaction Information processing includes generating transaction details, recognizes folding processing, the dynamic account notice of push etc..
Compared with prior art, the present embodiment firstly generates the generation account when for a certain account transfer accounts in batches The mark that table is stopped payment temporarily so that the account from there is Account History lock status to become no Account History lock status, then summarizes and criticizes The first total amount to be produced of the money transfer transactions in transferring accounts is measured, is not less than the first total amount to be produced in the account current remaining sum When, it carries out batch and transfers accounts, the present embodiment is for the mark stopped payment of account generation transferred accounts in batches temporarily so that the account is from there is account Family record lock status becomes no Account History lock status, summarizes the total amount transferred accounts of batch and transfers accounts again, do not need to be lined up into Row is handled one by one, is improved the speed that high concurrent transaction performs, is improved the efficiency of transaction work.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 1, above-mentioned steps S1 includes:Described in acquisition The quantity of all money transfer transactions in batch transfer request is less than or equal to preset quantity threshold value in the quantity of all money transfer transactions When, queuing processing is carried out one by one according to serial process rule to the batch transfer request, it is big in the quantity of all money transfer transactions When preset quantity threshold value, the first flag that the account representative is stopped payment temporarily is generated.
In the present embodiment, after batch transfer request is received, the quantity of all money transfer transactions is determined, if the quantity is small When equal to preset quantity threshold value, for example, money transfer transactions quantity be less than or equal to 5 when, into state is waited in line, i.e., to batch Transfer request carries out queuing processing one by one according to serial process rule, when the quantity of money transfer transactions is more than preset quantity threshold value, It when being greater than being equal to 5, is then asked directly in response to the batch money transfer transactions, the generation account represents the first mark stopped payment temporarily Know.
The present embodiment is defined the quantity of batch money transfer transactions, reaches preset quantity threshold value in the quantity of money transfer transactions When just make an immediate response batch transfer request, overhead can be saved.
In a preferred embodiment, as shown in Fig. 2, on the basis of the embodiment of above-mentioned Fig. 1, above-mentioned steps S2 it After further include:
S4 is less than described first when total amount is produced, to the batch money transfer transactions in the current remaining sum of the account Money transfer transactions in request are arranged according to the sequencing of request, sequentially to remove the money transfer transactions in queue, and are summarized Second total amount to be produced of the money transfer transactions not removed;
S5 is more than or equal to described second when total amount is produced in the current remaining sum of the account, transfers accounts to selected The account of transaction produces corresponding transfer amounts, and carries out Transaction Information processing;
S6, the prompting message that can not be handled to the removed money transfer transactions of scheduled terminal transmission.
In the present embodiment, be less than first when total amount is produced in the current remaining sum of account, then it is suitable according to the priority of request Sequence arranges money transfer transactions, and the money transfer transactions then removed one by one by the sequencing of request in queue (such as will arrange posterior Money transfer transactions remove), the money transfer transactions being removed can be included in batch transfer request next time.
After each money transfer transactions are removed, the amount of money is carried out to the remaining money transfer transactions being not removed and is summarized, to obtain not Second total amount to be produced of the money transfer transactions of removal, and so on, it waits to produce more than or equal to second in the current remaining sum of account During total amount, then the current remaining sum of the account is deducted second total amount to be produced by trading server, to what is be not removed The account of money transfer transactions produces corresponding transfer amounts, then, the Transaction Information processing of preset kind is carried out, for example, transaction letter Breath processing includes generating transaction details, recognizes folding processing, the dynamic account notice of push etc..It is removed to the transmission of scheduled terminal after most The prompting message that money transfer transactions can not be handled.
It in other embodiments, can also be according to the big minispread money transfer transactions of the amount of money, by the amount of money of ordered pair money transfer transactions It is overlapped and summarizes, be more than or equal to second when total amount is produced in the current remaining sum of account, then trading server is by the account Current remaining sum deduct second total amount to be produced.
The present embodiment is less than first when total amount is produced in the current remaining sum of account, can still perform transferring accounts for small lot Transaction improves the flexibility of application.
In a preferred embodiment, it is above-mentioned to be traded at information on the basis of the embodiment of above-mentioned Fig. 1 or Fig. 2 The step of reason, includes:The account remaining newest remaining sum after corresponding transfer amounts are produced is obtained, and processed is turned Account transaction is arranged according to the sequencing of transaction;It is based on the newest remaining sum that processed money transfer transactions are suitable according to arranging The opposite sequence of sequence is calculated one by one, to generate the Transaction Information of each processed money transfer transactions.
In the present embodiment, account remaining newest remaining sum after corresponding transfer amounts are produced is obtained, such as producing the One after total amount is produced remaining newest remaining sum be Y1, produce second after total amount is produced remaining newest remaining sum be Y2.Processed money transfer transactions are arranged according to the sequencing of transaction, such as the trading order of n money transfer transactions is X1, X2, X3 ..., Xn, the newest remaining sum based on the account carries out backward calculation processing to n money transfer transactions:Such as Y is The newest remaining sum of account after the completion of Xn transaction, for the corresponding amount of money that produces of Xn for yn, Y is before Xn transaction is completed plus amount of money yn Account balance, and so on, until the Transaction Information backstepping of all processed money transfer transactions is disposed.
Wherein, account current balance calculation formula:
(xa)kRepresent that account a kth items in table is stopped payment temporarily record it is interim stop payment the amount of money, the range of k is [0, n], k= It represents not stop payment record, a temporarily when 00Represent the registered current balances in account balance token record of account a, a1Represent account Family a is registered to freeze the amount of money in account balance token record, and f (a) represents the current balance of account, if f (a)<0, then it represents that Account balance is insufficient.
In a preferred embodiment, as shown in figure 3, on the basis of the embodiment of above-mentioned Fig. 1, after the step S2 It further includes:
S7 is less than described first when total amount is produced in the current remaining sum of the account, turns in batches described in refusal respond Account transaction request and/or, sending that the account current balance is not enough to complete the batch money transfer transactions to scheduled terminal please The prompting message asked.
It, can be with refusal respond batch if the current remaining sum of account is less than first when total amount is produced in the present embodiment Money transfer transactions ask, i.e., do not perform to corresponding account carry out money transfer transactions and/or, to scheduled terminal send account it is current Sorry, your ticket has not enough value to complete the prompting message of batch money transfer transactions request, and the remaining sum for waiting for account current is waited to produce more than or equal to first During total amount, batch money transfer transactions request is just responded.The present embodiment enables to the institute in every batch money transfer transactions request There is money transfer transactions unification, be carried out at the same time processing.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 1, the method for the trading processing further includes:
When the batch for receiving the account is transferred to transaction request, generation represents the second identifier stopped payment temporarily, so that The account from there is Account History lock status to become no Account History lock status, summarize the account based on the batch be transferred to please What all in asking were transferred to transaction is transferred to total amount, by total amount to be transferred to described in the current balance increase of the account, and carries out Transaction Information processing.
In the present embodiment, it is similar with above-mentioned money transfer transactions to be transferred to transaction.Trading server is being received for a certain account When the batch that family be transferred in batches is transferred to request, the generation account represents the second identifier stopped payment temporarily, which can With identical or different from above-mentioned first flag.
The effect for generating the second identifier is so that the account is from there is Account History lock status to become no Account History lock shape State, so there is no need to fight for or wait for the Account History of the account to lock, and the account is after interim stop payment, it is impossible to handle The class of drawing of any amount of money is merchandised (in addition to particular provisions), and the amount of money that the account newly keeps accounts after stop payment temporarily does not also allow (that is the account balance of the account is without update) is drawn, after the completion of this is transferred in batches, the account is remembered from no account Record lock status becomes have Account History lock status.Then summarize the account is transferred to based on this in request and all is transferred to transaction in batches Be transferred to total amount, by the current balance increase total amount to be transferred to of the account, and carry out Transaction Information processing, for example, transaction Information processing includes generation transaction details, recognizes folding processing, the dynamic account notice of push etc..
As shown in figure 4, Fig. 4 is the structure diagram of one embodiment of trading server of the present invention, which includes:
First generation module 101, for after the batch transfer request for an account is received, trading server to generate The first flag that account representative is stopped payment temporarily, so that the account is from there is Account History lock status to become no Account History lock State;
In the present embodiment, trading server carries out the batch transfer request transferred accounts of batch receiving for a certain account When, the generation account represents the first flag stopped payment temporarily, and the effect for generating the first flag is so that the account is from there is account Record lock status becomes no Account History lock status, so there is no need to fight for or wait for the Account History of the account to lock, and And the account is after interim stop payment, it is impossible to which the class of drawing for handling any amount of money is merchandised (in addition to particular provisions), and the account exists The interim amount of money newly to keep accounts afterwards of stopping payment does not allow branch dental caries (that is the account balance of the account is without update) yet, in this batch After the completion of amount is transferred accounts, the account becomes have Account History lock status from no Account History lock status.
First summarizing module 102 is based on the batch transfer request for summarizing the account with the first flag In all money transfer transactions the first total amount to be produced;
In the present embodiment, the amount of money of all money transfer transactions in the batch transfer request is summarized, to obtain first Total amount to be produced.Such as the quantity of all money transfer transactions in the batch transfer request is 5, turn of each money transfer transactions It is 2000 yuan to go out the amount of money, then it is 2000*5=10000 members to summarize the first total amount to be produced that 5 money transfer transactions obtain.
Wherein, all money transfer transactions in batch transfer request can be registered in and stop payment in table temporarily by the present embodiment, face When stop payment in table record and have the details of each money transfer transactions, the account information including each money transfer transactions other side turns Go out amount of money etc..In this stops payment table temporarily, the amount of money can be carried out to all money transfer transactions and summarized.
First transfers accounts module 103, for being more than or equal to the described first total amount to be produced in the current remaining sum of the account When, the account of all money transfer transactions into the batch transfer request produces corresponding transfer amounts, and carry out Transaction Information Processing.
In the present embodiment, summarizing the first of all money transfer transactions after total amount is produced, analyzing the current of the account Whether remaining sum is more than or equal to first total amount to be produced, and first waits to produce if the current remaining sum of the account is more than or equal to this Total amount, then trading server the current remaining sum of the account is deducted into first total amount to be produced, to batch transfer request In the accounts of all money transfer transactions produce corresponding transfer amounts, then, carry out the Transaction Information processing of preset kind, example Such as, Transaction Information processing includes generating transaction details, recognizes folding processing, the dynamic account notice of push etc..
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 4, above-mentioned first generation module 101 is specific For obtaining the quantity of all money transfer transactions in the batch transfer request, it is less than or equal in the quantity of all money transfer transactions pre- If during amount threshold, queuing processing is carried out one by one according to serial process rule to the batch transfer request, in all friendships of transferring accounts When easy quantity is more than preset quantity threshold value, the first flag that the account representative is stopped payment temporarily is generated.
In the present embodiment, after batch transfer request is received, the quantity of all money transfer transactions is determined, if the quantity is small When equal to preset quantity threshold value, for example, money transfer transactions quantity be less than or equal to 5 when, into state is waited in line, i.e., to batch Transfer request carries out queuing processing one by one according to serial process rule, when the quantity of money transfer transactions is more than preset quantity threshold value, It when being greater than being equal to 5, is then asked directly in response to the batch money transfer transactions, the generation account represents the first mark stopped payment temporarily Know.
The present embodiment is defined the quantity of batch money transfer transactions, reaches preset quantity threshold value in the quantity of money transfer transactions When just make an immediate response batch transfer request, overhead can be saved.
In a preferred embodiment, as shown in figure 5, on the basis of the embodiment of above-mentioned Fig. 4, above-mentioned trading server It further includes:
Remove module 104, for being less than described first when total amount is produced in the current remaining sum of the account, to described Money transfer transactions in the request of batch money transfer transactions are arranged according to the sequencing of request, sequentially to remove transferring accounts in queue Transaction, and summarize the second total amount to be produced of the money transfer transactions not removed;
Second transfers accounts module 105, for being more than or equal to the described second total amount to be produced in the current remaining sum of the account When, corresponding transfer amounts are produced, and carry out Transaction Information processing to the account of selected money transfer transactions;
Sending module 106, for the prompting message that can not be handled to the removed money transfer transactions of scheduled terminal transmission.
In the present embodiment, be less than first when total amount is produced in the current remaining sum of account, then it is suitable according to the priority of request Sequence arranges money transfer transactions, and the money transfer transactions then removed one by one by the sequencing of request in queue (such as will arrange posterior Money transfer transactions remove), the money transfer transactions being removed can be included in batch transfer request next time.
After each money transfer transactions are removed, the amount of money is carried out to the remaining money transfer transactions being not removed and is summarized, to obtain not Second total amount to be produced of the money transfer transactions of removal, and so on, it waits to produce more than or equal to second in the current remaining sum of account During total amount, then the current remaining sum of the account is deducted second total amount to be produced by trading server, to what is be not removed The account of money transfer transactions produces corresponding transfer amounts, then, the Transaction Information processing of preset kind is carried out, for example, transaction letter Breath processing includes generating transaction details, recognizes folding processing, the dynamic account notice of push etc..It is removed to the transmission of scheduled terminal after most The prompting message that money transfer transactions can not be handled.
It in other embodiments, can also be according to the big minispread money transfer transactions of the amount of money, by the amount of money of ordered pair money transfer transactions It is overlapped and summarizes, be more than or equal to second when total amount is produced in the current remaining sum of account, then trading server is by the account Current remaining sum deduct second total amount to be produced.
The present embodiment is less than first when total amount is produced in the current remaining sum of account, can still perform transferring accounts for small lot Transaction improves the flexibility of application.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 4, above-mentioned first transfers accounts module or second turn Account module is specifically used for obtaining account remaining newest remaining sum after corresponding transfer amounts are produced, and turn processed Account transaction is arranged according to the sequencing of transaction;It is based on the newest remaining sum that processed money transfer transactions are suitable according to arranging The opposite sequence of sequence is calculated one by one, to generate the Transaction Information of each processed money transfer transactions.
In the present embodiment, account remaining newest remaining sum after corresponding transfer amounts are produced is obtained, such as producing the One after total amount is produced remaining newest remaining sum be Y1, produce second after total amount is produced remaining newest remaining sum be Y2.Processed money transfer transactions are arranged according to the sequencing of transaction, such as the trading order of n money transfer transactions is X1, X2, X3 ..., Xn, the newest remaining sum based on the account carries out backward calculation processing to n money transfer transactions:Such as Y is The newest remaining sum of account after the completion of Xn transaction, for the corresponding amount of money that produces of Xn for yn, Y is before Xn transaction is completed plus amount of money yn Account balance, and so on, until the Transaction Information backstepping of all processed money transfer transactions is disposed.
Wherein, account current balance calculation formula:
(xa)kRepresent that account a kth items in table is stopped payment temporarily record it is interim stop payment the amount of money, the range of k is [0, n], k= It represents not stop payment record, a temporarily when 00Represent the registered current balances in account balance token record of account a, a1Represent account Family a is registered to freeze the amount of money in account balance token record, and f (a) represents the current balance of account, if f (a)<0, then it represents that Account balance is insufficient.
In a preferred embodiment, as shown in fig. 6, on the basis of the embodiment of above-mentioned Fig. 4, the trading server is also Including:
Processing module 107, for being less than described first when total amount is produced in the current remaining sum of the account, refusal is rung Answer the batch money transfer transactions ask and/or, send the account current balance to scheduled terminal and be not enough to complete described batch Measure the prompting message of money transfer transactions request.
It, can be with refusal respond batch if the current remaining sum of account is less than first when total amount is produced in the present embodiment Money transfer transactions ask, i.e., do not perform to corresponding account carry out money transfer transactions and/or, to scheduled terminal send account it is current Sorry, your ticket has not enough value to complete the prompting message of batch money transfer transactions request, and the remaining sum for waiting for account current is waited to produce more than or equal to first During total amount, batch money transfer transactions request is just responded.The present embodiment enables to the institute in every batch money transfer transactions request There is money transfer transactions unification, be carried out at the same time processing.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 4, which further includes:It is transferred to Module, during for being transferred to transaction request in the batch for receiving the account, generation represents the second identifier stopped payment temporarily, so that The account from there is Account History lock status to become no Account History lock status, summarize the account based on the batch be transferred to please What all in asking were transferred to transaction is transferred to total amount, by total amount to be transferred to described in the current balance increase of the account, and carries out Transaction Information processing.
In the present embodiment, it is similar with above-mentioned money transfer transactions to be transferred to transaction.Trading server is being received for a certain account When the batch that family be transferred in batches is transferred to request, the generation account represents the second identifier stopped payment temporarily, which can With identical or different from above-mentioned first flag.
The effect for generating the second identifier is so that the account is from there is Account History lock status to become no Account History lock shape State, so there is no need to fight for or wait for the Account History of the account to lock, and the account is after interim stop payment, it is impossible to handle The class of drawing of any amount of money is merchandised (in addition to particular provisions), and the amount of money that the account newly keeps accounts after stop payment temporarily does not also allow Branch dental caries (that is the account balance of the account is without update), after the completion of this is transferred in batches, the account is remembered from no account Record lock status becomes have Account History lock status.Then summarize the account is transferred to based on this in request and all is transferred to transaction in batches Be transferred to total amount, by the current balance increase total amount to be transferred to of the account, and carry out Transaction Information processing, for example, transaction Information processing includes generation transaction details, recognizes folding processing, the dynamic account notice of push etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (8)

  1. A kind of 1. method of trading processing, which is characterized in that the method for the trading processing includes:
    S1, after the batch transfer request for an account is received, trading server generates the account representative and stops payment temporarily First flag so that the account is from there is Account History lock status to become no Account History lock status;
    S2 summarizes first of the account with the first flag based on all money transfer transactions in the batch transfer request Total amount to be produced;
    S3 is more than or equal to described first when total amount is produced, to the batch transfer request in the current remaining sum of the account In the accounts of all money transfer transactions produce corresponding transfer amounts, and carry out Transaction Information processing;
    S4 is less than described first when total amount is produced in the current remaining sum of the account, the batch money transfer transactions is asked In money transfer transactions arranged according to the sequencing of request, sequentially to remove the money transfer transactions in queue, and summarize and do not move Second total amount to be produced of the money transfer transactions removed;
    S5 is more than or equal to described second when total amount is produced, to selected money transfer transactions in the current remaining sum of the account Account produce corresponding transfer amounts, and carry out Transaction Information processing;
    S6, the prompting message that can not be handled to the removed money transfer transactions of scheduled terminal transmission;And
    S7, when the batch for receiving the account is transferred to transaction request, generation represents the second identifier stopped payment temporarily, and this Two marks are different from the first flag, so that the account is from there is Account History lock status to become no Account History lock status, Summarize the account based on the batch be transferred in request it is all be transferred to transaction be transferred to total amount, it is current remaining by the account Total amount to be transferred to described in volume increase, and carry out Transaction Information processing.
  2. 2. the method for trading processing according to claim 1, which is characterized in that the step S1 includes:
    The quantity of all money transfer transactions in the batch transfer request is obtained, is less than or equal in the quantity of all money transfer transactions pre- If during amount threshold, queuing processing is carried out one by one according to serial process rule to the batch transfer request, in all friendships of transferring accounts When easy quantity is more than preset quantity threshold value, the first flag that the account representative is stopped payment temporarily is generated.
  3. 3. the method for trading processing according to claim 1, which is characterized in that described the step of being traded information processing Including:
    Obtain the account remaining newest remaining sum after corresponding transfer amounts are produced, and to processed money transfer transactions according to The sequencing of transaction is arranged;
    Processed money transfer transactions are calculated one by one according to the opposite sequence to put in order based on the newest remaining sum, with generation The Transaction Information of each processed money transfer transactions.
  4. 4. the method for trading processing according to claim 1 or 2, which is characterized in that the step
    It is further included after S2:
    S21 is less than described first when total amount is produced, friendship of transferring accounts in batches described in refusal respond in the current remaining sum of the account Easily request and/or, send the account current balance to scheduled terminal and be not enough to complete the batch money transfer transactions request Prompting message.
  5. 5. a kind of trading server, which is characterized in that the trading server includes:
    First generation module, for after the batch transfer request for an account is received, trading server to generate the account Family represents the first flag stopped payment temporarily, so that the account is from there is Account History lock status to become no Account History lock status;
    First summarizing module, for summarizing the account with the first flag based on all in the batch transfer request First total amount to be produced of money transfer transactions;
    First transfers accounts module, for being more than or equal to described first when total amount is produced in the current remaining sum of the account, to institute The account for stating all money transfer transactions in batch transfer request produces corresponding transfer amounts, and carry out Transaction Information processing;
    The trading server further includes:
    Remove module for being less than described first when total amount is produced in the current remaining sum of the account, turns the batch Money transfer transactions in account transaction request are arranged according to the sequencing of request, sequentially to remove the money transfer transactions in queue, And summarize the second total amount to be produced of the money transfer transactions not removed;
    Second transfers accounts module, for being more than or equal to described second when total amount is produced in the current remaining sum of the account, to institute The account of the money transfer transactions of selection produces corresponding transfer amounts, and carries out Transaction Information processing;
    Sending module, for the prompting message that can not be handled to the removed money transfer transactions of scheduled terminal transmission;And
    Module is transferred to, during for being transferred to transaction request in the batch for receiving the account, generation represents second stopped payment temporarily Mark, and the second identifier is different from the first flag, so that the account is from there is Account History lock status to become no account Record lock status, summarize the account based on the batch be transferred in request it is all be transferred to transaction be transferred to total amount, by this Total amount to be transferred to described in the current balance increase of account, and carry out Transaction Information processing.
  6. 6. trading server according to claim 5, which is characterized in that first generation module is specifically used for obtaining institute The quantity of all money transfer transactions in batch transfer request is stated, is less than or equal to preset quantity threshold value in the quantity of all money transfer transactions When, queuing processing is carried out one by one according to serial process rule to the batch transfer request, it is big in the quantity of all money transfer transactions When preset quantity threshold value, the first flag that the account representative is stopped payment temporarily is generated.
  7. 7. trading server according to claim 5, which is characterized in that described first, which transfers accounts, module or second transfers accounts module Specifically for obtaining account remaining newest remaining sum after corresponding transfer amounts are produced, and to processed money transfer transactions It is arranged according to the sequencing of transaction;It is based on the newest remaining sum that processed money transfer transactions are inverse according to what is put in order Sequence is calculated one by one, to generate the Transaction Information of each processed money transfer transactions.
  8. 8. trading server according to claim 5 or 6, which is characterized in that further include:
    Processing module, for being less than described first when total amount is produced in the current remaining sum of the account, described in refusal respond Batch money transfer transactions ask and/or, send the account current balance to scheduled terminal and be not enough to complete the batch to transfer accounts The prompting message of transaction request.
CN201710027703.7A 2017-01-16 2017-01-16 The method and trading server of trading processing Active CN107016536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710027703.7A CN107016536B (en) 2017-01-16 2017-01-16 The method and trading server of trading processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710027703.7A CN107016536B (en) 2017-01-16 2017-01-16 The method and trading server of trading processing

Publications (2)

Publication Number Publication Date
CN107016536A CN107016536A (en) 2017-08-04
CN107016536B true CN107016536B (en) 2018-06-22

Family

ID=59440352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710027703.7A Active CN107016536B (en) 2017-01-16 2017-01-16 The method and trading server of trading processing

Country Status (1)

Country Link
CN (1) CN107016536B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563889A (en) * 2017-08-29 2018-01-09 中国银行股份有限公司 Account balance information processing method and processing device
CN107945028A (en) * 2017-11-27 2018-04-20 泰康保险集团股份有限公司 A kind of network move back expense method and device
CN108764906A (en) * 2018-05-30 2018-11-06 深圳市元征科技股份有限公司 A kind of server and its block chain transaction confirmation method, device, storage medium
CN108984281A (en) * 2018-05-30 2018-12-11 深圳市买买提信息科技有限公司 A kind of task processing method and server
CN108876616A (en) * 2018-06-13 2018-11-23 众安信息技术服务有限公司 Exchange information processing method, device and assets based on block chain register settlement system
CN109005214B (en) * 2018-07-03 2021-06-29 创新先进技术有限公司 Resource scheduling method and device
CN109887195A (en) * 2019-03-17 2019-06-14 中国建设银行股份有限公司 A kind of operating method and system of self-help teller machine
CN110245929A (en) * 2019-06-19 2019-09-17 维沃移动通信有限公司 A kind of transfer account method and terminal device
CN112990900A (en) * 2019-12-02 2021-06-18 贝壳技术有限公司 Transfer method, device, storage medium and equipment
CN113298513A (en) * 2021-06-21 2021-08-24 深圳前海微众银行股份有限公司 Method and system for processing payment request
CN113762954A (en) * 2021-09-08 2021-12-07 百果园技术(新加坡)有限公司 Hotspot account transaction processing method and device, electronic device and storage medium
CN115760089A (en) * 2022-10-21 2023-03-07 中电金信软件有限公司 Batch service data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1443303A (en) * 2000-05-17 2003-09-17 Q.P.Q.有限公司 Electronic processing system
CN101620703A (en) * 2008-07-04 2010-01-06 阿里巴巴集团控股有限公司 Buffer bookkeeping method and device
CN102393822A (en) * 2011-11-30 2012-03-28 中国工商银行股份有限公司 Batch scheduling system and method
CN104407922A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Asynchronous batch-processing dispatching method and system
CN105635203A (en) * 2014-10-29 2016-06-01 阿里巴巴集团控股有限公司 Method and device for transferring electronic data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639792B (en) * 2008-07-29 2016-04-06 阿里巴巴集团控股有限公司 A kind of concurrent data disposal route, device and a kind of electronic accounting system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1443303A (en) * 2000-05-17 2003-09-17 Q.P.Q.有限公司 Electronic processing system
CN101620703A (en) * 2008-07-04 2010-01-06 阿里巴巴集团控股有限公司 Buffer bookkeeping method and device
CN102393822A (en) * 2011-11-30 2012-03-28 中国工商银行股份有限公司 Batch scheduling system and method
CN104407922A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Asynchronous batch-processing dispatching method and system
CN105635203A (en) * 2014-10-29 2016-06-01 阿里巴巴集团控股有限公司 Method and device for transferring electronic data

Also Published As

Publication number Publication date
CN107016536A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107016536B (en) The method and trading server of trading processing
CN106504094A (en) Transaction match method and system based on the distributed general ledger system of block chain technology
CN107015869B (en) Transaction keeps accounts control method and system
US9747599B2 (en) Method and system for identifying and processing currency conversion in a financial transaction
CN110009294A (en) A kind of project processing method and processing device, a kind of calculating equipment and storage medium
CN107369026A (en) Method for distributing business and device
CN107563889A (en) Account balance information processing method and processing device
CN104867250B (en) A kind of processing method and processing device of business handling data
CN108335202B (en) Distributed energy transaction system based on block chain
CN107508904B (en) Resource processing method and device
CN110264358A (en) A kind of transaction processing method and device
CN109034823A (en) risk identification method, device and server
CN107038182A (en) Divide the completeness inspection method and device of table data
CN107451812B (en) APP payment method on mobile terminal based on block chain technology
CN109359964A (en) The real-time account checking method of multi-party payment channel
CN112258168A (en) Payment method, system and readable storage medium based on user digital wallet
CN109919602A (en) A kind of assignment method, terminal and the computer readable storage medium of card certificate
CN107609904A (en) A kind of electronic card certificate information processing method, equipment and system
CN107958318A (en) Resource payment method and device
CN109389376A (en) A kind of merchant method and system based on digital cash
CN103870992B (en) Cross-border Multiple Currencies data handling system and method
CN110458544A (en) A kind of method of payment and payment services system across more cash register system
CN105931090A (en) Electronic bill sending method and device
CN110298644A (en) Account recovery method, apparatus, server and readable storage medium storing program for executing
CN112446508A (en) Method and device for recovering package in logistics transportation, storage medium and electronic equipment

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