CN108256839A - Numerical value resource backing method, device, server and storage medium - Google Patents

Numerical value resource backing method, device, server and storage medium Download PDF

Info

Publication number
CN108256839A
CN108256839A CN201710629161.0A CN201710629161A CN108256839A CN 108256839 A CN108256839 A CN 108256839A CN 201710629161 A CN201710629161 A CN 201710629161A CN 108256839 A CN108256839 A CN 108256839A
Authority
CN
China
Prior art keywords
numerical value
value resource
batch
batch number
receipt
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
CN201710629161.0A
Other languages
Chinese (zh)
Other versions
CN108256839B (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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710629161.0A priority Critical patent/CN108256839B/en
Priority to PCT/CN2018/082480 priority patent/WO2019019697A1/en
Publication of CN108256839A publication Critical patent/CN108256839A/en
Application granted granted Critical
Publication of CN108256839B publication Critical patent/CN108256839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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/085Payment architectures involving remote charge determination or related payment systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of numerical value resource backing method, device, server and storage mediums.The above method, including:Receive numerical value resource rollback requests;The batch number to retract is obtained according to the numerical value resource rollback requests;The batch number is parsed, is determined and the matched receipt number of the batch number in the database;Numerical value resource is retracted from the first account to the second account according to the receipt number.Above-mentioned numerical value resource backing method, device, server and storage medium, can simultaneously retract more stroke count value resources by batch, reduce Backoff time, effectively improve numerical value resource rollback efficiency.

Description

Numerical value resource backing method, device, server and storage medium
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of numerical value resource backing method, device, server And storage medium.
Background technology
Some numerical value resources are provided by bank, and user can get numerical value resource in strange land, for example, user can be different Gold of surviving is got on ground, and after existence gold has referred to the date of insurance contract agreement, the amount of money of contract engagement, side are pressed by insurance company The amount of money that formula, time limit pay to declaration form beneficiary.Since the numerical value resource that strange land is got is shifted by strange land mechanism, and Strange land mechanism is usually not belonging to the mechanism belonging to the company linked up with numerical value resource, and therefore, only record has numerical value in the database The receipt number of resource transfers.It, can only be one when numerical value resource gets generation mistake, and the numerical value got resource is caused to need to retract One according to receipt number retract.Often retract a stroke count value resource, the business such as is required for return after disk next stroke count that can retract It is worth resource.During the more than ten stroke count value resource that if desired retracts, a large amount of time need to be wasted, numerical value resource rollback efficiency is low.
Invention content
The embodiment of the present invention provides a kind of numerical value resource backing method, device, server and storage medium, can be by batch Retract more stroke count value resources simultaneously, reduces Backoff time, effectively improves numerical value resource rollback efficiency.
A kind of numerical value resource backing method, including:
Receive numerical value resource rollback requests;
The batch number to retract is obtained according to the numerical value resource rollback requests;
The batch number is parsed, is determined and the matched receipt number of the batch number in the database;
Numerical value resource is retracted from the first account to the second account according to the receipt number.
The parsing batch number in one of the embodiments, determines to match with the batch number in the database Receipt number, including:
The batch number is parsed, obtains analysis result;
Corresponding with batch number database is inquired according to the analysis result, and is obtained in the database and institute State the corresponding tables of data of batch number;
It is determined and the matched receipt number of the batch number from the tables of data.
The parsing batch number in one of the embodiments, obtains analysis result, including:
The batch number is parsed, obtains the industry number and sequence number of the batch number;
It is described that database corresponding with the batch number is inquired according to the analysis result, and obtain in the database Tables of data corresponding with the batch number, including:
Inquiry database corresponding with the industry number;
Read the corresponding sequence number value section of each tables of data in the database;
The sequence number is compared, and obtain residing for sequence number one by one with each sequence number value section read The corresponding tables of data in sequence number value section.
The tables of data includes numerical value resource actual transfer table in one of the embodiments,;
It is described that numerical value resource is retracted from the first account to the second account according to the receipt number, including:
The first transfer with the matched receipt number of the batch number is obtained in the numerical value resource actual transfer table to record;
Determine the transfering state of each receipt number one by one according to the described first transfer record;
It is the corresponding total resources amount of the receipt number shifted to count transfering state;
From the extraction of the first account and the matched numerical value resource of the total resources amount, and retract to the second account.
The tables of data further includes numerical value resource planning transfer table in one of the embodiments,;
It is described from the first account extraction with the matched numerical value resource of the total resources amount, and retract to the second account it Afterwards, the method further includes:
Generation is the receipt number that has shifted corresponding time with the transfering state in the numerical value resource actual transfer table Move back record;
The second transfer with the matched receipt number of the batch number is obtained in the numerical value resource planning transfer table to record;
It is invalid by the effective marker position for recording corresponding receipt number with the rollback in the described second transfer record, and The corresponding record to be transferred of generation, sky is set to by the receipt number of the record to be transferred.
A kind of numerical value resource rollback device, including:
Receiving module, for receiving numerical value resource rollback requests;
Batch number acquisition module, for obtaining the batch number to retract according to the numerical value resource rollback requests;
Determining module for parsing the batch number, determines and the matched receipt number of the batch number in the database;
Rollback module, for numerical value resource to be retracted from the first account to the second account according to the receipt number.
The determining module in one of the embodiments, including:
Resolution unit for parsing the batch number, obtains analysis result;
Query unit, for inquiring database corresponding with the batch number according to the analysis result, and in the number According to obtaining tables of data corresponding with the batch number in library;
Determination unit, for being determined and the matched receipt number of the batch number from the tables of data;
The resolution unit is additionally operable to parse the batch number, obtains the industry number and sequence number of the batch number;
The query unit, including:
Data base querying subelement, for inquiring database corresponding with the industry number;
Reading subunit, for reading the corresponding sequence number value section of each tables of data in the database;
Comparison subunit, for the sequence number to be compared one by one with each sequence number value section read, and Obtain the corresponding tables of data in sequence number value section residing for sequence number.
The tables of data includes numerical value resource actual transfer table in one of the embodiments, and numerical value resource planning is shifted Table;
The rollback module, including:
Acquiring unit is recorded, for being obtained and the matched receipt of the batch number in the numerical value resource actual transfer table Number first transfer record;
Status determining unit, for determining the transfering state of each receipt number one by one according to the described first transfer record;
Statistic unit is the corresponding total resources amount of receipt number that has shifted for counting transfering state;
Rollback unit for from the extraction of the first account and the matched numerical value resource of the total resources amount, and retracts to the Two accounts;
Described device further includes:
First generation module, for being generated in the numerical value resource actual transfer table with the transfering state to have shifted Receipt number it is corresponding retract record;
Acquisition module is recorded, for being obtained and the matched receipt of the batch number in the numerical value resource planning transfer table Number second transfer record;
Second generation module, for the effective of corresponding receipt number will to be recorded with the rollback in the described second transfer record Mark position is invalid, and generates corresponding record to be transferred, and the receipt number of the record to be transferred is set to sky.
A kind of server, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, the processor realize method as described above when performing described program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Method as described above is realized during row.
Above-mentioned numerical value resource backing method, device, server and storage medium receive numerical value resource rollback requests, according to Numerical value resource rollback requests obtain retract batch number, and determine with the matched each receipt number of batch number, according to batch number Matched each receipt number retracts numerical value resource to the second account from the first account, and can simultaneously retract more stroke count values by batch Resource reduces Backoff time, effectively improves numerical value resource rollback efficiency.
Description of the drawings
Fig. 1 is the block diagram of server in one embodiment;
Fig. 2 is the flow diagram of numerical value resource backing method in one embodiment;
Fig. 3 is the flow diagram determined in one embodiment with the matched receipt number of batch number;
Fig. 4 is inquiry database corresponding with batch number and the flow diagram of tables of data;
Fig. 5 is the flow diagram that numerical value resource rollback is carried out in one embodiment;
Fig. 6 is to record the flow diagram for changing numerical value resource planning transfer table data according to retracting in one embodiment;
Fig. 7 is the block diagram of numerical value resource rollback device in one embodiment;
Fig. 8 is the block diagram of determining module in one embodiment;
Fig. 9 is the block diagram of query unit in one embodiment;
Figure 10 is the block diagram of rollback module in one embodiment;
Figure 11 is the block diagram of numerical value resource rollback device in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes It says, without departing from the scope of the invention, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.First client and the second client both clients, but it is not same visitor Family end.
Fig. 1 is the block diagram of server in one embodiment.As shown in Figure 1, the server includes connecting by system bus Processor, non-volatile memory medium, built-in storage and network interface.Wherein, the non-volatile memory medium of the server It is stored with operating system, database and computer executable instructions.Tables of data is stored in database, tables of data is stored with each The information such as the record of numerical value resource transfers of batch.The computer executable instructions are used to implement what is provided in the embodiment of the present application Suitable for a kind of numerical value resource backing method of server.The processor of the server props up for providing calculating and control ability Support the operation of entire server.The built-in storage of the server can for the operating system in non-volatile memory medium and computer Execute instruction provides the running environment of cache.The network interface of the server for according to this with other computer equipments into Row communication, for example receive numerical value resource rollback requests etc..Server can use independent server either multiple server groups Into server cluster realize.It will be understood by those skilled in the art that the structure shown in Fig. 1, only with the application side The block diagram of the relevant part-structure of case, does not form the restriction for the server being applied thereon to application scheme, specifically Server can include either combining certain components or with different components than components more or fewer shown in figure Arrangement.
As shown in Fig. 2, in one embodiment, a kind of numerical value resource backing method is provided, is included the following steps:
Step S210 receives numerical value resource rollback requests.
When user needs logarithm resource to be retracted, numerical value resource rollback operation, numerical value money can be carried out by terminal Source rollback refers to the state that numerical value resource is made to return to before transfer.When numerical value resource transfers when the error occurs, such as numerical value money Source transfer amount error etc., user can by the numerical value resource rollback page of terminal trigger numerical value resource back return button into Line number value resource rollback operation or the mechanism transmission information progress numerical value resource rollback operation to progress numerical value resource transfers, Terminal sends numerical value resource rollback requests according to the numerical value resource rollback operation received to server.
Step S220 obtains the batch number to retract according to numerical value resource rollback requests.
In the present embodiment, there is corresponding batch number when numerical value resource is shifted, belong to the numerical value of same batch number Resource can be performed in multiple times transfer, may include one or more receipts number under a batch number, belong to each of same batch number Receipt number can correspond to the numerical value resource shifted in different time points under the batch number respectively.What server receiving terminal was sent Numerical value resource rollback requests can obtain the corresponding batch of numerical value resource to retract from numerical value resource rollback requests Number.
Step S230 parses batch number, determines and the matched receipt number of batch number in the database.
In one embodiment, batch number can be generated according to certain setting condition, and there is agreement in setting condition criticizes Meaning in the digit and batch number of secondary number representated by every character, wherein, character may include number, letter or symbol etc.. 16 digits are total up to for example, imposing a condition and can arrange batch number, wherein, the first place of batch number is letter, for representing that numerical value provides The corresponding type in source, such as the types such as life insurance, endowment insurance;The second of batch number to the 5th for number, for representing relevant Industry number, such as Shenzhen City, Guangdong Province A departments, Guangzhou, Guangdong B departments etc.;Latter 11 of batch number are number, are used for Represent corresponding sequence of the batch number etc., but not limited to this, batch number can be other composition forms.Server is to batch number It is parsed, batch number is split according to imposing a condition, can corresponding data first be inquired according to the batch number after segmentation Library, and corresponding tables of data is found in the database, then determined and the matched each receipt of the batch number from tables of data Number, may be one or more with the matched receipt number of batch number, the number shifted by numerical value resource under the batch number is determined It is fixed.
Step S240 retracts numerical value resource to the second account from the first account according to receipt number.
Server determine with after the matched all receipts number of batch number, can will numerical value resource one corresponding with each receipt number Secondary property retracts from the first account to the second account, wherein, the first account refers to receiving numerical value resource during numerical value resource transfers Object, the second account is to perform the object of numerical value resource transfers operation, for example, numerical value resource is transferred to use from insurance company's account The personal account at family, then when being retracted, numerical value resource retracts from the personal account of user to insurance company's account, wherein, it uses The personal account at family is the first account, and insurance company's account is the second account.
In one embodiment, user also can only retract to the numerical value resource of single receipt number in some batch number, After server receives numerical value resource rollback requests, batch number and receipt number, server can be obtained according to numerical value resource rollback requests The correspondence numerical value resource transfers record stored in the tables of data of database is inquired according to the batch number and receipt number, and according to this Numerical value resource transfers record retracts numerical value resource to the second account from the first account.
Above-mentioned numerical value resource backing method receives numerical value resource rollback requests, is obtained back according to numerical value resource rollback requests The batch number moved back, and determine with the matched each receipt number of batch number, according to the matched each receipt number of batch number by numerical value Resource retracts from the first account to the second account, and can simultaneously retract more stroke count value resources by batch, reduces Backoff time, effectively Improve numerical value resource rollback efficiency.
As shown in figure 3, in one embodiment, step S230 parsing batch numbers determine and batch number in the database The receipt number matched, includes the following steps:
Step S302 parses batch number, obtains analysis result.
Server can parse batch number, and batch number is split according to imposing a condition, obtains wrapping in batch number The industry number and sequence number contained, and searched and the matched receipt number of batch number according to industry number and sequence number.For example, batch Number for " E260100000227727 ", server parses the batch number, according to impose a condition divide after can respectively obtain " E ", " 2601 " and " 0000227727 ", wherein, " E " represents that the corresponding type of numerical value resource is life insurance;Second to the 5th Number 2601 represents relevant industry number, represents the life insurance department of Shenzhen City, Guangdong Province;11 bit digitals are sequence number afterwards.
Step S304 inquires corresponding with batch number database according to analysis result, and obtains in the database and batch Number corresponding tables of data.
Server can first inquire corresponding database according to the batch number after segmentation, and find in the database pair The tables of data answered, then determined and the matched each receipt number of the batch number from tables of data.
As shown in figure 4, in one embodiment, step S304 inquires data corresponding with batch number according to analysis result Library, and tables of data corresponding with batch number is obtained in the database, include the following steps:
Step S402 inquires database corresponding with industry number.
In the present embodiment, it may include have multiple databases, each database can correspond to one or more departments, number respectively According to the transinformation for the numerical value resource that relevant departments are stored in library.Server can be compiled according to the database pre-established and department Number correspondence, inquire corresponding with the industry number included in batch number database.
Step S404, the corresponding sequence number value section of each tables of data in reading database.
Tables of data can be stored in each database, every tables of data can correspond to different sequence number value sections respectively, It is stored in tables of data and is recorded with the numerical value resource transfers of the batch number positioned at corresponding sequence number value section.For example, A data The corresponding sequence number value section of a tables of data in library is [0,100000], then includes sequence number between 0 to 100000 The numerical value resource transfers record of batch number is stored in a tables of data.
Step S406 is compared sequence number, and obtain sequence number with each sequence number value section read one by one The residing corresponding tables of data in sequence number value section.
After server inquires database corresponding with the industry number included in batch number, the corresponding database can be read In the corresponding sequence number value section of each tables of data, and the sequence number that batch number is included and each sequence number value for reading Section is compared one by one, the sequence number value section residing for the sequence number is determined, so as to the sequence number value for obtaining and determining The corresponding tables of data in section is stored in the tables of data and the numerical value resource transfers of the matched all receipts number of batch number is remembered Record.For example, the Serial No. " 00000227727 " included in batch number " E260100000227727 ", falls into sequence number value Section [200000,300000] can be then got in the tables of data from sequence number value section for [200000,300000] with being somebody's turn to do The matched all receipts number of batch number " E260100000227727 " and relevant numerical value resource transfers record.
Step S306 is determined and the matched receipt number of batch number from tables of data.
In the present embodiment, batch number can be parsed, corresponding number is found according to the industry number that parsing obtains According to library, tables of data corresponding with batch number in the database is determined further according to sequence number, and obtain in corresponding tables of data with The matched receipt number of batch number can improve the inquiry velocity of receipt number, so as to effectively improve numerical value resource rollback efficiency.
As shown in figure 5, in one embodiment, step S240 according to receipt number by numerical value resource from the first account retract to Second account, includes the following steps:
Step S502 obtains the first transfer with the matched receipt number of batch number in numerical value resource actual transfer table and remembers Record.
Tables of data in database may include numerical value resource planning transfer table and numerical value resource actual transfer table, wherein, number The record to be transferred of numerical value resource and corresponding transinformation, numerical value resource actual transfer are stored in value resource planning transfer table The actual transfer information of numerical value resource is stored in table.For example, when insurance company needs to shift numerical value to the personal account of user During resource, the record to be transferred of numerical value resource can be first generated in numerical value resource planning transfer table, server is to be transferred according to this Record carries out numerical value resource transfers, the batch number of assignment transfer, and generates corresponding reality in numerical value resource actual transfer table Transfer records, and the numerical value resource under a batch number can be performed in multiple times transfer, can distribute and carry out numerical value resource transfers every time Unique receipt number after numerical value resource transfers success each time, can update corresponding transfer in numerical value resource actual transfer table State.
The first transfer that server can obtain with the matched receipt number of batch number in numerical value resource actual transfer table records, Wherein, the first transfer record storage has the actual transfer information of each receipt number under the batch number, it may include batch number, receipt number, Transfering state shifts the information such as amount, the object for receiving numerical value resource.First turn obtained from numerical value resource actual transfer table Moving record can be as shown in table 1.
Table 1
Batch number Receipt number Shift amount Receive account Transfering state
E260100000227727 123456 1000 X It has shifted
E260100000227727 234567 1500 X It has shifted
E260100000227727 345678 1000 X It has shifted
E260100000227727 456789 1000 X It does not shift
Wherein, when server shifts the numerical value resource of the batch, the batch number being assigned to is " E260100000227727 ", and be divided into 4 times and shifted, each numerical value resource transfers can correspond to unique receipt respectively Number, as shown in Table 1, the 3 times numerical value resource of the batch has shifted, and the 4th numerical value resource does not shift.
Step S504 determines the transfering state of each receipt number according to the first transfer record one by one.
After server obtains the first transfer record with the matched receipt number of batch number in numerical value resource actual transfer table, It can determine that the transfering state of each receipt number in the first transfer record does not still shift to have shifted, and count transfering state as The corresponding total resources amount of receipt number of transfer.For example, as shown in table 1, wherein, it is " E260100000227727 " with batch number Matched receipt number is 4, wherein the transfering state of preceding 3 receipts number is has shifted, the transfering state of the 4th receipt number is not Transfer, then it is 3500 that can count the total resources amount that transfering state is the receipt number shifted.
Step S506, statistics transfering state is the corresponding total resources amount of the receipt number shifted.
Step S508 from the extraction of the first account and the matched numerical value resource of total resources amount, and retracts to the second account.
Server can extract the matched numerical value resource of total resources amount with counting from the first account, and retract to the second account Family carries out the numerical value resource of multiple receipts number under same batch unified rollback.
In the present embodiment, first turn with the matched receipt number of batch number can be obtained from numerical value resource actual transfer table Record is moved, and unified rollback carries out the numerical value resource of multiple receipts number under same batch according to the first transfer record, is reduced Backoff time effectively improves numerical value resource rollback efficiency.
As shown in fig. 6, it in one embodiment, is extracted and the matched number of total resources amount from the first account in step S508 It is worth resource, and retracts to the second account, it is further comprising the steps of:
Step S602, in numerical value resource actual transfer table generation be the receipt number that has shifted corresponding time with transfering state Move back record.
The numerical value resource that server extracts the first account simultaneously retracts to after the second account, when receiving rollback successful information When, rollback record can be generated in numerical value resource actual transfer table, rollback record has with the receipt number for carrying out rollback operation One-to-one relationship, retracting may include the letters such as batch number, receipt number, rollback amount, the account to retract and Backoff time in recording Breath.Server retracts according to the first of table 1 the transfer record, and generation rollback record can in numerical value resource actual transfer table As shown in table 2.
Table 2
Batch number Receipt number Rollback amount Rollback account Backoff time
E260100000227727 123456 1000 Y 2017-7-1
E260100000227727 234567 1500 Y 2017-7-1
E260100000227727 345678 1000 Y 2017-7-1
Step S604 obtains the second transfer with the matched receipt number of batch number in numerical value resource planning transfer table and remembers Record.
The second transfer that server can obtain with the matched receipt number of batch number in numerical value resource planning table records, In, the second transfer record storage has answers transinformation with the batch number relevant numerical value resource, it may include batch number, receipt Number, transfer amount, effective marker position etc., wherein, effective marker position is used to represent whether the transfer record of the receipt number effective, if Effectively to illustrate to have shifted, without being shifted, if invalid, then illustrate to be shifted.In numerical value resource planning table The the second transfer record obtained can be as shown in table 3.
Table 3
Batch number Receipt number Amount should be shifted Receive account Effective marker position
E260100000227727 123456 1200 X 1
E260100000227727 234567 1500 X 1
E260100000227727 345678 1200 X 1
E260100000227727 456789 1000 X 0
Wherein, effective marker position represents effective for 1, and effective marker position represents invalid for 0, but not limited to this, it can also be used Other characters are indicated.By in table 3 it is found that receipt number under batch number " E260100000227727 " for " 123456 " and The amount that should shift of " 345678 " is 1200, and it is 1000 that amount is shifted in table 1, illustrates the transfer amount hair of numerical value resource Raw mistake, user can carry out numerical value resource rollback operation by terminal.
Step S608, by second transfer record in retract record corresponding receipt number effective marker position be it is invalid, And corresponding record to be transferred is generated, the receipt number of record to be transferred is set to sky.
Server can be recorded according to the rollback generated in numerical value resource actual transfer table, by phase in the second transfer record The effective marker position of receivable evidence number is invalid, for example, according to the rollback of table 2 record, by receipt number in table 3 for " 123456 ", The effective marker position of " 234567 ", " 345678 " is invalid.Server can generate corresponding record to be transferred simultaneously, to be transferred The information such as batch number, amount to be transferred can only be included in record, the batch number in record to be transferred can be set to sky, wherein, it treats Transfer amount can be that effective marker position is set to invalid total resources amount in the second transfer record, for example, generation is corresponding with table 3 Record to be transferred amount to be transferred for 4900, be the receipt number to retract be " 123456 ", " 234567 ", " 345678 " and the receipt number not shifted should shift the sum of amount for " 456789 ".
When server carries out numerical value resource transfers according to record to be transferred again, can will be distributed in numerical value resource planning table Batch number insert in record to be transferred, and the information such as effective marker position for updating receipt number, receipt number simultaneously.
In the present embodiment, can the data in numerical value resource planning table be returned to by numerical value resource transfers according to the record that retracts Before, it ensure that the consistency of data, conveniently re-start numerical value resource transfers, reduce the mistake that factor value resource rollback generates Accidentally, numerical value resource rollback efficiency is effectively improved.
As shown in fig. 7, in one embodiment, provide a kind of numerical value resource rollback device 700, including receiving module 710, Batch number acquisition module 720, determining module 730 and rollback module 740.
Receiving module 710, for receiving numerical value resource rollback requests.
Batch number acquisition module 720, for obtaining the batch number to retract according to numerical value resource rollback requests.
Determining module 730 for parsing batch number, determines and the matched receipt number of batch number in the database.
Rollback module 740, for numerical value resource to be retracted from the first account to the second account according to receipt number.
Above-mentioned numerical value resource rollback device receives numerical value resource rollback requests, is obtained back according to numerical value resource rollback requests The batch number moved back, and determine with the matched each receipt number of batch number, according to the matched each receipt number of batch number by numerical value Resource retracts from the first account to the second account, and can simultaneously retract more stroke count value resources by batch, reduces Backoff time, effectively Improve numerical value resource rollback efficiency.
As shown in figure 8, in one embodiment, determining module 730 includes resolution unit 732, query unit 734 and determines Unit 736.
Resolution unit 732 for parsing batch number, obtains analysis result.
In one embodiment, resolution unit 732 are additionally operable to parsing batch number, obtain the industry number and sequence of batch number Row number.
Query unit 734 for inquiring database corresponding with batch number according to analysis result, and obtains in the database Tables of data corresponding with batch number.
As shown in figure 9, in one embodiment, query unit 734 includes data base querying subelement 902, reads son list Member 904 and comparison subunit 906.
Data base querying subelement 902, for inquiring database corresponding with industry number.
Reading subunit 904, for the corresponding sequence number value section of tables of data each in reading database.
Comparison subunit 906, for sequence number to be compared, and obtain one by one with each sequence number value section read Take the corresponding tables of data in sequence number value section residing for sequence number.
Determination unit 736, for being determined and the matched receipt number of batch number from tables of data.
In the present embodiment, batch number can be parsed, corresponding number is found according to the industry number that parsing obtains According to library, tables of data corresponding with batch number in the database is determined further according to sequence number, and obtain in corresponding tables of data with The matched receipt number of batch number can improve the inquiry velocity of receipt number, so as to effectively improve numerical value resource rollback efficiency.
In one embodiment, tables of data includes numerical value resource actual transfer table and numerical value resource planning transfer table.Such as figure Shown in 10, rollback module 740, including record acquiring unit 742, status determining unit 744, statistic unit 746 and rollback unit 748。
Acquiring unit 742 is recorded, for being obtained in numerical value resource actual transfer table and the matched receipt number of batch number First transfer record.
Status determining unit 744, for determining the transfering state of each receipt number one by one according to the first transfer record.
Statistic unit 746 is the corresponding total resources amount of receipt number that has shifted for counting transfering state.
Rollback unit 748 for from the extraction of the first account and the matched numerical value resource of total resources amount, and retracts to second Account.
In the present embodiment, first turn with the matched receipt number of batch number can be obtained from numerical value resource actual transfer table Record is moved, and unified rollback carries out the numerical value resource of multiple receipts number under same batch according to the first transfer record, is reduced Backoff time effectively improves numerical value resource rollback efficiency.
As shown in figure 11, in one embodiment, above-mentioned numerical value resource rollback device 700, in addition to including receiving module 710th, batch number acquisition module 720, determining module 730 and rollback module 740 further include the first generation module, record obtains mould Block and the second generation module.
First generation module 750, in numerical value resource actual transfer table generation and transfering state be the receipts that have shifted According to number corresponding record that retracts.
Acquisition module 760 is recorded, for being obtained in numerical value resource planning transfer table and the matched receipt number of batch number Second transfer record.
Second generation module 770, for the effective marker that will record corresponding receipt number in the second transfer record with retracting Position is invalid, and generates corresponding record to be transferred, and the receipt number of record to be transferred is set to sky.
In the present embodiment, can the data in numerical value resource planning table be returned to by numerical value resource transfers according to the record that retracts Before, it ensure that the consistency of data, conveniently re-start numerical value resource transfers, reduce the mistake that factor value resource rollback generates Accidentally, numerical value resource rollback efficiency is effectively improved.
In one embodiment, a kind of server is provided, including memory, processor and storage are on a memory and can be The computer program run on processor, the processor realize above-mentioned numerical value resource backing method when performing program.
In one embodiment, a kind of computer readable storage medium is provided, is stored thereon with computer program, the calculating Machine program realizes above-mentioned numerical value resource backing method when being executed by processor.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that those of ordinary skill in the art are come It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of numerical value resource backing method, including:
Receive numerical value resource rollback requests;
The batch number to retract is obtained according to the numerical value resource rollback requests;
The batch number is parsed, is determined and the matched receipt number of the batch number in the database;
Numerical value resource is retracted from the first account to the second account according to the receipt number.
2. according to the method described in claim 1, it is characterized in that, the parsing batch number, determine in the database with The matched receipt number of batch number, including:
The batch number is parsed, obtains analysis result;
Database corresponding with the batch number is inquired, and obtain in the database and described batch according to the analysis result Secondary number corresponding tables of data;
It is determined and the matched receipt number of the batch number from the tables of data.
3. according to the method described in claim 2, it is characterized in that, the parsing batch number, obtains analysis result, wraps It includes:
The batch number is parsed, obtains the industry number and sequence number of the batch number;
It is described that corresponding with batch number database is inquired according to the analysis result, and obtain in the database and institute The corresponding tables of data of batch number is stated, including:
Inquiry database corresponding with the industry number;
Read the corresponding sequence number value section of each tables of data in the database;
The sequence number is compared, and obtain the sequence residing for sequence number one by one with each sequence number value section read Number corresponding tables of data of numerical intervals.
4. according to the method described in claim 2, it is characterized in that, the tables of data includes numerical value resource actual transfer table;
It is described that numerical value resource is retracted from the first account to the second account according to the receipt number, including:
The first transfer with the matched receipt number of the batch number is obtained in the numerical value resource actual transfer table to record;
Determine the transfering state of each receipt number one by one according to the described first transfer record;
It is the corresponding total resources amount of the receipt number shifted to count transfering state;
From the extraction of the first account and the matched numerical value resource of the total resources amount, and retract to the second account.
5. according to the method described in claim 4, it is characterized in that, the tables of data further includes numerical value resource planning transfer table;
Described from the extraction of the first account and the matched numerical value resource of the total resources amount, and retract to the second account, The method further includes:
Generation is that corresponding retract of receipt number shifted is remembered with the transfering state in the numerical value resource actual transfer table Record;
The second transfer with the matched receipt number of the batch number is obtained in the numerical value resource planning transfer table to record;
It is invalid, and generate by the effective marker position for recording corresponding receipt number with the rollback in the described second transfer record Corresponding record to be transferred, sky is set to by the receipt number of the record to be transferred.
6. a kind of numerical value resource rollback device, which is characterized in that including:
Receiving module, for receiving numerical value resource rollback requests;
Batch number acquisition module, for obtaining the batch number to retract according to the numerical value resource rollback requests;
Determining module for parsing the batch number, determines and the matched receipt number of the batch number in the database;
Rollback module, for numerical value resource to be retracted from the first account to the second account according to the receipt number.
7. device according to claim 6, which is characterized in that the determining module, including:
Resolution unit for parsing the batch number, obtains analysis result;
Query unit, for inquiring database corresponding with the batch number according to the analysis result, and in the database In obtain tables of data corresponding with the batch number;
Determination unit, for being determined and the matched receipt number of the batch number from the tables of data;
The resolution unit is additionally operable to parse the batch number, obtains the industry number and sequence number of the batch number;
The query unit, including:
Data base querying subelement, for inquiring database corresponding with the industry number;
Reading subunit, for reading the corresponding sequence number value section of each tables of data in the database;
Comparison subunit, for the sequence number to be compared, and obtain one by one with each sequence number value section read The corresponding tables of data in sequence number value section residing for sequence number.
8. device according to claim 7, which is characterized in that the tables of data includes numerical value resource actual transfer table and number It is worth resource planning transfer table;
The rollback module, including:
Acquiring unit is recorded, for being obtained in the numerical value resource actual transfer table and the matched receipt number of the batch number First transfer record;
Status determining unit, for determining the transfering state of each receipt number one by one according to the described first transfer record;
Statistic unit is the corresponding total resources amount of receipt number that has shifted for counting transfering state;
Rollback unit for from the extraction of the first account and the matched numerical value resource of the total resources amount, and retracts to the second account Family;
Described device further includes:
First generation module, in the numerical value resource actual transfer table generation and the transfering state be the receipts that have shifted According to number corresponding record that retracts;
Acquisition module is recorded, for being obtained in the numerical value resource planning transfer table and the matched receipt number of the batch number Second transfer record;
Second generation module, for the effective marker of corresponding receipt number will to be recorded with described retract in the described second transfer record Position is invalid, and generates corresponding record to be transferred, and the receipt number of the record to be transferred is set to sky.
9. a kind of server, including memory, processor and storage are on a memory and the computer that can run on a processor Program, the processor realize the method as described in claim 1 to 5 is any when performing described program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The method as described in claim 1 to 5 is any is realized when being executed by processor.
CN201710629161.0A 2017-07-28 2017-07-28 Numerical resource rollback method, device, server and storage medium Active CN108256839B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710629161.0A CN108256839B (en) 2017-07-28 2017-07-28 Numerical resource rollback method, device, server and storage medium
PCT/CN2018/082480 WO2019019697A1 (en) 2017-07-28 2018-04-10 Numerical resource return method and apparatus, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710629161.0A CN108256839B (en) 2017-07-28 2017-07-28 Numerical resource rollback method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN108256839A true CN108256839A (en) 2018-07-06
CN108256839B CN108256839B (en) 2020-11-24

Family

ID=62722197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710629161.0A Active CN108256839B (en) 2017-07-28 2017-07-28 Numerical resource rollback method, device, server and storage medium

Country Status (2)

Country Link
CN (1) CN108256839B (en)
WO (1) WO2019019697A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111192036A (en) * 2019-08-01 2020-05-22 腾讯科技(深圳)有限公司 Account resource updating method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578029A (en) * 2012-07-31 2014-02-12 Ncr公司 Currency tracking
CN104036595A (en) * 2013-03-08 2014-09-10 乐金信世股份有限公司 Financial automation apparatus, method and system for receiving and refunding fees

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150019277A1 (en) * 2012-10-02 2015-01-15 DRW Legal Lumping Enterprises, Inc. Method and system for automating lumping services management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578029A (en) * 2012-07-31 2014-02-12 Ncr公司 Currency tracking
CN104036595A (en) * 2013-03-08 2014-09-10 乐金信世股份有限公司 Financial automation apparatus, method and system for receiving and refunding fees

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴颖晶: "减震器生产过程控制与追溯管理系统的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111192036A (en) * 2019-08-01 2020-05-22 腾讯科技(深圳)有限公司 Account resource updating method and device, computer equipment and storage medium
CN111192036B (en) * 2019-08-01 2023-06-20 腾讯科技(深圳)有限公司 Account resource updating method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2019019697A1 (en) 2019-01-31
CN108256839B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN110647582B (en) Method, device, storage medium and computer equipment for block chain network consensus verification
CN109558404B (en) Data storage method, device, computer equipment and storage medium
CN102402605B (en) Mixed distribution model for search engine indexing
CN109597853B (en) Business scene element serial number generation method, device, medium and computer equipment
US9002844B2 (en) Generating method, generating system, and recording medium
CN106933836B (en) Data storage method and system based on sub-tables
CN109447820B (en) Data processing method, device, computer equipment and storage medium
CN111177302A (en) Business document processing method and device, computer equipment and storage medium
CN105512283A (en) Data quality management and control method and device
CN104281717B (en) A kind of method for setting up magnanimity ID mapping relations
CN111722918A (en) Service identification code generation method and device, storage medium and electronic equipment
CN104636477B (en) The De-weight method of push list before a kind of information push
CN104504077A (en) Web access data statistical method and the device
CN110781183A (en) Method and device for processing incremental data in Hive database and computer equipment
CN106156070A (en) A kind of querying method, Piece file mergence method and relevant apparatus
CN111008183B (en) Storage method and system for business wind control log data
CN105320676A (en) Customer data query service method and device
CN111803917A (en) Resource processing method and device
CN114722036A (en) Data processing method and device, electronic equipment and readable storage medium
CN101187949A (en) A high-capacity data statistical method and system
CN108256839A (en) Numerical value resource backing method, device, server and storage medium
CN108629050B (en) Service data adjustment method, device, computer equipment and storage medium
CN110362540B (en) Data storage and visitor number acquisition method and device
CN106658444A (en) Short message channel provider selection method and terminal
US8255474B2 (en) Pruning method

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