CN107832267A - A kind of statistics method of summary and device - Google Patents
A kind of statistics method of summary and device Download PDFInfo
- Publication number
- CN107832267A CN107832267A CN201711079708.0A CN201711079708A CN107832267A CN 107832267 A CN107832267 A CN 107832267A CN 201711079708 A CN201711079708 A CN 201711079708A CN 107832267 A CN107832267 A CN 107832267A
- Authority
- CN
- China
- Prior art keywords
- layer
- tree
- statistics
- directly under
- data
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/18—Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
-
- 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Optimization (AREA)
- Computational Mathematics (AREA)
- Operations Research (AREA)
- Mathematical Physics (AREA)
- Pure & Applied Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Mathematical Analysis (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Bioinformatics & Computational Biology (AREA)
- Probability & Statistics with Applications (AREA)
- Marketing (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Biology (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Tourism & Hospitality (AREA)
- Algebra (AREA)
- Quality & Reliability (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of statistics method of summary and device, this method to include:According to the hierarchical relationship of mechanism in system to be counted, the system is arranged to mechanism tree construction, obtains the mechanism tree number of plies;The organization directly under in the mechanism tree is determined, statistics obtains the data statistics result of each organization directly under;Level where defining the organization directly under is initial statistical position;According to successively statistical summaries, successively collect to last layer mechanism since the initial statistical position, until arriving top mechanism, and each layer of combined data is preserved to the interim table;Combined data in the interim table is summed up, obtains the collect statistics result of the system to be counted.The purpose for improving mechanism statistics and collecting efficiency is realized by the present invention.
Description
Technical field
The present invention relates to data statistics technical field, more particularly to a kind of statistics by the tree structure side of collecting upwards
Method and device.
Background technology
Recent years, along with the development and application of big data, data statistics technology also develops therewith.In form, analysis
In class system, the similar situation that data summarization is carried out by mechanism is frequently encountered.Mechanism can be arranged to machine according to hierarchical relationship
The structure of paper mulberry, and collect by mechanism tree the business statistics result of each mechanism upwards, such as transaction data and account number of each mechanism
According to etc..
When being counted due to statement analysis, it is often necessary to belong to from bottom operating agency by the statistical result of sub-agencies by mechanism
Relation collects upwards, draws the service conditions of each level mechanism and its affiliated institutions.Currently used method of summary can be general
Include as two ways.First, the method traveled through by mechanism collects each mechanism upwards, and each mechanism, which is done, once to collect.Tool
Body is that a mechanism number is taken in slave paper mulberry;According to mechanism tree by have under the mechanism business datum occur mechanism business
Data summarization is to the mechanism;Circulation collects, to the last a structure.Second, the level quantity of fixed mechanism, in the absence of
Mechanism sets Imaginary Mechanism collect calculating require.Specifically, mechanism tree is evened up, the depth N of first set mechanism tree, ensure hair
The mechanism number of plies of each leaf agency node of occupation business to root node is equal to the depth capacity of mechanism tree, if middle machine is not present
Structure, an Imaginary Mechanism is set for it;Mechanism tree is split as N layers, finds the upper of each leaf node that business datum occurs
Level mechanism, the business datum is aggregated into its parent body.
Existing organization data collect there is it is certain the defects of, be mainly reflected in:Using the first above-mentioned method of summary
When in the case of mechanism substantial amounts, collect extremely inefficient;Using above-mentioned second of method of summary, when the mechanism number of plies changes just
Need to modify to algorithm, computational flexibility is poor.
The content of the invention
Above mentioned problem is directed to, the present invention provides a kind of statistics method of summary and device, realizes and improves mechanism system
Count the purpose for collecting efficiency.
To achieve these goals, according to the first aspect of the invention, there is provided a kind of statistics method of summary, the party
Method includes:
According to the hierarchical relationship of mechanism in system to be counted, the system is arranged to mechanism tree construction, obtains the machine
The paper mulberry number of plies;
The organization directly under in the mechanism tree is determined, statistics obtains the data statistics result of each organization directly under;
Level where defining the organization directly under is initial statistical position;
According to successively statistical summaries, successively collect to last layer mechanism since the initial statistical position, until to most
Top layer mechanism, and each layer of combined data is preserved to the interim table;
Combined data in the interim table is summed up, obtains the collect statistics knot of the system to be counted
Fruit.
Preferably, the organization directly under determined in the mechanism tree, statistics obtain the data statistics of each organization directly under
As a result, including:
Analyze the hierarchical relationship of each mechanism in the mechanism tree;
Judge whether the annexation between the mechanism of upper strata meets preparatory condition to each mechanism in the mechanism tree, such as
Fruit is, then is organization directly under by the definition of mechanism, wherein, the preparatory condition is that the mechanism directly belongs to upper strata mechanism;
Statistics obtains the data statistics result of each organization directly under.
Preferably, it is described according to successively statistical summaries, successively collect since the initial statistical position to last layer machine
Structure, until arriving top mechanism, and each layer of combined data is preserved to the interim table, including:
The number of plies N of the mechanism tree is obtained, wherein, N is positive integer;
The initial statistical position is designated as L0Layer, by the L0The data statistics result of layer collects on corresponding to it
One level L1Layer;
By the L1The data statistics result of layer collects to its corresponding last layer level L2Layer, until by data statistics result
Collect to LNLayer;
By the L0Layer arrives LNEach layer of combined data of layer is preserved to the interim table.
Preferably, methods described also includes:
Judge whether the combined data sum of the interim table is equal with the combined data of the mechanism tree top mechanism,
If it is, prove that collect statistics result is correct.
According to the second aspect of the invention, there is provided a kind of statistics collects device, and the device includes:
Number of plies acquisition module, for the hierarchical relationship according to mechanism in system to be counted, the system is arranged to mechanism
Tree construction, obtain the mechanism tree number of plies;
Determining module, for determining the organization directly under in the mechanism tree, statistics obtains the data system of each organization directly under
Count result;
Definition module, it is initial statistical position for level where defining the organization directly under;
Summarizing module, for according to successively statistical summaries, successively collecting to last layer since the initial statistical position
Mechanism, until arriving top mechanism, and each layer of combined data is preserved to the interim table;
Add and module, for being summed up to the combined data in the interim table, obtain the system to be counted
Collect statistics result.
Preferably, the determining module includes:
Analytic unit, for analyzing the hierarchical relationship of each mechanism in the mechanism tree;
Judging unit, for judging each mechanism in the mechanism tree, whether the annexation between the mechanism of upper strata expires
Sufficient preparatory condition, if it is, be organization directly under by the definition of mechanism, wherein, the preparatory condition directly belongs to upper strata machine
Structure;
As a result statistic unit, the data statistics result of each organization directly under is obtained for counting.
Preferably, the summarizing module includes:
Acquiring unit, for obtaining the number of plies N of the mechanism tree, wherein, N is positive integer;
First statistic unit, for the initial statistical position to be designated as into L0Layer, by the L0The data statistics result of layer
Collect to its corresponding last layer level L1Layer;
Second statistic unit, for by the L1The data statistics result of layer collects to its corresponding last layer level L2Layer, directly
Extremely data statistics result is collected to LNLayer;
Storage unit, for by the L0Layer arrives LNEach layer of combined data of layer is preserved to the interim table.
Preferably, described device also includes:
Judge module, for judge the interim table combined data sum whether with the mechanism tree top mechanism
Combined data is equal, if it is, proving that collect statistics result is correct.
Compared to prior art, the present invention obtains the mechanism by the way that the mechanism in system is arranged into mechanism tree construction
The number of plies of tree, it is then determined that organization directly under, is successively carried out collecting for data statistics result upwards since organization directly under, and will be each
Layer statistical result is preserved into interim table, final to obtain summarized results because only needing to pay close attention to the layer of mechanism tree in statistic processes
Number, collect number and amount of calculation so not having an impact when mechanism tree is extended or changed, and then can support to appoint
The tree structure for number of levels of anticipating, while whole process is all that collect statistics do not have complicated calculating process, and then ensure that meter
Efficiency is calculated, it is achieved thereby that improving the purpose that mechanism statistics collects efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet for statistics method of summary that the embodiment of the present invention one provides;
Fig. 2 is the structural representation for the initial mechanism tree that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of the mechanism tree after collecting the first time that the embodiment of the present invention two provides;
Fig. 4 be the embodiment of the present invention two provide collect for the second time after mechanism tree structural representation;
Fig. 5 is the structural representation that a kind of statistics that the embodiment of the present invention three provides collects device.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Term " first " and " second " in description and claims of this specification and above-mentioned accompanying drawing etc. are to be used for area
Not different objects, rather than for describing specific order.In addition term " comprising " and " having " and their any deformations,
It is intended to cover non-exclusive include.Such as contain the process of series of steps or unit, method, system, product or set
It is standby not to be set in the step of having listed or unit, but the step of may include not list or unit.
Embodiment one
Referring to the schematic flow sheet that Fig. 1 is a kind of statistics method of summary that the embodiment of the present invention one provides, this method
Comprise the following steps:
S11, the hierarchical relationship according to mechanism in system to be counted, the system is arranged to mechanism tree construction, obtains institute
State the mechanism tree number of plies;
Mechanism tree is arranged to tree structure according to hierarchical relationship, is not relying on the tree-like mechanism of fixation herein, supports to appoint
The tree structure for number of levels of anticipating.
S12, organization directly under in the mechanism tree is determined, statistics obtains the data statistics result of each organization directly under;
Specifically, the step includes:
Analyze the hierarchical relationship of each mechanism in the mechanism tree;
Judge whether the annexation between the mechanism of upper strata meets preparatory condition to each mechanism in the mechanism tree, such as
Fruit is, then is organization directly under by the definition of mechanism, wherein, the preparatory condition is that the mechanism directly belongs to upper strata mechanism;
Statistics obtains the data statistics result of each organization directly under.
It should be noted that because when mechanism tree in the present invention carries out data statistics, often to each mechanism
Transaction data, account data or other kinds of data are counted, and specific data are according to corresponding to being carried out actual conditions
Statistics, the particular type of data, the content and form present invention are not limited.
It is proposed it is the business statistics result for successively collecting each mechanism from bottom to top according to mechanism tree construction in the present invention, institute
To need to determine first since which layer, i.e. initial statistical position, in the present invention preferably since organization directly under, i.e. the machine
Structure directly belongs to upper strata mechanism, different if belonging to indirectly to be referred to as organization directly under.
Level where S13, the definition organization directly under is initial statistical position;
S14, according to successively statistical summaries, successively collect to last layer mechanism since the initial statistical position, until
Preserved to top mechanism, and by each layer of combined data to the interim table;
Specifically, the step includes:
The number of plies N of the mechanism tree is obtained, wherein, N is positive integer;
The initial statistical position is designated as L0Layer, by the L0The data statistics result of layer collects on corresponding to it
One level L1Layer;
By the L1The data statistics result of layer collects to its corresponding last layer level L2Layer, until by data statistics result
Collect to LNLayer;
By the L0Layer arrives LNEach layer of combined data of layer is preserved to the interim table.
It should be noted that the statistical result of organization directly under is first obtained, then according to mechanism relationship between superior and subordinate, by each
The collect statistics result of organization directly under collects in the corresponding parent body that expires, if the level of the upper strata mechanism is L1Layer, it is
Avoid repeating to count, by L1The combined data of layer is saved in interim table;
Then circulated as follows, cycle-index is that (N-2) is secondary:
According to mechanism attaching relation, by L1The statistical result of layer is aggregated into its last layer L2Layer;
By L2Layer result is saved in interim table;
By L2Layer is aggregated into L3Layer, circulation are carried out until being aggregated into LNLayer.
It is understood that the mechanism number of plies obtained when the computing of collect statistics is dependent on operation is iterated calculating, transport
Calculating number will not change because of the change of mechanism quantity.
S15, the combined data in the interim table is summed up, obtain the collect statistics of the system to be counted
As a result.
In order to avoid repeating to count, each layer of combined data is saved in interim table, in order to ensure the correctness of result,
The combined data sum of the interim table is equal with the combined data of bottom mechanism, that is to say, that the statistics method of summary is also wrapped
Include:
Judge whether the combined data sum of the interim table is equal with the combined data of the mechanism tree top mechanism,
If it is, prove that collect statistics result is correct.
By technical scheme disclosed in the embodiment of the present invention one, the mechanism in system is arranged to mechanism tree construction, obtained
The number of plies of the mechanism tree, it is then determined that organization directly under, successively carries out the remittance of data statistics result upwards since organization directly under
Always, and by each layer statistical result preserve into interim table, because the computing of collect statistics is dependent on the mechanism layer obtained when running
Number is iterated calculating, and operation times will not change because of the change of mechanism quantity, finally by the total amount in interim table
According to summing up, the collect statistics result of the system to be counted is obtained, whole process is all that collect statistics are not multiple
Miscellaneous calculating process, and then ensure that computational efficiency.Therefore, can be without limiting mechanism tree hierachy machine in advance by the present invention
On the premise of structure, it is rapidly completed mechanism statistics and collects.
Embodiment two
With reference to the detailed process of S11 to the S15 steps described in the embodiment of the present invention one and Fig. 1, in present invention implementation
It will be illustrated in example two with specific implement scene, by the scene setting in banking system, the banking system includes
Head office, one-level branch, two level branch and three-level branch, it is therefore an objective to the transaction data statistical result of each branch is collected,
The summarized results for knowing transaction data that can be expressly understood that in order to head office.
It is the mechanism facilities before collecting referring to Fig. 2, including head office N, one-level branch a, one-level branch b, one-level are in lines
C, two level branch d, two level branch e, two level branch f, two level branch g, two level branch h, three-level branch i, three-level branch j;
Then according to the judgment criterion of organization directly under, i.e. the mechanism directly belongs to upper strata mechanism, if belonging to indirectly
Difference is referred to as organization directly under, selects organization directly under as one-level branch c, two level branch e, two level branch f, two level branch h, three-level
Branch i, three-level branch j, then the transaction data statistical result of above-mentioned organization directly under is collected to corresponding last layer mechanism, i.e.,
One-level branch c transaction data statistical result collects to head office N;Two level branch e, two level branch f transaction data statistical result
Collect to one-level branch a;Two level branch h transaction data statistical result collects to one-level branch b;Three-level branch i number of deals
Result collects to two level branch d, three-level branch j transaction data and collected to two level branch g, unfinished statistics now according to statistics
Structure tree referring to Fig. 3, the statistical result of corresponding two level branch is collected to its last layer mechanism i.e. and branch, i.e., by two
Level branch d transaction data statistical result collect to one-level branch a, by two level branch g transaction data statistical result collect to
One-level branch b, the structure tree of unfinished statistics now finally converge the transaction data statistical result of one-level branch referring to Fig. 4
Always to head office, every layer of summarized results is preserved to interim table in the process, the combined data in the interim table is carried out
Add and handle, obtain the collect statistics result of the system to be counted, the statistics for the whole system that has been near completion collects.
Technical scheme disclosed according to embodiments of the present invention two, by first determining that organization directly under is successively collected again, most
Each layer result is added and obtained summarized results afterwards, because being simply determined that the number of plies can be carried out collecting, tree enters in mechanism
Do not have an impact when row extension or change and collect number and amount of calculation, and then the tree structure of any number of levels can be supported, together
When whole process be all that collect statistics do not have complicated calculating process, and then computational efficiency is ensure that, it is achieved thereby that improving
Mechanism statistics collects the purpose of efficiency.
Embodiment three
It is corresponding with a kind of statistics method of summary disclosed in the embodiment of the present invention one and embodiment two, it is of the invention
Embodiment three additionally provides a kind of statistics and collects device, and referring to Fig. 4, the device includes:
Number of plies acquisition module 1, for the hierarchical relationship according to mechanism in system to be counted, the system is arranged to mechanism
Tree construction, obtain the mechanism tree number of plies;
Determining module 2, for determining the organization directly under in the mechanism tree, statistics obtains the data system of each organization directly under
Count result;
Definition module 3, it is initial statistical position for level where defining the organization directly under;
Summarizing module 4, for according to successively statistical summaries, successively collecting to last layer since the initial statistical position
Mechanism, until arriving top mechanism, and each layer of combined data is preserved to the interim table;
Add with module 5, for being summed up to the combined data in the interim table, obtain the system to be counted
Collect statistics result.
Accordingly, the determining module 2 includes:
Analytic unit 21, for analyzing the hierarchical relationship of each mechanism in the mechanism tree;
Judging unit 22, for judge each mechanism in the mechanism tree whether the annexation between the mechanism of upper strata
Meet preparatory condition, if it is, be organization directly under by the definition of mechanism, wherein, the preparatory condition is that the mechanism is direct
Belong to upper strata mechanism;
As a result statistic unit 23, the data statistics result of each organization directly under is obtained for counting.
Corresponding, the summarizing module 4 includes:
Acquiring unit 41, for obtaining the number of plies N of the mechanism tree, wherein, N is positive integer;
First statistic unit 42, for the initial statistical position to be designated as into L0Layer, by the L0The data statistics knot of layer
Fruit collects to its corresponding last layer level L1Layer;
Second statistic unit 43, for by the L1The data statistics result of layer collects to its corresponding last layer level L2Layer,
Until data statistics result is collected to LNLayer;
Storage unit 44, for by the L0Layer arrives LNEach layer of combined data of layer is preserved to the interim table.
Specifically, described device also includes:
Judge module, for judge the interim table combined data sum whether the remittance with the mechanism tree bottom mechanism
Total data is equal, if it is, proving that collect statistics result is correct.
In embodiments of the invention three, by the way that the mechanism in system is arranged into mechanism tree construction, the mechanism is obtained
The number of plies of tree, it is then determined that organization directly under, is successively carried out collecting for data statistics result upwards since organization directly under, and will be each
Layer statistical result is preserved into interim table, final to obtain summarized results because only needing to pay close attention to the layer of mechanism tree in statistic processes
Number, collect number and amount of calculation so not having an impact when mechanism tree is extended or changed, and then can support to appoint
The tree structure for number of levels of anticipating, while whole process is all that collect statistics do not have complicated calculating process, and then ensure that meter
Efficiency is calculated, it is achieved thereby that improving the purpose that mechanism statistics collects efficiency.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part
It is bright.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (8)
1. a kind of statistics method of summary, it is characterised in that this method includes:
According to the hierarchical relationship of mechanism in system to be counted, the system is arranged to mechanism tree construction, obtains the mechanism tree
The number of plies;
The organization directly under in the mechanism tree is determined, statistics obtains the data statistics result of each organization directly under;
Level where defining the organization directly under is initial statistical position;
According to successively statistical summaries, successively collect to last layer mechanism since the initial statistical position, until arriving top
Mechanism, and each layer of combined data is preserved to the interim table;
Combined data in the interim table is summed up, obtains the collect statistics result of the system to be counted.
2. according to the method for claim 1, it is characterised in that the organization directly under determined in the mechanism tree, statistics
The data statistics result of each organization directly under is obtained, including:
Analyze the hierarchical relationship of each mechanism in the mechanism tree;
Judge whether the annexation between the mechanism of upper strata meets preparatory condition to each mechanism in the mechanism tree, if
It is then organization directly under by the definition of mechanism to be, wherein, the preparatory condition is directly to belong to upper strata mechanism;
Statistics obtains the data statistics result of each organization directly under.
3. according to the method for claim 1, it is characterised in that it is described according to successively statistical summaries, from the initial statistical
Position starts successively to collect to last layer mechanism, until arriving top mechanism, and each layer of combined data is preserved to described
Interim table, including:
The number of plies N of the mechanism tree is obtained, wherein, N is positive integer;
The initial statistical position is designated as L0Layer, by the L0The data statistics result of layer collects to its corresponding last layer
Level L1Layer;
By the L1The data statistics result of layer collects to its corresponding last layer level L2Layer, until data statistics result is collected
To LNLayer;
By the L0Layer arrives LNEach layer of combined data of layer is preserved to the interim table.
4. according to the method for claim 1, it is characterised in that methods described also includes:
Judge whether the combined data sum of the interim table is equal with the combined data of the mechanism tree top mechanism, if
It is then to prove that collect statistics result is correct.
5. a kind of statistics collects device, it is characterised in that the device includes:
Number of plies acquisition module, for the hierarchical relationship according to mechanism in system to be counted, the system is arranged to mechanism tree knot
Structure, obtain the mechanism tree number of plies;
Determining module, for determining the organization directly under in the mechanism tree, statistics obtains the data statistics knot of each organization directly under
Fruit;
Definition module, it is initial statistical position for level where defining the organization directly under;
Summarizing module, for according to successively statistical summaries, successively collecting to last layer mechanism since the initial statistical position,
Until arriving top mechanism, and each layer of combined data is preserved to the interim table;
Add and module, for being summed up to the combined data in the interim table, obtain the remittance of the system to be counted
Total statistical result.
6. device according to claim 5, it is characterised in that the determining module includes:
Analytic unit, for analyzing the hierarchical relationship of each mechanism in the mechanism tree;
Judging unit, for judging whether the annexation between the mechanism of upper strata meets in advance each mechanism in the mechanism tree
If condition, if it is, be organization directly under by the definition of mechanism, wherein, the preparatory condition is that the mechanism directly belongs to
Upper strata mechanism;
As a result statistic unit, the data statistics result of each organization directly under is obtained for counting.
7. device according to claim 5, it is characterised in that the summarizing module includes:
Acquiring unit, for obtaining the number of plies N of the mechanism tree, wherein, N is positive integer;
First statistic unit, for the initial statistical position to be designated as into L0Layer, by the L0The data statistics result of layer collects
To its corresponding last layer level L1Layer;
Second statistic unit, for by the L1The data statistics result of layer collects to its corresponding last layer level L2Layer, until will
Data statistics result collects to LNLayer;
Storage unit, for by the L0Layer arrives LNEach layer of combined data of layer is preserved to the interim table.
8. device according to claim 5, it is characterised in that described device also includes:
Judge module, for judging whether the combined data sum of the interim table collects with the mechanism tree top mechanism
Data are equal, if it is, proving that collect statistics result is correct.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711079708.0A CN107832267A (en) | 2017-11-06 | 2017-11-06 | A kind of statistics method of summary and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711079708.0A CN107832267A (en) | 2017-11-06 | 2017-11-06 | A kind of statistics method of summary and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107832267A true CN107832267A (en) | 2018-03-23 |
Family
ID=61653744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711079708.0A Pending CN107832267A (en) | 2017-11-06 | 2017-11-06 | A kind of statistics method of summary and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107832267A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677617A (en) * | 2018-07-03 | 2020-01-10 | 视联动力信息技术股份有限公司 | Data processing method and device |
CN111782711A (en) * | 2020-07-01 | 2020-10-16 | 南京认知物联网研究院有限公司 | Water quantity data statistical method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104021450A (en) * | 2014-06-19 | 2014-09-03 | 北京工商大学 | Conglomerate statement management method and device |
US20150006509A1 (en) * | 2013-06-28 | 2015-01-01 | Microsoft Corporation | Incremental maintenance of range-partitioned statistics for query optimization |
CN105528447A (en) * | 2015-12-22 | 2016-04-27 | 远光软件股份有限公司 | Method for rejecting and summarizing specific data layer by layer simultaneously |
CN106846021A (en) * | 2015-12-04 | 2017-06-13 | 阿里巴巴集团控股有限公司 | A kind of indicator-specific statistics method and apparatus |
-
2017
- 2017-11-06 CN CN201711079708.0A patent/CN107832267A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150006509A1 (en) * | 2013-06-28 | 2015-01-01 | Microsoft Corporation | Incremental maintenance of range-partitioned statistics for query optimization |
CN104021450A (en) * | 2014-06-19 | 2014-09-03 | 北京工商大学 | Conglomerate statement management method and device |
CN106846021A (en) * | 2015-12-04 | 2017-06-13 | 阿里巴巴集团控股有限公司 | A kind of indicator-specific statistics method and apparatus |
CN105528447A (en) * | 2015-12-22 | 2016-04-27 | 远光软件股份有限公司 | Method for rejecting and summarizing specific data layer by layer simultaneously |
Non-Patent Citations (1)
Title |
---|
辛末子午: "https://blog.csdn.net/hjjoe1213123/article/details/55509491", 《TREE树型结构统计每个层级的总数》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677617A (en) * | 2018-07-03 | 2020-01-10 | 视联动力信息技术股份有限公司 | Data processing method and device |
CN111782711A (en) * | 2020-07-01 | 2020-10-16 | 南京认知物联网研究院有限公司 | Water quantity data statistical method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106156941B (en) | A kind of user credit scoring optimization method and device | |
CN106779457A (en) | A kind of rating business credit method and system | |
CN111192004A (en) | Method for displaying current to-do task and subsequent to-do workflow | |
CN109544316B (en) | Method and system for urging collection of real-time case division according to proportion | |
CN107705207A (en) | Method, apparatus, equipment and the computer-readable storage medium that customer value is assessed | |
CN109615524B (en) | Money laundering crime group partner identification method, money laundering crime group partner identification device, computer equipment and storage medium | |
CN105528447B (en) | The layer-by-layer method summarized when rejecting of a kind of pair of specific data | |
CN106131158A (en) | Resource scheduling device based on cloud tenant's credit rating under a kind of cloud data center environment | |
CN106875110A (en) | Operational indicator layered calculation method and device, distributed computing method and system | |
CN107230146A (en) | Data processing method and device applied to accounting processing | |
CN103605714B (en) | The recognition methods of website abnormal data and device | |
CN106325756A (en) | Data storage and data computation methods and devices | |
CN102262664A (en) | Quality estimating method and quality estimating device | |
CN107562632A (en) | For the A/B method of testings and device of Generalization bounds | |
CN107682575A (en) | Business personnel's incoming call inlet wire distribution method, electronic installation, computer-readable recording medium | |
CN113076200B (en) | Channel flow dynamic regulation and control method based on multiple payment channels | |
CN110097455B (en) | Bank customer optimal configuration method and device | |
CN104320271B (en) | A kind of network equipment safety evaluation method and device | |
CN107483381A (en) | The monitoring method and device of interlock account | |
CN106651368A (en) | Order-scalping-preventing payment mode control method and control system | |
CN107832267A (en) | A kind of statistics method of summary and device | |
CN110457396A (en) | One kind being based on block chain scientific data processing method, device, equipment and storage medium | |
CN206497498U (en) | A kind of integrated system of credit rating information data based on enterprise's reference business | |
CN113360269A (en) | Task allocation method, device, server and storage medium | |
CN101388036A (en) | Data table summarizing method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180323 |