Summary of the invention
The first purpose of the application is to provide a kind of method that determining account is entered an item of expenditure in the accounts, to solve fund operation complexity
The problem of high, fund is to account poor in timeliness.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
In a first aspect, providing a kind of method that account is entered an item of expenditure in the accounts, comprising:
The fund for receiving user draws request, and the fund draws the fund that request is used to request to draw the target amount of money;
The fund of the target amount of money, the remaining sum of the main account are drawn to the user from the main account of the user
For the summation of the remaining sum with the associated sub- account of the main account;
After the fund that the main account draws the target amount of money, to in the associated sub- account of the main account
The sub- account of target execute fund retrieval operations so that the total amount drawn from the sub- account of the target is equal to the target gold
Volume.
Second aspect provides a kind of device that account is entered an item of expenditure in the accounts, comprising:
Transmit-Receive Unit, the fund for receiving user draw request, and the fund draws request and draws the target amount of money for requesting
Fund;
Processing unit draws the fund of the target amount of money, the master from the main account of the user to the user
The remaining sum of account is the summation with the remaining sum of the associated sub- account of the main account;
The processing unit, after the fund that the main account draws the target amount of money, to the main account
The sub- account of target in associated sub- account executes fund retrieval operations, so that the total amount etc. drawn from the sub- account of the target
In the target amount of money.
The third aspect provides a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction uses described when executed
Processor executes following operation:
The fund for receiving user draws request, and the fund draws the fund that request is used to request to draw the target amount of money;
The fund of the target amount of money, the remaining sum of the main account are drawn to the user from the main account of the user
For the summation of the remaining sum with the associated sub- account of the main account;
After the fund that the main account draws the target amount of money, to in the associated sub- account of the main account
The sub- account of target execute fund retrieval operations so that the total amount drawn from the sub- account of the target is equal to the target gold
Volume.
Fourth aspect provides a kind of computer-readable medium, the computer-readable medium storage one or more journey
Sequence, one or more of programs when by include multiple application programs electronic equipment execute when so that electronic equipment execute with
Lower operation:
The fund for receiving user draws request, and the fund draws the fund that request is used to request to draw the target amount of money;
The fund of the target amount of money, the remaining sum of the main account are drawn to the user from the main account of the user
For the summation of the remaining sum with the associated sub- account of the main account;
After the fund that the main account draws the target amount of money, to in the associated sub- account of the main account
The sub- account of target execute fund retrieval operations so that the total amount drawn from the sub- account of the target is equal to the target gold
Volume.
By the technical solution of above the application as it can be seen that the method that the account of the embodiment of the present application is entered an item of expenditure in the accounts can be for user's
Fund draws request operation main account and realizes drawing for fund, draws without the request of drawing to more deposit receipts by pen completion, by
This can ensure fund to the timeliness of account.And the account of the embodiment of the present application is entered an item of expenditure in the accounts method, has been executed for main account
Enter an item of expenditure in the accounts after operation, execute retrieval operations to the associated sub- account of main account automatically, without user specify more deposit receipt business into
Row retrieval operations, the complexity that reduction fund is drawn.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without creative efforts
Range.
Fig. 1 shows the method that the account of the application one embodiment is entered an item of expenditure in the accounts.The dress that the method for Fig. 1 can be entered an item of expenditure in the accounts by account
Set execution.As illustrated in FIG. 1, method includes:
S102, the fund for receiving user draw request, and the fund draws the money that request is used to request to draw the target amount of money
Gold.
Specifically, user can be drawn by bank counter request for funds, in this case, bank counter be received in S102
Client send fund draw request.Or the APP request for funds that user can directly install on mobile terminals is drawn,
In this case, the fund that the APP on mobile terminal is sent is received in S102 draws request.
As an example, fund draws the mark ID and the target amount of money that user is carried in request.Here, the ID example of user
It such as can be the identification card number of user.
S104 draws the fund of the target amount of money, the main account from the main account of the user to the user
Remaining sum be summation with the remaining sum of the associated sub- account of the main account.
In other words, in S104, the money for requesting to draw disposably is drawn to user's fund of drawing from main account
Gold.
In S104, with the associated sub- account of main account by every deposit operation of user the corresponding account of reality.With master
The associated sub- account of account includes at least one of current account and fixed account.Main account and the associated account mould of sub- account
Type is properly termed as " multilayer secondary account model ".
For example, it is assumed that user has periodically deposited 5000 yuan April 1, it is account 1 with 5000 yuan of corresponding accounts, in April
No. 5 currents have deposited 1000 yuan, with 1000 yuan of corresponding accounts be account 2, then with the associated sub- account packet of the main account of user
Account 1 and account 2 are included, and the remaining sum of main account is the summation of the remaining sum of account 1 and the remaining sum of account 2, the i.e. remaining sum of main account
It is 6000 yuan.
S106, after the fund that the main account draws the target amount of money, to the associated son of the main account
The sub- account of target in account executes fund retrieval operations, so that the total amount drawn from the sub- account of the target is equal to the mesh
Standard gold volume.
That is, in S106, after the fund that the target amount of money is taken from main account to user's branch, from the sub- account of target
In draw fund so that the total amount for the fund drawn from the sub- account of all targets be equal to the target amount of money.It is understood that
It is only to reduce fund from the remaining sum of the sub- account of target that fund is drawn from the sub- account of target, without this part gold that will be reduced
Volume is supplied to user.
In some embodiments, the sub- account of target in S106 can be the sub- account being randomly selected.Further, exist
The sub- account of target in S106 can be based on default selection rule, the target selected from the associated sub- account of main account
Sub- account.
Above-mentioned default selection rule can be what the parameters such as the creation time based on account, the deposit rate of account determined
Rule, the embodiment of the present application are not construed as limiting this.
As an example it is assumed that the associated sub- account of the main account of user has 4, respectively account a, account b, account c and
Account d.Wherein, the remaining sum of account a is 10,000 yuan, and the remaining sum of account b is 5000 yuan, and the remaining sum of account c is 20,000 yuan, account d's
Remaining sum is 1000 yuan, and the creation time of account a, earlier than the creation time of account b, the creation time of account b is earlier than account d's
Creation time, creation time of the creation time earlier than account c of account d.If the target amount of money is 15500, and default selection rule
Are as follows: the short sub- account of preferential selection creation time executes fund retrieval operations, then draws 10,000 yuan from account a, draw from account b
5000 yuan, 500 yuan are drawn from account d.
Or, it is assumed that the deposit rate of account a is 4%, and the deposit rate of account b is 5%, and the deposit rate of account c is
The deposit rate of 3.5%, account d are 4%.If the target amount of money is 15500, and default selection rule are as follows: preferential selection deposit benefit
The low sub- account of rate executes fund retrieval operations, then draws 15500 yuan from account c.
Or, it is assumed that account a is fixed account, and account b is current account, and account c is fixed account, and account d is to live
Phase account.If the target amount of money is 5500 yuan, and default selection rule are as follows: preferential selection current account executes fund retrieval operations,
5000 yuan are then drawn from account b, 500 yuan are drawn from account d, or draw 1000 yuan from account d, propped up from account b
Take 4500 yuan.
Optionally, in some embodiments, before S102, method shown in FIG. 1 further include:
If receiving the fund storage request of the user for the first time, creating the main account and being stored with the fund
Request corresponding sub- account.That is, user initiate the first stroke deposit receipt signing open an account when be together that the user opens main account
Family.
Further, it usually requires to sign specific agreement between user when creating an account.On this basis, Fig. 1
Shown in method further include: the relevant deposit receipt agreement of creation sub- account corresponding with fund storage request, the deposit receipt agreement use
The relevant version of an agreement content of corresponding sub- account is requested with resource storage in carrying is described.Or it is to be understood that deposit receipt is assisted
View is actually the electronic record of the relevant agreement of sub- account.
Under normal conditions, if successfully to draw the fund of the target amount of money from main account, need the remaining sum of main account big
In the target amount of money.Therefore, method shown in FIG. 1 further include: determine whether the remaining sum of main account is greater than the target amount of money;It is corresponding
, in S106, the fund of the target amount of money is drawn to user from the main account of user, comprising: if the remaining sum of main account is big
In the target amount of money, then the fund of the target amount of money is drawn to user from main account.
On the basis of above-mentioned all embodiments, method shown in FIG. 1 further include: fund branch is being executed to the sub- account of target
It after extract operation, sends a notification message to general ledger system server, so that general ledger system server is directed to the sub- account of the target
Execution day cuts operation.
It is understood that the fund that notification message here is used to that general ledger system server to be notified to be directed to the sub- account of target
Retrieval operations are over.
The method for describing to be entered an item of expenditure in the accounts according to the account of the specific embodiment of the application below in conjunction with Fig. 2.In description Fig. 2
In account enter an item of expenditure in the accounts method when, be described so that the device that account is entered an item of expenditure in the accounts includes core system and operation system as an example, here
Core system be mainly used for carrying the general ability of account, operation system is the up-stream system of core system, be mainly used for by
The ability of core system carries out commercialization, such as the ability of core system is packaged into different cash in banks class products.Core
System appears the account of user's volume main account to last traffic system.
As illustrated in FIG. 2, the main account of user is associated with fixed account A and fixed account B, and the remaining sum of main account is equal to
The summation of the remaining sum of fixed account A and fixed account B, fixed account A are associated with deposit receipt agreement A, and fixed account B is associated with deposit receipt agreement
B, main account are associated with fixed account A and fixed account B by Customer ID.It draws and asks in the fund that user's initiation draws 100 yuan
When asking, operation system calls core system to execute retrieval operations to main account, draws 100 yuan to user, core system is to main account
After the completion of the book keeping operation of family, fund retrieval operations need to be executed to fixed account A and fixed account B based on default selection rule determination, and
It needs to draw 70 yuan from fixed account A, draws 30 yuan from fixed account B, and then core system executes that sub- account is asynchronous to draw behaviour
Make, i.e., draw 70 yuan from fixed account A, 30 yuan are drawn from fixed account B, guarantees that fixed account A and fixed account B is drawn
Total amount be 100 yuan.
It is understood that usual 1 core system can be deployed on multiple servers.In this case, to main account
The server that family executes retrieval operations is completed to notify antithetical phrase by way of transactional message when drawing to main account
Account executes the server of retrieval operations, so that the server for executing retrieval operations to sub- account, which is based on preset rules, chooses progress
The sub- account (such as fixed account A and fixed account B above) drawn, the sub- account then selected execute retrieval operations.
The method that account shown in Fig. 2 is entered an item of expenditure in the accounts is realized under multi-level system of account to the more fixed account branch of user
The summation of the amount of money directly primary system in main account retrieval operations is taken, the complexity and cost of clients fund operation are reduced,
Guarantee user's fund arrive account timeliness, while also reduction operation system cost of access, stretched the book keeping operation energy of core system
Power is conducive to the products innovation of financial business.
Below in conjunction with Fig. 3 detailed description according to the electronic equipment of the application one embodiment.With reference to Fig. 3, in hardware layer
Face, electronic equipment include processor, optionally, including internal bus, network interface, memory.Wherein, memory may include
Memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile deposit
Reservoir (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that it
Hardware required for his business.
Processor, network interface and memory can be connected with each other by internal bus, which can be industry
Standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect standard
(Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended
Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus,
Control bus etc..Only to be indicated with a four-headed arrow in Fig. 3, it is not intended that an only bus or one kind convenient for indicating
The bus of type.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer
The device that account is entered an item of expenditure in the accounts is formed on face.Processor executes the program that memory is stored, and is specifically used for executing following operation:
The fund for receiving user draws request, and the fund draws the fund that request is used to request to draw the target amount of money;
The fund of the target amount of money, the remaining sum of the main account are drawn to the user from the main account of the user
For the summation of the remaining sum with the associated sub- account of the main account;
After the fund that the main account draws the target amount of money, to in the associated sub- account of the main account
The sub- account of target execute fund retrieval operations so that the total amount drawn from the sub- account of the target is equal to the target gold
Volume.
The method that the above-mentioned device entered an item of expenditure in the accounts by account as disclosed in the application Fig. 1 and embodiment illustrated in fig. 2 executes can answer
It is realized in processor, or by processor.Processor may be a kind of IC chip, the processing energy with signal
Power.During realization, each step of the above method can pass through the integrated logic circuit or software of the hardware in processor
The instruction of form is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing
Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute the public affairs in the embodiment of the present application
Each method, step and the logic diagram opened.General processor can be microprocessor or the processor be also possible to it is any often
The processor etc. of rule.The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and hold
Row complete, or in decoding processor hardware and software module combine execute completion.Software module can be located at deposits at random
Reservoir, flash memory, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register
In mature storage medium.The storage medium is located at memory, and processor reads the information in memory, completes in conjunction with its hardware
The step of above method.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of the application, for example patrol
Collect device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each patrol
Unit is collected, hardware or logical device are also possible to.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, which holds when by the electronic equipment including multiple application programs
When row, the method that the electronic equipment can be made to execute Fig. 1 and embodiment illustrated in fig. 2, and be specifically used for executing following methods:
The fund for receiving user draws request, and the fund draws the fund that request is used to request to draw the target amount of money;
The fund of the target amount of money, the remaining sum of the main account are drawn to the user from the main account of the user
For the summation of the remaining sum with the associated sub- account of the main account;
After the fund that the main account draws the target amount of money, to in the associated sub- account of the main account
The sub- account of target execute fund retrieval operations so that the total amount drawn from the sub- account of the target is equal to the target gold
Volume.
Fig. 4 is the structural schematic diagram for the device that the account of one embodiment of the application is entered an item of expenditure in the accounts.Fig. 4 is please referred to a kind of soft
In part embodiment, device 400 can include: Transmit-Receive Unit 41 and processing unit 42, wherein
Transmit-Receive Unit 41, the fund for receiving user draw request, and the fund draws request and draws target gold for requesting
The fund of volume;
Processing unit 42, from the main account of the user to the user draw the fund draw request branch
The target amount of money taken, the remaining sum of the main account are the summation with the remaining sum of the associated sub- account of the main account;
The processing unit 42, after the fund that the main account draws the target amount of money, to the main account
The sub- account of target in the associated sub- account in family executes fund retrieval operations, so that the total amount drawn from the sub- account of the target
Equal to the target amount of money.
The device that the account of the embodiment of the present application is entered an item of expenditure in the accounts can draw request operation main account for the fund of user and realize
Fund is drawn, and is drawn without the request of drawing to more deposit receipts by pen completion, thus, it is possible to ensure fund to account timeliness.
And the device that the account of the embodiment of the present application is entered an item of expenditure in the accounts, after having executed for main account and entering an item of expenditure in the accounts operation, automatically to main account
Associated sub- account executes retrieval operations, specifies more deposit receipt business to carry out retrieval operations without user, reduction fund is drawn
Complexity.
Optionally, as one embodiment, before the fund that receiving unit 41 receives user draws request, processing unit
42:
If receiving the fund storage request of the user for the first time, creates the main account and deposited with the fund
Corresponding sub- account is requested in storage.
Optionally, as one embodiment, processing unit 42:
The relevant deposit receipt agreement of creation sub- account corresponding with fund storage request, the deposit receipt agreement are used to carry
The relevant version of an agreement content of the corresponding sub- account of the storage request to resource.
Optionally, as one embodiment, it is described to the sub- account of target in the associated sub- account of the main account
Before execution fund retrieval operations, processing unit 42:
Based on default selection rule, the sub- account of the target is selected from the described and associated sub- account of main account.
Optionally, as one embodiment, Transmit-Receive Unit 41:
After processing unit 42 executes fund retrieval operations to the sub- account of the target, sent to general ledger system server
Notification message, so that the general ledger system server cuts operation for the target sub- account execution day.
Optionally, as one embodiment, described with the associated sub- account of the main account includes current account and regular
At least one of account.
Optionally, as one embodiment, processing unit 42:
Determine whether the remaining sum of the main account is greater than the target amount of money;
If the remaining sum of the main account is greater than the target amount of money, draw from the main account to the user described
The fund of the target amount of money.
The device that the account of the embodiment of the present application is entered an item of expenditure in the accounts can also carry out what the device that the account in Fig. 1 and Fig. 2 is entered an item of expenditure in the accounts executed
Method, and device that account is entered an item of expenditure in the accounts is realized in the function of Fig. 1 and embodiment illustrated in fig. 2, details are not described herein.
In short, being not intended to limit the protection scope of the application the foregoing is merely the preferred embodiment of the application.
Within the spirit and principles of this application, any modification, equivalent replacement, improvement and so on should be included in the application's
Within protection scope.
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.
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.
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.