CN102547643A - Charging method and device for split call tickets - Google Patents
Charging method and device for split call tickets Download PDFInfo
- Publication number
- CN102547643A CN102547643A CN2010106236202A CN201010623620A CN102547643A CN 102547643 A CN102547643 A CN 102547643A CN 2010106236202 A CN2010106236202 A CN 2010106236202A CN 201010623620 A CN201010623620 A CN 201010623620A CN 102547643 A CN102547643 A CN 102547643A
- Authority
- CN
- China
- Prior art keywords
- ticket
- remainder
- length
- bill
- accumulative total
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012545 processing Methods 0.000 claims description 49
- 230000001186 cumulative effect Effects 0.000 description 35
- 238000012937 correction Methods 0.000 description 7
- 238000009825 accumulation Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Images
Landscapes
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Abstract
本发明提出针对切割话单的计费方法,对属于一条原始话单的多条切割话单进行计费,设置该原始话单的累计余数;对切割话单进行计费时,根据该切割话单的实际长度和所属原始话单的累计余数计算其计费长度,按照该计费长度对切割话单进行计费,同时对累计余数进行修正。本发明能够实现对切割话单的精确计费。
The present invention proposes a billing method for cutting bills, charging multiple cut bills belonging to one original bill, and setting the accumulated remainder of the original bills; The billing length is calculated based on the actual length of the bill and the accumulated remainder of the original bill to which it belongs, and the cut bill is charged according to the billing length, and the accumulated remainder is corrected at the same time. The invention can realize accurate billing of cut bills.
Description
技术领域 technical field
本发明涉及通信技术领域,尤其涉及针对切割话单的计费方法和装置。The present invention relates to the technical field of communication, in particular to a billing method and device for splitting bills.
背景技术 Background technique
目前,业务运营支撑系统(BOSS)的计费系统已经实现了对通用分组无线服务(GPRS)业务的计费,其中主要有按时长计费和按流量计费等方式。按时长计费的基本规则是,对超出套餐赠送时长的GPRS话单按预先设定的时间单位进行计费,不足一个时间单位的部分按一个时间段计费。按流量计费的基本规则是,对超出套餐赠送流量的超长话单按预先设定的流量单位进行计费,不足一个流量单位的部分按一个流量单位计费。上述两种计费方式中,时间单位和流量单位都是计费单位。At present, the billing system of the business operation support system (BOSS) has realized the billing of the general packet radio service (GPRS) service, and the main methods include billing by duration and billing by traffic. The basic rule of time-based billing is that the GPRS bills that exceed the package gift time are charged according to the preset time unit, and the part that is less than one time unit is charged according to a time period. The basic rule of billing by traffic is that the extra-long call bill exceeding the free traffic in the package is billed according to the pre-set traffic unit, and the part that is less than one traffic unit is billed as one traffic unit. In the above two billing methods, the time unit and traffic unit are both billing units.
为了实时帐务信控的需要,网络侧对超长话单按照定时长或定流量的方式进行话单切割,目前网络侧按照每30分钟或每2M进行话单切割,这里的30分钟和2M都是切割单位。这样,用户使用一次GPRS业务(即产生一个GPRS会话),会产生多条切割话单。In order to meet the needs of real-time account information control, the network side cuts the ultra-long bills according to the fixed length or fixed flow method. Currently, the network side cuts the bills every 30 minutes or every 2M. Here, 30 minutes and 2M All are cutting units. In this way, when a user uses a GPRS service (that is, generates a GPRS session), multiple cut bills will be generated.
由于现有TD网络高速率、高流量下载的特性,对于流量使用较大的用户,GPRS话单按照流量切割,可能会在几秒或十几秒内产生一条切割话单,也就是出现多条时间长度不是用于计费的时间单位的整倍数的切割话单;对于流量较小的用户,GPRS话单按照时长切割,可能会出现多条不是用于计费的流量单位的整倍数的切割话单。可见,现有的针对切割话单的计费方法会出现计费不准确的现象,所有切割话单的费用之和大于切割之前话单的费用。Due to the high-speed and high-flow download characteristics of the existing TD network, for users with large traffic usage, the GPRS bills are cut according to the traffic, and a cut bill may be generated within a few seconds or more than ten seconds, that is, multiple The time length is not an integral multiple of the time unit used for billing; for users with small traffic, GPRS bills are cut according to the time length, and there may be multiple cuts that are not an integral multiple of the traffic unit used for billing bill. It can be seen that in the existing billing method for splitting bills, billing may be inaccurate, and the sum of the charges of all split bills is greater than the cost of the bills before splitting.
举一个简单的例子进行说明:Give a simple example to illustrate:
一个GPRS超长话单,由2条切割话单组成,其中,第一条切割话单的记录时长为10秒,第二条切割话单的记录时长为20秒。如果按时长计费,业务资费为按0.05元/分钟,不足1分钟按1分钟计。按照这种计费方法,第一条切割话单应按1分钟计,其计费为0.05元,第二条切割话单应也按1分钟计,其计费为0.05元,则2条切割话单的计费之和为0.1元。但是,该GPRS超长话单实际的长度为30秒,不足1分钟,应按1分钟计,计费为0.05元。可见,对2条切割话单的计费之和大于切割之前话单的费用。A GPRS ultra-long bill consists of 2 split bills, where the record length of the first cut bill is 10 seconds, and the record length of the second cut bill is 20 seconds. If the billing is based on the duration, the business tariff is 0.05 yuan/minute, and less than 1 minute is counted as 1 minute. According to this billing method, the first cutting call ticket should be counted as 1 minute, and the charge is 0.05 yuan; The billing sum of the bills is 0.1 yuan. However, the actual length of the GPRS ultra-long bill is 30 seconds, which is less than 1 minute, and should be counted as 1 minute, and the billing is 0.05 yuan. It can be seen that the sum of the charges for the two cut bills is greater than the cost of the bills before split.
发明内容 Contents of the invention
本发明提供了两种针对切割话单的计费方法,能够对切割话单精确计费。The invention provides two billing methods aiming at cutting bills, which can accurately bill the split bills.
本发明还提供了两种针对切割话单的计费装置,能够对切割话单精确计费。The present invention also provides two billing devices for cutting bills, which can accurately bill the split bills.
本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:
一种针对切割话单的计费方法,应用于对属于一条原始话单的多条切割话单进行计费;计费的最小长度称为计费单位;所述原始话单的第一条切割话单为首话单,所述原始话单的最后一条话单为尾话单,其余切割话单为中间话单,所述方法包括:A billing method for cutting bills, which is applied to charging multiple cut bills belonging to an original bill; the minimum length of billing is called a billing unit; the first cut of the original bill The bill is the first bill, the last bill of the original bill is the tail bill, and the remaining cut bills are the middle bill, and the method includes:
对首话单或中间话单进行计费处理时,如果尚未对尾话单进行计费,则计算所述首话单或中间话单的计费长度为:不大于所述首话单或中间话单的实际长度与当前累计余数的和、并且等于所述计费单位的整数倍的最大值;其中,如果之前已经对所述原始话单的其他切割话单进行了计费处理,则所述当前累计余数为最近一次对其他切割话单进行计费处理时修正之后的累计余数,否则,所述当前累计余数的值为0;按照计费长度对所述首话单或中间话单进行计费;并对当前的累计余数进行修正,修正后的累计余数为:所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数;When performing billing processing on the first or intermediate bills, if the last bill has not yet been billed, then calculate the billing length of the first or intermediate bills: not greater than the first or middle bills The sum of the actual length of the bill and the current accumulated remainder, which is equal to the maximum value of the integral multiple of the billing unit; wherein, if the billing process has been performed on other cut bills of the original bill before, the Said current accumulative remainder is the accumulative remainder after amended when charging processing is carried out to other cutting bills last time, otherwise, the value of said current accumulative remainder is 0; Billing; and the current accumulated remainder is amended, and the amended accumulated remainder is: the remainder obtained by dividing the sum of the actual length of the first bill or intermediate bill and the current accumulated remainder by the billing unit;
对尾话单进行计费处理时,如果已完成对首话单和中间话单的计费处理,则计算所述尾话单的计费长度为:尾话单的实际长度与当前累计余数的和;按照计费长度对所述尾话单进行计费;并将当前累计余数的值置为0。When performing billing processing on the last bill, if the billing processing on the first bill and the intermediate bill has been completed, the billing length of the last bill is calculated as: the actual length of the last bill and the current accumulated remainder and; charging the last bill according to the charging length; and setting the value of the current accumulated remainder to 0.
一种针对切割话单的计费方法,应用于对属于一条原始话单的多条切割话单进行计费;计费的最小长度称为计费单位;所述原始话单的第一条切割话单为首话单,所述原始话单的最后一条话单为尾话单,其余切割话单为中间话单,所述方法包括:A billing method for cutting bills, which is applied to charging multiple cut bills belonging to an original bill; the minimum length of billing is called a billing unit; the first cut of the original bill The bill is the first bill, the last bill of the original bill is the tail bill, and the remaining cut bills are the middle bill, and the method includes:
对尾话单进行计费处理时,如果尚未对首话单或部分中间话单进行计费,则计算所述尾话单的计费长度为:尾话单的实际长度与当前累计余数的和;其中,如果之前已经对所述原始话单的其他切割话单进行了计费处理,则所述当前累计余数为最近一次对其他切割话单进行计费处理时修正之后的累计余数,否则,所述当前累计余数的值为0;按照计费长度对所述尾话单进行计费;并对当前的累计余数进行修正,修正后的累计余数为:所述尾话单的实际长度与当前累计余数的和除以所述计费单位所得的余数、再减去所述计费单位所得的差;When performing billing processing on the last bill, if the first bill or some intermediate bills have not been billed, the billing length of the last bill is calculated as: the sum of the actual length of the last bill and the current accumulated remainder ; Wherein, if the billing process has been performed on other cut bills of the original bill before, the current accumulated remainder is the accumulated remainder after correction when the other cut bills are charged last time, otherwise, The value of the current accumulated remainder is 0; the tail bill is billed according to the billing length; and the current accumulated remainder is amended, and the amended accumulated remainder is: the actual length of the tail bill and the current The difference obtained by dividing the sum of the accumulated remainder by the remainder obtained by the said billing unit, and then subtracting the said billing unit;
对首话单或中间话单进行计费处理时,如果已完成对尾话单的计费处理,则计算所述首话单或中间话单的计费长度为:不小于所述首话单或中间话单的实际长度与当前累计余数的和、并且等于所述计费单位的整数倍的最小值;按照计费长度对所述首话单或中间话单进行计费;并对当前的累计余数进行修正,修正后的累计余数为:所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数、再减去所述计费单位所得的差。When performing billing processing on the first bill or the intermediate bill, if the billing processing of the last bill has been completed, the calculation of the billing length of the first bill or the middle bill is: not less than the first bill or the minimum value of the sum of the actual length of the intermediate bill and the current accumulated remainder, which is equal to the integer multiple of the billing unit; charge the first bill or intermediate bill according to the billing length; and charge the current The cumulative remainder is corrected, and the revised cumulative remainder is: the sum of the actual length of the first or intermediate bill and the current cumulative remainder divided by the remainder obtained by the billing unit, and then subtracting the billing unit poor.
一种针对切割话单的计费装置,应用于对属于一条原始话单的多条切割话单进行计费;计费的最小长度称为计费单位;所述原始话单的第一条切割话单为首话单,所述原始话单的最后一条话单为尾话单,其余切割话单为中间话单,所述装置包括:A billing device for cutting bills, which is applied to billing multiple cut bills belonging to an original bill; the minimum length of billing is called a billing unit; the first cut of the original bill The bill is the first bill, the last bill of the original bill is the tail bill, and the remaining cut bills are the middle bill, and the device includes:
累计余数控制模块,用于按照非尾话单计费模块及尾话单计费模块的指示对所述原始话单的累计余数进行修正;The cumulative remainder control module is used to correct the cumulative remainder of the original bill according to the instructions of the non-final bill billing module and the tail bill billing module;
非尾话单计费模块,用于对首话单或中间话单进行计费处理时,如果尚未对尾话单进行计费,则计算所述首话单或中间话单的计费长度为:不大于所述首话单或中间话单的实际长度与当前累计余数的和、并且等于所述计费单位的整数倍的最大值;其中,如果之前已经对所述原始话单的其他切割话单进行了计费处理,则所述当前累计余数为最近一次对其他切割话单进行计费处理时修正之后的累计余数,否则,所述当前累计余数的值为0;按照计费长度对所述首话单或中间话单进行计费;并通知所述累计余数控制模块对当前的累计余数进行修正,修正后的累计余数为:所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数;The non-final bill billing module is used to calculate the billing length of the first bill or intermediate bill if the billing process has not been performed on the first bill or the intermediate bill. : the maximum value not greater than the sum of the actual length of the first or intermediate bill and the current accumulated remainder, and equal to an integer multiple of the billing unit; wherein, if the original bill has been previously cut The bill has been billed, and the current accumulated remainder is the accumulated remainder after the correction when the other cutting bills are charged for the last time, otherwise, the value of the current accumulated remainder is 0; according to the billing length The first bill or the middle bill is billed; and the cumulative remainder control module is notified to correct the current cumulative remainder, and the revised cumulative remainder is: the actual length of the first bill or the middle bill and the current the remainder obtained by dividing the sum of the accumulated remainders by the stated charging unit;
尾话单计费模块,用于对尾话单进行计费处理时,如果已完成对首话单和中间话单的计费处理,则计算所述尾话单的计费长度为:尾话单的实际长度与当前累计余数的和;按照计费长度对所述尾话单进行计费;并通知所述累计余数控制模块将当前累计余数的值置为0。The final bill billing module is used for billing processing of the tail bill. If the billing processing of the first bill and the intermediate bill has been completed, the billing length of the tail bill is calculated as: The sum of the actual length of the bill and the current accumulated remainder; charge the tail bill according to the billing length; and notify the accumulated remainder control module to set the value of the current accumulated remainder to 0.
一种针对切割话单的计费装置,应用于对属于一条原始话单的多条切割话单进行计费;计费的最小长度称为计费单位;所述原始话单的第一条切割话单为首话单,所述原始话单的最后一条话单为尾话单,其余切割话单为中间话单,所述装置包括:A billing device for cutting bills, which is applied to billing multiple cut bills belonging to an original bill; the minimum length of billing is called a billing unit; the first cut of the original bill The bill is the first bill, the last bill of the original bill is the tail bill, and the remaining cut bills are the middle bill, and the device includes:
累计余数控制模块,用于按照尾话单计费模块及非尾话单计费模块的指示对所述原始话单的累计余数进行修正;The cumulative remainder control module is used to correct the cumulative remainder of the original bill according to the instructions of the final bill billing module and the non-final bill billing module;
尾话单计费模块,用于对尾话单进行计费处理时,如果尚未对首话单或部分中间话单进行计费,则计算所述尾话单的计费长度为:尾话单的实际长度与当前累计余数的和;其中,如果之前已经对所述原始话单的其他切割话单进行了计费处理,则所述当前累计余数为最近一次对其他切割话单进行计费处理时修正之后的累计余数,否则,所述当前累计余数的值为0;按照计费长度对所述尾话单进行计费;并通知所述累计余数控制模块对当前的累计余数进行修正,修正后的累计余数为:所述尾话单的实际长度与当前累计余数的和除以所述计费单位所得的余数、再减去所述计费单位所得的差;The last bill billing module is used for billing processing of the last bill, if the first bill or some intermediate bills have not been billed, then the billing length of the last bill is calculated as: the last bill The sum of the actual length and the current accumulated remainder; wherein, if the billing process has been performed on other split bills of the original bill before, the current accumulated remainder is the latest billing process performed on other split bills The accumulative remainder after correction, otherwise, the value of the current accumulative remainder is 0; the bill is charged according to the billing length; and the accumulative remainder control module is notified to correct the current accumulative remainder. The final cumulative remainder is: the sum of the actual length of the tail bill and the current cumulative remainder divided by the remainder obtained by the billing unit, and then subtracting the difference obtained by the billing unit;
非尾话单计费模块,用于对首话单或中间话单进行计费处理时,如果已完成对尾话单的计费处理,则计算所述首话单或中间话单的计费长度为:不小于所述首话单或中间话单的实际长度与当前累计余数的和、并且等于所述计费单位的整数倍的最小值;按照计费长度对所述首话单或中间话单进行计费;并通知所述累计余数控制模块对当前的累计余数进行修正,修正后的累计余数为:所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数、再减去所述计费单位所得的差。The non-final bill billing module is used to calculate the billing of the first bill or intermediate bill if the billing processing of the last bill has been completed when performing billing processing on the first bill or the intermediate bill The length is: not less than the minimum value of the sum of the actual length of the first bill or intermediate bill and the current accumulated remainder, and equal to the integral multiple of the billing unit; The bill is billed; and the accumulative remainder control module is notified to correct the current accumulative remainder, and the amended accumulative remainder is: the sum of the actual length of the first or middle bill and the current accumulative remainder divided by the sum of the current accumulative remainder The difference obtained by subtracting the remainder obtained from the stated billing unit from the stated billing unit.
可见,本发明提出的针对切割话单的计费方法和装置,对于不规范分割的话单分割话单余数,采用逐条切割话单余数循环累计修正取余的方式处理,可以实现对切割话单的精确计费。It can be seen that the billing method and device for cutting bills proposed by the present invention, for non-standard split bills, split the remainder of the bills, and adopt the method of cutting the bills one by one, cyclically accumulating, correcting, and taking the remainder, so that the bills for cutting bills can be realized. Accurate billing.
附图说明 Description of drawings
图1为本发明提出的对切割话单的计费方法流程图。Fig. 1 is a flow chart of the billing method for split bills proposed by the present invention.
具体实施方式 Detailed ways
本发明提出一种针对切割话单的计费方法,应用于对属于一条原始话单的多条切割话单进行计费;计费的最小长度称为计费单位;所述原始话单的第一条切割话单为首话单,所述原始话单的最后一条话单为尾话单,其余切割话单为中间话单,如图1为本发明提出的对切割话单的计费方法流程图,该方法包括:The present invention proposes a billing method for cutting bills, which is applied to charging multiple cut bills belonging to one original bill; the minimum length of billing is called a billing unit; the first bill of the original bill A cutting bill is the first bill, the last bill of the original bill is the tail bill, and all the other cutting bills are intermediate bills, as shown in Fig. 1 for the billing method flow process of the cutting bills proposed by the present invention Figure, the method includes:
步骤101:设置所述原始话单的累计余数的初始值为0;当对首话单或中间话单进行计费处理时,执行步骤102;当对尾话单进行计费处理时,执行步骤103。Step 101: Set the initial value of the cumulative remainder of the original bill to 0; when performing billing processing on the first or intermediate bills, execute
步骤102:如果尚未对尾话单进行计费,则计算所述首话单或中间话单的计费长度为:不大于所述首话单或中间话单的实际长度与当前累计余数的和、并且等于所述计费单位的整数倍的最大值;其中,如果之前已经对所述原始话单的其他切割话单进行了计费处理,则所述当前累计余数为最近一次对其他切割话单进行计费处理时修正之后的累计余数,否则,所述当前累计余数的值为0;按照计费长度对所述首话单或中间话单进行计费;并对当前的累计余数进行修正,修正后的累计余数为:所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数;Step 102: If the last bill has not yet been billed, calculate the billing length of the first bill or intermediate bill: not greater than the sum of the actual length of the first bill or intermediate bill and the current accumulated remainder , and is equal to the maximum value of an integer multiple of the billing unit; wherein, if the billing process has been performed on other split bills of the original bill before, the current accumulated remainder is the last time the other split bills The accumulative remainder after correction when billing processing is performed, otherwise, the value of the current accumulative remainder is 0; charge the first bill or intermediate bill according to the billing length; and correct the current accumulative remainder , the amended accumulated remainder is: the remainder obtained by dividing the sum of the actual length of the first or intermediate bill and the current accumulated remainder by the billing unit;
步骤103:如果已完成对首话单和中间话单的计费处理,则计算所述尾话单的计费长度为:尾话单的实际长度与当前累计余数的和;按照计费长度对所述尾话单进行计费;并将当前累计余数的值置为0。Step 103: If the billing processing of the first bill and the intermediate bill has been completed, the billing length of the tail bill is calculated as: the sum of the actual length of the tail bill and the current accumulated remainder; The tail bill is billed; and the value of the current accumulated remainder is set to 0.
上述方法中,切割话单的长度可以为时间长度,相应地,计费单位为固定的时间值;或者,切割话单的长度可以为流量长度,相应地,计费单位为固定的流量值。In the above method, the length of cut bills can be the length of time, correspondingly, the billing unit is a fixed time value; or, the length of cut bills can be the length of traffic, correspondingly, the billing unit is a fixed traffic value.
以下举具体的实施例详细介绍:The specific embodiment is introduced in detail below:
实施例一:Embodiment one:
在本实施例中,一条原始话单被划分为3条切割话单,分别为话单1、话单2和话单3,其中话单3为尾话单,话单1、2、3的实际长度分别为150秒、170秒和240秒。计费单位为60秒。新增一张切割话单累计表,记录该原始话单对应的IMSI、CHARGING_ID、GGSN地址和累计余数等,累计余数的初始值为0。In this embodiment, an original bill is divided into three cutting bills, which are respectively bill 1, bill 2 and bill 3, wherein bill 3 is the last bill, and bills 1, 2, and 3 are The actual lengths are 150 seconds, 170 seconds, and 240 seconds, respectively. The billing unit is 60 seconds. Add a cutting bill accumulation table to record the IMSI, CHARGING_ID, GGSN address and cumulative remainder corresponding to the original bill, and the initial value of the cumulative remainder is 0.
按照本发明,对话单1、话单2和话单3分别进行计费处理,处理时首先计算话单的计费长度,之后按照计费长度对切割话单进行计费,并对该原始话单的累计余数也进行修正。具体如表1。According to the present invention, the bill 1, the bill 2 and the bill 3 are billed respectively, and the billing length of the bill is first calculated during processing, and then the cut bill is billed according to the billing length, and the original bill is charged. The cumulative remainder of the order is also corrected. The details are shown in Table 1.
表1Table 1
实施例二:Embodiment two:
在本实施例中,一条原始话单被划分为3条切割话单,分别为话单1、话单2和话单3,其中话单3为尾话单,话单1、2、3的实际长度分别为1064字节、2040字节和1050字节。计费单位为1024字节。新增一张切割话单累计表,记录该原始话单对应的IMSI、CHARGING_ID、GGSN地址和累计余数等,累计余数的初始值为0。In this embodiment, an original bill is divided into three cutting bills, which are respectively bill 1, bill 2 and bill 3, wherein bill 3 is the last bill, and bills 1, 2, and 3 are The actual lengths are 1064 bytes, 2040 bytes and 1050 bytes respectively. The billing unit is 1024 bytes. Add a cutting bill accumulation table to record the IMSI, CHARGING_ID, GGSN address and cumulative remainder corresponding to the original bill, and the initial value of the cumulative remainder is 0.
按照本发明,对话单1、话单2和话单3分别进行计费处理,处理时首先计算话单的计费长度,之后按照计费长度对切割话单进行计费,并对该原始话单的累计余数也进行修正。具体如表2。According to the present invention, the bill 1, the bill 2 and the bill 3 are billed respectively, and the billing length of the bill is first calculated during processing, and then the cut bill is billed according to the billing length, and the original bill is charged. The cumulative remainder of the order is also corrected. The details are shown in Table 2.
表2Table 2
上述2个实施例中,对各个切割话单的计费处理是按照切割话单的编号顺序进行的,当对尾话单进行计费时,已经完成了对首话单和所有中间话单的计费处理。在实际应用中,可能会出现异常情况,如切割话单到达计费系统的次序颠倒、部分切割话单延迟或丢失等情况,为解决这种异常情况下的计费问题,本发明提出另一种针对切割话单的计费方法,该方法引入“负余数”的概念,采用尾话单达到后置累计余数为负值的方式来实现切割话单的精确计费。具体方式如下:In the above-mentioned 2 embodiments, the billing process for each split bill is carried out according to the numbering order of the cut bills, and when charging the tail bill, the billing of the first bill and all intermediate bills has been completed. Billing processing. In practical applications, there may be abnormal situations, such as the reversed order of cutting bills arriving at the billing system, delay or loss of some cut bills, etc. In order to solve the billing problem in this abnormal situation, the present invention proposes another This method introduces the concept of "negative remainder" and adopts the way that the cumulative remainder after the last bill reaches a negative value to realize the accurate billing of the cut bill. The specific method is as follows:
对尾话单进行计费处理时,如果尚未对首话单或部分中间话单进行计费,则计算所述尾话单的计费长度为:尾话单的实际长度与当前累计余数的和;其中,如果之前已经对所述原始话单的其他切割话单进行了计费处理,则所述当前累计余数为最近一次对其他切割话单进行计费处理时修正之后的累计余数,否则,所述当前累计余数的值为0;按照计费长度对所述尾话单进行计费;并对当前的累计余数进行修正,修正后的累计余数为:所述尾话单的实际长度与当前累计余数的和除以所述计费单位所得的余数、再减去所述计费单位所得的差;When performing billing processing on the last bill, if the first bill or some intermediate bills have not been billed, the billing length of the last bill is calculated as: the sum of the actual length of the last bill and the current accumulated remainder ; Wherein, if the billing process has been performed on other cut bills of the original bill before, the current accumulated remainder is the accumulated remainder after correction when the other cut bills are charged last time, otherwise, The value of the current accumulated remainder is 0; the tail bill is billed according to the billing length; and the current accumulated remainder is amended, and the amended accumulated remainder is: the actual length of the tail bill and the current The difference obtained by dividing the sum of the accumulated remainder by the remainder obtained by the said billing unit, and then subtracting the said billing unit;
对首话单或中间话单进行计费处理时,如果已完成对尾话单的计费处理,则计算所述首话单或中间话单的计费长度为:不小于所述首话单或中间话单的实际长度与当前累计余数的和、并且等于所述计费单位的整数倍的最小值;按照计费长度对所述首话单或中间话单进行计费;并对当前的累计余数进行修正,修正后的累计余数为:所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数;所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数、再减去所述计费单位所得的差。When performing billing processing on the first bill or the intermediate bill, if the billing processing of the last bill has been completed, the calculation of the billing length of the first bill or the middle bill is: not less than the first bill or the minimum value of the sum of the actual length of the intermediate bill and the current accumulated remainder, which is equal to the integer multiple of the billing unit; charge the first bill or intermediate bill according to the billing length; and charge the current The accumulated remainder is corrected, and the amended accumulated remainder is: the remainder obtained by dividing the sum of the actual length of the first bill or intermediate bill and the current accumulated remainder by the billing unit; the first bill or intermediate bill The difference obtained by dividing the sum of the actual length and the current accumulated remainder by the said billing unit, and then subtracting the said billing unit.
与第一种方法类似,在本方法中,切割话单的长度可以为时间长度,相应地,计费单位为固定的时间值;或者,切割话单的长度可以为流量长度,相应地,计费单位为固定的流量值。Similar to the first method, in this method, the length of cutting bills can be the length of time, correspondingly, the billing unit is a fixed time value; or, the length of cutting bills can be the length of traffic, correspondingly, the billing unit The fee unit is a fixed traffic value.
以下举具体的实施例详细介绍。Specific examples are given below to introduce in detail.
实施例三:Embodiment three:
在本实施例中,一条原始话单被划分为4条切割话单,分别为话单1、话单2、话单3和话单4,其中话单4为尾话单,话单1、2、3、4的实际长度分别为150秒、165秒、150秒和220秒。计费单位为60秒。新增一张切割话单累计表,记录该原始话单对应的IMSI、CHARGING_ID、GGSN地址和累计余数等,累计余数的初始值为0。上述四个切割话单到达计费系统的顺序为1、4、2、3。In this embodiment, an original bill is divided into four cutting bills, which are respectively bill 1, bill 2, bill 3 and bill 4, wherein bill 4 is the last bill, bill 1, The actual lengths of 2, 3, and 4 are 150 seconds, 165 seconds, 150 seconds, and 220 seconds, respectively. The billing unit is 60 seconds. Add a cutting bill accumulation table to record the IMSI, CHARGING_ID, GGSN address and cumulative remainder corresponding to the original bill, and the initial value of the cumulative remainder is 0. The order in which the above four split bills arrive at the billing system is 1, 4, 2, 3.
按照本发明,对话单1、话单4、话单2和话单3分别进行计费处理,处理时首先计算话单的计费长度,之后按照计费长度对切割话单进行计费,并对该原始话单的累计余数也进行修正。具体如表3。According to the present invention, the bill 1, the bill 4, the bill 2 and the bill 3 are charged respectively, and the billing length of the bill is first calculated during processing, and then the cut bill is billed according to the billing length, and The cumulative remainder of the original bill is also corrected. The details are shown in Table 3.
表3table 3
实施例四:Embodiment four:
在本实施例中,一条原始话单被划分为4条切割话单,分别为话单1、话单2、话单3和话单4,其中话单4为尾话单,话单1、2、3、4的实际长度分别为1064字节、1050字节、1040字节和2040字节。计费单位为1024字节。新增一张切割话单累计表,记录该原始话单对应的IMSI、CHARGING_ID、GGSN地址和累计余数等,累计余数的初始值为0。上述四个切割话单到达计费系统的顺序为1、4、2、3。In this embodiment, an original bill is divided into four cutting bills, which are respectively bill 1, bill 2, bill 3 and bill 4, wherein bill 4 is the last bill, bill 1, The actual lengths of 2, 3, and 4 are 1064 bytes, 1050 bytes, 1040 bytes, and 2040 bytes, respectively. The billing unit is 1024 bytes. Add a cutting bill accumulation table to record the IMSI, CHARGING_ID, GGSN address and cumulative remainder corresponding to the original bill, and the initial value of the cumulative remainder is 0. The order in which the above four split bills arrive at the billing system is 1, 4, 2, 3.
按照本发明,对话单1、话单4、话单2和话单3分别进行计费处理,处理时首先计算话单的计费长度,之后按照计费长度对切割话单进行计费,并对该原始话单的累计余数也进行修正。具体如表4。According to the present invention, the bill 1, the bill 4, the bill 2 and the bill 3 are charged respectively, and the billing length of the bill is first calculated during processing, and then the cut bill is billed according to the billing length, and The cumulative remainder of the original bill is also corrected. The details are shown in Table 4.
表4Table 4
对应地,本发明还提出一种针对切割话单的计费装置,应用于对属于一条原始话单的多条切割话单进行计费;计费的最小长度称为计费单位;所述原始话单的第一条切割话单为首话单,所述原始话单的最后一条话单为尾话单,其余切割话单为中间话单,所述装置包括:Correspondingly, the present invention also proposes a billing device for cutting bills, which is applied to charge multiple cut bills belonging to an original bill; the minimum length of billing is called a billing unit; the original The first cut bill of the bill is the first bill, the last bill of the original bill is the tail bill, and the remaining cut bills are the middle bill, and the device includes:
累计余数控制模块,用于按照非尾话单计费模块及尾话单计费模块的指示对所述原始话单的累计余数进行修正;The cumulative remainder control module is used to correct the cumulative remainder of the original bill according to the instructions of the non-final bill billing module and the tail bill billing module;
非尾话单计费模块,用于对首话单或中间话单进行计费处理时,如果尚未对尾话单进行计费,则计算所述首话单或中间话单的计费长度为:不大于所述首话单或中间话单的实际长度与当前累计余数的和、并且等于所述计费单位的整数倍的最大值;其中,如果之前已经对所述原始话单的其他切割话单进行了计费处理,则所述当前累计余数为最近一次对其他切割话单进行计费处理时修正之后的累计余数,否则,所述当前累计余数的值为0;按照计费长度对所述首话单或中间话单进行计费;并通知所述累计余数控制模块对当前的累计余数进行修正,修正后的累计余数为:所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数;The non-final bill billing module is used to calculate the billing length of the first bill or intermediate bill if the billing process has not been performed on the first bill or the intermediate bill. : the maximum value not greater than the sum of the actual length of the first or intermediate bill and the current accumulated remainder, and equal to an integer multiple of the billing unit; wherein, if the original bill has been previously cut The bill has been billed, and the current accumulated remainder is the accumulated remainder after the correction when the other cutting bills are charged for the last time, otherwise, the value of the current accumulated remainder is 0; according to the billing length The first bill or the middle bill is billed; and the cumulative remainder control module is notified to correct the current cumulative remainder, and the revised cumulative remainder is: the actual length of the first bill or the middle bill and the current the remainder obtained by dividing the sum of the accumulated remainders by the stated charging unit;
尾话单计费模块,用于对尾话单进行计费处理时,如果已完成对首话单和中间话单的计费处理,则计算所述尾话单的计费长度为:尾话单的实际长度与当前累计余数的和;按照计费长度对所述尾话单进行计费;并通知所述累计余数控制模块将当前累计余数的值置为0。The final bill billing module is used for billing processing of the tail bill. If the billing processing of the first bill and the intermediate bill has been completed, the billing length of the tail bill is calculated as: The sum of the actual length of the bill and the current accumulated remainder; charge the tail bill according to the billing length; and notify the accumulated remainder control module to set the value of the current accumulated remainder to 0.
上述装置中,所述切割话单的长度为时间长度,并且所述计费单位为固定的时间值;或者,所述切割话单的长度为流量长度,并且所述计费单位为固定的流量值。In the above device, the length of the cut bill is the length of time, and the billing unit is a fixed time value; or, the length of the cut bill is the length of traffic, and the billing unit is a fixed traffic value.
本发明还提出另一种针对切割话单的计费装置,应用于对属于一条原始话单的多条切割话单进行计费;计费的最小长度称为计费单位;所述原始话单的第一条切割话单为首话单,所述原始话单的最后一条话单为尾话单,其余切割话单为中间话单,所述装置包括:The present invention also proposes another billing device for cut bills, which is applied to charge multiple cut bills belonging to one original bill; the minimum length of billing is called a billing unit; the original bill The first cut bill of the original bill is the first bill, the last bill of the original bill is the tail bill, and the remaining cut bills are the middle bill, and the device includes:
累计余数控制模块,用于按照尾话单计费模块及非尾话单计费模块的指示对所述原始话单的累计余数进行修正;The cumulative remainder control module is used to correct the cumulative remainder of the original bill according to the instructions of the final bill billing module and the non-final bill billing module;
尾话单计费模块,用于对尾话单进行计费处理时,如果尚未对首话单或部分中间话单进行计费,则计算所述尾话单的计费长度为:尾话单的实际长度与当前累计余数的和;其中,如果之前已经对所述原始话单的其他切割话单进行了计费处理,则所述当前累计余数为最近一次对其他切割话单进行计费处理时修正之后的累计余数,否则,所述当前累计余数的值为0;按照计费长度对所述尾话单进行计费;并通知所述累计余数控制模块对当前的累计余数进行修正,修正后的累计余数为:所述尾话单的实际长度与当前累计余数的和除以所述计费单位所得的余数、再减去所述计费单位所得的差;The last bill billing module is used for billing processing of the last bill, if the first bill or some intermediate bills have not been billed, then the billing length of the last bill is calculated as: the last bill The sum of the actual length and the current accumulated remainder; wherein, if the billing process has been performed on other split bills of the original bill before, the current accumulated remainder is the latest billing process performed on other split bills The accumulative remainder after correction, otherwise, the value of the current accumulative remainder is 0; the bill is charged according to the billing length; and the accumulative remainder control module is notified to correct the current accumulative remainder. The final cumulative remainder is: the sum of the actual length of the tail bill and the current cumulative remainder divided by the remainder obtained by the billing unit, and then subtracting the difference obtained by the billing unit;
非尾话单计费模块,用于对首话单或中间话单进行计费处理时,如果已完成对尾话单的计费处理,则计算所述首话单或中间话单的计费长度为:不小于所述首话单或中间话单的实际长度与当前累计余数的和、并且等于所述计费单位的整数倍的最小值;按照计费长度对所述首话单或中间话单进行计费;并通知所述累计余数控制模块对当前的累计余数进行修正,修正后的累计余数为:所述首话单或中间话单的实际长度与当前累计余数的和除以所述计费单位所得的余数、再减去所述计费单位所得的差。The non-final bill billing module is used to calculate the billing of the first bill or intermediate bill if the billing processing of the last bill has been completed when performing billing processing on the first bill or the intermediate bill The length is: not less than the minimum value of the sum of the actual length of the first bill or intermediate bill and the current accumulated remainder, and equal to the integral multiple of the billing unit; The bill is billed; and the accumulative remainder control module is notified to correct the current accumulative remainder, and the amended accumulative remainder is: the sum of the actual length of the first or middle bill and the current accumulative remainder divided by the sum of the current accumulative remainder The difference obtained by subtracting the remainder obtained from the stated billing unit from the stated billing unit.
上述装置中,所述切割话单的长度为时间长度,并且所述计费单位为固定的时间值;或者,所述切割话单的长度为流量长度,并且所述计费单位为固定的流量值。In the above device, the length of the cut bill is the length of time, and the billing unit is a fixed time value; or, the length of the cut bill is the length of traffic, and the billing unit is a fixed traffic value.
上述话单可以是GPRS话单、通话业务话单或其他业务话单,本发明对此不做限制。The above-mentioned bills may be GPRS bills, call service bills or other business bills, which is not limited in the present invention.
综上可见,本发明提出的针对切割话单的计费方法和装置,对于不规范分割的话单分割话单余数,采用逐条切割话单余数循环累计修正取余的方式处理,可以实现对切割话单的精确计费。对于异常情况的处理方式,本发明提出负余数的概念,采用尾话单负余数的实现方式来实现对切割话单的精确计费。In summary, the billing method and device for cutting bills proposed by the present invention, for non-standard split bills, divide the remainder of the bills, and use the method of cutting the remainder of the bills one by one to correct and take the remainder. Accurate billing of bills. For the processing method of the abnormal situation, the present invention proposes the concept of negative remainder, and adopts the realization method of the negative remainder of the final bill to realize the accurate billing of the cut bill.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010106236202A CN102547643A (en) | 2010-12-30 | 2010-12-30 | Charging method and device for split call tickets |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010106236202A CN102547643A (en) | 2010-12-30 | 2010-12-30 | Charging method and device for split call tickets |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102547643A true CN102547643A (en) | 2012-07-04 |
Family
ID=46353357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010106236202A Pending CN102547643A (en) | 2010-12-30 | 2010-12-30 | Charging method and device for split call tickets |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102547643A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547104A (en) * | 2008-03-25 | 2009-09-30 | 中兴通讯股份有限公司 | Database entering method for wireless application protocol service diary |
CN101729709A (en) * | 2008-11-03 | 2010-06-09 | 中国移动通信集团广西有限公司 | Method and device for processing branch ticket |
-
2010
- 2010-12-30 CN CN2010106236202A patent/CN102547643A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547104A (en) * | 2008-03-25 | 2009-09-30 | 中兴通讯股份有限公司 | Database entering method for wireless application protocol service diary |
CN101729709A (en) * | 2008-11-03 | 2010-06-09 | 中国移动通信集团广西有限公司 | Method and device for processing branch ticket |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102387486B (en) | Method and device for charging general packet radio service (GPRS) partition bill | |
CN102480578B (en) | Method, system and device for reminding data traffic | |
CN103281465A (en) | Method, device and system of telecommunication service resource donation | |
CN104378258B (en) | A kind of network flow monitoring method, device and terminal | |
WO2012149725A1 (en) | Volume service billing method, device, and system | |
CN104735635A (en) | Strategy control method and device | |
CN102761851B (en) | Charging method and device based on divided detail records | |
CN103581458A (en) | Automatic updating method and device for service package | |
CN106209392A (en) | The online method and device paid | |
ATE455413T1 (en) | METHOD, SYSTEM AND SERVER FOR BILLING A COMMON PREPAID ACCOUNT | |
CN107040387A (en) | Online charging engine, engine of entering an item of expenditure in the accounts in real time, online charging method and system | |
CN103095945A (en) | Charging method and charging system based on bill classification and classification charging device | |
CN105338208B (en) | Unified bill charging method and system | |
CN101729709B (en) | Method and device for processing branch ticket | |
CN107181601B (en) | A flow reminder method and device | |
CN110381222A (en) | The determination method and apparatus of Information Mobile Service state | |
CN102547643A (en) | Charging method and device for split call tickets | |
CN102231876A (en) | Compatibility test method and device of billing system | |
WO2011140891A1 (en) | Method, device and system for prepayment charging | |
CN102256028B (en) | Charging method and device for over-length telephone bill | |
US9838862B2 (en) | Mobile digital cellular telecommunication system with advanced functionality for rating correction | |
CN103139747A (en) | Using amount prompting method and business operation support system | |
CN110930134A (en) | Resource adjusting method and device | |
CN107786956A (en) | A kind of determination method and apparatus of set meal real-time priority | |
CN105848127B (en) | A method and device for accurate replenishment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120704 |