Bill splitting and merging calculation method and device for telecommunication charging service
By adopting the bill splitting and merging calculation method in telecom billing services, the problems of large system resource consumption and inconsistency in data caused by multiple bill splitting in the prior art are solved, and the effect of reducing calculation amount and saving resources is achieved.
Patent Information
- Application Number
- CN202411230410.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2025-02-07
AI Technical Summary
In telecom billing services, the existing technology requires the split of bills in two different links, resulting in increased system overhead, increased data maintenance costs, and the risk of data inconsistency.
Using a bill splitting and merging calculation method for telecom billing services, by obtaining the user's current billing request, billing bill, package fee configuration and cumulative bill, first perform split calculation to generate a new cumulative bill, and then use the new one. The detailed bills in the accumulated bill are combined to generate a consolidated bill.
Replacing the original two split calculations by one split and merge calculation, effectively reducing the total computing volume of the system, saving equipment resources, and greatly reducing the risk of data inconsistency.
Smart Images

Figure CN119398770A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of telecommunication services, and in particular to a method and device for splitting and merging calculation of bills for telecommunication billing services. Background Art
[0002] The characteristics of telecommunications billing services are large concurrency and massive data calculation. Although the system is scalable, it consumes relatively large amounts of hardware resources. In the current calculation method, bills need to be split in two stages. First, in the real-time billing calculation stage, the bill is only split and calculated from the user's perspective in real time, and different billing items are split for the same rate for subsequent discount calculations and bill cancellation. The other is that after the bill is issued and before the financial settlement, the expenses with the same tax rate but different charging items will be split again (the split items will affect the tax rate at the time of settlement).
[0003] Therefore, in the telecommunications billing business, the system needs to split the bills in two different links, which leads to increased system overhead, increased data maintenance costs, and the risk of data inconsistency. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method and device for splitting and merging calculation of bills for telecommunication billing services to solve the above technical problem.
[0005] The technical solution of the present invention to solve the above technical problems is as follows: a method for splitting and merging bills of telecommunication billing services, comprising: for a current billing request submitted by a user, respectively obtaining a billing bill, a package tariff configuration and a cumulative bill corresponding to the current billing request; the billing bill corresponding to the current billing request represents the consumption bill newly added by the user before the current billing request is submitted within the current billing cycle; the package tariff configuration represents the communication services respectively included in each package provided by the operator, the fees of each communication service and the tax rate of each communication service; the cumulative bill includes each billing request submitted before the current billing request within the current billing cycle. Requesting corresponding detailed bills and tax rates corresponding to each detailed bill; the detailed bills represent sub-bills split based on the billing bill; determining a new cumulative bill according to the billing bill corresponding to the current billing request, the package tariff configuration and the cumulative bill; the new cumulative bill includes the detailed bills corresponding to the current billing request and each billing request before the current billing request in the current billing cycle, and the tax rates corresponding to each detailed bill; merging the detailed bills in the new cumulative bill to generate a merged bill, the merged bill representing a total bill formed by merging the detailed bills in the new cumulative bill at the same tax rate.
[0006] The beneficial effect of the present invention is that: by adopting the method of first splitting and then merging, the new accumulated bill generated in the splitting process can be used in the financial billing link of the telecommunications billing service, and the merged bill generated in the merging process can be used in the preferential calculation link of the telecommunications billing service. Therefore, the present method replaces the original two splitting calculations with one splitting and merging calculation, which can effectively reduce the total calculation amount in the system and save equipment resources. Moreover, compared with the original two splitting calculations, the one splitting and merging calculation in the present method can greatly reduce the risk of data inconsistency.
[0007] Based on the above technical solution, the present invention can also be improved as follows.
[0008] Furthermore, determining a new cumulative bill according to the billing bill corresponding to the current billing request, the package tariff configuration and the cumulative bill includes: determining a billing package according to the billing bill corresponding to the current billing request, the billing package representing a package subscribed by the user for using the communication service in the billing bill corresponding to the current billing request; matching the billing package with the package tariff configuration, if the package tariff configuration includes the billing package, then according to the package tariff configuration, splitting the billing bill corresponding to the current billing request to obtain split bills, and accumulating the split bills into the cumulative bill to obtain the new cumulative bill; otherwise, determining the cumulative bill to be the new cumulative bill; wherein the split bill includes the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
[0009] Furthermore, according to the package tariff configuration, the billing bill corresponding to the current billing request is split to obtain a split bill, including: obtaining the communication services included in the billing package, the fees of each communication service and the tax rate of each communication service in the package tariff configuration; according to the communication services included in the billing package and the fees of each communication service, the billing bill corresponding to the current billing request is split to obtain a detailed bill corresponding to the current billing request; according to the tax rate of each communication service included in the billing package, the tax rate corresponding to each detailed bill corresponding to the current billing request is determined; according to the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill, the split bill is generated.
[0010] Furthermore, the detailed bills in the new cumulative bill are merged to generate a merged bill, including: sorting the detailed bills in the new cumulative bill according to the tax rates corresponding to the detailed bills in the new cumulative bill to obtain the sorting results of the detailed bills; according to the sorting results, traversing the detailed bills in the new cumulative bill, merging the detailed bills with the same tax rate together to generate a merged bill.
[0011] Further, according to the sorting result, each detailed bill in the new cumulative bill is traversed, and detailed bills with the same tax rate are merged together to generate a merged bill, including:
[0012] S1. According to the ranking result, the first detailed bill is used as the bill to be merged;
[0013] S2. According to the sorting result, a detailed bill that has not been read is used as the current bill;
[0014] S3, determining whether the tax rate corresponding to the current bill is the same as the tax rate corresponding to the bill to be merged, if they are the same, executing S4 to S5; otherwise, executing S6;
[0015] S4, merging the current bill into the bill to be merged;
[0016] S5. Determine whether there is an unread detailed bill in the new accumulated bill. If so, take an unread detailed bill as the new current bill according to the sorting result, and return to S3; otherwise, determine that the bill to be merged is a merged bill, and output all merged bills;
[0017] S6. Determine that the bill to be merged is a merged bill, and use the current bill as a new bill to be merged, and return to S5.
[0018] In order to solve the above technical problems, the present invention also proposes a bill splitting and merging calculation device for telecommunication billing services, comprising:
[0019] The data acquisition module is used to obtain the billing bill, package tariff configuration and accumulated bill corresponding to the current billing request made by the user; the billing bill corresponding to the current billing request represents the consumption bill added by the user before the current billing request is made in the current billing cycle; the package tariff configuration represents the communication services included in each package provided by the operator, the fees of each communication service and the tax rate of each communication service; the accumulated bill includes the detailed bill corresponding to each billing request made before the current billing request in the current billing cycle and the tax rate corresponding to each detailed bill; the detailed bill represents the sub-bills split based on the billing bill;
[0020] A bill splitting module, used to determine a new cumulative bill according to the billing bill corresponding to the current billing request, the package tariff configuration and the cumulative bill; the new cumulative bill includes the detailed bills corresponding to the current billing request and each billing request before the current billing request in the current billing cycle and the tax rates corresponding to each detailed bill;
[0021] The bill merging module is used to merge the detailed bills in the new cumulative bill to generate a merged bill, wherein the merged bill represents a total bill formed by merging the detailed bills in the new cumulative bill at the same tax rate.
[0022] Furthermore, the bill splitting module includes:
[0023] A parsing unit, configured to determine a billing package according to the billing bill corresponding to the current billing request, wherein the billing package represents a package subscribed by the user for using the communication service in the billing bill corresponding to the current billing request;
[0024] A splitting unit is used to match the billing package with the package tariff configuration. If the package tariff configuration includes the billing package, the billing bill corresponding to the current billing request is split according to the package tariff configuration to obtain a split bill, and the split bill is accumulated into the accumulated bill to obtain the new accumulated bill; otherwise, the accumulated bill is determined to be the new accumulated bill; wherein the split bill includes the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
[0025] Furthermore, the bill merging module includes:
[0026] A sorting unit, used to sort the detailed bills in the new cumulative bill according to the tax rates corresponding to the detailed bills in the new cumulative bill, and obtain the sorting results of the detailed bills;
[0027] The merging unit is used to traverse the detailed bills in the new cumulative bill according to the sorting result, merge the detailed bills with the same tax rate together, and generate a merged bill.
[0028] In order to solve the above technical problems, the present invention also proposes an electronic device, including a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the bill splitting and merging calculation method for a telecommunications billing service as described above is implemented.
[0029] To solve the above technical problems, the present invention also proposes a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute a bill splitting and merging calculation method for a telecommunications billing service as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A flowchart of a method for splitting and merging bills for telecommunication billing services according to the present invention;
[0031] Figure 2 It is a flowchart of the existing telecommunication billing business;
[0032] Figure 3 A telecommunication billing service flow chart for applying a bill splitting and merging calculation method for a telecommunication billing service of the present invention;
[0033] Figure 4 The present invention is a schematic diagram of a bill splitting and merging calculation device for telecommunication billing services. DETAILED DESCRIPTION
[0034] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0035] Embodiment 1
[0036] like Figure 1 As shown, this embodiment provides a bill splitting and merging calculation method for telecommunication billing services, including: for a current billing request submitted by a user, respectively obtaining a billing bill, a package tariff configuration, and a cumulative bill corresponding to the current billing request; the billing bill corresponding to the current billing request represents a newly added consumption bill of the user before the current billing request is submitted within the current billing cycle; the package tariff configuration represents the communication services, fees for each communication service, and tax rates for each communication service included in each package provided by the operator; the cumulative bill includes the corresponding bills of each billing request submitted before the current billing request within the current billing cycle. Detailed bills and tax rates corresponding to each detailed bill; the detailed bills represent sub-bills split based on the billing bill; a new cumulative bill is determined according to the billing bill corresponding to the current billing request, the package tariff configuration and the cumulative bill; the new cumulative bill includes the detailed bills corresponding to the current billing request and each billing request before the current billing request in the current billing cycle, and the tax rates corresponding to each detailed bill; the detailed bills in the new cumulative bill are merged to generate a merged bill, the merged bill represents a total bill formed by merging the detailed bills in the new cumulative bill at the same tax rate.
[0037] This method adopts the method of splitting first and then merging. The new cumulative bill generated in the splitting process can be used in the financial billing link of the telecommunications billing service, and the merged bill generated in the merging process can be used in the preferential calculation link of the telecommunications billing service. Therefore, this method replaces the original two splitting calculations with one splitting and merging calculation, which can effectively reduce the total calculation amount in the system and save equipment resources. Moreover, compared with the original two splitting calculations, the one splitting and merging calculation in this method can greatly reduce the risk of data inconsistency.
[0038] Optionally, in an embodiment, determining a new cumulative bill based on the billing bill corresponding to the current billing request, the package tariff configuration and the cumulative bill includes: determining a billing package based on the billing bill corresponding to the current billing request, the billing package representing a package subscribed by the user for using the communication service in the billing bill corresponding to the current billing request; matching the billing package with the package tariff configuration, if the package tariff configuration includes the billing package, splitting the billing bill corresponding to the current billing request according to the package tariff configuration to obtain split bills, and accumulating the split bills into the cumulative bill to obtain the new cumulative bill; otherwise, determining that the cumulative bill is the new cumulative bill; wherein the split bill includes the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
[0039] When parsing the billing bill corresponding to the current billing request, it is necessary to analyze the user information and billing call record landing information in the billing bill, including the billing number, charging items, billing packages, pre-discount charges, post-discount charges, etc.
[0040] Optionally, in an embodiment, the billing bill corresponding to the current billing request is split according to the package tariff configuration to obtain a split bill, including: obtaining the communication services included in the billing package, the fees of each communication service and the tax rate of each communication service in the package tariff configuration; splitting the billing bill corresponding to the current billing request according to the communication services included in the billing package and the fees of each communication service to obtain a detailed bill corresponding to the current billing request; determining the tax rate corresponding to each detailed bill corresponding to the current billing request according to the tax rate of each communication service included in the billing package; generating the split bill according to the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
[0041] For example, a billing package includes communication service A and communication service B. The total value of the billing package is 100 yuan, of which communication service A is worth 40 yuan and communication service B is worth 60 yuan. The corresponding tax rate for communication service A is 5%, and the corresponding tax rate for communication service B is 6%. If the billing bill consumes a total of 10 yuan, it will be split according to the proportion of communication services used. For example, if the use of communication service A is worth 3 yuan and the use of communication service B is worth 7 yuan, the billing bill will be split into two bills, of which the corresponding tax rate for the 3 yuan bill is 5% and the corresponding tax rate for the 7 yuan bill is 6%. For detailed bills, it is necessary to record information such as billing number, charging subject, billing package, split subject, tax rate, cost before billing discount, and cost after billing discount.
[0042] Optionally, in an embodiment, the merging of the detailed bills in the new cumulative bill to generate a merged bill includes: sorting the detailed bills in the new cumulative bill according to the tax rates corresponding to the detailed bills in the new cumulative bill to obtain the sorting results of the detailed bills; and traversing the detailed bills in the new cumulative bill according to the sorting results, merging the detailed bills with the same tax rate together to generate a merged bill.
[0043] For consolidated bills, you need to record information such as billing number, charging items, billing packages, tax rates, charges before billing discounts, and charges after billing discounts.
[0044] Optionally, in an embodiment, traversing each detailed bill in the new cumulative bill according to the sorting result, merging detailed bills with the same tax rate together, and generating a merged bill includes:
[0045] S1. According to the ranking result, the first detailed bill is used as the bill to be merged;
[0046] S2. According to the sorting result, a detailed bill that has not been read is used as the current bill;
[0047] S3, determining whether the tax rate corresponding to the current bill is the same as the tax rate corresponding to the bill to be merged, if they are the same, executing S4 to S5; otherwise, executing S6;
[0048] S4, merging the current bill into the bill to be merged;
[0049] S5. Determine whether there is an unread detailed bill in the new accumulated bill. If so, take an unread detailed bill as the new current bill according to the sorting result, and return to S3; otherwise, determine that the bill to be merged is a merged bill, and output all merged bills;
[0050] S6. Determine that the bill to be merged is a merged bill, and use the current bill as a new bill to be merged, and return to S5.
[0051] Sort the detailed bills in the new cumulative bill by the corresponding tax rate from high to low or from low to high to generate a sorting result. When merging bills, read each detailed bill one by one, determine the tax rate, merge detailed bills with the same tax rate together, and generate several merged bills.
[0052] like Figure 2 As shown in Figure 1, telecom billing services include package and fixed fee calculation, billing calculation, bill cancellation calculation, and financial billing. In the original telecom billing system, bill splitting calculations need to be performed separately in the billing calculation and financial billing stages. Figure 3 As shown, this method is applied to telecommunications billing services. After the package and fixed fee calculation stages, this method is used to split and merge bills, and then the preferential calculation, account allocation and other processes in the billing calculation stage are performed. During the calculation process, a user bill memory is set internally to store the accumulated bills. When the bill merging calculation is performed, data can be directly obtained from the user bill memory for calculation. An in-memory database is set externally to store each detailed bill. When the financial bill is issued, data can be directly obtained from the in-memory database for calculation.
[0053] Take a system that supports 50 million users as an example. The total amount of package subscription information of users is about 1 billion. The charges of each package are divided into 1 to 5 pieces of data, and about 2 billion detailed bills are generated on average. In the above scenario, during the processing of the original system, the financial side needs to use 8 48c, 500G physical machines for one-time calculation, which takes about 5 hours.
[0054] By adopting this method, after a one-time calculation in the front-end process, this part of the host resources can be invested in other billing at the end of the month, saving about 13% of the utilization rate, and shortening the entire financial billing process by 1 hour (the original 5 hours had a parallel part in other processes).
[0055] Therefore, this method solves the problem of system duplicate calculation caused by multiple splitting of bills under the characteristics of the current accounting model. By splitting and then merging, the system's processing capacity is improved and the problems of large system resource consumption and data inconsistency are solved.
[0056] Embodiment 2
[0057] like Figure 4 As shown, this embodiment provides a bill splitting and merging calculation device for a telecommunications billing service, including:
[0058] The data acquisition module is used to obtain the billing bill, package tariff configuration and accumulated bill corresponding to the current billing request made by the user; the billing bill corresponding to the current billing request represents the consumption bill added by the user before the current billing request is made in the current billing cycle; the package tariff configuration represents the communication services included in each package provided by the operator, the fees of each communication service and the tax rate of each communication service; the accumulated bill includes the detailed bill corresponding to each billing request made before the current billing request in the current billing cycle and the tax rate corresponding to each detailed bill; the detailed bill represents the sub-bills split based on the billing bill;
[0059] A bill splitting module, used to determine a new cumulative bill according to the billing bill corresponding to the current billing request, the package tariff configuration and the cumulative bill; the new cumulative bill includes the detailed bills corresponding to the current billing request and each billing request before the current billing request in the current billing cycle and the tax rates corresponding to each detailed bill;
[0060] The bill merging module is used to merge the detailed bills in the new cumulative bill to generate a merged bill, wherein the merged bill represents a total bill formed by merging the detailed bills in the new cumulative bill at the same tax rate.
[0061] Optionally, in an embodiment, the bill splitting module includes:
[0062] A parsing unit, configured to determine a billing package according to the billing bill corresponding to the current billing request, wherein the billing package represents a package subscribed by the user for using the communication service in the billing bill corresponding to the current billing request;
[0063] A splitting unit is used to match the billing package with the package tariff configuration. If the package tariff configuration includes the billing package, the billing bill corresponding to the current billing request is split according to the package tariff configuration to obtain a split bill, and the split bill is accumulated into the accumulated bill to obtain the new accumulated bill; otherwise, the accumulated bill is determined to be the new accumulated bill; wherein the split bill includes the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
[0064] Optionally, in an embodiment, the billing bill corresponding to the current billing request is split according to the package tariff configuration to obtain a split bill, including: obtaining the communication services included in the billing package, the fees of each communication service and the tax rate of each communication service in the package tariff configuration; splitting the billing bill corresponding to the current billing request according to the communication services included in the billing package and the fees of each communication service to obtain a detailed bill corresponding to the current billing request; determining the tax rate corresponding to each detailed bill corresponding to the current billing request according to the tax rate of each communication service included in the billing package; generating the split bill according to the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
[0065] Optionally, in an embodiment, the bill merging module includes:
[0066] A sorting unit, used to sort the detailed bills in the new cumulative bill according to the tax rates corresponding to the detailed bills in the new cumulative bill, and obtain the sorting results of the detailed bills;
[0067] The merging unit is used to traverse the detailed bills in the new cumulative bill according to the sorting result, merge the detailed bills with the same tax rate together, and generate a merged bill.
[0068] Optionally, in an embodiment, traversing each detailed bill in the new cumulative bill according to the sorting result, merging detailed bills with the same tax rate together, and generating a merged bill includes:
[0069] S1. According to the ranking result, the first detailed bill is used as the bill to be merged;
[0070] S2. According to the sorting result, a detailed bill that has not been read is used as the current bill;
[0071] S3, determining whether the tax rate corresponding to the current bill is the same as the tax rate corresponding to the bill to be merged, if they are the same, executing S4 to S5; otherwise, executing S6;
[0072] S4, merging the current bill into the bill to be merged;
[0073] S5. Determine whether there is an unread detailed bill in the new accumulated bill. If so, take an unread detailed bill as the new current bill according to the sorting result, and return to S3; otherwise, determine that the bill to be merged is a merged bill, and output all merged bills;
[0074] S6. Determine that the bill to be merged is a merged bill, and use the current bill as a new bill to be merged, and return to S5.
[0075] Embodiment 3
[0076] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a bill splitting and merging calculation method for a telecommunications billing service as described in Embodiment 1 is implemented.
[0077] Embodiment 4
[0078] This embodiment provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the bill splitting and merging calculation method for a telecommunications billing service described in the first embodiment.
[0079] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0080] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0081] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0082] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0083] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0084] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A bill splitting and merging calculation method for telecommunication billing services, characterized in that: include: For the current billing request made by the user, obtain the billing bill, package tariff configuration and accumulated bill corresponding to the current billing request; The billing bill corresponding to the current billing request represents the new consumption bill of the user before the current billing request is made in the current billing cycle; the package tariff configuration represents the communication services included in each package provided by the operator, the fees of each communication service and the tax rate of each communication service; the cumulative bill includes the detailed bill corresponding to each billing request made before the current billing request in the current billing cycle and the tax rate corresponding to each detailed bill; The detailed bill represents the sub-bills split based on the charging bill; Determine a new accumulated bill according to the billing bill corresponding to the current billing request, the package tariff configuration and the accumulated bill; The new accumulated bill includes the detailed bills corresponding to the current billing request and each billing request before the current billing request in the current billing cycle, and the tax rates corresponding to each detailed bill: The detailed bills in the new cumulative bill are merged to generate a merged bill, wherein the merged bill represents a total bill formed by merging the detailed bills in the new cumulative bill at the same tax rate.
2. According to claim 1, a bill splitting and merging calculation method for telecommunication billing services is characterized in that: The determining a new accumulated bill according to the billing bill corresponding to the current billing request, the package tariff configuration and the accumulated bill includes: Determining a billing package according to the billing bill corresponding to the current billing request, wherein the billing package represents a package subscribed by the user for using the communication service in the billing bill corresponding to the current billing request; The billing package is matched with the package tariff configuration. If the package tariff configuration includes the billing package, the billing bill corresponding to the current billing request is split according to the package tariff configuration to obtain split bills, and the split bills are accumulated into the accumulated bill to obtain the new accumulated bill; otherwise, the accumulated bill is determined to be the new accumulated bill; wherein the split bill includes the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
3. According to claim 2, a method for splitting and merging bills for telecommunication billing services, characterized in that: The step of splitting the billing bill corresponding to the current billing request according to the package tariff configuration to obtain a split bill includes: Obtaining the communication services included in the billing package, the fees of each communication service, and the tax rate of each communication service in the package tariff configuration; According to the communication services included in the billing package and the fees of each communication service, the billing bill corresponding to the current billing request is split to obtain a detailed bill corresponding to the current billing request; Determine the tax rates corresponding to the detailed bills corresponding to the current billing request according to the tax rates of the various communication services included in the billing package; The split bill is generated according to the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
4. According to claim 1, a bill splitting and merging calculation method for telecommunication billing services is characterized in that: The step of merging the detailed bills in the new cumulative bill to generate a merged bill includes: Sorting the detailed bills in the new cumulative bill according to the tax rates corresponding to the detailed bills in the new cumulative bill to obtain the sorting results of the detailed bills; According to the sorting result, each detailed bill in the new cumulative bill is traversed, and detailed bills with the same tax rate are merged together to generate a merged bill.
5. According to claim 4, a bill splitting and merging calculation method for telecommunication billing services is characterized in that: According to the sorting result, traversing each detailed bill in the new cumulative bill, merging detailed bills with the same tax rate together, and generating a merged bill, including: S1. According to the ranking result, the first detailed bill is used as the bill to be merged; S2. According to the sorting result, a detailed bill that has not been read is used as the current bill; S3, determining whether the tax rate corresponding to the current bill is the same as the tax rate corresponding to the bill to be merged, if they are the same, executing S4 to S5; otherwise, executing S6; S4, merging the current bill into the bill to be merged; S5. Determine whether there is an unread detailed bill in the new accumulated bill. If so, take an unread detailed bill as the new current bill according to the sorting result, and return to S3; otherwise, determine that the bill to be merged is a merged bill, and output all merged bills; S6. Determine that the bill to be merged is a merged bill, and use the current bill as a new bill to be merged, and return to S5.
6. A bill splitting and merging calculation device for telecommunication billing services, characterized in that: include: The data acquisition module is used to obtain the billing bill, package fee configuration and accumulated bill corresponding to the current billing request made by the user; The billing bill corresponding to the current billing request represents the new consumption bill of the user before the current billing request is made in the current billing cycle; the package tariff configuration represents the communication services included in each package provided by the operator, the fees of each communication service and the tax rate of each communication service; the cumulative bill includes the detailed bill corresponding to each billing request made before the current billing request in the current billing cycle and the tax rate corresponding to each detailed bill; The detailed bill represents the sub-bills split based on the charging bill; A bill splitting module, used to determine a new accumulated bill according to the billing bill corresponding to the current billing request, the package tariff configuration and the accumulated bill; The new accumulated bill includes the detailed bills corresponding to the current billing request and each billing request before the current billing request in the current billing cycle, and the tax rate corresponding to each detailed bill; The bill merging module is used to merge the detailed bills in the new cumulative bill to generate a merged bill, wherein the merged bill represents a total bill formed by merging the detailed bills in the new cumulative bill at the same tax rate.
7. The bill splitting and merging calculation device for telecommunication billing services according to claim 6, characterized in that: The bill splitting module includes: A parsing unit, configured to determine a billing package according to the billing bill corresponding to the current billing request, wherein the billing package represents a package subscribed by the user for using the communication service in the billing bill corresponding to the current billing request; A splitting unit is used to match the billing package with the package tariff configuration. If the package tariff configuration includes the billing package, the billing bill corresponding to the current billing request is split according to the package tariff configuration to obtain a split bill, and the split bill is accumulated into the accumulated bill to obtain the new accumulated bill; otherwise, the accumulated bill is determined to be the new accumulated bill; wherein the split bill includes the detailed bill corresponding to the current billing request and the tax rate corresponding to each detailed bill.
8. The bill splitting and merging calculation device for telecommunication billing services according to claim 6, characterized in that: The bill merging module includes: A sorting unit, used to sort the detailed bills in the new cumulative bill according to the tax rates corresponding to the detailed bills in the new cumulative bill, and obtain the sorting results of the detailed bills; The merging unit is used to traverse the detailed bills in the new cumulative bill according to the sorting result, merge the detailed bills with the same tax rate together, and generate a merged bill.
9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a bill splitting and merging calculation method for a telecommunications billing service as claimed in any one of claims 1 to 5 is implemented.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute a bill splitting and merging calculation method for a telecommunications billing service as described in any one of claims 1 to 5.