CN109033468A - The processing method and processing device of resource change - Google Patents

The processing method and processing device of resource change Download PDF

Info

Publication number
CN109033468A
CN109033468A CN201811014679.4A CN201811014679A CN109033468A CN 109033468 A CN109033468 A CN 109033468A CN 201811014679 A CN201811014679 A CN 201811014679A CN 109033468 A CN109033468 A CN 109033468A
Authority
CN
China
Prior art keywords
date
amount
money
resource
report
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811014679.4A
Other languages
Chinese (zh)
Other versions
CN109033468B (en
Inventor
付敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811014679.4A priority Critical patent/CN109033468B/en
Publication of CN109033468A publication Critical patent/CN109033468A/en
Application granted granted Critical
Publication of CN109033468B publication Critical patent/CN109033468B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This specification one or more embodiment discloses a kind of processing method and processing device of resource change, to improve the output efficiency of asset report.The described method includes: obtaining the resource day occurrence quantity on each date in predetermined amount of time;According to the resource day occurrence quantity, the from date for calculating the predetermined amount of time adds up occurrence quantity to the resource between each date;Wherein, the resource add up occurrence quantity refer to the from date to the change in resources occurred between each date aggregate-value;The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately the end of term stock number on each date;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance refers to that the stock number after change in resources occurs for the same day;Resource residual amount report is generated according to the end of term stock number, the resource residual amount report includes the corresponding relationship between the end of term stock number and each date.

Description

The processing method and processing device of resource change
Technical field
This specification is related to technical field of data processing more particularly to a kind of processing method and processing device of resource change.
Background technique
The data source of asset report is related to each operation system, and business datum amount is huge, there is complicated cleaning logic.Money Dependent on mass data computing platform ODPS, (Open Data Processing Service is opened the technology platform of source report Data processing service), when calculating daily end of term stock number, cleaned one day from the data source of system introducing by the platform Day occurrence quantity data, the end of term stock number on the same day can be obtained, and beginning stock number therein can in then cumulative initial stock number It is considered the end of term stock number of the previous day.It is the present namely based on the day occurrence quantity that the end of term stock number of the previous day adds up upper today It end of term stock number.
In above-mentioned stock number output mode, stock number output actually forms one on time dimension in asset report The dependence of chain type, as long as exception occur in the data of some day in history, then from all after that day being abnormal Report value requires to recalculate one time, and must wait until just obtain resource one day after after the stock number output of the previous day Amount, this can consume huge time cost, if it is away from modern difference more remote, the time cost repaired will in history It is huger, and considerable influence can be generated to the quality of report.
Summary of the invention
The purpose of this specification one or more embodiment is to provide a kind of processing method and processing device of resource change, to Improve the output efficiency of asset report.
In order to solve the above technical problems, this specification one or more embodiment is achieved in that
On the one hand, this specification one or more embodiment provides a kind of processing method of resource change, comprising:
Obtain the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day occurrence quantity refers to that the same day is sent out The stock number for changing;
According to the resource day occurrence quantity, the from date of the predetermined amount of time is calculated to the money between each date Source adds up occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to the resource occurred between each date The aggregate-value of variation;
The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately each date End of term stock number;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance, which refers to, to be worked as Stock number after change in resources occurs for day;
Resource residual amount report is generated according to the end of term stock number, the resource residual amount report is provided comprising the end of term Source amount and the corresponding relationship between each date.
In one embodiment, the resource day occurrence quantity for obtaining each date in predetermined amount of time, comprising:
First resource report is obtained, the first resource report includes the resource day occurrence quantity on each date;
The resource day occurrence quantity on each date is extracted from the first resource report.
In one embodiment, described according to the resource day occurrence quantity, calculate the from date of the predetermined amount of time The resource between each date in the predetermined amount of time adds up occurrence quantity, comprising:
Obtain the date report comprising each date;
Cartesian product operation is carried out to the first resource report and the date report, is obtained comprising the resource day The Secondary resource report of corresponding relationship between occurrence quantity, each first date and each second date;Wherein, each first date For each date in the first resource report, each second date is each date in the date report;
The entry for not meeting preset condition in the Secondary resource report is deleted, information resources report is obtained;Wherein, described Preset condition includes being not later than the second corresponding date on first date;
According to the resource day occurrence quantity in the information resources report, the from date is calculated separately to described each Resource between date adds up occurrence quantity.
In one embodiment, the initial stock number for adding up occurrence quantity and the from date according to the resource, Calculate separately the end of term stock number on each date, comprising:
The resource is added up occurrence quantity, and with the sum of the initial stock number to be determined as the accumulative occurrence quantity of the resource corresponding Date end of term stock number.
In one embodiment, the described sum by the accumulative occurrence quantity of the resource and the initial stock number is determined as described Resource adds up the end of term stock number on occurrence quantity corresponding date, comprising:
Generate the 4th asset report for adding up the corresponding relationship between occurrence quantity comprising first date and the resource;
Cartesian product operation is carried out to the 4th asset report and the initial stock number, is obtained comprising described first Date, the resource add up the 5th asset report of the corresponding relationship between occurrence quantity and the initial stock number;
Occurrence quantity is added up to the resource in the 5th asset report and the initial stock number carries out sum operation, Obtain the end of term stock number that the resource adds up the occurrence quantity corresponding date.
In one embodiment, the above method further include:
If detecting, the resource day occurrence quantity on the third date in each date is updated, according to updated described The resource day occurrence quantity on third date calculates the money between each 4th date after the from date to the third date Source adds up occurrence quantity;
Add up occurrence quantity to the resource between each 4th date according to the from date, updates the resources left Measure report.
On the other hand, this specification one or more embodiment provides a kind of processing method that remaining sum changes, comprising:
The amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs the amount of money and refers to that the same day becomes The amount of money of change;
The amount of money occurs according to the day, the from date for calculating the predetermined amount of time adds up between each date The amount of money occurs;Wherein, the accumulative amount of money that occurs refers to the from date to the amount of money variation occurred between each date Aggregate-value;
According to the accumulative beginning balance that the amount of money and the from date occurs, the end of term on each date is calculated separately Remaining sum;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance refers to that remaining sum occurs for the same day The amount of money after variation;
Remaining sum report is generated according to the ending balance, the remaining sum report includes the ending balance and each date Between corresponding relationship.
In one embodiment, the amount of money occurs for the day for obtaining each date in predetermined amount of time, comprising:
The first amount of money report is obtained, first amount of money report includes the day on each date the amount of money occurring;
The amount of money occurs for the day that each date is extracted from first amount of money report.
In one embodiment, described that the amount of money occurs according to the day, the from date for calculating the predetermined amount of time arrives The accumulative generation amount of money between each date, comprising:
Obtain the date report comprising each date;
Cartesian product operation is carried out to first amount of money report and the date report, obtains occurring comprising the day Second amount of money report of the corresponding relationship between the amount of money, each first date and each second date;Wherein, each first date is Each date in first amount of money report, each second date are each date in the date report;
The entry for not meeting preset condition in second amount of money report is deleted, third amount of money report is obtained;Wherein, described Preset condition includes being not later than the second corresponding date on first date;
The amount of money occurs according to the day in the third amount of money report, calculates separately the from date to each day The accumulative generation amount of money between phase.
In one embodiment, described according to the accumulative beginning balance that the amount of money and the from date occurs, respectively Calculate the ending balance on each date, comprising:
The accumulative generation amount of money and the sum of the beginning balance are determined as the accumulative generation amount of money corresponding date Ending balance.
In one embodiment, described that the accumulative sum that the amount of money and the beginning balance occurs is determined as described add up The ending balance on the amount of money corresponding date occurs, comprising:
It generates comprising first date and accumulative the 4th amount of money report that the corresponding relationship between the amount of money occurs;
Cartesian product operation is carried out to the 4th amount of money report and the beginning balance, is obtained comprising described first day Phase, accumulative the 5th amount of money report that the corresponding relationship between the amount of money and the beginning balance occurs;
By the accumulative generation amount of money and beginning balance progress sum operation in the 5th amount of money report, obtain The accumulative ending balance that the amount of money corresponding date occurs.
In one embodiment, the above method further include:
If detecting the day on the third date in each date the amount of money occurs and is updated, according to updated described the The amount of money occurs for day on three dates, calculates the accumulative hair between each 4th date after the from date to the third date The raw amount of money;
According to the from date to the accumulative generation amount of money between each 4th date, the remaining sum report is updated.
In another aspect, this specification one or more embodiment provides a kind of processing unit of resource change, comprising:
First obtains module, for obtaining the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource Day occurrence quantity refers to the same day changed stock number;
First computing module, for according to the resource day occurrence quantity, the from date for calculating the predetermined amount of time to be arrived Resource between each date adds up occurrence quantity;Wherein, the resource add up occurrence quantity refer to the from date to it is described respectively The aggregate-value of the change in resources occurred between date;
Second computing module, for adding up the initial stock number of occurrence quantity and the from date according to the resource, point The end of term stock number on each date is not calculated;Wherein, the initial stock number refers to that the resource before change in resources occurs for the same day Amount;The ending balance refers to that the stock number after change in resources occurs for the same day;
First generation module, for generating resource residual amount report, the resource residual amount according to the end of term stock number Report includes the corresponding relationship between the end of term stock number and each date.
In one embodiment, the first acquisition module includes:
First acquisition unit, for obtaining first resource report, the first resource report includes the money on each date Source day occurrence quantity;
First extraction unit, for extracting the resource day occurrence quantity on each date from the first resource report.
In one embodiment, first computing module includes:
Second acquisition unit, for obtaining the date report comprising each date;
First arithmetic element, for carrying out cartesian product operation to the first resource report and the date report, Obtain the Secondary resource report comprising the corresponding relationship between the resource day occurrence quantity, each first date and each second date; Wherein, each first date is each date in the first resource report, and each second date is the date report In each date;
First deletion unit obtains third for deleting the entry for not meeting preset condition in the Secondary resource report Asset report;Wherein, the preset condition includes being not later than the second corresponding date on first date;
First computing unit, for calculating separately institute according to the resource day occurrence quantity in the information resources report It states from date and adds up occurrence quantity to the resource between each date.
In one embodiment, second computing module includes:
First determination unit, the sum for the resource to be added up occurrence quantity and the initial stock number are determined as the money Source adds up the end of term stock number on occurrence quantity corresponding date.
In one embodiment, first determination unit is also used to:
Generate the 4th asset report for adding up the corresponding relationship between occurrence quantity comprising first date and the resource;
Cartesian product operation is carried out to the 4th asset report and the initial stock number, is obtained comprising described first Date, the resource add up the 5th asset report of the corresponding relationship between occurrence quantity and the initial stock number;
Occurrence quantity is added up to the resource in the 5th asset report and the initial stock number carries out sum operation, Obtain the end of term stock number that the resource adds up the occurrence quantity corresponding date.
In one embodiment, above-mentioned apparatus further include:
Third computing module, if for detecting that the resource day occurrence quantity on the third date in each date is updated, Then according to the resource day occurrence quantity on the updated third date, after calculating the from date to the third date Resource between each 4th date adds up occurrence quantity;
First update module, for being occurred according to the from date to the resource between each 4th date is accumulative Amount, updates the resource residual amount report.
In another aspect, this specification one or more embodiment provides a kind of processing unit that remaining sum changes, comprising:
Second obtains module, and the amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs The amount of money refers to the same day changed amount of money;
4th computing module calculates the from date of the predetermined amount of time to institute for the amount of money to occur according to the day State the accumulative generation amount of money between each date;Wherein, the accumulative generation amount of money refer to the from date to each date it Between occur the amount of money variation aggregate-value;
5th computing module, for being counted respectively according to the accumulative beginning balance that the amount of money and the from date occurs Calculate the ending balance on each date;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The end of term Remaining sum refers to that the amount of money after remaining sum variation occurs for the same day;
Second generation module, for generating remaining sum report according to the ending balance, the remaining sum report includes the phase Corresponding relationship between last remaining sum and each date.
In one embodiment, the second acquisition module includes:
Third acquiring unit, for obtaining the first amount of money report, first amount of money report includes the day on each date The amount of money occurs;
The amount of money occurs for the second extraction unit, the day for extracting each date from first amount of money report.
In one embodiment, the 4th computing module includes:
4th acquiring unit, for obtaining the date report comprising each date;
Second arithmetic element, for carrying out cartesian product operation to first amount of money report and the date report, Obtain the second amount of money report that the corresponding relationship between the amount of money, each first date and each second date occurs comprising the day;Its In, each first date is each date in first amount of money report, and each second date is in the date report Each date;
Second deletion unit obtains third for deleting the entry for not meeting preset condition in second amount of money report Amount of money report;Wherein, the preset condition includes being not later than the second corresponding date on first date;
Second computing unit calculates separately described for the amount of money to occur according to the day in the third amount of money report From date is to the accumulative generation amount of money between each date.
In one embodiment, the 5th computing module includes:
Second determination unit, for the accumulative sum that the amount of money and the beginning balance occurs to be determined as the accumulative hair The ending balance on the life amount of money corresponding date.
In one embodiment, second determination unit is also used to:
It generates comprising first date and accumulative the 4th amount of money report that the corresponding relationship between the amount of money occurs;
Cartesian product operation is carried out to the 4th amount of money report and the beginning balance, is obtained comprising described first day Phase, accumulative the 5th amount of money report that the corresponding relationship between the amount of money and the beginning balance occurs;
By the accumulative generation amount of money and beginning balance progress sum operation in the 5th amount of money report, obtain The accumulative ending balance that the amount of money corresponding date occurs.
In one embodiment, above-mentioned apparatus further include:
6th computing module, if being updated for detecting that the amount of money occurs for the day on the third date in each date, The amount of money occurs according to the day on the updated third date, calculates each the after the from date to the third date The accumulative generation amount of money between four dates;
Second update module, for according to the from date to the accumulative generation amount of money between each 4th date, Update the remaining sum report.
In another aspect, this specification one or more embodiment provides a kind of processing equipment of resource change, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
Obtain the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day occurrence quantity refers to that the same day is sent out The stock number for changing;
According to the resource day occurrence quantity, the from date of the predetermined amount of time is calculated to the money between each date Source adds up occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to the resource occurred between each date The aggregate-value of variation;
The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately each date End of term stock number;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance, which refers to, to be worked as Stock number after change in resources occurs for day;
Resource residual amount report is generated according to the end of term stock number, the resource residual amount report is provided comprising the end of term Source amount and the corresponding relationship between each date.
In another aspect, the embodiment of the present application provides a kind of storage medium, for storing computer executable instructions, it is described can It executes instruction and realizes following below scheme when executed:
Obtain the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day occurrence quantity refers to that the same day is sent out The stock number for changing;
According to the resource day occurrence quantity, the from date of the predetermined amount of time is calculated to the money between each date Source adds up occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to the resource occurred between each date The aggregate-value of variation;
The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately each date End of term stock number;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance, which refers to, to be worked as Stock number after change in resources occurs for day;
Resource residual amount report is generated according to the end of term stock number, the resource residual amount report is provided comprising the end of term Source amount and the corresponding relationship between each date.
In another aspect, this specification one or more embodiment provides a kind of processing equipment of resource change, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
The amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs the amount of money and refers to that the same day becomes The amount of money of change;
The amount of money occurs according to the day, the from date for calculating the predetermined amount of time adds up between each date The amount of money occurs;Wherein, the accumulative amount of money that occurs refers to the from date to the amount of money variation occurred between each date Aggregate-value;
According to the accumulative beginning balance that the amount of money and the from date occurs, the end of term on each date is calculated separately Remaining sum;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance refers to that remaining sum occurs for the same day The amount of money after variation;
Remaining sum report is generated according to the ending balance, the remaining sum report includes the ending balance and each date Between corresponding relationship.
In another aspect, the embodiment of the present application provides a kind of storage medium, for storing computer executable instructions, it is described can It executes instruction and realizes following below scheme when executed:
The amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs the amount of money and refers to that the same day becomes The amount of money of change;
The amount of money occurs according to the day, the from date for calculating the predetermined amount of time adds up between each date The amount of money occurs;Wherein, the accumulative amount of money that occurs refers to the from date to the amount of money variation occurred between each date Aggregate-value;
According to the accumulative beginning balance that the amount of money and the from date occurs, the end of term on each date is calculated separately Remaining sum;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance refers to that remaining sum occurs for the same day The amount of money after variation;
Remaining sum report is generated according to the ending balance, the remaining sum report includes the ending balance and each date Between corresponding relationship.
Using the technical solution of this specification one or more embodiment, by obtaining each date in predetermined amount of time Resource day occurrence quantity, and using resource day occurrence quantity calculate predetermined amount of time from date between each date resource add up Occurrence quantity, and then add up according to resource the initial stock number of occurrence quantity and from date, calculate separately the end of term resource on each date Amount, last calculated end of term stock number generate resource residual amount report.As it can be seen that the technical solution is surplus in generation resource When surplus report, from date, deadline and the resource day on each date occurrence quantity of predetermined amount of time, Ji Keji need to be only provided The end of term stock number for calculating each date in resource residual amount report, relieves daily end of term stock number and proxima luce (prox. luc) end of term stock number Between dependence, to have when calculating daily end of term stock number without waiting for the end of term stock number output of proxima luce (prox. luc) Effect improves the output efficiency of resource residual amount report.Also, even if there is exception in the resource day occurrence quantity of a certain day, without One day on the one successively reparation report, greatly improves the remediation efficiency of report.
Using the technical solution of this specification one or more embodiment, by obtaining each date in predetermined amount of time The amount of money occurs day, and golden to the accumulative generation between each date using the from date that amount of money calculating predetermined amount of time occurs day Volume, and then according to the beginning balance of the accumulative generation amount of money and from date, the ending balance on each date is calculated separately, is finally utilized The ending balance being calculated generates remaining sum report.As it can be seen that the technical solution when generating remaining sum report, need to only provide pre- timing Between the from date of section, deadline and the day on each date the amount of money occurs, the end of term on each date in remaining sum report can be calculated Remaining sum relieves the dependence between daily ending balance and proxima luce (prox. luc) ending balance, thus daily more than the end of term calculating Without waiting for the ending balance output of proxima luce (prox. luc) when volume, the output efficiency of remaining sum report is effectively increased.Also, even if a certain day The amount of money that occurs day occur abnormal, without one day on the one successively reparation report, greatly improve the remediation efficiency of report.
Detailed description of the invention
In order to illustrate more clearly of this specification one or more embodiment or technical solution in the prior art, below will A brief introduction will be made to the drawings that need to be used in the embodiment or the description of the prior art, it should be apparent that, it is described below Attached drawing is only some embodiments recorded in this specification one or more embodiment, and those of ordinary skill in the art are come It says, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic flow chart according to a kind of processing method of resource change of one embodiment of this specification;
Fig. 2 is the schematic flow chart of the processing method changed according to a kind of remaining sum of one embodiment of this specification;
Fig. 3 is the schematic block diagram according to a kind of processing unit of resource change of one embodiment of this specification;
Fig. 4 is the schematic block diagram of the processing unit changed according to a kind of remaining sum of one embodiment of this specification;
Fig. 5 is the schematic block diagram according to a kind of processing equipment of resource change of one embodiment of this specification;
Fig. 6 is the schematic block diagram of the processing equipment changed according to a kind of remaining sum of one embodiment of this specification.
Specific embodiment
This specification one or more embodiment provides a kind of processing method and processing device of resource change, to improve resource The output efficiency of report.
In order to make those skilled in the art more fully understand the technical solution in this specification one or more embodiment, Below in conjunction with the attached drawing in this specification one or more embodiment, to the technology in this specification one or more embodiment Scheme is clearly and completely described, it is clear that and described embodiment is only this specification a part of the embodiment, rather than Whole embodiments.Based on this specification one or more embodiment, those of ordinary skill in the art are not making creativeness The model of this specification one or more embodiment protection all should belong in every other embodiment obtained under the premise of labour It encloses.
Fig. 1 is according to a kind of schematic flow chart of the processing method of resource change of one embodiment of this specification, such as Fig. 1 It is shown, this method comprises:
S102 obtains the resource day occurrence quantity on each date in predetermined amount of time.
Wherein, resource day occurrence quantity refers to the same day changed stock number.
S104, according to resource day occurrence quantity, the from date for calculating predetermined amount of time is accumulative to the resource between each date Occurrence quantity.
Wherein, resource add up occurrence quantity refer to from date to the change in resources occurred between each date aggregate-value.
S106 adds up the initial stock number of occurrence quantity and from date according to resource, calculates separately the end of term money on each date Source amount.
Wherein, initial stock number refers to that the stock number before change in resources occurs for the same day;Ending balance refers to that resource occurs for the same day Stock number after variation.
S108, according to end of term stock number generate resource residual amount report, resource residual amount report include end of term stock number with Corresponding relationship between each date.
Using the technical solution of this specification one or more embodiment, by obtaining each date in predetermined amount of time Resource day occurrence quantity, and using resource day occurrence quantity calculate predetermined amount of time from date between each date resource add up Occurrence quantity, and then add up according to resource the initial stock number of occurrence quantity and from date, calculate separately the end of term resource on each date Amount, last calculated end of term stock number generate resource residual amount report.As it can be seen that the technical solution is surplus in generation resource When surplus report, from date, deadline and the resource day on each date occurrence quantity of predetermined amount of time, Ji Keji need to be only provided The end of term stock number for calculating each date in resource residual amount report, relieves daily end of term stock number and proxima luce (prox. luc) end of term stock number Between dependence, to have when calculating daily end of term stock number without waiting for the end of term stock number output of proxima luce (prox. luc) Effect improves the output efficiency of resource residual amount report.Also, even if there is exception in the resource day occurrence quantity of a certain day, without One day on the one successively reparation report, greatly improves the remediation efficiency of report.
The processing method of resource change in above-described embodiment described in detail below.
The resource day occurrence quantity on each date in predetermined amount of time is obtained first.
Wherein, resource day occurrence quantity refers to the same day changed stock number.I.e. pre- timing of each date in predetermined amount of time Between section from date and each date between the deadline.
In one embodiment, obtain predetermined amount of time in each date resource day occurrence quantity when, can first obtain including Each date resource day occurrence quantity first resource report, and then the resource day for extracting from first resource report each date occurs Amount.
Table 1 show first resource report accessed in one embodiment.Assuming that in the present embodiment, predetermined amount of time From date be D1, deadline D3, then in the first resource report include D1 to each date between D3 resource day Occurrence quantity.Such as in the first resource report shown in table 1, the resource day occurrence quantity that the resource day occurrence quantity of D1 is 5, D2 is 10, D3 resource day occurrence quantity is 6.In addition, in first resource report shown in table 1 in addition to including resource day occurrence quantity, also It may include other such as accounts, title, other unshowned items identified with ellipsis " ... " in table, the province in following table Contracted notation " ... " is identical as the meaning in table 1, repeats no more.
Table 1
Date Account Title …… Resource day occurrence quantity
D1 …… …… …… 5
D2 …… …… …… 10
D3 …… …… …… 6
In the resource day for getting each date after occurrence quantity, the predetermined time is calculated according to acquired resource day occurrence quantity The from date of section adds up occurrence quantity to the resource between each date.It A1-A4 can specifically calculate in accordance with the following steps.
Step A1 obtains the date report comprising each date.
Table 2 show date report accessed in one embodiment, it is assumed that each date is D1 to D3 in the present embodiment. Each date that the date report as acquired in step A1 includes is identical as each date in first resource report, date report The line number of table and first resource report also must be the same.
Table 2
Date
D1
D2
D3
Step A2 carries out cartesian product operation to first resource report and date report, obtains occurring comprising resource day The Secondary resource report of corresponding relationship between amount, each first date and each second date.
Wherein, each first date is each date in first resource report, and each second date is each day in date report Phase.
Cartesian product operation is carried out to date report shown in first resource report shown in table 1 and table 2, can be obtained such as Secondary resource report shown in table 3.
Table 3
First date Account Title …… Resource day occurrence quantity Second date
D1 …… …… …… 5 D1
D2 …… …… …… D1
D3 …… …… …… D1
D1 …… …… …… D2
D2 …… …… …… 10 D2
D3 …… …… …… D2
D1 …… …… …… D3
D2 …… …… …… D3
D3 …… …… …… 6 D3
Step A3 deletes the entry for not meeting preset condition in Secondary resource report, obtains information resources report;Wherein, Preset condition includes being not later than the second corresponding date the first date.
Due to when being later than the second corresponding date on the first date, it is impossible to the case where there are resource changes, therefore The entry for meeting not preset condition should delete.For example, such as table 4 can be obtained after the entry for not meeting preset condition in table 3 is deleted Shown in information resources report.
Table 4
First date Account Title …… Resource day occurrence quantity Second date
D1 …… …… …… 5 D1
D1 …… …… …… D2
D2 …… …… …… 10 D2
D1 …… …… …… D3
D2 …… …… …… D3
D3 …… …… …… 6 D3
Step A4 calculates separately from date between each date according to the resource day occurrence quantity in information resources report Resource add up occurrence quantity.
For the information resources report shown in the table 4, the resource between from date D1, from date D1 to D2 is accumulative Occurrence quantity be the D1 same day resource day occurrence quantity and the D2 same day resource day the sum of occurrence quantity, i.e. 5+10=15.From date Resource between D1 to D3 add up occurrence quantity be the D1 same day resource day occurrence quantity, the resource day occurrence quantity and D3 on the D2 same day Resource day the sum of the occurrence quantity on the same day, i.e. 5+10+6=21.
By above-mentioned steps A1-A4, have calculated that from date adds up occurrence quantity to the resource between each date.Then, The initial stock number for adding up occurrence quantity and from date according to resource calculates separately the end of term stock number on each date.Specifically, can Resource is added up into occurrence quantity and the sum of the initial stock number of from date and is determined as the phase that resource adds up occurrence quantity corresponding date Last stock number.
In one embodiment, can in accordance with the following steps B1-B3 computing resource add up occurrence quantity and initial stock number and.
Step B1 generates the 4th asset report for adding up the corresponding relationship between occurrence quantity comprising the first date and resource.
The example above is continued to use, from date is calculated according to the resource day occurrence quantity in information resources report shown in table 4 and is arrived Resource between each date adds up occurrence quantity are as follows: it is 15 that the resource between from date D1 to D2, which adds up occurrence quantity, from date It is 21 that resource between D1 to D3, which adds up occurrence quantity,.Therefore, the 4th asset report of generation is as shown in table 5 below.
Table 5
First date Account Title …… Resource adds up occurrence quantity
D1 …… …… …… 5
D2 …… …… …… 15
D3 …… …… …… 21
Step B2 carries out cartesian product operation to the 4th asset report and initial stock number, obtain comprising the first date, Resource adds up the 5th asset report of the corresponding relationship between occurrence quantity and initial stock number.
Assuming that the initial stock number of from date D1 is 100, then by the 4th asset report shown in table 5 and initial stock number After carrying out cartesian product operation, the 5th asset report as shown in table 6 below can be obtained.
Table 6
First date Account Title …… Resource adds up occurrence quantity Initial stock number
D1 …… …… …… 5 100
D2 …… …… …… 15 100
D3 …… …… …… 21 100
Step B3 adds up occurrence quantity to the resource in the 5th asset report and initial stock number carries out sum operation, obtains Resource adds up the end of term stock number on occurrence quantity corresponding date.
Occurrence quantity is added up to the resource in the 5th asset report shown in table 6 and initial stock number carries out sum operation, it can The end of term stock number for calculating each date is as follows: the end of term stock number of D1 is 100+5=105;The end of term stock number of D2 is 100+ 15=115;The end of term stock number of D3 is 100+21=121.
After calculating the end of term stock number on each date, resource residual amount report is generated according to the end of term stock number on each date Table, as shown in table 7 below.
Table 7
First date Account Title …… End of term stock number
D1 …… …… …… 105
D2 …… …… …… 115
D3 …… …… …… 121
As can be seen from the above embodiments, when calculating the end of term stock number on each date, and the end of term resource of proxima luce (prox. luc) is not relied on Amount, but the initial stock number of from date resource corresponding with each date is added up into occurrence quantity and is added, thus Without waiting for the end of term stock number output of proxima luce (prox. luc) when calculating daily end of term stock number, resource residual amount report is effectively increased Output efficiency.
In one embodiment, if detecting, the resource day occurrence quantity on the third date in each date is updated, basis The resource day occurrence quantity on updated third date, calculate from date to third date after each 4th date between money Source adds up occurrence quantity, and then adds up occurrence quantity to the resource between each 4th date according to from date, updates resource residual amount Report.Specifically, occurrence quantity can be added up calculating the resource between each 4th date after from date to third date Later, add up the end of term stock number that occurrence quantity calculates each date using the resource, and then according to each date recalculated End of term stock number updates resource residual amount report.
In the present embodiment, if the resource day occurrence quantity of a certain day is updated, from date need to be only recalculated to the day The resource between each date after phase adds up occurrence quantity, and then updates resource residual amount report.Therefore, even if the money of a certain day There is exception in source day occurrence quantity, without one day on the one successively reparation report, greatly improves the remediation efficiency of report.
Fig. 2 is the schematic flow chart of the processing method changed according to a kind of remaining sum of one embodiment of this specification, such as Fig. 2 It is shown, this method comprises:
The amount of money occurs for S202, the day for obtaining each date in predetermined amount of time.
Wherein, day occurs the amount of money and refers to the same day changed amount of money.
According to day the amount of money occurs for S204, and the from date for calculating predetermined amount of time is golden to the accumulative generation between each date Volume.
Wherein, add up the generation amount of money and refer to the aggregate-value that from date changes to the amount of money occurred between each date.
S206 calculates separately the ending balance on each date according to the beginning balance of the accumulative generation amount of money and from date.
Wherein, beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;Ending balance refers to that remaining sum variation occurs for the same day The amount of money later.
S208 generates remaining sum report according to ending balance, and remaining sum report includes corresponding between ending balance and each date Relationship.
Using the technical solution of this specification one or more embodiment, by obtaining each date in predetermined amount of time The amount of money occurs day, and golden to the accumulative generation between each date using the from date that amount of money calculating predetermined amount of time occurs day Volume, and then according to the beginning balance of the accumulative generation amount of money and from date, the ending balance on each date is calculated separately, is finally utilized The ending balance being calculated generates remaining sum report.As it can be seen that the technical solution when generating remaining sum report, need to only provide pre- timing Between the from date of section, deadline and the day on each date the amount of money occurs, the end of term on each date in remaining sum report can be calculated Remaining sum relieves the dependence between daily ending balance and proxima luce (prox. luc) ending balance, thus daily more than the end of term calculating Without waiting for the ending balance output of proxima luce (prox. luc) when volume, the output efficiency of remaining sum report is effectively increased.Also, even if a certain day The amount of money that occurs day occur abnormal, without one day on the one successively reparation report, greatly improve the remediation efficiency of report.
The processing method that remaining sum in above-described embodiment described in detail below changes.
The amount of money occurs for the day for obtaining each date in predetermined amount of time first.
Wherein, day occurs the amount of money and refers to the same day changed amount of money.Each date, that is, predetermined amount of time in predetermined amount of time From date and each date between the deadline.
In one embodiment, when day the amount of money occurs of each date in predetermined amount of time is obtained, can first be obtained including each First amount of money of amount of money report occurs for the day on date, and then extracts from the first amount of money report and the day on each date the amount of money occurs.
Table 8 show the first amount of money report accessed in one embodiment.Assuming that in the present embodiment, predetermined amount of time From date be D1, deadline D3, then in first amount of money report include D1 to each date between D3 day occur The amount of money (unit is member).Such as in first amount of money report shown in table 8, occur the day of D1 the day that the amount of money is 5, D2 the amount of money to occur It is 6 for the amount of money that occurs day of 10, D3.
Table 8
Date Account Title …… The amount of money (member) occurs for day
D1 …… …… …… 5
D2 …… …… …… 10
D3 …… …… …… 6
After the amount of money occurs for the day for getting each date, predetermined amount of time is calculated according to the amount of money occurs acquired day From date is to the accumulative generation amount of money between each date.It C1-C4 can specifically calculate in accordance with the following steps.
Step C1 obtains the date report comprising each date.
Table 9 show date report accessed in one embodiment, it is assumed that each date is D1 to D3 in the present embodiment. Each date that the date report as acquired in step C1 includes is identical as each date in the first amount of money report, date report The line number of table and the first amount of money report also must be the same.
Table 9
Date
D1
D2
D3
Step C2 carries out cartesian product operation to the first amount of money report and date report, obtain occurring comprising day the amount of money, Second amount of money report of the corresponding relationship between each first date and each second date.
Wherein, each first date is each date in the first amount of money report, and each second date is each day in date report Phase.
Cartesian product operation is carried out to date report shown in the first amount of money report shown in table 8 and table 9, can be obtained such as Second amount of money report shown in table 10.
Table 10
First date Account Title …… The amount of money (member) occurs for day Second date
D1 …… …… …… 5 D1
D2 …… …… …… D1
D3 …… …… …… D1
D1 …… …… …… D2
D2 …… …… …… 10 D2
D3 …… …… …… D2
D1 …… …… …… D3
D2 …… …… …… D3
D3 …… …… …… 6 D3
Step C3 deletes the entry for not meeting preset condition in the second amount of money report, obtains third amount of money report;Wherein, Preset condition includes being not later than the second corresponding date the first date.
Due to when being later than the second corresponding date on the first date, it is impossible to the case where there are amount of money variations, therefore The entry for meeting not preset condition should delete.For example, such as table can be obtained after the entry for not meeting preset condition in table 10 is deleted Third amount of money report shown in 11.
Step C4 occurs the amount of money according to the day in third amount of money report, calculates separately from date between each date It is accumulative that the amount of money occurs.
Table 11
First date Account Title …… The amount of money (member) occurs for day Second date
D1 …… …… …… 5 D1
D1 …… …… …… D2
D2 …… …… …… 10 D2
D1 …… …… …… D3
D2 …… …… …… D3
D3 …… …… …… 6 D3
Accumulative hair for the third amount of money report shown in the table 11, between from date D1, from date D1 to D2 It gives birth to and the day that the amount of money is the D1 same day the sum of the amount of money and the day on D2 same day generation amount of money, i.e. 5+10=15 (member) occurs.From date The accumulative generation amount of money between D1 to D3 is the day generation amount of money on the D1 same day, the day on the D2 same day amount of money and the D3 same day occurs The sum of amount of money, i.e. 5+10+6=21 (member) occur for day.
By above-mentioned steps C1-C4, have calculated that from date to the accumulative generation amount of money between each date.Then, root According to the beginning balance of the accumulative generation amount of money and from date, the ending balance on each date is calculated separately.Specifically, can be by accumulative hair The raw amount of money and sum of the beginning balance of from date are determined as the ending balance on the accumulative generation amount of money corresponding date.
In one embodiment, the accumulative generation amount of money and more than beginning of from date can be calculated by E1-E3 in accordance with the following steps The sum of volume.
Step E1 is generated comprising the first date and accumulative the 4th amount of money report that the corresponding relationship between the amount of money occurs.
The example above is continued to use, calculates from date to respectively according to the amount of money occurs the day in third amount of money report shown in table 11 The accumulative generation amount of money between date are as follows: the accumulative generation amount of money between from date D1 to D2 is 15 (members), from date D1 It is 21 (members) to the accumulative generation amount of money between D3.Therefore, the 4th amount of money report of generation is as shown in table 12 below.
Table 12
First date Account Title …… It is accumulative that the amount of money (member) occurs
D1 …… …… …… 5
D2 …… …… …… 15
D3 …… …… …… 21
Step E2 carries out cartesian product operation to the 4th amount of money report and beginning balance, obtains comprising the first date, tires out 5th amount of money report of the corresponding relationship between the amount of money and beginning balance occurs for meter.
Assuming that the beginning balance of from date D1 is 100 (members), then by the 4th amount of money report shown in table 12 and initial money After source amount carries out cartesian product operation, the 5th amount of money report as shown in table 13 below can be obtained.
Table 13
First date Account Title …… It is accumulative that the amount of money (member) occurs Beginning balance (member)
D1 …… …… …… 5 100
D2 …… …… …… 15 100
D3 …… …… …… 21 100
Step E3 is added up the accumulative generation amount of money and beginning balance progress sum operation in the 5th amount of money report The ending balance on the amount of money corresponding date occurs.
To the accumulative generation amount of money and beginning balance progress sum operation in the 5th amount of money report shown in table 13, can calculate The ending balance on each date is as follows out: the ending balance of D1 is 100+5=105 (member);The ending balance of D2 is 100+15=115 (member);The ending balance of D3 is 100+21=121 (member).
After the ending balance for calculating each date, remaining sum report, such as following table are generated according to the ending balance on each date Shown in 14.
Table 14
First date Account Title …… Ending balance (member)
D1 …… …… …… 105
D2 …… …… …… 115
D3 …… …… …… 121
As can be seen from the above embodiments, when calculating the ending balance on each date, and the ending balance of proxima luce (prox. luc) is not relied on, and It is to be added the beginning balance of the from date accumulative generation amount of money corresponding with each date, thus calculating daily Without waiting for the ending balance output of proxima luce (prox. luc) when ending balance, the output efficiency of remaining sum report is effectively increased.
In one embodiment, if detecting the day on the third date in each date the amount of money occurs and is updated, according to more The amount of money, the accumulative hair between each 4th date after calculating from date to third date occurs the day on the third date after new The raw amount of money, and then according to from date to the accumulative generation amount of money between each 4th date, more new balance report.Specifically, can After calculating the accumulative generation amount of money between each 4th date after from date to third date, the accumulative hair is utilized The raw amount of money calculates the ending balance on each date, and then according to the ending balance on each date recalculated more new balance report.
In the present embodiment, it is updated if the day of a certain day the amount of money occurs, need to only recalculates from date to the date The accumulative generation amount of money between each date later, and then more new balance report.Therefore, go out even if the day of a certain day the amount of money occurs It is now abnormal, without one day on the one successively reparation report, greatly improve the remediation efficiency of report.
To sum up, the specific embodiment of this theme is described.Other embodiments are in the appended claims In range.In some cases, the movement recorded in detail in the claims can execute and still in a different order Desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or continuous suitable Sequence, to realize desired result.In some embodiments, multitasking and parallel processing can be advantageous.
The above are the places that the processing method of the resource change of this specification one or more embodiment offer and remaining sum change Reason method, is based on same thinking, this specification one or more embodiment also provide a kind of resource change processing unit and A kind of processing unit that remaining sum changes.
Fig. 3 is according to a kind of schematic block diagram of the processing unit of resource change of one embodiment of this specification, such as Fig. 3 institute Show, the processing unit 300 of resource change includes:
First obtains module 310, for obtaining the resource day occurrence quantity on each date in predetermined amount of time;Wherein, resource Day occurrence quantity refers to the same day changed stock number;
First computing module 320, for according to resource day occurrence quantity, calculating the from date of predetermined amount of time to each date Between resource add up occurrence quantity;Wherein, the accumulative occurrence quantity of resource refers to from date to the change in resources occurred between each date Aggregate-value;
Second computing module 330 is calculated separately for adding up the initial stock number of occurrence quantity and from date according to resource The end of term stock number on each date;Wherein, initial stock number refers to that the stock number before change in resources occurs for the same day;Ending balance, which refers to, to be worked as Stock number after change in resources occurs for day;
First generation module 340, for generating resource residual amount report, resource residual amount report packet according to end of term stock number Corresponding relationship between stock number containing the end of term and each date.
In one embodiment, the first acquisition module 310 includes:
First acquisition unit, for obtaining first resource report, first resource report includes occurring the resource day on each date Amount;
First extraction unit, for extracting the resource day occurrence quantity on each date from first resource report.
In one embodiment, the first computing module 320 includes:
Second acquisition unit, for obtaining the date report comprising each date;
First arithmetic element, for being included to first resource report and the progress cartesian product operation of date report Resource day occurrence quantity, corresponding relationship between each first date and each second date Secondary resource report;Wherein, each first day Phase is each date in first resource report, and each second date is each date in date report;
First deletion unit obtains information resources for deleting the entry for not meeting preset condition in Secondary resource report Report;Wherein, preset condition includes being not later than the second corresponding date the first date;
First computing unit, for calculating separately from date and arriving according to the resource day occurrence quantity in information resources report Resource between each date adds up occurrence quantity.
In one embodiment, the second computing module 330 includes:
First determination unit, the sum for resource to be added up occurrence quantity and initial stock number are determined as the accumulative occurrence quantity of resource The end of term stock number on corresponding date.
In one embodiment, the first determination unit is also used to:
Generate the 4th asset report for adding up the corresponding relationship between occurrence quantity comprising the first date and resource;
Cartesian product operation is carried out to the 4th asset report and initial stock number, is obtained tired comprising the first date, resource Count the 5th asset report of the corresponding relationship between occurrence quantity and initial stock number;
Occurrence quantity is added up to the resource in the 5th asset report and initial stock number carries out sum operation, it is accumulative to obtain resource The end of term stock number on occurrence quantity corresponding date.
In one embodiment, above-mentioned apparatus 300 further include:
Third computing module, if for detecting that the resource day occurrence quantity on the third date in each date is updated, root According to the resource day occurrence quantity on updated third date, calculate between each 4th date after from date to third date Resource adds up occurrence quantity;
First update module updates money for adding up occurrence quantity to the resource between each 4th date according to from date Source surplus report.
Using the device of this specification one or more embodiment, by the resource for obtaining each date in predetermined amount of time Day occurrence quantity, and the from date of predetermined amount of time is calculated to the accumulative generation of resource between each date using resource day occurrence quantity It measures, and then adds up the initial stock number of occurrence quantity and from date according to resource, calculate separately the end of term stock number on each date, most Calculated end of term stock number generates resource residual amount report afterwards.As it can be seen that the technical solution is generating resource residual amount When report, from date, deadline and the resource day on each date occurrence quantity of predetermined amount of time need to be only provided, can be calculated The end of term stock number on each date in resource residual amount report, relieves between daily end of term stock number and proxima luce (prox. luc) end of term stock number Dependence, to effectively be mentioned when calculating daily end of term stock number without waiting for the end of term stock number output of proxima luce (prox. luc) The high output efficiency of resource residual amount report.Also, even if there is exception in the resource day occurrence quantity of a certain day, without one day Successively reparation report on the one, greatly improves the remediation efficiency of report.
It should be understood that the processing unit of above-mentioned resource change can be previously described for realizing The processing method of resource change, datail description therein should be described with method part above it is similar, it is cumbersome to avoid, it is not another herein It repeats.
Fig. 4 is the schematic block diagram of the processing unit changed according to a kind of remaining sum of one embodiment of this specification, such as Fig. 4 institute Show, the processing unit 400 that remaining sum changes includes:
Second obtains module 410, and the amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, day occurs The amount of money refers to the same day changed amount of money;
4th computing module 420, for the amount of money to occur according to day, calculate the from date of predetermined amount of time to each date it Between the accumulative generation amount of money;Wherein, adding up the generation amount of money refers to from date to the accumulative of the amount of money variation occurred between each date Value;
5th computing module 430, for calculating separately each day according to the accumulative beginning balance that the amount of money and from date occurs The ending balance of phase;Wherein, beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;Ending balance refers to that remaining sum occurs for the same day The amount of money after variation;
Second generation module 440, for generating remaining sum report according to ending balance, remaining sum report is comprising ending balance and respectively Corresponding relationship between date.
In one embodiment, the second acquisition module 410 includes:
Third acquiring unit, for obtaining the first amount of money report, the first amount of money report includes the day on each date the amount of money occurring;
The amount of money occurs for the second extraction unit, the day for extracting each date from the first amount of money report.
In one embodiment, the 4th computing module 420 includes:
4th acquiring unit, for obtaining the date report comprising each date;
Second arithmetic element, for being included to the first amount of money report and the progress cartesian product operation of date report Second amount of money report of the corresponding relationship between the amount of money, each first date and each second date occurs for day;Wherein, each first date For each date in the first amount of money report, each second date is each date in date report;
Second deletion unit obtains the third amount of money for deleting the entry for not meeting preset condition in the second amount of money report Report;Wherein, preset condition includes being not later than the second corresponding date the first date;
Second computing unit calculates separately from date to respectively for the amount of money to occur according to the day in third amount of money report The accumulative generation amount of money between date.
In one embodiment, the 5th computing module 430 includes:
Second determination unit, it is corresponding for the accumulative generation amount of money to be determined as the accumulative generation amount of money with the sum of beginning balance The ending balance on date.
In one embodiment, the second determination unit is also used to:
It generates comprising the first date and accumulative the 4th amount of money report that the corresponding relationship between the amount of money occurs;
Cartesian product operation is carried out to the 4th amount of money report and beginning balance, is obtained comprising the first date, accumulative generation 5th amount of money report of the corresponding relationship between the amount of money and beginning balance;
By the accumulative generation amount of money and beginning balance progress sum operation in the 5th amount of money report, the accumulative generation amount of money is obtained The ending balance on corresponding date.
In one embodiment, above-mentioned apparatus 400 further include:
6th computing module, if being updated for detecting that the amount of money occurs for the day on the third date in each date, basis The amount of money occurs the day on updated third date, it is accumulative between each 4th date after calculating from date to third date The amount of money occurs;
Second update module, for according to from date to the accumulative generation amount of money between each 4th date, more new balance Report.
Using the device of this specification one or more embodiment, sent out by the day for obtaining each date in predetermined amount of time The raw amount of money, and the from date of predetermined amount of time is calculated to the accumulative generation amount of money between each date using the amount of money occurs day, into And according to the beginning balance of the accumulative generation amount of money and from date, the ending balance on each date is calculated separately, calculating is finally utilized Obtained ending balance generates remaining sum report.As it can be seen that the technical solution when generating remaining sum report, need to only provide predetermined amount of time From date, deadline and the day on each date the amount of money occurs, the ending balance on each date in remaining sum report can be calculated, Relieve the dependence between daily ending balance and proxima luce (prox. luc) ending balance, thus when calculating daily ending balance without The ending balance output for needing to wait for proxima luce (prox. luc), effectively increases the output efficiency of remaining sum report.Also, even if the day of a certain day is sent out There is exception in the raw amount of money, without one day on the one successively reparation report, greatly improves the remediation efficiency of report.
It should be understood that the processing unit that above-mentioned remaining sum changes can be previously described for realizing The processing method that remaining sum changes, datail description therein should be described with method part above it is similar, it is cumbersome to avoid, it is not another herein It repeats.
Based on same thinking, this specification one or more embodiment also provides a kind of processing equipment of resource change, As shown in Figure 5.The processing equipment of resource change can generate bigger difference because configuration or performance are different, may include one Or more than one processor 501 and memory 502, it can store one or more storage applications in memory 502 Program or data.Wherein, memory 502 can be of short duration storage or persistent storage.The application program for being stored in memory 502 can To include one or more modules (diagram is not shown), each module may include in the processing equipment to resource change Series of computation machine executable instruction.Further, processor 501 can be set to communicate with memory 502, become in resource The series of computation machine executable instruction in memory 502 is executed in dynamic processing equipment.The processing equipment of resource change may be used also To include one or more power supplys 503, one or more wired or wireless network interfaces 504, one or one with Upper input/output interface 505, one or more keyboards 506.
Specifically in the present embodiment, the processing equipment of resource change includes memory and one or more Program, perhaps more than one program is stored in memory and one or more than one program may include one for one of them A or more than one module, and each module may include that series of computation machine in processing equipment to resource change is executable Instruction, and be configured to execute this or more than one program by one or more than one processor to include for carrying out Following computer executable instructions:
Obtain the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day occurrence quantity refers to that the same day is sent out The stock number for changing;
According to the resource day occurrence quantity, the from date of the predetermined amount of time is calculated to the money between each date Source adds up occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to the resource occurred between each date The aggregate-value of variation;
The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately each date End of term stock number;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance, which refers to, to be worked as Stock number after change in resources occurs for day;
Resource residual amount report is generated according to the end of term stock number, the resource residual amount report is provided comprising the end of term Source amount and the corresponding relationship between each date.
Optionally, computer executable instructions when executed, can also make the processor:
First resource report is obtained, the first resource report includes the resource day occurrence quantity on each date;
The resource day occurrence quantity on each date is extracted from the first resource report.
Optionally, computer executable instructions when executed, can also make the processor:
Obtain the date report comprising each date;
Cartesian product operation is carried out to the first resource report and the date report, is obtained comprising the resource day The Secondary resource report of corresponding relationship between occurrence quantity, each first date and each second date;Wherein, each first date For each date in the first resource report, each second date is each date in the date report;
The entry for not meeting preset condition in the Secondary resource report is deleted, information resources report is obtained;Wherein, described Preset condition includes being not later than the second corresponding date on first date;
According to the resource day occurrence quantity in the information resources report, the from date is calculated separately to described each Resource between date adds up occurrence quantity.
Optionally, computer executable instructions when executed, can also make the processor:
The resource is added up occurrence quantity, and with the sum of the initial stock number to be determined as the accumulative occurrence quantity of the resource corresponding Date end of term stock number.
Optionally, computer executable instructions when executed, can also make the processor:
Generate the 4th asset report for adding up the corresponding relationship between occurrence quantity comprising first date and the resource;
Cartesian product operation is carried out to the 4th asset report and the initial stock number, is obtained comprising described first Date, the resource add up the 5th asset report of the corresponding relationship between occurrence quantity and the initial stock number;
Occurrence quantity is added up to the resource in the 5th asset report and the initial stock number carries out sum operation, Obtain the end of term stock number that the resource adds up the occurrence quantity corresponding date.
Optionally, computer executable instructions when executed, can also make the processor:
If detecting, the resource day occurrence quantity on the third date in each date is updated, according to updated described The resource day occurrence quantity on third date calculates the money between each 4th date after the from date to the third date Source adds up occurrence quantity;
Add up occurrence quantity to the resource between each 4th date according to the from date, updates the resources left Measure report.
This specification one or more embodiment also proposed a kind of computer readable storage medium, this is computer-readable to deposit Storage media stores one or more programs, which includes instruction, and it is included multiple application programs which, which works as, Electronic equipment when executing, the electronic equipment can be made to execute the processing method of above-mentioned resource change, and be specifically used for executing:
Obtain the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day occurrence quantity refers to that the same day is sent out The stock number for changing;
According to the resource day occurrence quantity, the from date of the predetermined amount of time is calculated to the money between each date Source adds up occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to the resource occurred between each date The aggregate-value of variation;
The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately each date End of term stock number;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance, which refers to, to be worked as Stock number after change in resources occurs for day;
Resource residual amount report is generated according to the end of term stock number, the resource residual amount report is provided comprising the end of term Source amount and the corresponding relationship between each date.
Based on same thinking, this specification one or more embodiment also provides a kind of processing equipment that remaining sum changes, As shown in Figure 6.The processing equipment that remaining sum changes can generate bigger difference because configuration or performance are different, may include one Or more than one processor 601 and memory 602, it can store one or more storage applications in memory 602 Program or data.Wherein, memory 602 can be of short duration storage or persistent storage.The application program for being stored in memory 602 can To include one or more modules (diagram is not shown), each module may include in the processing equipment changed to remaining sum Series of computation machine executable instruction.Further, processor 601 can be set to communicate with memory 602, become in remaining sum The series of computation machine executable instruction in memory 602 is executed in dynamic processing equipment.The processing equipment that remaining sum changes may be used also To include one or more power supplys 603, one or more wired or wireless network interfaces 604, one or one with Upper input/output interface 605, one or more keyboards 606.
Specifically in the present embodiment, the processing equipment that remaining sum changes includes memory and one or more Program, perhaps more than one program is stored in memory and one or more than one program may include one for one of them A or more than one module, and each module may include that series of computation machine in the processing equipment changed to remaining sum is executable Instruction, and be configured to execute this or more than one program by one or more than one processor to include for carrying out Following computer executable instructions:
The amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs the amount of money and refers to that the same day becomes The amount of money of change;
The amount of money occurs according to the day, the from date for calculating the predetermined amount of time adds up between each date The amount of money occurs;Wherein, the accumulative amount of money that occurs refers to the from date to the amount of money variation occurred between each date Aggregate-value;
According to the accumulative beginning balance that the amount of money and the from date occurs, the end of term on each date is calculated separately Remaining sum;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance refers to that remaining sum occurs for the same day The amount of money after variation;
Remaining sum report is generated according to the ending balance, the remaining sum report includes the ending balance and each date Between corresponding relationship.
Optionally, computer executable instructions when executed, can also make the processor:
The first amount of money report is obtained, first amount of money report includes the day on each date the amount of money occurring;
The amount of money occurs for the day that each date is extracted from first amount of money report.
Optionally, computer executable instructions when executed, can also make the processor:
Obtain the date report comprising each date;
Cartesian product operation is carried out to first amount of money report and the date report, obtains occurring comprising the day Second amount of money report of the corresponding relationship between the amount of money, each first date and each second date;Wherein, each first date is Each date in first amount of money report, each second date are each date in the date report;
The entry for not meeting preset condition in second amount of money report is deleted, third amount of money report is obtained;Wherein, described Preset condition includes being not later than the second corresponding date on first date;
The amount of money occurs according to the day in the third amount of money report, calculates separately the from date to each day The accumulative generation amount of money between phase.
Optionally, computer executable instructions when executed, can also make the processor:
The accumulative generation amount of money and the sum of the beginning balance are determined as the accumulative generation amount of money corresponding date Ending balance.
Optionally, computer executable instructions when executed, can also make the processor:
It generates comprising first date and accumulative the 4th amount of money report that the corresponding relationship between the amount of money occurs;
Cartesian product operation is carried out to the 4th amount of money report and the beginning balance, is obtained comprising described first day Phase, accumulative the 5th amount of money report that the corresponding relationship between the amount of money and the beginning balance occurs;
By the accumulative generation amount of money and beginning balance progress sum operation in the 5th amount of money report, obtain The accumulative ending balance that the amount of money corresponding date occurs.
Optionally, computer executable instructions when executed, can also make the processor:
If detecting the day on the third date in each date the amount of money occurs and is updated, according to updated described the The amount of money occurs for day on three dates, calculates the accumulative hair between each 4th date after the from date to the third date The raw amount of money;
According to the from date to the accumulative generation amount of money between each 4th date, the remaining sum report is updated.
This specification one or more embodiment also proposed a kind of computer readable storage medium, this is computer-readable to deposit Storage media stores one or more programs, which includes instruction, and it is included multiple application programs which, which works as, Electronic equipment when executing, the electronic equipment can be made to execute the processing method of above-mentioned resource change, and be specifically used for executing:
The amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs the amount of money and refers to that the same day becomes The amount of money of change;
The amount of money occurs according to the day, the from date for calculating the predetermined amount of time adds up between each date The amount of money occurs;Wherein, the accumulative amount of money that occurs refers to the from date to the amount of money variation occurred between each date Aggregate-value;
According to the accumulative beginning balance that the amount of money and the from date occurs, the end of term on each date is calculated separately Remaining sum;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance refers to that remaining sum occurs for the same day The amount of money after variation;
Remaining sum report is generated according to the ending balance, the remaining sum report includes the ending balance and each date Between corresponding relationship.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, this specification one or more embodiment can provide for method, system or Computer program product.Therefore, complete hardware embodiment can be used in this specification one or more embodiment, complete software is implemented The form of example or embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used one It is a or it is multiple wherein include computer usable program code computer-usable storage medium (including but not limited to disk storage Device, CD-ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more embodiment is referring to according to the method for the embodiment of the present application, equipment (system) and meter The flowchart and/or the block diagram of calculation machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/ Or the combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can These computer program instructions are provided at general purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of equipment is managed to generate a machine, so that holding by the processor of computer or other programmable data processing devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
This specification one or more embodiment can computer executable instructions it is general on It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type Routine, programs, objects, component, data structure etc..The application can also be practiced in a distributed computing environment, at these In distributed computing environment, by executing task by the connected remote processing devices of communication network.In distributed computing In environment, program module can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely this specification one or more embodiments, are not limited to this specification.For this For the technical staff of field, this specification one or more embodiment can have various modifications and variations.It is all in this specification one Any modification, equivalent replacement, improvement and so within the spirit and principle of a or multiple embodiments, should be included in this explanation Within the scope of the claims of book one or more embodiment.

Claims (28)

1. a kind of processing method of resource change, comprising:
Obtain the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day occurrence quantity refers to that the same day becomes The stock number of change;
According to the resource day occurrence quantity, the from date for calculating the predetermined amount of time is tired to the resource between each date Count occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to the change in resources occurred between each date Aggregate-value;
The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately the end of term on each date Stock number;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance refers to that the same day is sent out Stock number after raw change in resources;
Resource residual amount report is generated according to the end of term stock number, the resource residual amount report includes the end of term stock number With the corresponding relationship between each date.
2. according to the method described in claim 1, the resource day occurrence quantity for obtaining each date in predetermined amount of time, packet It includes:
First resource report is obtained, the first resource report includes the resource day occurrence quantity on each date;
The resource day occurrence quantity on each date is extracted from the first resource report.
3. calculating rising for the predetermined amount of time according to the method described in claim 2, described according to the resource day occurrence quantity The resource between each date to begin in the date to the predetermined amount of time adds up occurrence quantity, comprising:
Obtain the date report comprising each date;
Cartesian product operation is carried out to the first resource report and the date report, obtains occurring comprising the resource day The Secondary resource report of corresponding relationship between amount, each first date and each second date;Wherein, each first date is institute Each date in first resource report is stated, each second date is each date in the date report;
The entry for not meeting preset condition in the Secondary resource report is deleted, information resources report is obtained;Wherein, described default Condition includes being not later than the second corresponding date on first date;
According to the resource day occurrence quantity in the information resources report, the from date is calculated separately to each date Between resource add up occurrence quantity.
4. according to the method described in claim 3, the beginning for adding up occurrence quantity and the from date according to the resource Stock number calculates separately the end of term stock number on each date, comprising:
The resource is added up into occurrence quantity and the sum of the initial stock number and is determined as the accumulative occurrence quantity of the resource corresponding day The end of term stock number of phase.
5. according to the method described in claim 4, it is described by the resource add up occurrence quantity and it is described beginning stock number and it is true It is set to the end of term stock number that the resource adds up the occurrence quantity corresponding date, comprising:
Generate the 4th asset report for adding up the corresponding relationship between occurrence quantity comprising first date and the resource;
Cartesian product operation is carried out to the 4th asset report and the initial stock number, is obtained comprising described first day Phase, the resource add up the 5th asset report of the corresponding relationship between occurrence quantity and the initial stock number;
Occurrence quantity is added up to the resource in the 5th asset report and the initial stock number carries out sum operation, is obtained The resource adds up the end of term stock number on occurrence quantity corresponding date.
6. according to the method described in claim 5, further include:
If detecting, the resource day occurrence quantity on the third date in each date is updated, according to the updated third The resource day occurrence quantity on date, the resource calculated between each 4th date after the from date to the third date are tired Count occurrence quantity;
Add up occurrence quantity to the resource between each 4th date according to the from date, updates the resource residual amount report Table.
7. the processing method that a kind of remaining sum changes, comprising:
The amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs the amount of money and refers to that the same day is changed The amount of money;
The amount of money occurs according to the day, calculates the from date of the predetermined amount of time to the accumulative generation between each date The amount of money;Wherein, the accumulative amount of money that occurs refers to the from date to the accumulative of the amount of money variation occurred between each date Value;
According to the accumulative beginning balance that the amount of money and the from date occurs, more than the end of term of each date is calculated separately Volume;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance refers to that the same day occurs remaining sum and becomes The amount of money after change;
Remaining sum report is generated according to the ending balance, the remaining sum report includes between the ending balance and each date Corresponding relationship.
8. according to the method described in claim 7, the amount of money occurs for the day for obtaining each date in predetermined amount of time, comprising:
The first amount of money report is obtained, first amount of money report includes the day on each date the amount of money occurring;
The amount of money occurs for the day that each date is extracted from first amount of money report.
9. calculating the starting of the predetermined amount of time according to the method described in claim 8, described occur the amount of money according to the day Date is to the accumulative generation amount of money between each date, comprising:
Obtain the date report comprising each date;
Cartesian product operation is carried out to first amount of money report and the date report, obtains that gold occurs comprising the day Second amount of money report of the corresponding relationship between volume, each first date and each second date;Wherein, each first date is institute Each date in the first amount of money report is stated, each second date is each date in the date report;
The entry for not meeting preset condition in second amount of money report is deleted, third amount of money report is obtained;Wherein, described default Condition includes being not later than the second corresponding date on first date;
According in the third amount of money report the day occur the amount of money, calculate separately the from date to each date it Between the accumulative generation amount of money.
10. according to the method described in claim 9, described according to the accumulative generation amount of money and more than beginning of the from date Volume calculates separately the ending balance on each date, comprising:
By the accumulative phase that the amount of money and the sum of the beginning balance occurs and is determined as the accumulative generation amount of money corresponding date Last remaining sum.
11. according to the method described in claim 10, described will be described accumulative occurring the amount of money and the beginning balance and determine For the accumulative ending balance that the amount of money corresponding date occurs, comprising:
It generates comprising first date and accumulative the 4th amount of money report that the corresponding relationship between the amount of money occurs;
Cartesian product operation is carried out to the 4th amount of money report and the beginning balance, obtain comprising first date, Accumulative the 5th amount of money report that the corresponding relationship between the amount of money and the beginning balance occurs;
By the accumulative generation amount of money and beginning balance progress sum operation in the 5th amount of money report, obtain described The accumulative ending balance that the amount of money corresponding date occurs.
12. according to the method for claim 11, further includes:
If detecting the day on the third date in each date the amount of money occurs and is updated, according to the updated third day The amount of money occurs for day of phase, and the accumulative generation calculated between each 4th date after the from date to the third date is golden Volume;
According to the from date to the accumulative generation amount of money between each 4th date, the remaining sum report is updated.
13. a kind of processing unit of resource change, comprising:
First obtains module, for obtaining the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day hair Raw amount refers to the same day changed stock number;
First computing module, for calculating the from date of the predetermined amount of time described according to the resource day occurrence quantity Resource between each date adds up occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to each date Between the aggregate-value of change in resources that occurs;
Second computing module is counted respectively for adding up the initial stock number of occurrence quantity and the from date according to the resource Calculate the end of term stock number on each date;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;Institute It states ending balance and refers to that the stock number after change in resources occurs for the same day;
First generation module, for generating resource residual amount report, the resource residual amount report according to the end of term stock number Include the corresponding relationship between the end of term stock number and each date.
14. device according to claim 13, the first acquisition module include:
First acquisition unit, for obtaining first resource report, the first resource report includes the resource day on each date Occurrence quantity;
First extraction unit, for extracting the resource day occurrence quantity on each date from the first resource report.
15. device according to claim 14, first computing module include:
Second acquisition unit, for obtaining the date report comprising each date;
First arithmetic element is obtained for carrying out cartesian product operation to the first resource report and the date report Secondary resource report comprising the corresponding relationship between the resource day occurrence quantity, each first date and each second date;Wherein, Each first date is each date in the first resource report, and each second date is each in the date report Date;
First deletion unit obtains information resources for deleting the entry for not meeting preset condition in the Secondary resource report Report;Wherein, the preset condition includes being not later than the second corresponding date on first date;
First computing unit, for according to the resource day occurrence quantity in the information resources report, calculating separately described rise Date beginning adds up occurrence quantity to the resource between each date.
16. device according to claim 15, second computing module include:
First determination unit is tired out for the sum of the accumulative occurrence quantity of the resource and the initial stock number to be determined as the resource Count the end of term stock number on occurrence quantity corresponding date.
17. device according to claim 16, first determination unit is also used to:
Generate the 4th asset report for adding up the corresponding relationship between occurrence quantity comprising first date and the resource;
Cartesian product operation is carried out to the 4th asset report and the initial stock number, is obtained comprising described first day Phase, the resource add up the 5th asset report of the corresponding relationship between occurrence quantity and the initial stock number;
Occurrence quantity is added up to the resource in the 5th asset report and the initial stock number carries out sum operation, is obtained The resource adds up the end of term stock number on occurrence quantity corresponding date.
18. device according to claim 17, further includes:
Third computing module, if for detecting that the resource day occurrence quantity on the third date in each date is updated, root According to the resource day occurrence quantity on the updated third date, each after the from date to the third date is calculated Resource between four dates adds up occurrence quantity;
First update module, for adding up occurrence quantity to the resource between each 4th date according to the from date, more The new resource residual amount report.
19. the processing unit that a kind of remaining sum changes, comprising:
Second obtains module, and the amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the amount of money occurs for the day Refer to the same day changed amount of money;
4th computing module, for the amount of money to occur according to the day, calculate the from date of the predetermined amount of time to it is described respectively The accumulative generation amount of money between date;Wherein, the accumulative generation amount of money refers to that the from date is sent out between each date The aggregate-value of raw amount of money variation;
5th computing module, for calculating separately institute according to the accumulative beginning balance that the amount of money and the from date occurs State the ending balance on each date;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance Refer to that the amount of money after remaining sum variation occurs for the same day;
Second generation module, for generating remaining sum report according to the ending balance, the remaining sum report includes more than the end of term Corresponding relationship between volume and each date.
20. device according to claim 19, the second acquisition module include:
Third acquiring unit, for obtaining the first amount of money report, first amount of money report includes occurring the day on each date The amount of money;
The amount of money occurs for the second extraction unit, the day for extracting each date from first amount of money report.
21. device according to claim 20, the 4th computing module include:
4th acquiring unit, for obtaining the date report comprising each date;
Second arithmetic element is obtained for carrying out cartesian product operation to first amount of money report and the date report The second amount of money report of the corresponding relationship between the amount of money, each first date and each second date occurs comprising the day;Wherein, institute Stating each first date is each date in first amount of money report, and each second date is each day in the date report Phase;
Second deletion unit obtains the third amount of money for deleting the entry for not meeting preset condition in second amount of money report Report;Wherein, the preset condition includes being not later than the second corresponding date on first date;
Second computing unit calculates separately the starting for the amount of money to occur according to the day in the third amount of money report Date is to the accumulative generation amount of money between each date.
22. device according to claim 21, the 5th computing module include:
Second determination unit, for the accumulative sum that the amount of money and the beginning balance occurs to be determined as the accumulative generation gold The ending balance on volume corresponding date.
23. device according to claim 22, second determination unit is also used to:
It generates comprising first date and accumulative the 4th amount of money report that the corresponding relationship between the amount of money occurs;
Cartesian product operation is carried out to the 4th amount of money report and the beginning balance, obtain comprising first date, Accumulative the 5th amount of money report that the corresponding relationship between the amount of money and the beginning balance occurs;
By the accumulative generation amount of money and beginning balance progress sum operation in the 5th amount of money report, obtain described The accumulative ending balance that the amount of money corresponding date occurs.
24. device according to claim 23, further includes:
6th computing module, if being updated for detecting that the amount of money occurs for the day on the third date in each date, basis The amount of money occurs for the day on the updated third date, calculates each 4th day after the from date to the third date The accumulative generation amount of money between phase;
Second update module, for updating according to the from date to the accumulative generation amount of money between each 4th date The remaining sum report.
25. a kind of processing equipment of resource change, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
Obtain the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day occurrence quantity refers to that the same day becomes The stock number of change;
According to the resource day occurrence quantity, the from date for calculating the predetermined amount of time is tired to the resource between each date Count occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to the change in resources occurred between each date Aggregate-value;
The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately the end of term on each date Stock number;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance refers to that the same day is sent out Stock number after raw change in resources;
Resource residual amount report is generated according to the end of term stock number, the resource residual amount report includes the end of term stock number With the corresponding relationship between each date.
26. a kind of storage medium, for storing computer executable instructions, the executable instruction is realized following when executed Process:
Obtain the resource day occurrence quantity on each date in predetermined amount of time;Wherein, the resource day occurrence quantity refers to that the same day becomes The stock number of change;
According to the resource day occurrence quantity, the from date for calculating the predetermined amount of time is tired to the resource between each date Count occurrence quantity;Wherein, the accumulative occurrence quantity of the resource refers to the from date to the change in resources occurred between each date Aggregate-value;
The initial stock number for adding up occurrence quantity and the from date according to the resource, calculates separately the end of term on each date Stock number;Wherein, the initial stock number refers to that the stock number before change in resources occurs for the same day;The ending balance refers to that the same day is sent out Stock number after raw change in resources;
Resource residual amount report is generated according to the end of term stock number, the resource residual amount report includes the end of term stock number With the corresponding relationship between each date.
27. the processing equipment that a kind of remaining sum changes, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
The amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs the amount of money and refers to that the same day is changed The amount of money;
The amount of money occurs according to the day, calculates the from date of the predetermined amount of time to the accumulative generation between each date The amount of money;Wherein, the accumulative amount of money that occurs refers to the from date to the accumulative of the amount of money variation occurred between each date Value;
According to the accumulative beginning balance that the amount of money and the from date occurs, more than the end of term of each date is calculated separately Volume;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance refers to that the same day occurs remaining sum and becomes The amount of money after change;
Remaining sum report is generated according to the ending balance, the remaining sum report includes between the ending balance and each date Corresponding relationship.
28. a kind of storage medium, for storing computer executable instructions, the executable instruction is realized following when executed Process:
The amount of money occurs for the day for obtaining each date in predetermined amount of time;Wherein, the day occurs the amount of money and refers to that the same day is changed The amount of money;
The amount of money occurs according to the day, calculates the from date of the predetermined amount of time to the accumulative generation between each date The amount of money;Wherein, the accumulative amount of money that occurs refers to the from date to the accumulative of the amount of money variation occurred between each date Value;
According to the accumulative beginning balance that the amount of money and the from date occurs, more than the end of term of each date is calculated separately Volume;Wherein, the beginning balance refers to that the amount of money before remaining sum variation occurs for the same day;The ending balance refers to that the same day occurs remaining sum and becomes The amount of money after change;
Remaining sum report is generated according to the ending balance, the remaining sum report includes between the ending balance and each date Corresponding relationship.
CN201811014679.4A 2018-08-31 2018-08-31 Resource change processing method and device Active CN109033468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811014679.4A CN109033468B (en) 2018-08-31 2018-08-31 Resource change processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811014679.4A CN109033468B (en) 2018-08-31 2018-08-31 Resource change processing method and device

Publications (2)

Publication Number Publication Date
CN109033468A true CN109033468A (en) 2018-12-18
CN109033468B CN109033468B (en) 2022-09-16

Family

ID=64623246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811014679.4A Active CN109033468B (en) 2018-08-31 2018-08-31 Resource change processing method and device

Country Status (1)

Country Link
CN (1) CN109033468B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599026A (en) * 2019-09-09 2019-12-20 北京搜狗科技发展有限公司 Data processing method and device for data processing

Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1167256A (en) * 1997-03-12 1997-12-10 赵得秀 Ultra-long range weather forecast method for the effect of solar eclipse
CN1776377A (en) * 2005-12-05 2006-05-24 上海宝信软件股份有限公司 Computing method for material weighing
CN1787006A (en) * 2005-10-28 2006-06-14 常明哲 System and method for evaluating risk and value of investment stock
CN101296128A (en) * 2007-04-24 2008-10-29 北京大学 Method for monitoring abnormal state of internet information
CN101299285A (en) * 2007-12-11 2008-11-05 北京印刷学院 Bank abnormity draw money detector and method thereof
CN101329788A (en) * 2008-08-05 2008-12-24 王兴昆 Authorization type power management method and system
CN101526819A (en) * 2009-02-23 2009-09-09 重庆大学 Structural health monitoring intelligent data processing method featuring personified memory and module thereof
CN101534494A (en) * 2009-04-13 2009-09-16 中国联合网络通信集团有限公司 Account settlement charge-off treatment method and device thereof
CN102981646A (en) * 2012-12-10 2013-03-20 江苏惠通集团有限责任公司 Output control method and device of gesture sensing equipment, and display control method and system
CN103092549A (en) * 2012-12-06 2013-05-08 远光软件股份有限公司 Representing method and device for fund change situation
CN103761838A (en) * 2014-01-13 2014-04-30 杭州电子科技大学 Device and method for managing personal water drinking
CN104407925A (en) * 2014-12-10 2015-03-11 中国电信集团系统集成有限责任公司 Dynamic resource distribution method
CN105589917A (en) * 2015-09-17 2016-05-18 广州市动景计算机科技有限公司 Method and device for analyzing log information of browser
CN105913284A (en) * 2016-05-03 2016-08-31 无锡雅座在线科技发展有限公司 Message push method and device
CN105956918A (en) * 2016-04-28 2016-09-21 中国银行股份有限公司 Method for recording dynamic variation data
CN106415500A (en) * 2014-06-27 2017-02-15 亚马逊科技公司 Rolling resource credits for scheduling of virtual computer resources
CN106960383A (en) * 2017-03-22 2017-07-18 中国银行股份有限公司 Default interest computational methods of providing a loan and system
CN107169609A (en) * 2017-05-27 2017-09-15 普诚创智(成都)科技有限公司 According to the method for night long changing rule forecast date and its be applied to street lamp on control method
CN107450426A (en) * 2017-08-01 2017-12-08 中国建筑第八工程局有限公司 Foundation pit construction deformable statistical analysis method and system
CN107481004A (en) * 2017-08-11 2017-12-15 中国工商银行股份有限公司 Transaction risk crime prevention system and method
CN107798057A (en) * 2017-09-05 2018-03-13 平安科技(深圳)有限公司 transaction data processing method, device, storage medium and computer equipment
CN107908672A (en) * 2017-10-24 2018-04-13 深圳前海微众银行股份有限公司 Application report implementation method, equipment and storage medium based on Hadoop platform
CN108257005A (en) * 2017-12-28 2018-07-06 深圳市牛鼎丰科技有限公司 Resource allocation methods, device, computer equipment and storage medium
CN108305177A (en) * 2018-01-29 2018-07-20 中国平安人寿保险股份有限公司 A kind of method, terminal and computer readable storage medium insuring processing of settling interests
CN108364139A (en) * 2018-03-15 2018-08-03 中国银行股份有限公司 The method and apparatus for determining the amount of money of accumulative index

Patent Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1167256A (en) * 1997-03-12 1997-12-10 赵得秀 Ultra-long range weather forecast method for the effect of solar eclipse
CN1787006A (en) * 2005-10-28 2006-06-14 常明哲 System and method for evaluating risk and value of investment stock
CN1776377A (en) * 2005-12-05 2006-05-24 上海宝信软件股份有限公司 Computing method for material weighing
CN101296128A (en) * 2007-04-24 2008-10-29 北京大学 Method for monitoring abnormal state of internet information
CN101299285A (en) * 2007-12-11 2008-11-05 北京印刷学院 Bank abnormity draw money detector and method thereof
CN101329788A (en) * 2008-08-05 2008-12-24 王兴昆 Authorization type power management method and system
CN101526819A (en) * 2009-02-23 2009-09-09 重庆大学 Structural health monitoring intelligent data processing method featuring personified memory and module thereof
CN101534494A (en) * 2009-04-13 2009-09-16 中国联合网络通信集团有限公司 Account settlement charge-off treatment method and device thereof
CN103092549A (en) * 2012-12-06 2013-05-08 远光软件股份有限公司 Representing method and device for fund change situation
CN102981646A (en) * 2012-12-10 2013-03-20 江苏惠通集团有限责任公司 Output control method and device of gesture sensing equipment, and display control method and system
CN103761838A (en) * 2014-01-13 2014-04-30 杭州电子科技大学 Device and method for managing personal water drinking
CN106415500A (en) * 2014-06-27 2017-02-15 亚马逊科技公司 Rolling resource credits for scheduling of virtual computer resources
CN104407925A (en) * 2014-12-10 2015-03-11 中国电信集团系统集成有限责任公司 Dynamic resource distribution method
CN105589917A (en) * 2015-09-17 2016-05-18 广州市动景计算机科技有限公司 Method and device for analyzing log information of browser
CN105956918A (en) * 2016-04-28 2016-09-21 中国银行股份有限公司 Method for recording dynamic variation data
CN105913284A (en) * 2016-05-03 2016-08-31 无锡雅座在线科技发展有限公司 Message push method and device
CN106960383A (en) * 2017-03-22 2017-07-18 中国银行股份有限公司 Default interest computational methods of providing a loan and system
CN107169609A (en) * 2017-05-27 2017-09-15 普诚创智(成都)科技有限公司 According to the method for night long changing rule forecast date and its be applied to street lamp on control method
CN107450426A (en) * 2017-08-01 2017-12-08 中国建筑第八工程局有限公司 Foundation pit construction deformable statistical analysis method and system
CN107481004A (en) * 2017-08-11 2017-12-15 中国工商银行股份有限公司 Transaction risk crime prevention system and method
CN107798057A (en) * 2017-09-05 2018-03-13 平安科技(深圳)有限公司 transaction data processing method, device, storage medium and computer equipment
CN107908672A (en) * 2017-10-24 2018-04-13 深圳前海微众银行股份有限公司 Application report implementation method, equipment and storage medium based on Hadoop platform
CN108257005A (en) * 2017-12-28 2018-07-06 深圳市牛鼎丰科技有限公司 Resource allocation methods, device, computer equipment and storage medium
CN108305177A (en) * 2018-01-29 2018-07-20 中国平安人寿保险股份有限公司 A kind of method, terminal and computer readable storage medium insuring processing of settling interests
CN108364139A (en) * 2018-03-15 2018-08-03 中国银行股份有限公司 The method and apparatus for determining the amount of money of accumulative index

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599026A (en) * 2019-09-09 2019-12-20 北京搜狗科技发展有限公司 Data processing method and device for data processing
CN110599026B (en) * 2019-09-09 2022-07-05 北京搜狗科技发展有限公司 Data processing method and device for data processing

Also Published As

Publication number Publication date
CN109033468B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN109299222A (en) Verification of data method and device
CN107025236B (en) Data processing method between clearing systems and data clearing system
WO2019117311A1 (en) Method for enabling access to past transaction in blockchain network, and node
CN104317928A (en) Service ETL (extraction-transformation-loading) method and service ETL system both based on distributed database
CN107016604A (en) Buffer method, device and the equipment of book keeping operation
CN106201673B (en) A kind of seismic data processing technique and device
CN107729423A (en) A kind of big data processing method and processing device
CN107633347A (en) A kind of data target statistical method and device
CN110471754A (en) Method for exhibiting data, device, equipment and storage medium in job scheduling
CN109343793A (en) Data migration method and device
CN110020427A (en) Strategy determines method and apparatus
CN108415912A (en) Data processing method based on MapReduce model and equipment
CN108073687A (en) Random walk, random walk method, apparatus and equipment based on cluster
CN110399096A (en) Metadata of distributed type file system caches the method, apparatus and equipment deleted again
CN109145625A (en) Processing method, device and the block chain data-storage system of policy information
CN109272400A (en) Method for processing resource and device
CN109117475A (en) A kind of method and relevant device of text rewriting
CN109033365A (en) A kind of data processing method and relevant device
CN108255471A (en) A kind of system configuration item configuration device based on configuration external member, method and apparatus
CN106648839A (en) Method and device for processing data
CN110515734A (en) The load processing method and device of data processing task
CN109033468A (en) The processing method and processing device of resource change
CN107026897A (en) A kind of methods, devices and systems of data processing
CN105117169B (en) A kind of method and device of the disk space management of optimization
CN110083602A (en) A kind of method and device of data storage and data processing based on hive table

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant