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

The method and trading server of trading processing Download PDF

Info

Publication number
CN107016536A
CN107016536A CN201710027703.7A CN201710027703A CN107016536A CN 107016536 A CN107016536 A CN 107016536A CN 201710027703 A CN201710027703 A CN 201710027703A CN 107016536 A CN107016536 A CN 107016536A
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.)
Granted
Application number
CN201710027703.7A
Other languages
Chinese (zh)
Other versions
CN107016536B (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 a kind of method of trading processing and trading server, the method for the trading processing includes:After the batch transfer request for an account is received, trading server generates the account and represents the first mark stopped payment temporarily, so that the account is from there is Account History lock status to become no Account History lock status;Collect first to be produced total amount of the account based on all money transfer transactions in the batch transfer request with the described first mark;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 carries out Transaction Information processing.The present invention can improve the speed that high concurrent transaction is performed, and improve the efficiency of transaction work.

Description

The method and trading server of trading processing
Technical field
The present invention relates to the method and trading server in financial technology field, more particularly to a kind of trading processing.
Background technology
At present, often there are substantial amounts of money transfer transactions and needs to update the data same in storehouse 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 batch of consumer is transferred in the bank account of trade company afterwards.Namely in some accounts (for example, electric business platform Specify intermediate account) high concurrent transaction when, core transaction system needs to fight for and waits the Account History lock of the account to complete Transaction, i.e., all transaction are required to queue up and handled one by one so that high concurrent transaction is performed slowly, and transaction is likely to occur super When, or even Fail Transaction.
The content of the invention
It is an object of the invention to provide a kind of method of trading processing and trading server, it is intended to improves 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 represented temporarily The first mark stopped payment, so that the account is from there is Account History lock status to become no Account History lock status;
S2, collects the account with the described first mark 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, is transferred 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 predetermined number threshold value, to the batch transfer request according to the regular processing of ranking one by one of serial process, at all turns When the quantity of account transaction is more than predetermined number threshold value, generates the account and represent the first mark stopped payment temporarily.
Preferably, also include 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 collected 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, is transferred accounts to selected The account of transaction produces corresponding transfer amounts, and carries out Transaction Information processing;
S6, the prompting message that the money transfer transactions removed can not be handled is sent to predetermined terminal.
Preferably, it is described to include the step of be traded information processing:
The account remaining newest remaining sum after corresponding transfer amounts are produced is obtained, and to processed money transfer transactions Arranged according to the sequencing of transaction;
Processed money transfer transactions are calculated one by one according to the opposite sequence put in order based on the newest remaining sum, with Generate the Transaction Information of each processed money transfer transactions.
Preferably, also include 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 predetermined terminal please The prompting message asked.
Preferably, in addition to:
When the batch for receiving the account is transferred to transaction request, generation represents the second mark stopped payment temporarily, so that The account from there is Account History lock status to become no Account History lock status, collect the account based on the batch be transferred to please What all in asking were transferred to transaction is transferred to total amount, the current balance of the account is increased into the total amount to be transferred to, and carry out Transaction Information processing.
To achieve the above object, the present invention also provides a kind of trading server, and the trading server includes:
First generation module, for after the batch transfer request for an account is received, trading server to generate institute State account and represent the first mark stopped payment temporarily, so that the account is from there is Account History lock status to become no Account History lock shape State;
First summarizing module, for collecting the account with the described first mark 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 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 predetermined number threshold value, to the batch transfer request according to serial place The regular processing of ranking one by one of reason, when the quantity of all money transfer transactions is more than predetermined number threshold value, generates the account generation The first mark that table is stopped payment temporarily.
Preferably, the trading server also 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 the second total amount to be produced of the money transfer transactions not removed is collected;
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 to the account of selected money transfer transactions, and carry out Transaction Information processing;
Sending module, for sending the prompting message that the money transfer transactions removed can not be handled to predetermined terminal.
Preferably, described first transfer accounts module or second transfer accounts module specifically for obtain 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 is calculated processed money transfer transactions according to the opposite sequence put in order one by one, each processed to generate Money transfer transactions Transaction Information.
Preferably, in addition to:
Processing module, for being less than described first when total amount is produced in the current remaining sum of the account, refusal respond The batch money transfer transactions request, and/or, send the account current balance to predetermined terminal and be not enough to complete the batch The prompting message of money transfer transactions request.
Preferably, in addition to:
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 mark, so that the account collects 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 collects 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 During volume, carry out batch and transfer accounts, the mark stopped payment temporarily of account generation that the present invention transfers accounts for batch so that the account is from there is account Family record lock status becomes no Account History lock status, collects the total amount transferred accounts of batch and is transferred accounts again, it is not necessary to queue up into Row is handled one by one, is improved the speed that high concurrent transaction is performed, is improved the efficiency of transaction work.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the method first embodiment of trading processing of the present invention;
Fig. 2 is the schematic flow sheet of the method second embodiment of trading processing of the present invention;
Fig. 3 is the schematic flow sheet of the method 3rd embodiment of trading processing of the present invention;
Fig. 4 is the structural representation of trading server first embodiment of the present invention;
Fig. 5 is the structural representation of trading server second embodiment of the present invention;
Fig. 6 is the structural representation of trading server 3rd embodiment of the present invention.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, 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 figure 1, schematic flow sheets of the Fig. 1 for the embodiment of method one of trading processing of the present invention, the trading processing Method comprises the following steps:
Step S1, after the batch transfer request for an account is received, trading server generates the account and represented The first mark 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 mark stopped payment temporarily, and the effect for generating first mark is so that the account from there is account Record lock status becomes no Account History lock status, so there is no need to fight for or wait 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 kept accounts afterwards of stopping payment also does not allow to draw (that is the account balance of the account is without updating), in this batch After the completion of amount is transferred accounts, the account is from becoming have Account History lock status without Account History lock status.
Step S2, collects the account with the described first mark 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 collected, to obtain first Total amount to be produced.The quantity of such as 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 collect 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 temporarily in table by the present embodiment, face When stop payment in table record and have a details of each money transfer transactions, including each money transfer transactions other side accounts information, turn 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 collected.
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, collecting the first of all money transfer transactions after total amount is produced, the analysis account it is current 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 generation transaction details, recognizes folding is handled, the dynamic account of push is notified 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 collects and criticized 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, carry out batch and transfer accounts, the mark stopped payment temporarily of account generation that the present embodiment is transferred accounts for batch so that the account is from there is account Family record lock status becomes no Account History lock status, collects the total amount transferred accounts of batch and is transferred accounts again, it is not necessary to queue up into Row is handled one by one, is improved the speed that high concurrent transaction is performed, is improved the efficiency of transaction work.
In a preferred embodiment, on the basis of above-mentioned Fig. 1 embodiment, above-mentioned steps S1 includes:Obtain described The quantity of all money transfer transactions in batch transfer request, is less than or equal to predetermined number threshold value in the quantity of all money transfer transactions When, it is big in the quantity of all money transfer transactions to the batch transfer request according to the regular processing of ranking one by one of serial process When predetermined number threshold value, generate the account and represent the first mark stopped payment temporarily.
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 predetermined number threshold value, such as when the quantity of money transfer transactions is less than or equal to 5, into state is waited in line, i.e., to batch Transfer request is according to the regular processing of ranking one by one of serial process, when the quantity of money transfer transactions is more than predetermined number threshold value, When being greater than being equal to 5, 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 to the quantity of batch money transfer transactions, and predetermined number threshold value is reached 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 above-mentioned Fig. 1 embodiment, above-mentioned steps S2 it Also include afterwards:
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 collected 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, is transferred accounts to selected The account of transaction produces corresponding transfer amounts, and carries out Transaction Information processing;
S6, the prompting message that the money transfer transactions removed can not be handled is sent to predetermined terminal.
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 (will for example be arranged posterior Money transfer transactions are removed), removed money transfer transactions can be included in batch transfer request next time.
After each money transfer transactions are removed, the amount of money is carried out to not removed remaining money transfer transactions and collected, to obtain not Second total amount to be produced of the money transfer transactions of removal, by that analogy, waits to produce in the current remaining sum of account more than or equal to second 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, carries out the Transaction Information processing of preset kind, for example, transaction letter Breath processing includes generating transaction details, recognizes folding processing, pushes dynamic account notice etc..Send what is removed to predetermined terminal after most The prompting message that money transfer transactions can not be handled.
In other embodiments, can also according to the amount of money big minispread money transfer transactions, by the amount of money of ordered pair money transfer transactions It is overlapped and collects, be more than or equal in the current remaining sum of account second when total amount is produced, 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 above-mentioned Fig. 1 or Fig. 2 embodiment 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, for example, is 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, the trading order of such as n money transfer transactions is X1, X2, X3 ..., Xn, the newest remaining sum based on the account carries out backward calculating processing to n money transfer transactions:For example Y is The newest remaining sum of account after the completion of Xn transaction, the corresponding amount of money that produces of Xn is yn, and Y is before Xn transaction is completed plus amount of money yn Account balance, by that analogy, until the Transaction Information backstepping of all processed money transfer transactions is disposed.
Wherein, account current balance calculation formula:
(xa)kRepresent that account a the interim of kth bar record in table is stopped payment temporarily stops payment the amount of money, k scope is [0, n], k= Represent not stop payment record, a temporarily when 00Represent the registered current balances in account balance marks record of account a, a1Represent account Family a is registered to freeze the amount of money in account balance marks record, and f (a) represents the current balance of account, if f (a)<0, then it represents that Account balance is not enough.
In a preferred embodiment, as shown in figure 3, on the basis of above-mentioned Fig. 1 embodiment, after the step S2 Also include:
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 predetermined terminal please The prompting message asked.
, 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 are asked, i.e., do not perform to corresponding account and carry out money transfer transactions, and/or, send account to predetermined terminal 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 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, while being handled.
In a preferred embodiment, on the basis of above-mentioned Fig. 1 embodiment, the method for the trading processing also includes:
When the batch for receiving the account is transferred to transaction request, generation represents the second mark stopped payment temporarily, so that The account from there is Account History lock status to become no Account History lock status, collect the account based on the batch be transferred to please What all in asking were transferred to transaction is transferred to total amount, the current balance of the account is increased into the total amount to be transferred to, and carry out Transaction Information processing.
In the present embodiment, transaction is transferred to similar with above-mentioned money transfer transactions.Trading server is being received for a certain account When family carries out the batch that is transferred to of batch and is transferred to request, the generation account represents the second mark stopped payment temporarily, and second mark can With the identical or difference with the first above-mentioned mark.
The effect for generating second mark is so that the account 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 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 updating) is drawn, after the completion of this is transferred in batches, the account is remembered from without account Record lock status becomes have Account History lock status.Then collect the account is transferred in request and all is transferred to transaction in batches based on this Be transferred to total amount, by the current balance increase total amount to be transferred to of the account, and Transaction Information processing is carried out, for example, transaction Information processing includes generation transaction details, recognizes folding is handled, the dynamic account of push is notified etc..
As shown in figure 4, Fig. 4 is the structural representation of the embodiment of trading server one of the present invention, the trading server includes:
First generation module 101, for after the batch transfer request for an account is received, trading server to be generated The account represents the first mark 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 mark stopped payment temporarily, and the effect for generating first mark is so that the account from there is account Record lock status becomes no Account History lock status, so there is no need to fight for or wait 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 kept accounts afterwards of stopping payment does not allow branch dental caries (that is the account balance of the account is without updating) yet, in this batch After the completion of amount is transferred accounts, the account is from becoming have Account History lock status without Account History lock status.
First summarizing module 102, the batch transfer request is based on for collecting the account with the described first mark 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 collected, to obtain first Total amount to be produced.The quantity of such as 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 collect 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 temporarily in table by the present embodiment, face When stop payment in table record and have a details of each money transfer transactions, including each money transfer transactions other side accounts information, turn 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 collected.
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 carries out Transaction Information Processing.
In the present embodiment, collecting the first of all money transfer transactions after total amount is produced, the analysis account it is current 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 generation transaction details, recognizes folding is handled, the dynamic account of push is notified etc..
In a preferred embodiment, on the basis of above-mentioned Fig. 4 embodiment, above-mentioned first generation module 101 is specific Quantity for obtaining all money transfer transactions in the batch transfer request, is less than or equal to pre- in the quantity of all money transfer transactions If during amount threshold, to the batch transfer request according to the regular processing of ranking one by one of serial process, in all friendships of transferring accounts When easy quantity is more than predetermined number threshold value, generates the account and represent the first mark stopped payment temporarily.
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 predetermined number threshold value, such as when the quantity of money transfer transactions is less than or equal to 5, into state is waited in line, i.e., to batch Transfer request is according to the regular processing of ranking one by one of serial process, when the quantity of money transfer transactions is more than predetermined number threshold value, When being greater than being equal to 5, 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 to the quantity of batch money transfer transactions, and predetermined number threshold value is reached 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 above-mentioned Fig. 4 embodiment, above-mentioned trading server Also include:
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 collect 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 to the account of selected money transfer transactions, and carry out Transaction Information processing;
Sending module 106, for sending the prompting message that the money transfer transactions removed can not be handled to predetermined terminal.
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 (will for example be arranged posterior Money transfer transactions are removed), removed money transfer transactions can be included in batch transfer request next time.
After each money transfer transactions are removed, the amount of money is carried out to not removed remaining money transfer transactions and collected, to obtain not Second total amount to be produced of the money transfer transactions of removal, by that analogy, waits to produce in the current remaining sum of account more than or equal to second 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, carries out the Transaction Information processing of preset kind, for example, transaction letter Breath processing includes generating transaction details, recognizes folding processing, pushes dynamic account notice etc..Send what is removed to predetermined terminal after most The prompting message that money transfer transactions can not be handled.
In other embodiments, can also according to the amount of money big minispread money transfer transactions, by the amount of money of ordered pair money transfer transactions It is overlapped and collects, be more than or equal in the current remaining sum of account second when total amount is produced, 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 above-mentioned Fig. 4 embodiment, above-mentioned first transfers accounts module or second turn Account module turns specifically for obtaining account remaining newest remaining sum after corresponding transfer amounts are produced, and to 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, for example, is 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, the trading order of such as n money transfer transactions is X1, X2, X3 ..., Xn, the newest remaining sum based on the account carries out backward calculating processing to n money transfer transactions:For example Y is The newest remaining sum of account after the completion of Xn transaction, the corresponding amount of money that produces of Xn is yn, and Y is before Xn transaction is completed plus amount of money yn Account balance, by that analogy, until the Transaction Information backstepping of all processed money transfer transactions is disposed.
Wherein, account current balance calculation formula:
(xa)kRepresent that account a the interim of kth bar record in table is stopped payment temporarily stops payment the amount of money, k scope is [0, n], k= Represent not stop payment record, a temporarily when 00Represent the registered current balances in account balance marks record of account a, a1Represent account Family a is registered to freeze the amount of money in account balance marks record, and f (a) represents the current balance of account, if f (a)<0, then it represents that Account balance is not enough.
In a preferred embodiment, as shown in fig. 6, on the basis of above-mentioned Fig. 4 embodiment, 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 rings The batch money transfer transactions are answered to ask, and/or, send the account current balance to predetermined terminal and be not enough to complete described batch Measure the prompting message of money transfer transactions request.
, 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 are asked, i.e., do not perform to corresponding account and carry out money transfer transactions, and/or, send account to predetermined terminal 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 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, while being handled.
In a preferred embodiment, on the basis of above-mentioned Fig. 4 embodiment, the trading server also includes:It is transferred to Module, during for being transferred to transaction request in the batch for receiving the account, generation represents the second mark stopped payment temporarily, so that The account from there is Account History lock status to become no Account History lock status, collect the account based on the batch be transferred to please What all in asking were transferred to transaction is transferred to total amount, the current balance of the account is increased into the total amount to be transferred to, and carry out Transaction Information processing.
In the present embodiment, transaction is transferred to similar with above-mentioned money transfer transactions.Trading server is being received for a certain account When family carries out the batch that is transferred to of batch and is transferred to request, the generation account represents the second mark stopped payment temporarily, and second mark can With the identical or difference with the first above-mentioned mark.
The effect for generating second mark is so that the account 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 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 updating), after the completion of this is transferred in batches, the account is remembered from without account Record lock status becomes have Account History lock status.Then collect the account is transferred in request and all is transferred to transaction in batches based on this Be transferred to total amount, by the current balance increase total amount to be transferred to of the account, and Transaction Information processing is carried out, for example, transaction Information processing includes generation transaction details, recognizes folding is handled, the dynamic account of push is notified etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (12)

1. a kind of method of trading processing, it is characterised 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 stopped payment temporarily The first mark so that the account is from there is Account History lock status to become no Account History lock status;
S2, collects first of the account with the described first mark 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.
2. the method for trading processing according to claim 1, it is characterised 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, to the batch transfer request according to the regular processing of ranking one by one of serial process, in all friendships of transferring accounts When easy quantity is more than predetermined number threshold value, generates the account and represent the first mark stopped payment temporarily.
3. the method for trading processing according to claim 1 or 2, it is characterised in that also include after the step S2:
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, do not moved with sequentially removing the money transfer transactions in queue, and collecting 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 the money transfer transactions removed can not be handled is sent to predetermined terminal.
4. the method for trading processing according to claim 3, it is characterised in that described the step of be 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 put in order based on the newest remaining sum, to generate The Transaction Information of each processed money transfer transactions.
5. the method for trading processing according to claim 1 or 2, it is characterised in that also include after the step S2:
S7, is less than described first when total amount is produced, friendship of being transferred 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 predetermined terminal and be not enough to complete the batch money transfer transactions request Prompting message.
6. the method for trading processing according to claim 1 or 2, it is characterised in that also include:
When the batch for receiving the account is transferred to transaction request, generation represents the second mark stopped payment temporarily, so that described Account is collected the account and is transferred to based on the batch in request from there is Account History lock status to become no Account History lock status It is all be transferred to transaction be transferred to total amount, the current balance of the account is increased into the total amount to be transferred to, and be traded Information processing.
7. a kind of trading server, it is characterised 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 mark 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 collecting the account with the described first mark 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 carries out Transaction Information processing.
8. trading server according to claim 7, it is characterised in that first generation module is specifically for obtaining institute The quantity of all money transfer transactions in batch transfer request is stated, is less than or equal to predetermined number threshold value in the quantity of all money transfer transactions When, it is big in the quantity of all money transfer transactions to the batch transfer request according to the regular processing of ranking one by one of serial process When predetermined number threshold value, generate the account and represent the first mark stopped payment temporarily.
9. the trading server according to claim 7 or 8, it is characterised in that the trading server also includes:
Remove module, for being less than described first when total amount is produced in the current remaining sum of the account, turns to 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 collect 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 sending the prompting message that the money transfer transactions removed can not be handled to predetermined terminal.
10. trading server according to claim 9, it is characterised in that described first, which transfers accounts, module or second transfers accounts mould Block is specifically for obtaining account remaining newest remaining sum after corresponding transfer amounts are produced, and to processed friendship of transferring accounts Easily arranged according to the sequencing of transaction;Based on the newest remaining sum by processed money transfer transactions according to putting in order Opposite sequence is calculated one by one, to generate the Transaction Information of each processed money transfer transactions.
11. the trading server according to claim 7 or 8, it is characterised in that also 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 are asked, and/or, send the account current balance to predetermined terminal and be not enough to complete the batch to transfer accounts The prompting message of transaction request.
12. the trading server according to claim 7 or 8, it is characterised in that also include:
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, so that the account is from there is Account History lock status to become no Account History lock status, collects the account based on described Batch be transferred in request it is all be transferred to transaction be transferred to total amount, will wait to be transferred to total gold described in the current balance increase of the account Volume, and carry out Transaction Information processing.
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 true CN107016536A (en) 2017-08-04
CN107016536B 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)

Cited By (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
CN108876616A (en) * 2018-06-13 2018-11-23 众安信息技术服务有限公司 Exchange information processing method, device and assets based on block chain register settlement system
CN108984281A (en) * 2018-05-30 2018-12-11 深圳市买买提信息科技有限公司 A kind of task processing method and server
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
CN113723641A (en) * 2018-07-03 2021-11-30 创新先进技术有限公司 Resource scheduling method and device
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 (6)

* 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
CN101639792A (en) * 2008-07-29 2010-02-03 阿里巴巴集团控股有限公司 Method and device for processing concurrent data and electronic accounting system
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

Patent Citations (6)

* 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
CN101639792A (en) * 2008-07-29 2010-02-03 阿里巴巴集团控股有限公司 Method and device for processing concurrent data and electronic accounting system
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

Cited By (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
CN113723641A (en) * 2018-07-03 2021-11-30 创新先进技术有限公司 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

Also Published As

Publication number Publication date
CN107016536B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN107016536B (en) The method and trading server of trading processing
CN107103530A (en) A kind of many account trading method and system of bank individual
TWI380630B (en) System reliability evaluation method for transmission by a single minimal path in time restriction
CN107563889A (en) Account balance information processing method and processing device
CN107993151A (en) Fund exchange settlement method, apparatus, equipment and computer-readable recording medium
CN107369026A (en) Method for distributing business and device
CN102113002A (en) Method and system for delayed payment of prepaid cards
CN107508904B (en) Resource processing method and device
CN110009294A (en) A kind of project processing method and processing device, a kind of calculating equipment and storage medium
CN110264358A (en) A kind of transaction processing method and device
CN107784540A (en) Exchange goods information processing method and device
CN107958318B (en) Resource distribution method and device
CN107798057A (en) transaction data processing method, device, storage medium and computer equipment
JP6105177B1 (en) Risk sharing support system
CN107146158A (en) A kind of electronic data processing method and device
CN111738709A (en) Transaction processing method and device
CN107209895A (en) Direct fund transfer process
CN112446508A (en) Method and device for recovering package in logistics transportation, storage medium and electronic equipment
CN111242762A (en) Financial product purchasing method, device and system
CN107679839A (en) A kind of data processing method and system
CN106934714A (en) A kind of business data processing method and device
CN110263068A (en) A kind of method and system handling monitoring data
CN109544290A (en) A kind of air control method and its system and storage medium based on algorithm identification mistake
CN107154900A (en) A kind of message processing method and device
CN115702431A (en) Method and system for handling transfer service

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