CN109064157A - Divide account method and device, storage medium, electronic equipment - Google Patents
Divide account method and device, storage medium, electronic equipment Download PDFInfo
- Publication number
- CN109064157A CN109064157A CN201810796337.6A CN201810796337A CN109064157A CN 109064157 A CN109064157 A CN 109064157A CN 201810796337 A CN201810796337 A CN 201810796337A CN 109064157 A CN109064157 A CN 109064157A
- Authority
- CN
- China
- Prior art keywords
- account
- point
- node
- money
- amount
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012795 verification Methods 0.000 claims description 12
- 238000012546 transfer Methods 0.000 claims description 11
- 230000008014 freezing Effects 0.000 claims description 5
- 238000007710 freezing Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 241001310793 Podium Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 235000015110 jellies Nutrition 0.000 description 1
- 239000008274 jelly Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003014 reinforcing effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/12—Payment architectures specially adapted for electronic shopping systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/22—Payment schemes or models
- G06Q20/227—Payment schemes or models characterised in that multiple accounts are available, e.g. to the payer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Finance (AREA)
- Computer Security & Cryptography (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
This disclosure relates to which Internet technical field more particularly to one kind divide account method and device, storage medium, electronic equipment.This method includes obtaining to divide account parameter, and described point of account parameter includes point account relationship and point account amount of money of multiple points of account accounts and each described point of account account;Using it is each it is described divide account account as node, and tree-shaped point account model is constructed according to point account relationship of each described point of account account and point account amount of money;A point account is carried out to each described point of account account based on described point of account model.The disclosure can construct a kind of new point account model with hierarchical relationship, divide account automatically to be based on this point of account model realization, greatly reduce human cost and time cost.
Description
Technical field
This disclosure relates to which Internet technical field more particularly to one kind point account method and device, storage medium, electronics are set
It is standby.
Background technique
With the development of society and technology, internet enters the every aspect of people's life, and various online shopping podium levels
It is not poor out, convenient and material benefit is brought for user, so that user is stayed indoors each needed for can buying life by internet
Kind necessary article, such as dress ornament, household supplies, electronic product, various services, food etc..
Currently, each user may relate to the ginseng of multiple roles during buying commodity on major online shopping platform
With for example, service platform, trade company, logistics etc..Therefore, after with the payment that places an order, need between above-mentioned multiple roles to
The settlement amounts at family carry out a point account.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide one kind point account method and device, storage medium, electronic equipment, and then at least one
Determine that a kind of new point account model with hierarchical relationship can be constructed in degree, to divide account automatically based on this point of account model realization,
Reduce human cost and time cost.
According to one aspect of the disclosure, one kind point account method is provided, comprising:
Acquisition divides account parameter, described point of account parameter include multiple points of account accounts and each described point of account account point account relationship and
Divide the account amount of money;
Using it is each it is described divide account account as node, and according to point account relationship of each described point of account account and divide the account amount of money construct
Tree-shaped divides account model;
A point account is carried out to each described point of account account based on described point of account model.
It is described described account account to be divided to carry out to each based on point account model in a kind of exemplary embodiment of the disclosure
Point account includes:
Described point of account model is verified according to verification rule;
After described point of account model checking passes through, a point account is carried out to each described point of account account based on described point of account model.
In a kind of exemplary embodiment of the disclosure, the verification rule includes at least one of:
Whether described point of account model is whether the height of one, described point account model is equal to the maximum level, described of point account
Whether the child node for including in point account model only has a father node, whether point account amount of money of the node is more than or equal to it
The summation for dividing the account amount of money of child node.
It is described described account account to be divided to carry out to each based on point account model in a kind of exemplary embodiment of the disclosure
Point account includes:
Successively divide each node in account model described in traversal;
According to the attribute of each node, a point account is carried out to each corresponding point of account account of the node.
In a kind of exemplary embodiment of the disclosure: the attribute according to each node, to each node pair
Point account account answered carries out a point account and includes:
If the attribute of the node is freeze operation attribute, corresponding point of account amount of money of the node is given into the node pair
Point account account answered simultaneously freezes point account amount of money;
If the attribute of the node is freeze operation attribute of transferring accounts, corresponding point of account amount of money of the node is given into the section
Corresponding minute account account of point, and freeze in point account amount of money to the total of point account amount of money of all child node point accounts of the node
With;
If the attribute of the node is transfer operation attribute, corresponding point of account amount of money of the node is given into the node pair
Point account account answered.
In a kind of exemplary embodiment of the disclosure, to each corresponding point of account account of the node carry out point account it
Before, further includes:
If the node does not have father node, the freeze operation attribute is set by the attribute of the node;
If the node has father node and child node, the freeze operation of transferring accounts is set by the attribute of the node
Attribute;
If the node only has father node, the transfer operation attribute is set by the attribute of the node.
In a kind of exemplary embodiment of the disclosure, the attribute according to each node, to each node pair
Point account account answered carries out a point account and includes:
For not having the first kind node of father node, corresponding point of account amount of money of the first kind node is given described the
Corresponding point of account account of a kind of node simultaneously freezes point account amount of money;
For the second class node with father node and child node, corresponding point of account amount of money of the second class node is given
Corresponding point of account account of the second class node, and freeze all child nodes in point account amount of money to the second class node
The summation for dividing the account amount of money of point account;
For with the third class node of father node, corresponding point of account amount of money of the third class node is only given described the
Corresponding point of account account of three classes node.
In a kind of exemplary embodiment of the disclosure:
Freeze interface by calling and corresponding point of account amount of money of the first kind node is given into the first kind node correspondence
Point account account and freeze point account amount of money;
Freeze interface by calling to transfer accounts corresponding point of account amount of money of the second class node is given into the second class node
Corresponding point of account account, and freeze in point account amount of money to point account amount of money of all child node point accounts of the second class node
Summation;
It is corresponded to by calling interface of transferring accounts that corresponding point of account amount of money of the third class node is given the third class node
Divide account account.
In a kind of exemplary embodiment of the disclosure: described point of account account includes freezing family and cash family;
It is described that corresponding point of account amount of money of the first kind node is given into corresponding point of account account of the first kind node simultaneously
Freezing point account amount of money includes: that corresponding point of account amount of money of the first kind node is given the corresponding jelly of the first kind node
Simultaneously freezed at knot family;
It is described that corresponding point of account amount of money of the second class node is given into corresponding point of account account of the second class node, and
Including: to the summation of point account amount of money of all child node point accounts of the second class node in point account amount of money described in freezing will be described
To the summation for dividing the account amount of money of all child node point accounts of the second class node point in second corresponding point of the class node account amount of money
Freeze family to the second class node is corresponding and freezed, and by corresponding point of account amount of money of the second class node with to institute
Stating the difference of the summation of point account amount of money of all child node point accounts of the second class node, to give the second class node corresponding existing
Golden family;
It is described that corresponding point of account amount of money of the third class node is given into corresponding point of account account packet of the third class node
It includes: corresponding point of account amount of money of the third class node is given into the corresponding cash family of the third class node.
It is described described account account to be divided to carry out to each based on point account model in a kind of exemplary embodiment of the disclosure
Point account includes:
Breadth first traversal is carried out to each node in described point of account model to record to create a point account;
It is recorded according to described point of account to the corresponding point account account of each node and carries out a point account.
In a kind of exemplary embodiment of the disclosure, the method can also include:
According to order information and clearing strategy generating is combined to divide account parameter.
According to one aspect of the disclosure, one kind point account device is provided, comprising:
Module is obtained, divides account parameter for obtaining, described point of account parameter includes multiple points of account accounts and each described point of account account
Point account relationship at family and divide the account amount of money;
Construct module, for using it is each it is described divide account account as node, and divide account relationship according to each described point of account account
Tree-shaped point account model is constructed with point account amount of money;
Divide account module, for carrying out a point account to each described point of account account based on point account model.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with,
The computer program realizes point account method described in above-mentioned any one when being executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute via the executable instruction is executed described in above-mentioned any one and divide
Account method.
Divide account method and device, storage medium, in electronic equipment what a kind of example embodiment of the disclosure provided, pass through by
Divide each point of account account in account parameter as node, and according to point account relationship of each point of account account in point account parameter and divides account golden
Volume constructs tree-shaped point account model, and carries out a point account to each point of account account based on point account model, makes it possible to construct a kind of new
Divide account model with hierarchical relationship, to divide account automatically based on this point of account model realization, greatly reduce human cost and when
Between cost.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
It is described in detail its exemplary embodiment by referring to accompanying drawing, the above and other feature and advantage of the disclosure will become
It obtains more obvious.It should be evident that the accompanying drawings in the following description is only some embodiments of the present disclosure, it is common for this field
For technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.Attached
In figure:
Fig. 1 is a kind of flow chart for dividing account method of the disclosure;
Fig. 2 is the schematic diagram one of point account model provided in one exemplary embodiment of the disclosure;
Fig. 3 is the schematic diagram two of point account model provided in one exemplary embodiment of the disclosure;
Fig. 4 is a kind of block diagram for dividing account device of the disclosure;
Fig. 5 is the module diagram that the disclosure shows the electronic equipment in an exemplary embodiment;
Fig. 6 is that the disclosure shows the program product schematic diagram in an exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms
It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will be comprehensively and complete
It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure
Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to provide and fully understand to embodiment of the disclosure.However,
It will be appreciated by persons skilled in the art that can be with technical solution of the disclosure without one in the specific detail or more
It is more, or can be using other methods, constituent element, material, device, step etc..In other cases, it is not shown in detail or describes
Known features, method, apparatus, realization, material or operation are to avoid fuzzy all aspects of this disclosure.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or these are realized in the module of one or more softwares hardening
A part of functional entity or functional entity, or realized in heterogeneous networks and/or processor device and/or microcontroller device
These functional entitys.
One kind point account method is disclosed in the present exemplary embodiment first, shown referring to Fig.1, described point of account method can wrap
Include following steps:
Step S110, it obtains and divides account parameter, described point of account parameter includes multiple points of account accounts and each described point of account account
Point account relationship and divide the account amount of money;
Step S120, using it is each it is described divide account account as node, and according to each described point of account account dividing account relationship and point
The account amount of money constructs tree-shaped point account model;
Step S130, a point account is carried out to each described point of account account based on described point of account model.
Divide account method according to the present exemplary embodiment, a kind of new point account mould with hierarchical relationship can be constructed
Type greatly reduces human cost and time cost to divide account automatically based on this point of account model realization.
Next, with reference to Fig. 1, the virtual object control method in the present exemplary embodiment is described further.
In step s 110, it obtains and divides account parameter, described point of account parameter includes multiple points of account accounts and each described point of account account
Point account relationship at family and divide the account amount of money.
In the present example embodiment, according to order information and clearing strategy generating can be combined to divide account parameter.It is described to order
List can be the order of different business, for example, taking out order, the business order of daily class industry etc. of class business, this is exemplary
Embodiment is not particularly limited this.The order information may include buying the type of the product, quantity of every a kind of product, each
The title etc. of trade company belonging to monovalent, each product of product, the present exemplary embodiment is not particularly limited this.The clearing plan
Slightly for indicating the calculation of point account amount of money of each point of account account.Based on this, it can use a building module and believed according to order
Breath and clearing strategy generating corresponding with the order information divide account parameter, so that it is corresponding with the order to divide account parameter to include at least
All points of account accounts and each point of account account between point account relationship and divide the account amount of money.It should be noted that can be with one
Order is that unit generation divides account parameter, can also be generated as unit of intraday all orders and divide account parameter, can also be with
1000 orders are that unit generation divides account parameter, and the present exemplary embodiment is not particularly limited this.
Point account amount of money of described point of account account refers to received point of account amount of money of this point of account account.A point account for described point of account account is closed
Mean point account account to this point of account account point account.
Following programs show one kind point account parameter.This divides account parameter are as follows:
[{"from":"a","to":"a1","amount":20},
{"from":"a","to":"a3","amount":60},
{"from":"a3","to":"b1","amount":25}]
It is found that point account account is respectively point account account a, point account account a1, divides account account a3, divides from above-mentioned point of account parameter
Account account b1.Point account account a1's divides the account amount of money to be 20, and point account account a3's divides the account amount of money to be 60, and point account account b1's divides account golden
Volume is 25.Point account relationship of point account account a1 be receive point account account a divide account, point account account a3's divides account relationship to receive point
Account account a's divides account, and point account relationship of point account account b1 is to receive point account account a3 to divide account.
It should be noted that the form of expression of above-mentioned point of account parameter is program, it is exemplary only, and do not have to limit this
Invention.
In the step s 120, using it is each it is described divide account account as node, and divide account relationship according to each described point of account account
Tree-shaped point account model is constructed with point account amount of money.
In the present example embodiment, first using each point of account account as node, then divide account according to each point of account account
The corresponding node of each point of account account is carried out tree-shaped arrangement by relationship, for example, will be to point section for dividing account account of account account point account
The father node for putting the node as this minute account account will receive the node of all points of account accounts of this point of account account point account as this
Divide the child node of the node of account account;Finally according to point account amount of money of each point of account account be arranged each point of account account node and its
The weight on the side between father node, to complete the building of tree-shaped point account model.
Step S120 is further described by taking point account parameter in above-mentioned steps S110 as an example.
Firstly, will point account account a as node A, will point account account a1 as node A1, account account a3 will be divided as node
A3, account account b1 will be divided as node B1.Then divide account relationship by the corresponding node of each point of account account according to each point of account account
Tree-shaped arrangement is carried out, specifically, dividing account since point account relationship of point account account a1 is to receive point account account a to divide account
The node A of account a is a point father node of the node A1 of account account a1;Point account relationship of point account account a3 is to receive to divide account account a
Divide account, therefore the node A of point account account a is a point father node of the node A3 of account account a3, and point account account b1's divides account relationship
Divide account for reception point account account a3, therefore the node A3 of point account account a3 is a point father node of the node B1 of account account b1.Most
Afterwards, the weight on the side between the node and its father node of this point of account account is set according to point account amount of money of each point of account account, with complete
At the tree-shaped building for dividing account model.Specifically, divide the account amount of money to be 20 due to point account account a1, node A and node A1
Between side weight be 20;The account amount of money is divided to be 60 due to point account account a3, the power on the side between node A3 and node A
Value is 60;The account amount of money is divided to be 25 due to point account account b1, the weight on the side between node B1 and node A3 is 25, finally
Building divides account model as shown in Figure 2.It should be noted that the digital representation in each node divides the node pair after account completion
The fund variation for point account account answered, for example, this point of account account fund increases 20, -80 and say after+20 explanation point accounts are completed
After bright point of account is completed, this point of account account fund reduces 80.
It should be noted that since point account amount of money of root node (such as node A in Fig. 2) in point account model is to divide account mistake
The total account amount of money to be divided being arranged in journey, therefore, there is no divide account relationship to root node.
From the foregoing, it will be observed that dividing account model by a point account parameter building, a kind of new point account mould with hierarchical relationship is provided
Type greatly reduces human cost and time cost to divide account automatically based on this point of account model realization.
Step S130, a point account is carried out to each described point of account account based on described point of account model.
In the present example embodiment, each node in point account model can be traversed, successively to judge each institute
The attribute of node is stated, and according to the attribute of each node, carries out a point account to each corresponding point of account account of the node.
Specifically, carrying out a point account to each corresponding point of account account of the node can wrap according to the attribute of each node
It includes:
For not having the first kind node of father node, corresponding point of account amount of money of the first kind node is given described the
Corresponding point of account account of a kind of node simultaneously freezes point account amount of money and judges whether node has that is, during traverse node
There are father node and child node, if node does not have father node, which is determined as first kind node, and by the first kind section
The corresponding minute account amount of money of point gives corresponding minute account account of the first kind node and freezes this minute account amount of money;
For the second class node with father node and child node, corresponding point of account amount of money of the second class node is given
Corresponding point of account account of the second class node, and freeze all child nodes in point account amount of money to the second class node
The summation for dividing the account amount of money of point account judges whether node has a father node and child node that is, during traverse node, and
The node is determined as the second class node with father node and when having child node, by the node, and by the second class node pair
Point account amount of money answered gives the corresponding point of account account of the second class node, and freezes in point account amount of money to the institute of the second class node
There is the summation of point account amount of money of child node point account;
For with the third class node of father node, corresponding point of account amount of money of the third class node is only given described the
Corresponding point of account account of three classes node judges whether node has father node and child node that is, during traverse node, and
When the node only has father node, which is determined as third class node, and by the corresponding point of account of third class node
The amount of money gives the corresponding point of account account of third class node.
From the foregoing, it will be observed that when node is first kind node and the second class node, by corresponding point of account of first kind node
All child node point accounts to the second class node in corresponding point of account amount of money of the amount of money and the second class node divide the total of the account amount of money
With freezed, avoid will point account amount of money to the account except corresponding point of account account of the first kind or the child node of the second class node
It produces, it is ensured that divide the feasibility and correctness of account.
In the following, being illustrated to the interface type called during point account.For not having the first kind node of father node,
Freeze interface by calling and corresponding point of account amount of money of the first kind node is given into corresponding point of account account of the first kind node
Simultaneously freeze point account amount of money in family;For the second class node with father node and child node, freeze interface by calling to transfer accounts
Corresponding point of account amount of money of the second class node is given into corresponding point of account account of the second class node, and freezes point account
To the summation for dividing the account amount of money of all child node point accounts of the second class node in the amount of money;For only with the third of father node
Class node, it is corresponding by calling interface of transferring accounts that corresponding point of account amount of money of the third class node given the third class node
Divide account account.
When described point of account account includes freezing family and cash family, to receive during point account divide the account of the account amount of money into
Row explanation.For not having the first kind node of father node, corresponding point of account amount of money of the first kind node is given described the
A kind of node is corresponding to be freezed family and is freezed;For the second class node with father node and child node, by described second
Institute is given to the summation of point account amount of money of all child node point accounts of the second class node in corresponding point of account amount of money of class node
State that the second class node is corresponding to be freezed family and freezed, and by corresponding point of account amount of money of the second class node with to described
The difference of the summation of point account amount of money of all child node point accounts of second class node gives the corresponding cash of the second class node
Family;For with the third class node of father node, corresponding point of account amount of money of the third class node is only given the third class
The corresponding cash family of node.
It should be noted that freeze family for store freeze the amount of money, cash family user, which stores, does not freeze the amount of money.
In addition, can be each section in point account model before carrying out point account to each corresponding point of account account of the node
Point sets a property, if specific setting up procedure includes: that the node does not have father node, sets the attribute of the node to
Freeze operation attribute;If the node has father node and child node, the attribute of the node is set as transferring accounts and freezes to grasp
Make attribute;If the node only has father node, transfer operation attribute is set by the attribute of the node.
Based on this, according to the attribute of each node, carrying out a point account to each corresponding point of account account of the node be can wrap
It includes:
If the attribute of the node is freeze operation attribute, corresponding point of account amount of money of the node is given into the node pair
Point account account answered simultaneously freezes point account amount of money and obtains the attribute of node that is, during traverse node, if the category of node
Property when being freeze operation attribute, corresponding point of account amount of money of node is given into corresponding point of account account of the node and freezes this point of account gold
Volume;
If the attribute of the node is freeze operation attribute of transferring accounts, corresponding point of account amount of money of the node is given into the section
Corresponding minute account account of point, and freeze in point account amount of money to the total of point account amount of money of all child node point accounts of the node
With that is, during traverse node, the attribute of node is obtained, if the attribute of node is to transfer accounts freeze operation attribute, by the section
The corresponding minute account amount of money of point gives corresponding minute account account of the node, and freezes all sub- sections in this point of account amount of money to the node
The summation of minute account amount of money of point minute account;
If the attribute of the node is transfer operation attribute, corresponding point of account amount of money of the node is given into the node pair
Point account account answered obtains the attribute of node that is, during traverse node, if the attribute of node is transfer operation attribute,
Corresponding point of account amount of money of the node is given into corresponding point of account account of the node.
In order to which the big affairs of point account are split as the small affairs of point account one by one, and determine the successive suitable of each point of small affairs of account
Sequence divides account efficiency to improve, and can carry out breadth first traversal to each node in described point of account model to create a point account
Record, and recorded according to described point of account to the corresponding point account account of each node and carry out a point account.
In the present example embodiment, the above process is illustrated by taking point account model in Fig. 3 as an example.First to Fig. 3
In divide account model carry out breadth first traversal, traversal order be node A → node A1 → node A2 → node A3 → node
B1 → node B2, while obtaining and recording according to the weight of the relationship between node and the side between node during traversal
Point account relationship of each node and divide the account amount of money, wherein node A's divides the account amount of money to be 100;Node A1's divides the account amount of money to be 20;Section
Minute account amount of money of point A2 is 20;Node A3's divides the account amount of money to be 60;Node B1's divides the account amount of money to be 25;Node B2's divides the account amount of money
It is 25.Point account relationship of node A1 divides account for receiving node A's;Point account relationship of node A2 divides account for receiving node A's;Node
Point account relationship of A3 divides account for receiving node A's;Point account relationship of node B1 divides account for receiving node A3's;Node B2's divides account
Relationship divides account for receiving node A3's.
It is recorded according to point account amount of money of above-mentioned each node and a point account relationship creation point account, specifically, according to point of node A1
The account amount of money is that the 20 point accounts generated with point account that point account relationship of node A1 is receiving node A are recorded as from corresponding point of node A
Account account a is to corresponding point of account account a1 of node A1 points 20, it should be noted that the creation of corresponding point of account record of other nodes is former
Reason is same as above, therefore details are not described herein again.After the completion of dividing account record creation, recorded according to a point account to corresponding point of account account of each node
Account is divided at family, e.g., for dividing account record " from corresponding point of account account a of node A to corresponding point of account account a1 of node A1 points 20 ", then
To corresponding point of account account a1 of node A1 points 20 from corresponding point of account account a of node A.Divide account process same due to other nodes
On, therefore repeat no more.It should be noted that the digital representation in each node divides corresponding point of account of the node after account completion
The fund variation of account, for example, account fund increases 20, -100 explanation point accounts and completes after+20 explanation point accounts are completed
Later, account fund reduces 100.
In order to guarantee the accuracy of point account, it is described point account is carried out to each described point of account account based on point account model can be with
It include: to be verified according to verification rule to described point of account model;After described point of account model checking passes through, based on described point
Account model carries out a point account to each described point of account account.
In the present example embodiment, the verification rule includes at least one of: whether described point of account model is one
Whether only whether the height of a, described point of account model be equal to the maximum level of point account, the child node for including in described point of account model
Have a father node, point account amount of money of the node whether be more than or equal to its child node point account amount of money summation.It needs
Illustrate, above-mentioned verification rule is exemplary only, is not intended to limit the present invention, can also be according to dividing the specific of account model
The more verification rules of demand setting.
The process of verification point account model is illustrated for verifying rule and including above-mentioned strictly all rules.First, it is determined that
Whether Knowledge Verification Model is one, and when determining Knowledge Verification Model is one, and whether the height of judgement point account model is equal to point account
Maximum level;When the height for determining point account model is equal to the maximum level for dividing account, the son section for including in point account model is judged
Whether point only has a father node;When determining that the child node for including in point account model only has a father node, each section is judged
Whether minute account amount of money of point is more than or equal to the summation of minute account amount of money of its all child node;Divide account golden in each node of judgement
When volume is more than or equal to the summation for dividing the account amount of money of its all child node, determine that this point of account model passes through verification.
It should be noted that above-mentioned checking procedure is exemplary only, it is not intended to limit the present invention.It is above-mentioned based on described
Point account model carries out the process of point account or less to each described point of account account and is above illustrated, and details are not described herein again.
It should be noted that although describing each step of method in the disclosure in the accompanying drawings with particular order,
This does not require that or implies must execute these steps in this particular order, or have to carry out step shown in whole
Just it is able to achieve desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and held by certain steps
Row, and/or a step is decomposed into execution of multiple steps etc..
In an exemplary embodiment of the disclosure, one kind point account device is additionally provided, as shown in figure 4, described divide account device
400 may include: to obtain module 401, building module 402, point account module 403, in which:
Module 401 is obtained, divides account parameter for obtaining, described point of account parameter includes multiple points of account accounts and each described point of account
Point account relationship of account and divide the account amount of money;
Construct module 402, for using it is each it is described divide account account as node, and closed according to a point account for each described point of account account
It is and point account amount of money constructs tree-shaped point account model;
Divide account module 403, for carrying out a point account to each described point of account account based on point account model.
The detail of each point of account apparatus module is described in detail in corresponding point of account method among the above,
Therefore details are not described herein again.
It should be noted that although being referred to several modules or unit of the equipment for execution in the above detailed description,
But it is this divide it is not enforceable.In fact, according to embodiment of the present disclosure, two or more above-described modules
Either the feature and function of unit can embody in a module or unit.Conversely, an above-described module or
The feature and function of person's unit can be to be embodied by multiple modules or unit with further division.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
The electronic equipment 500 of this embodiment according to the present invention is described referring to Fig. 5.The electronics that Fig. 5 is shown
Equipment 500 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 is showed in the form of universal computing device.The component of electronic equipment 500 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 510, at least one above-mentioned storage unit 520, the different system components of connection
The bus 530 of (including storage unit 520 and processing unit 510), display unit 540.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510
Row, so that various according to the present invention described in the execution of the processing unit 510 above-mentioned " illustrative methods " part of this specification
The step of illustrative embodiments.For example, the processing unit 510 can execute step S110 as shown in fig. 1, obtain and divide
Account parameter, described point of account parameter include point account relationship and point account amount of money of multiple points of account accounts and each described point of account account;Step
S120, using it is each it is described divide account account as node, and according to point account relationship of each described point of account account and divide the account amount of money building tree
Shape divides account model;Step S130, a point account is carried out to each described point of account account based on described point of account model.
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 5201 and/or cache memory unit 5202, it can further include read-only memory unit (ROM) 5203.
Storage unit 520 can also include program/utility with one group of (at least one) program module 5205
5204, such program module 5205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 500 can also be with one or more external equipments 570 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 500 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 500 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, electronic equipment 500 can be with
By network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 560 is communicated by bus 530 with other modules of electronic equipment 500.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 500, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also
In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute
Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair
The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 6, describing the program product for realizing the above method of embodiment according to the present invention
600, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device,
Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the attached claims.
Claims (14)
1. one kind divides account method characterized by comprising
Acquisition divides account parameter, and described point of account parameter includes point account relationship and point account of multiple points of account accounts and each described point of account account
The amount of money;
Using it is each it is described divide account account as node, and according to point account relationship of each described point of account account and divide the account amount of money building it is tree-shaped
Divide account model;
A point account is carried out to each described point of account account based on described point of account model.
2. according to claim 1 point of account method, which is characterized in that described described to divide account to each based on point account model
Account carries out a point account
Described point of account model is verified according to verification rule;
After described point of account model checking passes through, a point account is carried out to each described point of account account based on described point of account model.
3. according to claim 2 point of account method, which is characterized in that the verification rule includes at least one of:
Whether described point of account model is whether the height of one, described point account model is equal to the maximum level of point account, described point of account
Whether the child node for including in model only has a father node, whether point account amount of money of the node is more than or equal to its sub- section
The summation of minute account amount of money of point.
4. according to claim 1 point of account method, which is characterized in that described described to divide account to each based on point account model
Account carries out a point account
Successively divide each node in account model described in traversal;
According to the attribute of each node, a point account is carried out to each corresponding point of account account of the node.
5. according to claim 4 point of account method, it is characterised in that: the attribute according to each node, Xiang Gesuo
It states corresponding point of account account of node and carries out a point account and include:
If the attribute of the node is freeze operation attribute, it is corresponding that corresponding point of account amount of money of the node is given into the node
Point account account simultaneously freezes point account amount of money;
If the attribute of the node is freeze operation attribute of transferring accounts, corresponding point of account amount of money of the node is given into the node pair
Point account account answered, and freeze in point account amount of money to the summation of point account amount of money of all child node point accounts of the node;
If the attribute of the node is transfer operation attribute, it is corresponding that corresponding point of account amount of money of the node is given into the node
Divide account account.
6. according to claim 5 point of account method, which is characterized in that carried out to corresponding point of account account of each node
Divide before account, further includes:
If the node does not have father node, the freeze operation attribute is set by the attribute of the node;
If the node has father node and child node, the freeze operation category of transferring accounts is set by the attribute of the node
Property;
If the node only has father node, the transfer operation attribute is set by the attribute of the node.
7. according to claim 4 point of account method, which is characterized in that the attribute according to each node, Xiang Gesuo
It states corresponding point of account account of node and carries out a point account and include:
For not having the first kind node of father node, corresponding point of account amount of money of the first kind node is given into the first kind
Corresponding point of account account of node simultaneously freezes point account amount of money;
For the second class node with father node and child node, corresponding point of account amount of money of the second class node is given described
Second corresponding point of class node account account, and freeze all child node point accounts in point account amount of money to the second class node
The summation for dividing the account amount of money;
For with the third class node of father node, corresponding point of account amount of money of the third class node is only given the third class
Corresponding point of account account of node.
8. according to claim 7 point of account method, it is characterised in that:
Freeze interface by calling and corresponding point of account amount of money of the first kind node is given into corresponding point of the first kind node
Account account simultaneously freezes point account amount of money;
Freeze interface by calling to transfer accounts that corresponding point of account amount of money of the second class node given the second class node is corresponding
Divide account account, and freeze in point account amount of money to the total of point account amount of money of all child node point accounts of the second class node
With;
By calling interface of transferring accounts that corresponding point of account amount of money of the third class node is given corresponding point of the third class node
Account account.
9. according to claim 7 point of account method, it is characterised in that: described point of account account includes freezing family and cash family;
It is described that corresponding point of account amount of money of the first kind node is given into corresponding point of account account of the first kind node and is freezed
The described point of account amount of money includes: that corresponding point of account amount of money of the first kind node given to the first kind node is corresponding to freeze family
And freezed;
It is described that corresponding point of account amount of money of the second class node is given into corresponding point of account account of the second class node, and freeze
It to the summation of point account amount of money of all child node point accounts of the second class node include: by described second in the described point of account amount of money
Institute is given to the summation of point account amount of money of all child node point accounts of the second class node in corresponding point of account amount of money of class node
State that the second class node is corresponding to be freezed family and freezed, and by corresponding point of account amount of money of the second class node with to described the
The difference of the summation of point account amount of money of all child node point accounts of two class nodes gives the corresponding cash family of the second class node;
It is described by corresponding point of account amount of money of the third class node give corresponding point of account account of the third class node include: by
Corresponding point of account amount of money of the third class node gives the corresponding cash family of the third class node.
10. according to claim 1 point of account method, which is characterized in that described to divide account model to each described point based on described
Account account carries out a point account
Breadth first traversal is carried out to each node in described point of account model to record to create a point account;
It is recorded according to described point of account to the corresponding point account account of each node and carries out a point account.
11. according to any one of claim 1 to 10 point of account method, which is characterized in that the method can also include:
According to order information and clearing strategy generating is combined to divide account parameter.
12. one kind divides account device characterized by comprising
Module is obtained, divides account parameter for obtaining, described point of account parameter includes multiple points of account accounts and each described point of account account
Point account relationship and divide the account amount of money;
Construct module, for using it is each it is described divide account account as node, and according to each described point of account account dividing account relationship and divide
The account amount of money constructs tree-shaped point account model;
Divide account module, for carrying out a point account to each described point of account account based on point account model.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Point account method described in any one of claim 1~11 is realized when being executed by processor.
14. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to carry out any one of perform claim requirement 1~11 via the execution executable instruction
Described divides account method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810796337.6A CN109064157A (en) | 2018-07-19 | 2018-07-19 | Divide account method and device, storage medium, electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810796337.6A CN109064157A (en) | 2018-07-19 | 2018-07-19 | Divide account method and device, storage medium, electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109064157A true CN109064157A (en) | 2018-12-21 |
Family
ID=64817375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810796337.6A Pending CN109064157A (en) | 2018-07-19 | 2018-07-19 | Divide account method and device, storage medium, electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109064157A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110473083A (en) * | 2019-07-08 | 2019-11-19 | 阿里巴巴集团控股有限公司 | Tree-shaped adventure account recognition methods, device, server and storage medium |
CN111694833A (en) * | 2019-03-12 | 2020-09-22 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and computer readable storage medium |
CN114298703A (en) * | 2021-12-28 | 2022-04-08 | 商派软件有限公司 | Aggregated payment method and system |
-
2018
- 2018-07-19 CN CN201810796337.6A patent/CN109064157A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111694833A (en) * | 2019-03-12 | 2020-09-22 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and computer readable storage medium |
CN110473083A (en) * | 2019-07-08 | 2019-11-19 | 阿里巴巴集团控股有限公司 | Tree-shaped adventure account recognition methods, device, server and storage medium |
CN110473083B (en) * | 2019-07-08 | 2023-07-14 | 创新先进技术有限公司 | Tree risk account identification method, device, server and storage medium |
CN114298703A (en) * | 2021-12-28 | 2022-04-08 | 商派软件有限公司 | Aggregated payment method and system |
CN114298703B (en) * | 2021-12-28 | 2023-03-31 | 商派软件有限公司 | Aggregated payment method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102682406B (en) | Power distribution network improved method and system for plug-in electric vehicle | |
CN110298740A (en) | Data account checking method, device, equipment and storage medium | |
CN109886699A (en) | Activity recognition method and device, electronic equipment, storage medium | |
CN109064157A (en) | Divide account method and device, storage medium, electronic equipment | |
US20200334609A1 (en) | Adaptive multiyear economic planning for energy systems, microgrid and distributed energy resources | |
CN110110012A (en) | User's expectancy appraisal procedure, device, electronic equipment and readable medium | |
CN109257703A (en) | Methods of exhibiting, device, electronic equipment, the storage medium of driver's accumulation point | |
CN108122052A (en) | Method for pushing, system, storage medium and the electronic equipment of flight delay information | |
CN110083455A (en) | Figure computation processing method, device, medium and electronic equipment | |
CN110362622A (en) | Real-time stream processing system, method, equipment and storage medium based on real-time number storehouse | |
CN110348991A (en) | Assess the method, apparatus and electronic equipment of user's accrediting amount upper limit | |
CN110322300A (en) | Data processing method and device, electronic equipment, storage medium | |
CN110363654A (en) | A kind of favor information method for pushing, device and electronic equipment | |
CN109308226A (en) | Data exception determines method and device, storage medium and electronic equipment | |
CN109636520A (en) | Processing method, device, medium and the electronic equipment of order | |
US20180204232A1 (en) | System and method for buying and selling energy | |
CN110478898A (en) | The configuration method and device of virtual scene, storage medium and electronic equipment in game | |
CN109829763A (en) | Consuming capacity appraisal procedure and device, electronic equipment, storage medium | |
CN115311084A (en) | Method, device, equipment and storage medium for electric energy point-to-point transaction | |
He et al. | Management and real-time monitoring of interconnected energy hubs using digital twin: Machine learning based approach | |
CN107705205A (en) | A kind of trading strategies provide method, medium, device and computing device | |
KR102345949B1 (en) | Apparatus for recommending IT infrastructure system | |
CN107798125A (en) | Access decision method, system, equipment and storage medium based on cohesion model | |
CA3078924A1 (en) | Adaptive multiyear economic planning for energy systems, microgrid and distributed energy resources | |
CN116542490A (en) | Virtual power plant day-ahead dispatching encapsulation model and dispatching ex-definition model construction 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181221 |
|
RJ01 | Rejection of invention patent application after publication |