CN103167460B - A kind of charging bill processing method and device - Google Patents

A kind of charging bill processing method and device Download PDF

Info

Publication number
CN103167460B
CN103167460B CN201110412323.8A CN201110412323A CN103167460B CN 103167460 B CN103167460 B CN 103167460B CN 201110412323 A CN201110412323 A CN 201110412323A CN 103167460 B CN103167460 B CN 103167460B
Authority
CN
China
Prior art keywords
rate
burst
price
policy item
expense
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.)
Active
Application number
CN201110412323.8A
Other languages
Chinese (zh)
Other versions
CN103167460A (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.)
China Mobile Group Hebei Co Ltd
Original Assignee
China Mobile Group Hebei Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Hebei Co Ltd filed Critical China Mobile Group Hebei Co Ltd
Priority to CN201110412323.8A priority Critical patent/CN103167460B/en
Publication of CN103167460A publication Critical patent/CN103167460A/en
Application granted granted Critical
Publication of CN103167460B publication Critical patent/CN103167460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of charging bill processing method, comprising: A, according to charging bill and user can the preferential attribute of rate, obtain the price policy item list corresponding to described charging bill; B, perform each price policy item successively according to priority orders, and carry out ticket burst respectively according to the preferential attribute of the rate of each price policy item; According to the wholesale price rule of ticket, perform the expense tentative calculation on each ticket burst; C, in same slice in the tentative calculation expense of different tariff policy item or normal billing tentative calculation expense, according to wholesale price rule interestingness optimum rate, and on the basis of optimum rate, form final ticket rate.After this invention takes technique scheme, overcome the least cost charge unit that expense object in prior art is separated into too much, operand is comparatively large, and the defect that efficiency is lower, decreases processor active task amount, improve operating efficiency.In addition, the invention also discloses a kind of charging bill processing unit.

Description

A kind of charging bill processing method and device
Technical field
The present invention relates to a kind of ticketing processing method, belong to mobile communication billing field.
Background technology
Day by day complicated along with the market demand and marketing strategy, the kind of set meal rate is also more and more diversified, and the contradiction between the market demand and set meal Coexistence is being aggravated gradually.For avoiding occurring the irrational situation of charging when set meal superposes, need the Coexistence of a large amount of set meal to be set to mutual exclusion, but the market demand requires again to allow user to use multiple set meal, to meet the individual demand of different user.
Active user's many set meals Coexistence Situation ubiquity, the tightness deficiency of superposition charging becomes problem demanding prompt solution, and especially how critical point charging ensures optimum rate principle, has higher requirement to the disposal ability of charge system.Ensure that the charging regulation of set meal superposition situation obtains the accreditation of client, key unified standard to go measurement charging whether to meet optimum rate principle, and ensure that all rate can be unified to be applicable to same standard by technical implementation way.
Under traditional billing mechanism, a ticket is integrally carried out wholesale price, when multiple set meal superposition, need or recursive call nested by set meal to realize optimum rate principle, this kind of pattern is only applicable to the superposed configuration of a small amount of set meal, along with the increase of the situation of set meal superposition, set meal configuration can become increasingly complex, not only considerably increase maintenance cost, also may cause the cross-call between rate, be finally absorbed in the deadlock configuring and cannot expand.
Under cutting ticket pattern, critical billing issues becomes more complicated.When ticket crosses over the critical point of preferential period, if by tradition using the charging regulation charging of time started as period preferential foundation, ticketing there are differences, and also may lack charging may to the many chargings of user.
When set meal superposition is in critical, traditional charge mode cannot realize optimum rate principle.
For the duration once call of 10 minutes, ticket call is from 21:51, and 22:01 terminates, and the duration of call is 10 minutes, and expense is standard rate 0.4 yuan/minute, and namely original expense is 4 yuan.Ticket performs 3 rate successively: A, B, C.
Rate A residue gives duration 5 minutes, exceeds rear rate 0.1 yuan/minute; Rate B remains accumulative duration 3 minutes, exceeds rear rate 0.09 yuan/minute; Rate C is discount by time: 08:00 point is the non-preferential period 0.2 yuan/minute to 22:00 point, and 22:00 point is the preferential period 0.05 yuan/minute to 8:00 point next day.
Perform rate A, ticket gives 5 minutes, the rate 0.1 yuan/minute after exceeding according to A for latter 5 minutes, after namely secondary bar ticket executes A rate be 5*0.1 unit/minute=0.5 yuan;
Perform rate B, ticket gives 3 minutes, and therefore first 3 minutes of ticket is free, the rate 0.09 yuan/minute after going out according to B ultrasonic for latter 7 minutes, after namely performing rate B expense be 7*0.09 unit/minute=0.63 yuan;
Perform rate C, according to tariff rule, 21:51 to 22:00's 9 minutes is the non-preferential period, and 1 minute of 22:00 to 22:01 is the preferential period; Within first 9 minutes, being non-preferential period value 0.2 yuan/minute, latter 1 minute is preferential period value 0.05 yuan/minute, finally the rate of this ticket be 9*0.2 unit/minute+1*0.05 unit/minute=1.85 yuan.
Visible, not only can not realize minimum rate principle by traditional charge mode, and the number of minutes that user's rate A and B gives all cannot be enjoyed.
In addition, application number is 200710090576.1, publication date is that the Chinese invention patent application on September 5th, 2007 discloses a kind of charging method when each rate type of user overlaps and system, this charging method is: the expense charge unit charging object in ticket being divided into setting, and according to the tariff rule of each rate type, wholesale price process is carried out to each expense charge unit, obtain the charging rate of each expense charge unit under various rate, then corresponding according to expense charge unit respectively all charging rates obtain final charging rate, finally generate keep cost order according to the final charging rate of each expense charge unit.
Realizing in process of the present invention, inventor finds that application number is that in the prior art of 200710090576.1, at least there are the following problems:
In this technical scheme, expense charge unit is the minimum charging scale of each business, the local call of such as speech business was divided into a charge unit by 1 minute, if the ticket of 30 minutes, need division 30 charge units, then calculate the unit charging rate of each expense charge unit under each rate type respectively.Therefore, regardless of the duration of ticket, regardless of rate type, the expense object of ticket is all needed to be separated into least cost charge unit, obvious operand is large, inefficiency, and is only confined to get minimum value among the program and carries out charging, can not adapt to existing various charging actual.
Summary of the invention
For the shortcoming in the charging method of prior art, the present invention adopts a kind of new service billing processing method, its concrete technical scheme as below specifically describe.
A kind of charging bill processing method, comprising:
A, according to charging bill and user can the preferential attribute of rate, obtain the price policy item list corresponding to described charging bill;
B, perform each price policy item successively according to priority orders, and carry out ticket burst respectively according to the preferential attribute of the rate of each price policy item; According to the wholesale price rule of ticket, perform the expense tentative calculation on each ticket burst;
C, in same slice in the tentative calculation expense of different tariff policy item or normal billing tentative calculation expense, according to wholesale price rule interestingness optimum rate, and on the basis of optimum rate, form final ticket rate.
Further, preferred method is, in step C, also comprises: to the preferential attribute of rate of untapped price policy item, carries out corresponding rate preferential attribute rollback process according to wholesale price rule.
Further, preferred method is, in step B, specifically also comprises:
Obtain the charging bill burst information under last price policy item;
On the basis of the charging bill burst under described last price policy item, according to the further burst of the rate of this price policy item preferential property dialog list.
Further, preferred method is, in step C, specifically comprises:
Obtain the tentative calculation expense in the same slice under this price policy item and last price policy item;
According to wholesale price rule relatively and to choose in twice tentative calculation expense optimum rate as the rate under this price policy item.
Preferred method further comprises: under same price policy item, the final rate on more adjacent burst;
If the rate of two bursts is identical, then described two bursts are merged, simultaneously using merge after burst as the burst under this price policy item.
Preferred method further comprises:
After in the end the ticket process of a price policy item completes, the rate on all bursts of the charging bill of described price policy item are added up as final charging result.
After this invention takes technique scheme, ticket characteristic sum rate handling process is combined, feature according to price policy item carries out burst, and judge the expense value of each burst unit, and according to wholesale price rule interestingness optimum rate on the basis of identical burst charging, overcome the least cost charge unit that expense object in prior art is separated into thus too much, operand is larger, the defect that efficiency is lower, decreases processor active task amount, improves operating efficiency.
According to the second object of the present invention, the invention provides a kind of charging bill processing unit, comprising:
Fee administration module, for according to charging bill and user can the preferential attribute of rate, obtain the price policy item list corresponding to described charging bill;
Management by district module, for performing each price policy item successively according to priority orders, and carries out ticket burst respectively according to the preferential attribute of the rate of each price policy item;
According to the wholesale price rule of ticket, perform the expense tentative calculation on each ticket burst;
Wholesale price processing module, for in same slice in the tentative calculation expense of different tariff policy item or normal billing tentative calculation expense, according to wholesale price rule interestingness optimum rate, and on the basis of optimum rate, form final ticket rate.
After this invention takes such scheme, described billing treatment plant can carry out burst according to the feature of price policy item, and judge the expense value of each burst unit, and according to wholesale price rule interestingness optimum rate on the basis of identical burst charging, good charging efficiency.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is described in detail, to make above-mentioned advantage of the present invention definitely.
Fig. 1 is the schematic flow sheet of charging bill processing method of the present invention;
Fig. 2 is the schematic diagram of the charging bill processing method of one embodiment of the invention;
Fig. 3 is the schematic flow sheet of the charging bill processing method of one embodiment of the invention;
Fig. 4 is the structural representation of the message accounting of charging bill of the present invention;
Fig. 5 is the schematic diagram of the management by district module of one embodiment of the invention;
Fig. 6 is the schematic diagram of the wholesale price processing module of one embodiment of the invention.
Embodiment
Introduce successively burst involved in the present invention, burst rule, segmentation foundation, wholesale price rule below, wherein, burst refers to process ticket being split into multiple sliced piece, wherein, all bursts all constitute charging event, wherein, carry out charging during charging according to burst information.
Among the present invention, the invention provides a kind of burst rule, mainly as follows:
By number of times (bar): this is the special circumstances of burst, whole piece charging event is as a fragment.
By use amount (time): temporally split the duration of charging event, each fragment has oneself time started and duration.
By flow (flow/byte number): split charging event by flow or byte number, each fragment has oneself flow or byte number, but all adopts the time started of whole piece charging event, does not have the time started of fragment oneself.
Present invention also offers the segmentation foundation of the ticket according to the classification of price policy item, comprising:
The price policy item of ' at times rate ': the segmentation mainly carrying out ticket by the temporal information of crossing over, such as price policy item: busy (08 o'clock to 23 o'clock) city telephone rate 0.2 yuan/minute, idle (23 o'clock to 08 o'clock) city telephone rate 0.1 yuan/minute.
The price policy item of ' accumulative rate ': the main segmentation carrying out ticket by the duration of call of ticket, carries out the segmentation of ticket, such as, gives residue 5 minutes according to the cumulative amount of real surplus, then cut from punishment in 5 minutes of the duration of call.
The price policy item of ' giving rate ': with the process of accumulative rate.
The price policy item of ' segmentation rate rate ': the segmentation carrying out ticket by the duration of call, such as price policy item: converse and perform 0.1 yuan/3 minutes in first 3 minutes, exceed rear execution 0.05 yuan/minute, then cut punishment in 3 minutes.
In addition, present invention also offers the wholesale price rule that the application takes, as follows:
Get lower expense:
A) for the normal charging event of burst, the rating result of these rate and existing rating result are compared by current charge fragment, expense of getting lower as rating result;
B) for this price policy item sliced fashion and upper level sliced fashion incompatible time, will compare by whole piece ticket rating result and accept or reject with expense;
If c) rating result of current rate is not lower expense and is rejected, then the use amount attribute that current clip uses can rollback.
D) expense of tentative calculation when current burst expense has been 0, then expense tentative calculation can not have been entered, because can not be less than 0.
Unconditionally get tentative calculation expense:
This rule is in order to the original rate process of compatibility.
For current ticket fragment, force the rating result getting these rate; Gave if done before this, expense is 0, also can by these rate wholesale price, and use amount before this can not rollback.
To have ready conditions this expense of tentative calculation:
Similar " unconditionally getting this expense ", but when expense is free except, skip this step when namely expense is 0, no longer enter expense tentative calculation, use amount is rollback not; By this expense wholesale price when expense is greater than 0, and rollback use amount when covering original rate; This type is mainly used in compatible traditional rate configuration.
Below charging bill processing method of the present invention is described in detail.
embodiment of the method one:
The present invention is directed to the least cost charge unit that expense object of the prior art is separated into too much, operand is comparatively large, and the defect that efficiency is lower, provides a kind of charging bill processing method, and according to the present embodiment, described method specifically comprises the following steps:
S101: according to charging bill and user can the preferential attribute of rate, obtain the price policy item list corresponding to described charging bill;
Specifically, in an embodiment, according to the attribute of subscriber data and charging bill obtain described charging bill can price policy item, and form the list of price policy item according to the height of priority.
S102: perform each price policy item successively according to priority orders, and carry out ticket burst respectively according to the preferential attribute of the rate of each price policy item;
Wherein, for multiple price policy item, when calculating, also need to obtain the charging bill burst information under last price policy item;
And on charging bill burst under described last price policy item, according to the further burst of this price policy item.
Namely the burst information of last price policy item can both pass to follow-up price policy item use, by the method for this kind of cumulative burst, saves the time that burst consumes.
S103: according to the wholesale price rule of ticket, perform the expense tentative calculation on each ticket burst;
Wherein, S104: in same slice in the tentative calculation expense of different tariff policy item or normal billing tentative calculation expense, according to wholesale price rule interestingness optimum rate;
Specifically, when the charging of price policy item first, need by the tentative calculation expense on each burst under this price policy item with the tentative calculation expense of normal charging compared with, and choose the final tentative calculation expense of optimum rate as the burst under this price policy item on this basis according to wholesale price is regular;
Wherein, if wholesale price rule is the principle of getting lower expense, then when calculating, choose the minimum expense of rate as the rate in same slice; If other wholesale price rule, then process according to the choosing of wholesale price rule of correspondence.
In addition, when carrying out the calculating of other price policy items under the list of price policy item, the rate of the same slice of price policy item each time all need the rate basis of the same slice under upper price policy item is once chosen, and comprising:
Obtain the charge information of the same slice under this price policy item and last price policy item;
Then, according to rate optimum in twice charging of wholesale price rule interestingness as the charging under this price policy item.
S105: form final ticket rate on the basis of optimum rate.
After this invention takes technique scheme, the process of ticket characteristic sum rate is combined, feature according to price policy item carries out burst, and judge each burst unit expense value and according to wholesale price rule interestingness optimum rate, overcome the least cost charge unit that expense object in prior art is separated into thus too much, operand is comparatively large, the defect that efficiency is lower, decrease processor active task amount, improve operating efficiency.
embodiment of the method two:
Describe the present invention below in conjunction with a preferred embodiment, wherein, according to the present embodiment, described method comprises the following steps:
S201: according to the type (voice, GRPS, note) of charging bill and the preferential attribute of rate of user, obtain the price policy item corresponding to charging bill, and form the list of price policy item according to the priority;
S202: the wholesale price process carrying out the rate under each price policy item according to the priority orders of price policy item list successively;
Comprise: burst process and rate tentative calculation two processing procedures, wherein, among the process of carrying out burst process, wherein, ticket just starts when the process entering into price policy item to carry out burst, and its burst is according to being the preferential attribute that the detailed rate process entry of each rate among price policy item and user have.
And, the present invention is when carrying out the process of each price policy item, the preferential attribute had according to the above-mentioned user of price policy item and the feature of charging bill itself, namely generate a burst result that expense is minimum under this price policy item in conjunction with price policy item, and on the basis of this burst result, carry out a preliminary expense tentative calculation.
In the process of carrying out rate tentative calculation, in same slice in the tentative calculation expense of different tariff policy item or normal billing tentative calculation expense, according to wholesale price rule interestingness optimum rate.
Specifically, when the charging of price policy item first, need by the tentative calculation expense on each burst under this price policy item with the tentative calculation expense of normal charging compared with, and choose the final tentative calculation expense of optimum rate as the burst under this price policy item on this basis according to wholesale price is regular;
Wherein, if wholesale price rule is the principle of getting lower expense, then when calculating, choose the minimum expense of rate as the rate in same slice; If other wholesale price rule, then process according to the choosing of wholesale price rule of correspondence.
In addition, when carrying out the calculating of other price policy items under the list of price policy item, the rate of the same slice of price policy item each time all need the rate basis of the same slice under upper price policy item is once chosen, and comprising:
Obtain the charge information of the same slice under this price policy item and last price policy item; Then, according to rate optimum in twice charging of wholesale price rule interestingness as the charging under this price policy item.
Wherein, in this embodiment, also comprise:
S204: under same price policy item, the final rate on more adjacent burst;
If the rate of two bursts is identical, then described two bursts are merged, simultaneously using the burst after merging as the burst under this price policy item, and this burst information is as the reference frame of follow-up price policy item.
By said method, the expense amount of calculation of follow-up charging bill can be saved, there is good charging treatment effeciency.
S205: after processing all price policy items in the list of price policy item successively, adds up the expense of each burst under final price policy item, to obtain the final charging result of this charging bill.
In addition, S206: after the optimal cost according to wholesale price rule interestingness, to have given or preferential preferential amount for untapped front burst, carries out the rollback process of corresponding preferential amount according to wholesale price rule.
Therefore, it is possible to ensure to while the wholesale price rate of user's optimum, can also ensure user give or preferential amount is more reasonably applied in the consumer behavior of user.
The present embodiment, on the basis of embodiment one, to the further refinement of the flow process of charging bill processing method, and then makes execution efficiency of the present invention higher; And, last burst has been given or preferential fall preferential amount, the process of whether rollback can also be made according to wholesale price rule, and then while ensureing the optimum wholesale price rate of user, also assures that user give or preferential amount can more reasonably be applied among the consumer behavior of user.
embodiment of the method three:
Below in conjunction with specific embodiment, the present invention will be described in more detail.Wherein, described charging bill processing method, specifically comprises the following steps: further
S301: fee administration module is according to all price policies of the material matches of user;
And according to all available price policy items of charging bill characteristic matching, and prioritized;
Specifically, the business predetermined according to user, obtains all price policy items that it is available; Meanwhile, according to the feature of charging bill, get concrete available price policy item; Wherein, there is certain priority orders (user's setting or operator's setting) between described price policy item;
S302: price policy is inner, the according to priority each price policy item of sequential processes, and the method specifically comprises following concrete steps:
S303: carry out burst charging process in price policy item:
Wherein, among this embodiment, according to the character of described charging bill, judge whether to need to carry out burst, wherein, for the charging event not needing burst, using whole ticket as a fragment, rate is averaged rate, and expense gets total cost;
For the charging event needing burst, mark needs fragment to be processed, and carries out this burst process;
S3031: wholesale price processing module judges whether the tentative calculation needing to carry out expense, such as:
In addition, among preferred embodiment, according to wholesale price rule, also need to calculate the need of carrying out expense tentative calculation.
If wholesale price rule is " unconditionally getting tentative calculation expense ", then enter the tentative calculation process of expense;
If expense is 0, and wholesale price rule is not " unconditionally getting tentative calculation expense ", then need not enter the tentative calculation of expense;
Such as, among this specific embodiment, get least cost and there is certain typicalness, for when getting minimum charge, need first to carry out tentative calculation, then compared with the scheme of prior art, finally get minimum value, meanwhile, preference scheme new before rollback.
S3032: wherein, when carrying out needing tentative calculation, needing to carry out tentative calculation to each fragment of charging event successively, carrying out the calculating of ticket expense by the rate of new price policy item.
Wherein, if tentative calculation failure because burst does not mate, then carry out tentative calculation by whole charging event, then according to " wholesale price rule ", the expense of whole charging event is accepted or rejected;
S3033: in addition, for some concrete bursts, also needs the expense after tentative calculation to be compared with existing expense according to wholesale price rule, gets corresponding expense;
Namely when burst wholesale price each time, contrast with the burst of last time successively, to get optimum wholesale price expense.
S3034: in addition, further, according to wholesale price and rollback principle, if adopt current the trial result, the use attribute of user adds up corresponding use amount;
If do not adopt current the trial result, the use amount meeting rollback of user's current clip;
S304: further, in order to save follow-up expense amount of calculation, if the rate of current slice is consistent with the rate of previous burst, then carries out the merging of burst;
S305: judge whether to there is next burst information, if had, carries out the process of next burst;
If no, then this illustrates that this expense rate item completes as calculated, thus, enters into the judgement of follow-up price policy item;
S306: judged whether next price policy item, if had, carries out the process of next price policy item, if not, terminates the processing logic of this burst wholesale price; If no, then terminate all assignment item.
S307: the flow process of whole burst charging completes.
Charging bill processing method described in the present embodiment, enhances the tightness of charge system, and avoids the risk of customer complaint; And, this embodiment solves common set meal, gives class set meal, at times set meal superposition calculation time charging irrational problem, ensure that optimum rate, and, by carrying out the enforcement of burst according to price policy, the overall performance of whole charge system is improved.
embodiment of the method four:
Below to press use amount (time) burst principle, the handling process of different wholesale price rule is described:
A preferential set meal of bonus type (rate A), a preferential set meal of accumulative type (rate B), the superposition charging of a set meal (rate C) at times:
Segmentation foundation and charging illustrate:
Segmentation during rate A process with ' giving rate ' for foundation: residue give duration 5 minutes, exceed rear rate 0.1 yuan/minute; Segmentation during rate B process is according to being ' accumulative rate ': the accumulative duration of residue 3 minutes, exceeds rear rate 0.09 yuan/minute; Rate C is discount by time, and its segmentation foundation is ' at times rate ': 08:00 point is the non-preferential period 0.2 yuan/minute to 22:00 point, and 22:00 point to 8:00 point is the preferential period 0.05 yuan/minute.
Ticket describes:
Ticket call is from 21:51, and 22:01 terminates, and the duration of call is 10 minutes, and expense is standard rate 0.4 yuan/minute, and namely original expense is 4 yuan.
Get the wholesale price flow process of lower expense:
Perform rate A, according to the segmentation foundation of rate A and burst principle temporally, the duration of call is divided into two sections of 5 minutes+5 minutes, sees form 1 below;
21:51 to 21:56 is divided into by call, and 21:56 to 22:01 two sections;
According to the wholesale price rule of getting lower expense, within first 5 minutes, perform and give, so wholesale price is 0 yuan of expense as this section.Latter 5 minutes tentative calculation expenses 5 minutes * 0.1 yuan/minute=0.5 yuan, are less than original 5 minutes * 0.4 yuan/minute=2 yuan, therefore get expense 0.5 yuan as this section of expense;
Perform rate B, according to getting the judgment principle of lower expense and the burst principle by duration, first sectional charge is 0, because the expense also lower than 0 can not be had, so first burst of 5 minutes no longer carries out burst and tentative calculation, but to latter 5 minutes bursts again, according to the segmentation foundation of rate B, be divided into 3 minutes by latter 5 minutes and 2 minutes two sections, see form 2;
Then wholesale price process is carried out, for second burst, its the trial result is 0 yuan and gets this expense, 3rd burst, 2 minutes tentative calculation expenses 2 minutes * 0.09 yuan/minute=0.18 yuan, the former expense of this charging fragment is 0.1 × 2=0.2 unit, because 0.18 yuan is less than 0.2 yuan, according to the value principle getting lower expense, the expense of getting is 0.18 yuan;
Now, ticket has temporally been divided into 3, i.e. the duration of call 5 minutes+3 minutes+2 minutes, because the expense of front 2 bursts is all 0, so front 2 bursts are carried out merging treatment, obtains form 3; And the result of this merging mode later calculates.
Perform rate C, according to the segmentation foundation of rate C and burst principle temporally, 21:51 starts, the ticket that 22:01 terminates needs segmentation at 22:00 place, therefore need last 2 minutes of ticket bursts again, be divided into two fragments by preferential period critical point: 1 minute and 1 minute, then carry out tentative calculation according to wholesale price rule, see form 4
Wherein, according to getting minimum value principle, be then 0 yuan of no longer tentative calculation according to first burst, 8 minutes expenses;
Second burst 1 minute, non-preferential period the trial result 1 minute * 0.2 yuan/minute=0.2 yuan, is greater than the former expense of this fragment 0.09 yuan, does not therefore adopt the trial result;
3rd burst 1 minute, preferential period the trial result 1 minute * 0.05 yuan/minute=0.05 yuan, is less than the former expense of this fragment 0.09 yuan, therefore adopts the trial result.
That is, the present invention is directed to each rate expense and carry out burst, and, when carrying out burst, carry out secondary splitting according to the regular burst for previous rate expense of wholesale price; , for identical fee item, merge, to reduce the complexity of later stage calculating meanwhile; In addition, when needs carry out tentative calculation, carry out tentative calculation and get final cost value.
Perform the burst information of rate A:
Form 1
Perform the burst information of rate B:
Form 2
Form 3
Perform the burst information of rate C:
Form 4
Have ready conditions and get the wholesale price flow process of tentative calculation expense:
Perform rate A, according to the segmentation foundation of rate A and burst principle temporally, the duration of call is divided into two sections of 5 minutes+5 minutes, see form 5 below, be divided into 21:51 to 21:56 by call, and 21:56 to 22:01 two sections, the wholesale price rule of tentative calculation expense is got according to having ready conditions, within first 5 minutes, give, so wholesale price is 0, got 0 as the expense of this section.Because wholesale price rule gets tentative calculation expense for having ready conditions, when namely original expense is not 0, performing new the trial result, therefore need not carry out and the comparing of original expense, forcing this section of expense to be set to 0.5 yuan;
Perform rate B, according to getting the judgment principle of lower expense and the burst principle by duration, first sectional charge is 0, according to wholesale price rule, no longer carries out expense process, so first burst of 5 minutes no longer carries out burst and tentative calculation; But to latter 5 minutes bursts again, according to the segmentation foundation of rate B, be divided into 3 minutes by latter 5 minutes and 2 minutes two sections.Then carry out wholesale price process, for second burst, its trial result is 0 get this expense, the 3rd burst 2 minutes tentative calculation expenses 2 minutes * 0.09 yuan/minute=0.18 yuan, and according to wholesale price rule, getting this expense is 0.18 yuan; Now, ticket has temporally been divided into 3, i.e. the duration of call 5 minutes+3 minutes+2 minutes, because the expense of front 2 bursts is all 0, so merged by front 2 bursts, sees form 6;
Perform rate C, according to the segmentation foundation of rate C and burst principle temporally, 21:51 starts, the ticket that 22:01 terminates needs segmentation at 22:00 place, therefore last 2 minutes of ticket bursts are again needed, be divided into two fragments by preferential period critical point: 1 minute and 1 minute, then carry out tentative calculation according to wholesale price rule, first burst, 8 minutes expenses are 0 no longer tentative calculation; Second burst 1 minute, the non-preferential period the trial result of value 1 minute * 0.2 yuan/minute=0.2 yuan; 3rd burst 1 minute, the preferential period the trial result of value 1 minute * 0.05 yuan/minute=0.05 yuan, is shown in form 7.
Execute the burst information after rate A:
Form 5
Execute the burst information after rate B:
Form 6
Execute the burst information after rate C:
Form 7
embodiment of the method five:
Below to press flow (flow/byte number) burst principle, the handling process of different wholesale price rule is described: a preferential set meal of bonus type (rate D), a preferential set meal of accumulative type (rate E), the superposition charging of a segmentation rate set meal (rate F):
Segmentation foundation and charging illustrate:
Segmentation during rate D process with ' giving rate ' for foundation: residue give flow 10K, exceed rear rate 0.008 yuan/K; Segmentation foundation during rate E process is ' at times rate ': residue integrated flow 20K, exceeds rear rate 0.005 yuan/K; Rate F is that segmentation is preferential, and its segmentation foundation is ' segmentation rate rate ': front 10K performs half price, exceeds rear execution 0.01 yuan/K.
Ticket describes:
Online ticket is from 08:00, and 08:20 terminates, and online duration is 20 minutes, and surfing flow is 50K, and standard rate are 0.01 yuan/K.
Get the wholesale price flow process of lower expense:
Perform rate D, according to the segmentation foundation of rate D and the burst principle of pressing flow, flow is divided into two sections of 10K+40K, the start and end time of each burst is identical, and according to the wholesale price rule of getting lower expense, front 10K gives, so wholesale price is 0 yuan, get 0 yuan of expense as this section.Rear 40K tentative calculation expense 40K*0.008 unit/K=0.32 unit, is greater than original 40K*0.01 unit/K=0.4 unit, therefore gets expense 0.32 yuan as this section of expense, see form 8 below;
Perform rate E, according to getting the judgment principle of lower expense and the burst principle by flow, first sectional charge is 0 yuan, because can not there be the expense also lower than 0 yuan, so the burst of first 10K no longer carries out burst and tentative calculation; But to rear 40K burst again, according to the segmentation foundation of rate E, rear 40K is divided into 20K and 20K two sections, sees form 9.Then carry out wholesale price process, for second burst, its trial result is 0 yuan, gets this expense; 3rd burst 20K tentative calculation expense 20K*0.005 unit/K=0.1 unit, the former expense of this charging fragment is 0.16 yuan, and according to the value principle getting lower expense, the expense of getting is 0.1 yuan; Now, ticket has been divided into 3 by flow, because the expense of front 2 bursts is all 0 yuan, so merged by front 2 bursts, sees form 10;
Perform rate F, according to the segmentation foundation of rate F and the burst principle of press flow, last 20K needs to split, and be divided into 10K+10K, then carry out tentative calculation according to wholesale price rule, see form 11, first burst expense is 0 yuan of no longer tentative calculation; Second burst 10K, gets the trial result 0.05 yuan of * 1/2 (half price)=0.025 yuan; 3rd burst, the trial result 10K*0.01 unit/K=0.1 unit, is greater than the former expense of this fragment 0.05 yuan, therefore adopts former expense.
Perform the burst information of rate D:
Form 8
Perform the burst information of rate E:
Form 9
Form 10
Perform the burst information of rate F:
Form 11
Have ready conditions and get the wholesale price flow process of tentative calculation expense:
Perform rate D, according to the segmentation foundation of rate D and the burst principle of pressing flow, the duration of call is divided into two sections of 10K+40K, see form 12 below, get the wholesale price rule of tentative calculation expense according to having ready conditions, front 10K has given, so wholesale price is 0, get 0 as the expense of this section.Because wholesale price rule gets tentative calculation expense for having ready conditions, when namely original expense is not 0, performing new the trial result, because after this 40K need not carry out and the comparing of original expense, forcing this section of expense to be set to 40K*0.008 unit/K=0.32 first;
Perform rate E, according to getting the judgment principle of lower expense and the burst principle by duration, first sectional charge is 0, according to wholesale price rule, no longer carries out expense process, so the burst of first 10K no longer carries out burst and tentative calculation; But to rear 40K burst again, according to the segmentation foundation of rate E, rear 40K is divided into 20K+20K two sections.Then carry out wholesale price process, for second burst, its trial result is 0 get this expense, the 3rd burst 20K tentative calculation expense 20K*0.005 unit/minute=0.1 yuan, according to wholesale price rule, getting this expense is 0.1 yuan; Now, ticket has temporally been divided into 3, i.e. duration of call 10K+20K+20K, because the expense of front 2 bursts is all 0, so merged by front 2 bursts, sees form 13;
Perform rate F, according to the segmentation foundation of rate F and the burst principle of pressing flow, need to process last burst, be divided into 10K+10K, then carry out tentative calculation according to wholesale price rule, first burst 30K expense is 0 no longer tentative calculation; Second burst 10K, gets half price 0.05*1/2=0.025 unit; 3rd burst value 10K*0.01 unit/K=0.1 unit, sees form 14.
Execute the burst information after rate D:
Form 12
Execute the burst information after rate E:
Form 13
Execute the burst information after rate F:
Form 14
embodiment of the method six:
Below with by use amount (time) burst principle, the processing logic of the amount of giving whether rollback is described:
A preferential set meal of bonus type (rate G), a preferential set meal of bonus type (rate H).
Segmentation foundation and charging illustrate:
Rate G: giving 50 minutes duration rate is 0.01 yuan/minute, exceeds latter 0.1 yuan/minute, and user remains the preferential duration of 2 minutes.Rate H: give duration 100 minutes, exceeds rear rate 0.2 yuan/minute, present user remain 5 minutes give duration;
Ticket describes:
Ticket call is from 12:00, and 12:08 terminates, and the duration of call is 8 minutes, and expense is standard rate 0.4 yuan/minute, and namely expense is 3.2 yuan.
Get the wholesale price of lower expense:
Perform rate G, burst is 2 minutes+6 minutes, and wholesale price is 0.02 yuan and 0.6 yuan, uses the amount of giving of rate G.
Perform rate H, burst is 2 minutes+3 minutes+3 minutes, and wholesale price is 0 yuan, 0 yuan, 0.3 yuan, employ the amount of giving of rate H, according to the backoff rules getting lower expense, because the expense of first 2 minutes is rate H's, so need the amount of giving of rollback rate G, as following table:
The original amount of giving:
Rate The residue amount of giving
Rate G 2 minutes
Rate H 5 minutes
Perform the amount of giving after rate G:
Rate The residue amount of giving
Rate G 0 minute
Rate H 5 minutes
Perform the amount of giving after rate H:
Rate The residue amount of giving
Rate G 2 minutes
Rate H 0 minute
Have ready conditions and get the wholesale price of tentative calculation expense:
Perform rate G, burst is 2 minutes+6 minutes, and wholesale price is 0.02 yuan and 0.6 yuan, uses the amount of giving of rate G.
Perform rate H, burst is 2 minutes+3 minutes+3 minutes, and wholesale price is 0 yuan, 0 yuan, 0.6 yuan, employs the amount of giving of rate H, and as following table, according to backoff rules, original rate are not 0, and capped, so the rollback amount of giving:
The original amount of giving:
Rate The residue amount of giving
Rate G 2 minutes
Rate H 5 minutes
Perform the amount of giving after rate G:
Rate The residue amount of giving
Rate G 0 minute
Rate H 5 minutes
Perform the amount of giving after rate H:
Rate The residue amount of giving
Rate G 2 minutes
Rate H 0 minute
Thus, visible, charging bill processing method of the present invention, it has good technique effect.
device embodiment one:
Embodiment below in conjunction with billing treatment plant of the present invention describes the present invention, and wherein, Fig. 4 is the structural representation of the message accounting of charging bill of the present invention; Fig. 5 is the schematic diagram of the management by district module of one embodiment of the invention; Fig. 6 is the schematic diagram of the wholesale price processing module of one embodiment of the invention.
According to the present embodiment, described charging bill processing unit, comprising:
Fee administration module, for according to charging bill and user can the preferential attribute of rate, obtain the price policy item list corresponding to described charging bill;
Management by district module, for performing each price policy item successively according to priority orders, and carries out ticket burst respectively according to the preferential attribute of the rate of each price policy item;
According to the wholesale price rule of ticket, perform the expense tentative calculation on each ticket burst;
Wholesale price processing module, for in same slice in the tentative calculation expense of different tariff policy item, according to wholesale price rule interestingness optimum rate, and on the basis of optimum rate, form final ticket rate.
Wherein, further, also comprise: attribute processing module, for the preferential attribute of rate to untapped price policy item, carry out corresponding rate preferential attribute rollback process according to wholesale price rule.
In addition, described management by district module, specifically comprises:
Burst information acquiring unit, for obtaining the charging bill burst information under last price policy item;
Burst allocation units, for the basis of the charging bill burst under described last price policy item, according to the further burst of the rate of this price policy item preferential property dialog list.
Wherein, described wholesale price processing module, specifically comprises:
Charge information acquiring unit, obtains the tentative calculation expense in the same slice under this price policy item and last price policy item;
Unit is chosen in optimum charging, for according to wholesale price rule relatively and choose rate optimum in twice tentative calculation expense as the rate under this price policy item.
In addition, described management by district module, specifically also comprises:
Charging comparing unit, under same price policy item, the tentative calculation expense of two more adjacent ticket bursts;
Burst merge cells, if identical for the rate of two tentative calculation expenses, then merges this burst, simultaneously using merge after burst as the burst under this price policy item.
Wherein, with reference to accompanying drawing, the present invention is described in detail, and wherein, described fee administration module, mainly according to service feature and the user characteristics of ticket, carries out the acquisition of rate list, processes the price policy item in rate list successively.
Wherein, it mainly comprises: rate list acquisition module, for reading the attribute of associated user, and gets preferential in customer group of that user has or user; And preferentially to sort to existing, and obtain the price policy item relevant to ticketing event attribute according to the definition of ticket event rate simultaneously; And existing price policy item is sorted.
Charging bill processing unit described in the present embodiment, enhances the tightness of charge system, and avoids the risk of customer complaint; And, this embodiment solves common set meal, gives class set meal, at times set meal superposition calculation time charging irrational problem, ensure that optimum rate, and, by carrying out the enforcement of burst according to price policy, the overall performance of whole charge system is improved.
Last it is noted that the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to previous embodiment to invention has been detailed description, for a person skilled in the art, it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a charging bill processing method, comprising:
A, according to charging bill and user can the preferential attribute of rate, obtain the price policy item list corresponding to described charging bill;
B, perform each price policy item successively according to priority orders, and carry out ticket burst respectively according to the preferential attribute of the rate of each price policy item;
According to the wholesale price rule of ticket, perform the expense tentative calculation on each ticket burst;
C, in same slice in the tentative calculation expense of different tariff policy item and normal billing tentative calculation expense, according to wholesale price rule interestingness optimum rate, and on the basis of optimum rate, form final ticket rate;
In step C, specifically comprise:
Obtain the tentative calculation expense in the same slice under this price policy item and last price policy item;
According to wholesale price rule relatively and to choose in twice tentative calculation expense optimum rate as the rate under this price policy item;
Further comprise:
Obtain described according to the rate on the adjacent burst of wholesale price rule relatively and after choosing;
If the rate of two bursts is identical, then described two bursts are merged, simultaneously using merge after burst as the burst under this price policy item.
2. charging bill processing method according to claim 1, is characterized in that, in step C, also comprises:
To the preferential attribute of rate on the burst of untapped price policy item, carry out corresponding rate preferential attribute rollback process according to wholesale price rule.
3. charging bill processing method according to claim 1 and 2, is characterized in that, in step B, specifically also comprises:
Obtain the charging bill burst information under last price policy item;
On the basis of the charging bill burst under described last price policy item, according to the further burst of the rate of this price policy item preferential property dialog list.
4. charging bill processing method according to claim 1, is characterized in that, described wholesale price rule gets lower expense wholesale price rule;
Described according to wholesale price rule relatively and to choose in twice tentative calculation expense optimum rate as the rate under this price policy item, comprising:
The tentative calculation expense of the same slice relatively under different tariff policy item, chooses the rate of network minimal as the rate on the corresponding burst under this price policy item.
5. charging bill processing method according to claim 1, is characterized in that, described wholesale price rule is tentative calculation wholesale price rule of having ready conditions;
Described according to wholesale price rule relatively and to choose in twice tentative calculation expense optimum rate as the rate under this price policy item, comprising:
The tentative calculation expense of the same slice relatively under different tariff policy item;
Wherein, last burst rate are 0, get 0 as the rate of this burst; Last burst rate are not 0, get burst rate according to this price policy item as the rate of this burst.
6. charging bill processing method according to claim 1, is characterized in that, further comprise:
After in the end the ticket process of a price policy item completes, the rate on all bursts of the charging bill of described price policy item are added up as final charging result.
7. a charging bill processing unit, comprising:
Fee administration module, for according to charging bill and user can the preferential attribute of rate, obtain the price policy item list corresponding to described charging bill;
Management by district module, for performing each price policy item successively according to priority orders, and carries out ticket burst respectively according to the preferential attribute of the rate of each price policy item;
According to the wholesale price rule of ticket, perform the expense tentative calculation on each ticket burst;
Wholesale price processing module, for in same slice in the tentative calculation expense of different tariff policy item and normal billing tentative calculation expense, according to wholesale price rule interestingness optimum rate, and on the basis of optimum rate, form final ticket rate;
Described management by district module, specifically comprises:
Burst information acquiring unit, for obtaining the charging bill burst information under last price policy item;
Burst allocation units, for the basis of the charging bill burst under described last price policy item, according to the further burst of the rate of this price policy item preferential property dialog list;
Described management by district module, specifically also comprises:
Charging comparing unit, under same price policy item, the tentative calculation expense of two more adjacent ticket bursts;
Burst merge cells, if identical for the rate of two tentative calculation expenses, then merges this burst, simultaneously using merge after burst as the burst under this price policy item.
8. charging bill processing unit according to claim 7, it is characterized in that, also comprise: attribute processing module, the preferential attribute of rate on the burst to untapped price policy item, carry out corresponding rate preferential attribute rollback process according to wholesale price rule.
9. the charging bill processing unit according to claim 7 or 8, is characterized in that, described wholesale price processing module, specifically comprises:
Charge information acquiring unit, obtains the tentative calculation expense in the same slice under this price policy item and last price policy item;
Unit is chosen in optimum charging, for according to wholesale price rule relatively and choose rate optimum in twice tentative calculation expense as the rate under this price policy item.
CN201110412323.8A 2011-12-12 2011-12-12 A kind of charging bill processing method and device Active CN103167460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110412323.8A CN103167460B (en) 2011-12-12 2011-12-12 A kind of charging bill processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110412323.8A CN103167460B (en) 2011-12-12 2011-12-12 A kind of charging bill processing method and device

Publications (2)

Publication Number Publication Date
CN103167460A CN103167460A (en) 2013-06-19
CN103167460B true CN103167460B (en) 2016-01-20

Family

ID=48590125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110412323.8A Active CN103167460B (en) 2011-12-12 2011-12-12 A kind of charging bill processing method and device

Country Status (1)

Country Link
CN (1) CN103167460B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899417B (en) * 2017-03-15 2019-08-20 泰华智慧产业集团股份有限公司 By the charging method and system of number of billing
CN109981911B (en) * 2017-12-27 2021-07-02 中国移动通信集团山东有限公司 Calculation method and device for optimizing call service ticket charging fee
CN110493016B (en) * 2018-05-15 2022-04-29 中国移动通信集团浙江有限公司 Flow service charging method and device
CN111311296A (en) * 2018-12-12 2020-06-19 中国移动通信集团安徽有限公司 Method, device, equipment and storage medium for analyzing preference attribute of call ticket
CN112135265B (en) * 2019-06-25 2022-08-05 中国移动通信集团江西有限公司 Call bill processing method and device and computer equipment
CN113411761B (en) * 2020-03-17 2022-12-27 中国移动通信集团浙江有限公司 Call bill charging method and system
CN114785625B (en) * 2022-03-03 2023-09-26 阿里巴巴(中国)有限公司 Method, device and system for processing bill charging

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553693A (en) * 2003-05-26 2004-12-08 华为技术有限公司 Universal charging method
CN101030871A (en) * 2007-04-11 2007-09-05 华为技术有限公司 Charging system and method
CN101437215A (en) * 2008-12-25 2009-05-20 中国移动通信集团福建有限公司 Syncretized charging method of data business platform
CN102083045A (en) * 2009-11-30 2011-06-01 中国移动通信集团安徽有限公司 Method and device for processing service charging

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562664A (en) * 2009-05-20 2009-10-21 中兴通讯股份有限公司 Ticket processing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553693A (en) * 2003-05-26 2004-12-08 华为技术有限公司 Universal charging method
CN101030871A (en) * 2007-04-11 2007-09-05 华为技术有限公司 Charging system and method
CN101437215A (en) * 2008-12-25 2009-05-20 中国移动通信集团福建有限公司 Syncretized charging method of data business platform
CN102083045A (en) * 2009-11-30 2011-06-01 中国移动通信集团安徽有限公司 Method and device for processing service charging

Also Published As

Publication number Publication date
CN103167460A (en) 2013-06-19

Similar Documents

Publication Publication Date Title
CN103167460B (en) A kind of charging bill processing method and device
Fjeldstad et al. Strategic action in network industries: an empirical analysis of the European mobile phone industry
CN110069353A (en) Business asynchronous processing method and device
CN110865801A (en) Micro-service-based electric power transaction platform business center platform and application method thereof
CN107276790A (en) A kind of processing method and system of business work order
CN102571370B (en) Many charge units the implementation method of charging when depositing and device
CN109559392A (en) The application method and Related product of parking discount coupon
CN101198097A (en) Method for implementing virtual net charging across areas of mobile communication
CN1340268A (en) Implementing method for adding monetary value of mobile prepayment service in different locations
CN108764633A (en) A kind of method for allocating tasks, system and terminal device
CN106453980A (en) Method and system for increasing call-out prediction accuracy rate on basis of number attribution
CN109461323A (en) A kind of parking lot management method, system and storage medium
CN103095945A (en) Charging method and charging system based on bill classification and classification charging device
CN102364889A (en) Shared pool resource charging method and device
CN102592319B (en) Method for realizing 'dynamic sectional fare' of self-service ticketing bus
CN102083045B (en) Method and device for processing service charging
CN102098400A (en) Rechargeable card management method and system
CN109818759A (en) Flow sharing method, device and the computer equipment shown based on data
CN108875029A (en) Data processing method and device, storage medium and processor
CN104137581B (en) A kind of determination methods and device of repeatedly networking user
CN113807972A (en) Credit mechanism method for electric power transaction
CN114158003B (en) Tariff calculation method and system adopting programming and calculation, electronic equipment and storage medium
Young A look back at the long path to mandating electric reliability standards through the Energy Policy Act of 2005
CN102075899A (en) Method and device for checking charge of communication service
Zhen et al. Automobile sales forecast in panzhihua region based on intelligent fuzzy evaluation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant