Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification one or more, below will
In conjunction with the attached drawing in this specification one or more embodiment, to the technical solution in this specification one or more embodiment into
Row clearly and completely describes, it is clear that and described embodiment is only this specification one or more a part of the embodiment, and
The embodiment being not all of.Based on the embodiment in this specification one or more, those of ordinary skill in the art are not making
The model of this specification one or more protection all should belong in every other embodiment obtained under the premise of creative work out
It encloses.
This specification one or more embodiment provides a kind of buffering benefit account method and device, by targetedly right
Multiple target accounts are grouped, and will be mended the comparable target account of account attribute information and are divided into one group, avoid more because of same group
It is bigger to mend account progress difference for buffering between a target account, and the buffering that influence buffering mends the fast target account of account progress mends account
Timeliness, the buffering for improving target account from the root mend account timeliness.
Fig. 1 is the first flow diagram that the buffering that this specification one or more embodiment provides mends account method, Fig. 1
In method can be executed by accounting processing server, as shown in Figure 1, this method at least includes the following steps:
S101, the buffering record list based on multiple target accounts determine the grouping influence factor of each target account;Its
In, which refers to that the buffering for influencing target account mends the benefit account attribute information of account time-consuming, the grouping influence factor
It can be various dimensions influence factor, for example, the benefit account attribute information can be buffer compensation amount, buffering Account Type, buffering note
Initial time etc. is recorded, which can be according to buffering timeliness demand classification;
Specifically, before starting based on buffering record and carrying out buffering benefit account to target account, first based on each in business library
The buffering is mended account attribute information by the buffering record list of target account, the benefit account attribute information of each target account of dynamic acquisition
It is determined as the grouping influence factor of target account;
S102 is grouped processing to multiple target accounts, determines multiple according to the grouping influence factor of each target account
Buffer account aggregation;
Specifically, during being grouped to multiple target accounts, default clustering algorithm (such as K- can use
Means cluster) and the grouping influence factor of each target account is combined to be grouped multiple target accounts, that is, ensure that benefit will be buffered
The lesser multiple buffering account clusters of account timeliness deviation ratio are into same grouping;
S103, for each buffering account aggregation, in the corresponding benefit account processing affairs of the buffering account aggregation, to buffering
Multiple target accounts that account aggregation includes carry out batch and mend account operation, and update the account balance of corresponding target account;
Wherein, in order to reduce the concurrency of database, the multiple accounts for being divided into same grouping are put together, and it is slow to execute
Account operation is mended in punching, i.e., carries out batch to multiple accounts in same benefit account processing affairs and mend account operation, due to there was only same point
Multiple accounts, which buffer, in group mends account completion, and corresponding benefit account processing affairs just submit completion, at this point, multiple accounts of same grouping
The buffering timeliness at family is subject to buffering in grouping and mends the buffering timeliness of the time-consuming longest account of account, it is preferable that ensures to buffer
The lesser multiple buffering account clusters of account timeliness deviation ratio are mended into same grouping, are carried out in this way using in conjunction with specific effect factor
The mode of Dynamic Packet can reduce the buffering offset of buffering account, it is ensured that the buffering of target account mends account timeliness;
Specifically, creating corresponding benefit for each buffering account aggregation after grouping obtains multiple buffering account aggregations
Account handles affairs, and after mending account processing affairs and opening, affairs thread is mended multiple target accounts in account set to the buffering and started
It carries out batch and mends account operation, affairs submission is completed a series of benefit accounts that characterization mends each target account in account set to the buffering and operated
Completion is fully executed parallel.
In this specification one or more embodiment, by being targetedly grouped to multiple target accounts, it will mend
The comparable target account of account attribute information is divided into one group, and buffering between multiple target accounts because of same group is avoided to mend account progress
It differs bigger, and influences the buffering benefit account timeliness that buffering mends the fast target account of account progress, improve target account from the root
The buffering at family mends account timeliness, avoids leading to account risk problem not in time because of buffering benefit account.
Wherein, the buffer compensation amount for considering target account is to determine that buffering mends the principal element of account time-consuming, is based on this, above-mentioned
Buffering record list based on multiple target accounts determines the grouping influence factor of each target account, specifically includes:
The corresponding buffering of target account is determined according to the buffering record list of the target account for each target account
Compensation rate;Wherein, which refers to that epicycle needs to mend the total number of the buffering record of account, wherein mends in subsequent buffering
During account, it may be necessary to carry out repeatedly fishing for buffering record, and carry out repeatedly buffering for target account and mend account;
Specifically, cause trading volume peak value and peak period also different since the type of service of different buffering accounts is different,
Therefore, for same buffering billing cycle, the total number of the corresponding buffering record of different buffering accounts is also different, thus different
Buffering account need buffer mend account buffer compensation amount it is also different;Wherein, consider that buffering account changes over time its buffering and mends
The amount of repaying dynamic change buffers for each round and mends account, first specific effect factor is combined to carry out dynamic point to multiple target accounts
Group;
The buffer compensation amount determined is determined as to the grouping influence factor of target account;
Specifically, before starting based on buffering record and carrying out buffering benefit account to target account, first based on each in business library
The buffering record list of target account, the buffer compensation amount of each target account of dynamic acquisition, so that buffer compensation amount difference is small
Same grouping is assigned in multiple target accounts of preset threshold.
Wherein, for the process being grouped based on grouping influence factor to buffering account, as shown in Fig. 2, above-mentioned S102
According to the grouping influence factor of each target account, processing is grouped to multiple target accounts, determines multiple buffering account aggregations,
It specifically includes:
S1021 carries out multiple target accounts using default clustering algorithm according to the grouping influence factor of each target account
Clustering processing determines multiple buffering account aggregations.
In specific embodiment, above-mentioned default clustering algorithm can be K-means algorithm, can also be that DBSCAN cluster is calculated
Method is also possible to BIRCH clustering algorithm, advantage and disadvantage and usage scenario based on each clustering algorithm, it is preferable that uses K-means
Algorithm clusters target account;It is corresponding, it is right using K-means algorithm according to the grouping influence factor of each target account
Multiple target accounts carry out clustering processing, determine multiple buffering account aggregations.
Specifically, it is above-mentioned using K-means algorithm according to the grouping influence factor of each target account, to multiple target accounts
Clustering processing is carried out, multiple buffering account aggregations is determined, specifically includes:
Step 1, in multiple target accounts, choose K target account respectively as K classification cluster centre,
In, K is the number for the classification that classification obtains;
Wherein, the number of classification can be according to the determination of actual packet demand, i.e., is finally grouped obtained buffering account
The quantity of set, the cluster centre of K classification in the lasting process for carrying out account clustering convergence be it is continually changing, determine for the first time
The cluster centre of K classification can be and randomly selected from multiple target accounts, in the cluster of K classification of subsequent determination
The heart is determined according to newest obtained cluster result, specifically, the arithmetic that can choose the respective dimension of all elements in cluster is flat
Cluster centre of the mean as next K classification;
Step 2, the grouping influence factor based on each target account, according to unselected multiple target accounts with by
Unselected multiple target accounts are divided into K mesh being selected by the buffering degrees of offset of K target account of selection
Where marking account in account clustering cluster, K account clustering cluster is obtained;
Specifically, being mended for being grouped influence factor and being buffer compensation amount for using K-means algorithm and based on buffering
The thinning process that the amount of repaying clusters target account, specifically:
For each unselected target account, the target account is calculated between K target account being selected
Buffer compensation amount difference;
The corresponding account clustering cluster of the minimum value that unselected target account is divided into buffer compensation amount difference;
According to the buffer compensation amount for the target account for including in each account clustering cluster, it is each to redefine K account clustering cluster
From the K target account being selected that is used as next cluster process of center, until what next cluster process used gathers
Variation meets default minimal ripple condition between the cluster centre that class center and this cluster process use.
Specifically, the buffer compensation amount of the cluster centre of the K classification based on selection and each target account every time, to multiple
After target account is divided into corresponding account clustering cluster, the poly- of the K classification used next time is first determined according to the cluster result
Class center, then judge change whether meet default minimal ripple item between the cluster centre of K new classification and former cluster centre
Currently available multiple clustering clusters are determined as K final account and clustered by part if so, illustrating that cluster result tends to restrain
Cluster;
K obtained account clustering cluster is determined as multiple buffering account aggregations by step 3;
Wherein, the buffering degrees of offset of multiple target accounts refers to that buffering benefit account time-consuming difference is big in each account clustering cluster
Small, buffering benefit account time-consuming difference is bigger, and buffering degrees of offset is bigger, is assigned to multiple target accounts of same account clustering cluster
Buffering mends account time-consuming difference within the scope of default value, i.e., individually buffers the bigger target account of buffer compensation amount and mend at account
Reason.
In a specific embodiment, as shown in figure 3, giving the specific implementation schematic illustration that buffering mends account method,
Specifically:
(1) the buffering record list based on target account each in business library, each target account epicycle account to be mended of dynamic acquisition
Buffer compensation amount;
(2) multiple target accounts are divided according to the buffer compensation amount of each target account using K-means clustering algorithm
Group processing, determines multiple buffering account aggregations;
Wherein, the difference comparsion for being divided into the buffer compensation amount of same group of account A and account B is small, and is divided into another
The difference comparsion of the buffer compensation amount of the account C and account A and account B of group is big;
(3) it is directed to each buffering account aggregation, in the corresponding benefit account processing affairs of the buffering account aggregation, to buffering account
Multiple target accounts that family set includes carry out batch and mend account operation, and update the account balance of corresponding target account;
Specifically, fishing for the target account epicycle from business library for each target account in the buffering account aggregation
The buffering of account to be mended records, in the corresponding benefit account processing affairs of the buffering account aggregation, based on the buffering record pair fished for
Target account carries out buffering and mends account, and updates the account balance of the target account.
Further, it is contemplated that during carrying out batch buffering benefit account to the target account after grouping, if according to upper
The exchange hour of trip operation system record fishes for the buffering record of target account and mends account, it is understood that there may be because of upstream business
System record exchange hour mistake and cause buffering record fish for random ordering, and then cause buffering mend account random ordering problem, be based on
This handles affairs in the corresponding benefit account of the buffering account aggregation as shown in figure 4, above-mentioned S103 is directed to each buffering account aggregation
In, batch is carried out to multiple target accounts that buffering account aggregation includes and mends account operation, and updates the account of corresponding target account
Family remaining sum, specifically includes:
S1031 is obtained according to keep accounts the time as sort field for each target account in each buffering account aggregation
The sequencing of each buffering record arrived, successively fishes for buffering from the buffering record list of the target account according to preset quantity
Record, wherein the book keeping operation time of the identical buffering record of service request Transaction Identifier is identical, which is at least based on note
The account time is ranked up buffering record determining;
Specifically, needing the service request first based on upstream business system to carry out buffering book keeping operation, needle before buffering mends account
To each service request, corresponding buffering record is generated, wherein the service request is Accounting Request, which carries
Related services information, the business such as have service request Transaction Identifier, exchange hour, be transferred to account, produce account, transferring resource ask
Transaction Identifier is asked to refer to operation system in the identification information for carrying out execution affairs corresponding to business processing;
Wherein, it is consistent in order to ensure buffering benefit account sequence actually occurs sequence with business, is receiving upstream business
When the service request of system, the service request corresponding book keeping operation time is automatically determined, book keeping operation time write-in is directed to the business
Buffering generated is requested to record, i.e., for the service request label book keeping operation time received;Two transaction numbers are considered simultaneously
Service request concurrent processing the case where, by with same transaction number multiple bufferings record the book keeping operation time be set as consistent;
Also, before carrying out buffering record and fishing for, first buffering is remembered based on the book keeping operation time for respectively buffering record in buffering record list
Record is ranked up, then theoretical as unit of preset quantity fished for quantity and sequentially fished for buffering from the buffering record list after sequence
Record;
S1032 fishes for operation for each buffering record, according to the size relation for actually fishing for quantity and preset quantity,
Target buffer record is chosen in the buffering record that this is fished for;
Specifically, theory fishes for quantity from buffering record list as unit of every time by preset quantity, sequentially fish for slow
After punching record, and the indirect all bufferings record for fishing for this is used to this buffering and mends account, it is contemplated that according to solid
Fixed number amount fishes for buffering record from buffering record list, it is understood that there may be remembers multiple bufferings of the same business processing transaction number
Separated situation is recorded, that is, the corresponding buffering record of multiple branch's affairs for belonging to a distributed transaction is separately fished for, needle
To a plurality of buffering record of a certain business processing transaction number, this fishes for out the buffering that a part has the business processing transaction number
Record, and the buffering record of the another part with the business processing transaction number is used as fish for object next time, therefore, it is necessary to incite somebody to action this
Buffering record that is secondary fishing for and being split is given up, this partial buffer record is had the mutually same trade with to be fished for another
The buffering record of business processing transaction number is left to buffering next time together and mends account;
Specifically, fishing for quantity due to recording theory as unit of the process of fishing for is by preset quantity in buffering, and actually fish out
Access amount is generally equal to the theory and fishes for quantity, but fishes for for the last time wait fish for buffering record, if it is remaining to
The item number for fishing for buffering record is less than preset quantity, and quantity will be fished for less than theory by actually fishing for quantity at this time;Wherein, as long as it is real
It fishes for quantity and fishes for quantity equal to the theory there may be the buffering of same business processing transaction number is recorded separated feelings in border
Condition, and since the book keeping operation time of multiple bufferings of same business processing transaction number record is identical, ranking results make same industry
In a plurality of buffering record set of business processing transaction number, therefore, it is only possible to a plurality of slow of the business processing transaction number that will sort last
Punching record separates, at this time, it may be necessary at least one buffering comprising the last business processing transaction number that sorts that this is fished for
Record is given up, and is left to buffering next time and mends account, i.e., according to actually fishing for quantity and unit theory is fished for the size between quantity and closed
System determines whether to give up the buffering record comprising the last service request Transaction Identifier that sorts;
Specifically, fishing for operation for buffering record every time, if actually fishing for quantity equal to preset quantity, give up this
The buffering record for the service request Transaction Identifier for sorting last in the buffering record fished for;And remaining buffering is recorded and is determined
For Target buffer record;
And the buffering record given up is re-added to the head in the buffering record list of the target account;It will
Buffering record in the buffering record of this preset quantity fished for comprising the last one transaction number adds to be buffered again
In the buffering record list for mending account, and the buffering record that this includes the last one transaction number is added in buffering record list
Most start, buffering record when fishing for next time in this way, while buffering record is fished for into having together of being separated with last
The buffering record of one transaction number is fished for out together;
If actually fishing for quantity less than preset quantity, the buffering record that this is fished for is determined as Target buffer note
Record, wherein when actually fishing for quantity less than preset quantity, illustrating that this buffering record fishes for operation is that epicycle last time is fished out
It takes, the item number for buffering remaining buffering record in record list is less than preset quantity, at this point, directly fishing for this all
Buffering record is accordingly to be regarded as Target buffer record;
S1033 is based respectively on the Target buffer of each target account in the corresponding benefit account processing affairs of buffering account aggregation
Record carries out batch to multiple target accounts that the buffering account aggregation includes and mends account operation, and updates corresponding target account
Account balance;
Specifically, during carrying out benefit account for a buffering billing cycle buffering record list generated, by rear
Platform asynchronous task is fished for out all buffering records in batches several times, is fished for every time being directed to from the buffering record list
Buffering record, after filtering out Target buffer record, according to Target buffer record in account information carry out primary buffering and mend
Account operation, the account balance of batch updating target account, and the corresponding transaction record of Mass production, what is filtered out for this
Target buffer record is completed after buffering benefit account operation, is returned to above-mentioned steps S1031 and is continued to buffer to record next time to fish for, Zhi Daozhen
Buffering benefit account operation is completed to being fished for from the buffering record list to remaining buffering to record for the last time.
In this specification one or more embodiment, during carrying out buffering benefit account based on buffering record, due to buffering
The book keeping operation stage, each buffering record generated included the book keeping operation time, and multiple bufferings with same business processing transaction number are remembered
The book keeping operation time of record it is identical and it is to be buffered mend account buffering record list be based on book keeping operation the time to buffering record be ranked up
Obtain, therefore, carry out buffering record fish for when, sequentially from buffering record list in fish for buffering record;Meanwhile having
Selectivity chooses Target buffer record from the buffering record fished for every time, so that the buffering being split record to be left to down
It is primary to mend account, it can either solve that buffering record is caused to fish for random ordering because of the exchange hour mistake that upstream business system records in this way
The problem of, it is also able to solve the problem of multiple bufferings record of same business processing transaction number is by separately benefit account, and then realize true
The controllability that buffering mends account sequence is protected, buffering is avoided to mend the problem of account random ordering.
Wherein, as shown in figure 5, determining each target account in buffering record list of the S101 based on multiple target accounts
It is grouped before influence factor, further includes:
S104 generates initial buffer according to operation system to the Accounting Request of the target account for each target account
Record list, wherein the initial buffer record list includes: book keeping operation time field and service request Transaction Identifier field;On i.e.
It includes: generated for each Accounting Request of upstream business system transmission in a certain billing cycle for stating initial buffer record list
Multiple buffering records, each buffering record correspond to a book keeping operation time and service request Transaction Identifier;
Specifically, service request Transaction Identifier is the Transaction Identifier carried in Accounting Request, for the note of buffering record
The determination process of account time determines the Accounting Request after receiving Accounting Request of the operation system for target account every time
The corresponding historical transactions mark of corresponding Current transaction mark, processed Accounting Request;
If there are Current transaction marks in historical transactions mark, identical historical transactions will be identified with Current transaction and identified
The corresponding book keeping operation time is determined as currently keeping accounts the time;
If in historical transactions mark, there is no Current transactions to identify, when the currently practical time is determined as currently keeping accounts
Between;
In initial buffer record list, addition includes the current book keeping operation time for the Accounting Request received is generated
Buffering record, until for the target account a certain buffering billing cycle generate buffering record is added to initial buffer
In record list;
S105, according to book keeping operation time field and service request Transaction Identifier field, to more in initial buffer record list
A buffering record is ranked up;
Specifically, after generating initial buffer record list for a certain buffering billing cycle of target account, and
Before carrying out buffering record and fishing for, need first to be ranked up processing to a plurality of buffering record in initial buffer record list,
During buffering record ordering, it is contemplated that the service request of multiple transaction numbers carries out the case where concurrent processing, it is understood that there may be more
The book keeping operation time of the corresponding buffering record of a business processing transaction number identical situation, thus, sorted based on the time of keeping accounts because
Son and using service request Transaction Identifier as the minor sort factor, in initial buffer record list multiple bufferings record arrange
Sequence;
Initial buffer record list after sequence is determined as the buffering record list of target account by S106, corresponding, is delayed
The sequencing that punching record refers to when fishing for is to keep accounts the time and service request Transaction Identifier is sort field to buffering record
It is ranked up determining;
Specifically, being directed to each target account, the multiple bufferings in buffering record list finally determined record successive
Sequence is with time of keeping accounts main ranking factor and to be ranked up to obtain by the minor sort factor of service request Transaction Identifier, i.e.,
It is first ranked up according to the sequencing of book keeping operation time, in book keeping operation time identical situation, according still further to service request affairs mark
Knowledge is ranked up, so that the book keeping operation time is identical and the identical buffering record of business processing transaction number comes together, is guaranteed in this way
Buffering is mended in account stage targeted buffering record list, in a plurality of buffering record set of the same business processing transaction number point
Cloth, so that a plurality of buffering record of same business processing transaction number has been fished for, then is fished for next during buffering record is fished for
The a plurality of buffering of a business processing transaction number records.
Buffering in this specification one or more embodiment mends account method, firstly, the buffering based on multiple target accounts
Record list determines the grouping influence factor of each target account;Then, according to the grouping influence factor of each target account, to more
A target account is grouped processing, determines multiple buffering account aggregations;Finally, it is directed to each buffering account aggregation, it is slow at this
It rushes in the corresponding benefit account processing affairs of account aggregation, batch is carried out to multiple target accounts that buffering account aggregation includes and mends account behaviour
Make, and updates the account balance of corresponding target account.By being targetedly grouped to multiple target accounts, account will be mended
The comparable target account of attribute information is divided into one group, and buffering between multiple target accounts because of same group is avoided to mend account progress phase
Difference is bigger, and influences the buffering benefit account timeliness that buffering mends the fast target account of account progress, improves target account from the root
Buffering mend account timeliness.
The buffering benefit account method that corresponding above-mentioned Fig. 1 to Fig. 5 describe, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of buffering benefit account device, and Fig. 6 is that the buffering that this specification one or more embodiment provides is mended
The first module composition schematic diagram of account device, which is used to execute the buffering that Fig. 1 to Fig. 5 is described and mends account method, such as Fig. 6 institute
Show, which includes:
Grouping information determining module 601 determines each target for the buffering record list based on multiple target accounts
The grouping influence factor of account;
Account grouping module 602, for the grouping influence factor according to each target account, to the multiple mesh
Mark account is grouped processing, determines multiple buffering account aggregations;
Buffering mends account module 603, for being directed to each buffering account aggregation, in the corresponding benefit of buffering account aggregation
Account is handled in affairs, is carried out batch to multiple target accounts that the buffering account aggregation includes and is mended account operation, and updates correspondence
Target account account balance.
In this specification one or more embodiment, by being targetedly grouped to multiple target accounts, it will mend
The comparable target account of account attribute information is divided into one group, and buffering between multiple target accounts because of same group is avoided to mend account progress
It differs bigger, and influences the buffering benefit account timeliness that buffering mends the fast target account of account progress, improve target account from the root
The buffering at family mends account timeliness.
Optionally, the grouping information determining module 601, is specifically used for:
For each target account, according to the buffering record list of the target account, determine that the target account is corresponding
Buffer compensation amount;
The buffer compensation amount is determined as to the grouping influence factor of the target account.
Optionally, the account grouping module 602, is specifically used for:
Using default clustering algorithm according to the grouping influence factor of each target account, to the multiple target account
Family carries out clustering processing, determines multiple buffering account aggregations.
Optionally, the sharp account grouping module 602, is further specifically used for:
Using K-means algorithm according to the grouping influence factor of each target account, to the multiple target account
Family carries out clustering processing, determines multiple buffering account aggregations.
Optionally, the account grouping module 602, is further specifically used for:
In the multiple target account, K target account is chosen respectively as the cluster centre of K classification, wherein K
For the number for obtained classification of classifying;
The grouping influence factor based on each target account, according to unselected multiple target accounts with
Unselected multiple target accounts are divided into and have been chosen by the buffering degrees of offset for K target account being selected
Where the K target account taken in account clustering cluster, K account clustering cluster is obtained;
The K account clustering cluster is determined as multiple buffering account aggregations.
Optionally, the needle buffering mends account module 603, is specifically used for:
For each target account in each buffering account aggregation, from the buffering record list of the target account
In, buffering record is successively fished for according to the sequencing of each buffering record according to preset quantity, wherein the sequencing is base
Determining, the book keeping operation time phase of the identical buffering record of service request Transaction Identifier is ranked up to buffering record in the book keeping operation time
Together;
Operation is fished for for each buffering record, according to the size relation for actually fishing for quantity and the preset quantity,
Target buffer record is chosen in this described buffering fished for record;
In the corresponding benefit account processing affairs of the buffering account aggregation, it is based respectively on the mesh of each target account
Mark buffering record carries out batch to multiple target accounts that the buffering account aggregation includes and mends account operation.
Optionally, as shown in fig. 7, described device further include:
Accounting module 604 is buffered, for being directed to each target account, the book keeping operation of the target account is asked according to operation system
It asks, generates initial buffer record list, wherein the initial buffer record list includes: book keeping operation time field and service request
Transaction Identifier field;
Record ordering module 605 is used for according to the book keeping operation time field and the service request Transaction Identifier field, right
Multiple bufferings record in the initial buffer record list is ranked up;Initial buffer record list after sequence is determined as
The buffering record list of the target account.
Buffering in this specification one or more embodiment mends account device, firstly, the buffering based on multiple target accounts
Record list determines the grouping influence factor of each target account;Then, according to the grouping influence factor of each target account, to more
A target account is grouped processing, determines multiple buffering account aggregations;Finally, it is directed to each buffering account aggregation, it is slow at this
It rushes in the corresponding benefit account processing affairs of account aggregation, batch is carried out to multiple target accounts that buffering account aggregation includes and mends account behaviour
Make, and updates the account balance of corresponding target account.By being targetedly grouped to multiple target accounts, account will be mended
The comparable target account of attribute information is divided into one group, and buffering between multiple target accounts because of same group is avoided to mend account progress phase
Difference is bigger, and influences the buffering benefit account timeliness that buffering mends the fast target account of account progress, improves target account from the root
Buffering mend account timeliness.
It is mended it should be noted that being mended in this specification about buffering in the embodiment and this specification of account device about buffering
Based on the same inventive concept, therefore the specific implementation of the embodiment may refer to aforementioned corresponding buffering and mends the embodiment of account method
The implementation of account method, overlaps will not be repeated.
Further, corresponding above-mentioned Fig. 1 is to method shown in fig. 5, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of buffering benefit account equipment, which is used to execute above-mentioned buffering and mends account method, such as Fig. 8 institute
Show.
Buffering, which mends account equipment, to generate bigger difference because configuration or performance are different, may include one or one with
On processor 801 and memory 802, can store one or more storage application programs or number in memory 802
According to.Wherein, memory 802 can be of short duration storage or persistent storage.The application program for being stored in memory 802 may include one
A or more than one module (diagram is not shown), each module may include the series of computation machine mended in account equipment to buffering can
It executes instruction.Further, processor 801 can be set to communicate with memory 802, mends to execute in account equipment in buffering and deposit
Series of computation machine executable instruction in reservoir 802.It can also include one or more power supplys that buffering, which mends account equipment,
803, one or more wired or wireless network interfaces 804, one or more input/output interfaces 805, one or
More than one keyboard 806 etc..
In a specific embodiment, it includes memory and one or more journey that buffering, which mends account equipment,
Sequence, perhaps more than one program is stored in memory and one or more than one program may include one for one of them
Or more than one module, and each module may include the series of computation machine executable instruction mended in account equipment to buffering, and
Be configured to be executed this by one or more than one processor or more than one program include by carry out it is following based on
Calculation machine executable instruction:
Buffering record list based on multiple target accounts determines the grouping influence factor of each target account;
According to the grouping influence factor of each target account, processing is grouped to the multiple target account,
Determine multiple buffering account aggregations;
For each buffering account aggregation, in the corresponding benefit account processing affairs of the buffering account aggregation, to described
Multiple target accounts that buffering account aggregation includes carry out batch and mend account operation, and update more than the account of corresponding target account
Volume.
In this specification one or more embodiment, by being targetedly grouped to multiple target accounts, it will mend
The comparable target account of account attribute information is divided into one group, and buffering between multiple target accounts because of same group is avoided to mend account progress
It differs bigger, and influences the buffering benefit account timeliness that buffering mends the fast target account of account progress, improve target account from the root
The buffering at family mends account timeliness.
Optionally, computer executable instructions when executed, the buffering record list based on multiple target accounts,
Determine the grouping influence factor of each target account, comprising:
For each target account, according to the buffering record list of the target account, determine that the target account is corresponding
Buffer compensation amount;
The buffer compensation amount is determined as to the grouping influence factor of the target account.
Optionally, computer executable instructions when executed, the grouping shadow according to each target account
The factor of sound, is grouped processing to the multiple target account, determines multiple buffering account aggregations, comprising:
Using default clustering algorithm according to the grouping influence factor of each target account, to the multiple target account
Family carries out clustering processing, determines multiple buffering account aggregations.
Optionally, computer executable instructions are when executed, described to utilize default clustering algorithm according to each target
The grouping influence factor of account carries out clustering processing to the multiple target account, determines multiple buffering account aggregations, wraps
It includes:
Using K-means algorithm according to the grouping influence factor of each target account, to the multiple target account
Family carries out clustering processing, determines multiple buffering account aggregations.
Optionally, computer executable instructions are when executed, described to utilize K-means algorithm according to each target account
The grouping influence factor at family carries out clustering processing to the multiple target account, determines multiple buffering account aggregations, wraps
It includes:
In the multiple target account, K target account is chosen respectively as the cluster centre of K classification, wherein K
For the number for obtained classification of classifying;
The grouping influence factor based on each target account, according to unselected multiple target accounts with
Unselected multiple target accounts are divided into and have been chosen by the buffering degrees of offset for K target account being selected
Where the K target account taken in account clustering cluster, K account clustering cluster is obtained;
The K account clustering cluster is determined as multiple buffering account aggregations.
Optionally, computer executable instructions are when executed, described to be directed to each buffering account aggregation, slow at this
It rushes in the corresponding benefit account processing affairs of account aggregation, the multiple target accounts for including to the buffering account aggregation carry out batch benefit
Account operation, comprising:
For each target account in each buffering account aggregation, from the buffering record list of the target account
In, buffering record is successively fished for according to the sequencing of each buffering record according to preset quantity, wherein the sequencing is base
Determining, the book keeping operation time phase of the identical buffering record of service request Transaction Identifier is ranked up to buffering record in the book keeping operation time
Together;
Operation is fished for for each buffering record, according to the size relation for actually fishing for quantity and the preset quantity,
Target buffer record is chosen in this described buffering fished for record;
In the corresponding benefit account processing affairs of the buffering account aggregation, it is based respectively on the mesh of each target account
Mark buffering record carries out batch to multiple target accounts that the buffering account aggregation includes and mends account operation.
Optionally, computer executable instructions are when executed, successive being recorded according to preset quantity according to each buffering
Sequence is successively fished for before buffering record, further includes:
Initial buffer record is generated according to operation system to the Accounting Request of the target account for each target account
List, wherein the initial buffer record list includes: book keeping operation time field and service request Transaction Identifier field;
According to the book keeping operation time field and the service request Transaction Identifier field, to the initial buffer record list
In multiple bufferings record be ranked up;
Initial buffer record list after sequence is determined as to the buffering record list of the target account.
Buffering in this specification one or more embodiment mends account equipment, firstly, the buffering based on multiple target accounts
Record list determines the grouping influence factor of each target account;Then, according to the grouping influence factor of each target account, to more
A target account is grouped processing, determines multiple buffering account aggregations;Finally, it is directed to each buffering account aggregation, it is slow at this
It rushes in the corresponding benefit account processing affairs of account aggregation, batch is carried out to multiple target accounts that buffering account aggregation includes and mends account behaviour
Make, and updates the account balance of corresponding target account.By being targetedly grouped to multiple target accounts, account will be mended
The comparable target account of attribute information is divided into one group, and buffering between multiple target accounts because of same group is avoided to mend account progress phase
Difference is bigger, and influences the buffering benefit account timeliness that buffering mends the fast target account of account progress, improves target account from the root
Buffering mend account timeliness.
It is mended it should be noted that being mended in this specification about buffering in the embodiment and this specification of account equipment about buffering
Based on the same inventive concept, therefore the specific implementation of the embodiment may refer to aforementioned corresponding buffering and mends the embodiment of account method
The implementation of account method, overlaps will not be repeated.
Further, corresponding above-mentioned Fig. 1 is to method shown in fig. 5, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of storage medium,, should in a kind of specific embodiment for storing computer executable instructions
Storage medium can be USB flash disk, CD, hard disk etc., and the computer executable instructions of storage medium storage are being executed by processor
When, it is able to achieve following below scheme:
Buffering record list based on multiple target accounts determines the grouping influence factor of each target account;
According to the grouping influence factor of each target account, processing is grouped to the multiple target account,
Determine multiple buffering account aggregations;
For each buffering account aggregation, in the corresponding benefit account processing affairs of the buffering account aggregation, to described
Multiple target accounts that buffering account aggregation includes carry out batch and mend account operation, and update more than the account of corresponding target account
Volume.
In this specification one or more embodiment, by being targetedly grouped to multiple target accounts, it will mend
The comparable target account of account attribute information is divided into one group, and buffering between multiple target accounts because of same group is avoided to mend account progress
It differs bigger, and influences the buffering benefit account timeliness that buffering mends the fast target account of account progress, improve target account from the root
The buffering at family mends account timeliness.
Optionally, the computer executable instructions of storage medium storage are described based on multiple when being executed by processor
The buffering record list of target account determines the grouping influence factor of each target account, comprising:
For each target account, according to the buffering record list of the target account, determine that the target account is corresponding
Buffer compensation amount;
The buffer compensation amount is determined as to the grouping influence factor of the target account.
Optionally, the computer executable instructions of storage medium storage are described according to each institute when being executed by processor
The grouping influence factor for stating target account, is grouped processing to the multiple target account, determines multiple buffering accounts
Set, comprising:
Using default clustering algorithm according to the grouping influence factor of each target account, to the multiple target account
Family carries out clustering processing, determines multiple buffering account aggregations.
Optionally, the computer executable instructions of storage medium storage are described using default when being executed by processor
Clustering algorithm carries out clustering processing to the multiple target account according to the grouping influence factor of each target account,
Determine multiple buffering account aggregations, comprising:
Using K-means algorithm according to the grouping influence factor of each target account, to the multiple target account
Family carries out clustering processing, determines multiple buffering account aggregations.
Optionally, the computer executable instructions of storage medium storage are described to utilize K- when being executed by processor
Means algorithm carries out clustering processing to the multiple target account according to the grouping influence factor of each target account,
Determine multiple buffering account aggregations, comprising:
In the multiple target account, K target account is chosen respectively as the cluster centre of K classification, wherein K
For the number for obtained classification of classifying;
The grouping influence factor based on each target account, according to unselected multiple target accounts with
Unselected multiple target accounts are divided into and have been chosen by the buffering degrees of offset for K target account being selected
Where the K target account taken in account clustering cluster, K account clustering cluster is obtained;
The K account clustering cluster is determined as multiple buffering account aggregations.
Optionally, the computer executable instructions of storage medium storage are described for each when being executed by processor
The buffering account aggregation handles in affairs in the corresponding benefit account of the buffering account aggregation, includes to the buffering account aggregation
Multiple target accounts carry out batch mend account operation, comprising:
For each target account in each buffering account aggregation, from the buffering record list of the target account
In, buffering record is successively fished for according to the sequencing of each buffering record according to preset quantity, wherein the sequencing is base
Determining, the book keeping operation time phase of the identical buffering record of service request Transaction Identifier is ranked up to buffering record in the book keeping operation time
Together;
Operation is fished for for each buffering record, according to the size relation for actually fishing for quantity and the preset quantity,
Target buffer record is chosen in this described buffering fished for record;
In the corresponding benefit account processing affairs of the buffering account aggregation, it is based respectively on the mesh of each target account
Mark buffering record carries out batch to multiple target accounts that the buffering account aggregation includes and mends account operation.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, according to present count
Amount is successively fished for according to the sequencing of each buffering record before buffering record, further includes:
Initial buffer record is generated according to operation system to the Accounting Request of the target account for each target account
List, wherein the initial buffer record list includes: book keeping operation time field and service request Transaction Identifier field;
According to the book keeping operation time field and the service request Transaction Identifier field, to the initial buffer record list
In multiple bufferings record be ranked up;
Initial buffer record list after sequence is determined as to the buffering record list of the target account.
The computer executable instructions of storage medium storage in this specification one or more embodiment are by processor
When execution, firstly, the buffering record list based on multiple target accounts, determines the grouping influence factor of each target account;Then,
According to the grouping influence factor of each target account, processing is grouped to multiple target accounts, determines multiple buffering account aggregations;
Finally, each buffering account aggregation is directed to, in the corresponding benefit account processing affairs of the buffering account aggregation, to buffering account aggregation
The multiple target accounts for including carry out batch and mend account operation, and update the account balance of corresponding target account.By being directed to
Property multiple target accounts are grouped, by mend the comparable target account of account attribute information be divided into one group, avoid because same
It is bigger to mend account progress difference for buffering between multiple target accounts of group, and influences buffering and mend the slow of the fast target account of account progress
Account timeliness is mended in punching, and the buffering for improving target account from the root mends account timeliness.
It should be noted that mending account side about buffering about in the embodiment of storage medium and this specification in this specification
Based on the same inventive concept, therefore the specific implementation of the embodiment may refer to aforementioned corresponding buffering and mends account side the embodiment of method
The implementation of method, overlaps will not be repeated.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HD Cal、
JHDL(Java Hardware Description Language)、Lava、Lola、My HDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when specification one or more.
It should be understood by those skilled in the art that, the embodiment of this specification one or more can provide for method, system,
Or computer program product.Therefore, this specification one or more can be used complete hardware embodiment, complete software embodiment,
Or the form of embodiment combining software and hardware aspects.Moreover, this specification one or more can be used in one or more
It wherein include computer-usable storage medium (the including but not limited to magnetic disk storage, CD- of computer usable program code
ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more is referring to (being according to method, the equipment of this specification one or more embodiment
System) and the flowchart and/or the block diagram of computer program product describe.It should be understood that can be realized by computer program instructions
The process and/or box in each flow and/or block and flowchart and/or the block diagram in flowchart and/or the block diagram
Combination.Can provide these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other can compile
The processor of journey data processing equipment is to generate a machine, so that passing through computer or other programmable data processing devices
The instruction that processor executes generates for realizing in one box of one or more flows of the flowchart and/or block diagram or more
The device for the function of being specified in a box.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification one or more can provide as method, system or meter
Calculation machine program product.Therefore, complete hardware embodiment, complete software embodiment or combination can be used in this specification one or more
The form of embodiment in terms of software and hardware.It is wherein wrapped moreover, this specification one or more can be used in one or more
Computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optics containing computer usable program code
Memory etc.) on the form of computer program product implemented.
This specification one or more can be in the general context of computer-executable instructions executed by a computer
Description, such as program module.Generally, program module includes the example for executing particular task or realizing particular abstract data type
Journey, programs, objects, component, data structure etc..This specification one or more can also be practiced in a distributed computing environment
It is a, in these distributed computing environments, by executing task by the connected remote processing devices of communication network.Dividing
Cloth calculates in environment, and program module can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiment of this specification one or more, be not limited to this specification one or
It is multiple.To those skilled in the art, this specification one or more can have various modifications and variations.It is all in this explanation
Any modification, equivalent replacement, improvement and so within book one or more spirit and principle, should be included in this specification
Within one or more scopes of the claims.