CN112702178A - Method, system and device for real-time charge accounting - Google Patents

Method, system and device for real-time charge accounting Download PDF

Info

Publication number
CN112702178A
CN112702178A CN202011506991.2A CN202011506991A CN112702178A CN 112702178 A CN112702178 A CN 112702178A CN 202011506991 A CN202011506991 A CN 202011506991A CN 112702178 A CN112702178 A CN 112702178A
Authority
CN
China
Prior art keywords
bill
charge
charging
module
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011506991.2A
Other languages
Chinese (zh)
Other versions
CN112702178B (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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011506991.2A priority Critical patent/CN112702178B/en
Publication of CN112702178A publication Critical patent/CN112702178A/en
Application granted granted Critical
Publication of CN112702178B publication Critical patent/CN112702178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The application provides a method, a system and a device for real-time charge accounting, which can quickly build a real-time charge accounting system, have the characteristics of high speed, short period and high accuracy and are beneficial to improving the satisfaction degree of users. The method comprises the following steps: the production charging module generates a first bill of the user based on the real-time bill change of the user; storing the first bill to a first database, wherein the first database and a second database are synchronous in real time, and the second database is a view database; sending the first bill to a bill analyzer for bill analysis to obtain a charging discount factor of the first bill; sending the first bill and the charging preferential factors to an expenditure presentation charging module; the charge-off and charge module receives the first bill and the charge discount factor and inquires a second bill of the user in a second database; determining a target bill based on the first bill and the second bill; and the charge accounting module calculates the charge accounting of the user based on the target bill and the charge preferential factor.

Description

Method, system and device for real-time charge accounting
Technical Field
The present application relates to the field of telecommunications, and more particularly, to a method, system and apparatus for real-time charge accounting.
Background
Business Operation Support Systems (BOSSs) of three major telecommunications operators mainly include business functions such as accounting processing and management, customer service, business management, and the like. The charge of charge account out belongs to the field of account processing, and the charge of account of the user, the connection and effect of the pre-stored allocated estimated charge and the like can be completed through the charge of charge account out. However, as the number of subscribers in telecommunications is increased, the amount of bills generated every day can be as high as billions, so that the pressure of the billing system is gradually increased. Therefore, the quick and accurate charge-off system is provided, which not only has important strategic significance to operators, but also can improve the satisfaction degree of users.
At present, the real-time charge-off systems built by three telecom operators need to synchronize the main data and the standby data between the production charging module and the charge-off module, the process is complicated, the built real-time charge-off systems need to spend a large amount of time to verify the accuracy rate, the charge-off speed is low, and the satisfaction degree of users is influenced to a great extent.
Disclosure of Invention
The application provides a method, a system and a device for real-time charge accounting, which can quickly build a real-time charge accounting system, have the characteristics of high speed, short period and high accuracy and are beneficial to improving the satisfaction degree of users.
In a first aspect, a method for real-time charge accounting is provided, including: the production charging module generates a first bill of a user based on real-time bill change of the user; the production charging module stores the first bill to a first database, the first database and a second database are synchronous in real time, and the second database is a view database; the production charging module sends the first bill to a bill analyzer; the bill analyzer receives the first bill, analyzes the first bill and obtains a charging discount factor of the first bill; the bill analyzer sends the first bill and the charging discount factor to an account-out charging module; the charge-off charging module receives the first bill and the charge discount factor, and inquires a second bill of the user in the second database, wherein the second bill is the latest bill of the user; the charge accounting module determines a target bill based on the first bill and the second bill; and the charge accounting module calculates the charge accounting of the user based on the target bill and the charge discount factor.
The method for real-time charge accounting of the embodiment of the application analyzes the real-time bill of the user by using the bill analyzer and obtains the charge preferential factors of the user under the bill, inputs the analysis result of the bill analyzer to the charge accounting module, determines the target bill of the user through reverse query, calculates the charge accounting cost of the user based on the target bill and the charge preferential factors, can quickly build a real-time charge accounting system, has the characteristics of high speed, short period and high accuracy, and is favorable for improving the satisfaction degree of the user.
Optionally, the determining, by the charge accounting module, a target bill based on the first bill and the second bill includes: and if the first bill and the second bill are the same, the charge accounting module determines the first bill or the second bill as the target bill.
Optionally, the determining, by the charge accounting module, a target bill based on the first bill and the second bill includes: and if the first bill is different from the second bill, the charge accounting module determines the second bill as the target bill.
Optionally, the charging offer factor includes at least one of: an individual-based charging preference factor, an account-based charging preference factor, or a group-based charging preference factor.
In a second aspect, a system for real-time charge accounting is provided, the system comprising: the system comprises a production charging module, a bill resolver and an expenditure presentation charging module.
Wherein, the production charging module is used for: generating a first bill of a user based on real-time bill change of the user, and storing the first bill to a first database, wherein the first database and a second database are synchronous in real time, and the second database is a view database; and sending the first bill to the bill parser; the bill parser is used for: receiving the first bill, analyzing the first bill, obtaining a charging discount factor of the first bill, and sending the first bill and the charging discount factor to an expenditure presentation charging module; the charge module of account-out is used for: receiving the first bill and the charging discount factor, and inquiring a second bill of the user in the second database, wherein the second bill is the latest bill of the user; determining a target bill based on the first bill and the second bill; and calculating the charge of the user based on the target bill and the charging discount factor.
Optionally, the charge accounting module is specifically configured to: and if the first bill and the second bill are the same, determining the first bill or the second bill as the target bill.
Optionally, the charge accounting module is specifically configured to: and if the first bill and the second bill are different, determining the second bill as the target bill.
Optionally, the charging offer factor includes at least one of: an individual-based charging preference factor, an account-based charging preference factor, or a group-based charging preference factor.
In a third aspect, an apparatus for real-time charge accounting is provided, including: the processing module is used for generating a first bill of the user based on real-time bill change of the user; storing the first bill to a first database, wherein the first database and a second database are synchronous in real time, and the second database is a view database; and the sending module is used for sending the first bill to a bill analyzer.
The device for real-time billing and accounting may be configured to execute a method corresponding to the production billing module in any possible implementation manner of the first aspect.
In a fourth aspect, another apparatus for real-time charge accounting is provided, including: the receiving module is used for receiving the first bill; the processing module is used for analyzing the first bill to obtain a charging discount factor of the first bill; and the sending module is used for sending the first bill and the charging discount factor to the charge-out and charging module.
The device for real-time charge accounting may be configured to perform a method corresponding to the bill parser in any possible implementation manner of the first aspect.
In a fifth aspect, another apparatus for real-time charge accounting is provided, including: the receiving module is used for receiving the first bill and the charging discount factor; the processing module is used for inquiring a second bill of the user in the second database, wherein the second bill is the latest bill of the user; determining a target bill based on the first bill and the second bill; and calculating the charge of the user based on the target bill and the charging discount factor.
The device for real-time charge accounting may be configured to execute a method corresponding to the charge accounting module in any possible implementation manner of the first aspect.
In a sixth aspect, there is provided an apparatus for real-time charge accounting, including a processor, coupled to a memory, and configured to execute instructions in the memory to implement the method in any possible implementation manner of the first aspect, or the method corresponding to the production charging module in any possible implementation manner of the first aspect, or the method corresponding to the bill parser in any possible implementation manner of the first aspect, or the method corresponding to the charge accounting module in any possible implementation manner of the first aspect.
Optionally, the apparatus further comprises a memory. Optionally, the apparatus further comprises a communication interface, the processor being coupled to the communication interface.
In one implementation, the device for real-time charge accounting is a data processing device. When the means for real-time billing is a data processing device, the communication interface may be a transceiver, or an input/output interface.
In another implementation manner, the device for real-time charge accounting is a chip configured in the server. When the device for real-time billing is a chip configured in the server, the communication interface may be an input/output interface.
In a seventh aspect, a processor is provided, including: input circuit, output circuit and processing circuit. The processing circuit is configured to receive a signal via the input circuit and transmit a signal via the output circuit, so that the processor performs the method of any one of the possible implementations of the first aspect.
In a specific implementation process, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the signal output by the output circuit may be output to and transmitted by a transmitter, for example and without limitation, and the input circuit and the output circuit may be the same circuit that functions as the input circuit and the output circuit, respectively, at different times. The embodiment of the present application does not limit the specific implementation manner of the processor and various circuits.
In an eighth aspect, a processing apparatus is provided that includes a processor and a memory. The processor is configured to read instructions stored in the memory, and may receive signals via the receiver and transmit signals via the transmitter to perform the method of any one of the possible implementations of the first aspect.
Optionally, there are one or more processors and one or more memories.
Alternatively, the memory may be integrated with the processor, or provided separately from the processor.
In a specific implementation process, the memory may be a non-transient memory, such as a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips.
It will be appreciated that the associated data interaction process, for example, sending the indication information, may be a process of outputting the indication information from the processor, and receiving the capability information may be a process of receiving the input capability information from the processor. In particular, the data output by the processor may be output to a transmitter and the input data received by the processor may be from a receiver. The transmitter and receiver may be collectively referred to as a transceiver, among others.
The processing device in the above eighth aspect may be a chip, the processor may be implemented by hardware or may be implemented by software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated with the processor, located external to the processor, or stand-alone.
In a ninth aspect, there is provided a computer program product comprising: computer program (also called code, or instructions), which when executed, causes a computer to perform the method of any of the possible implementations of the first aspect described above.
In a tenth aspect, a computer-readable storage medium is provided, which stores a computer program (which may also be referred to as code, or instructions) that, when executed on a computer, causes the computer to perform the method of any one of the possible implementations of the first aspect described above.
Drawings
Fig. 1 is a schematic block diagram of an overall architecture of a real-time charge accounting system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for real-time charge accounting according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of a method of bill resolution provided by an embodiment of the present application;
fig. 4 is a schematic flow chart of another method for real-time charge accounting according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a system for real-time charge accounting according to an embodiment of the present application;
fig. 6 is a schematic block diagram of an apparatus for real-time charge accounting according to an embodiment of the present application;
fig. 7 is a schematic block diagram of another apparatus for real-time charge accounting according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The BOSSs of three telecommunications operators mainly includes business functions such as accounting processing and management, customer service, business management, and the like. The charge of charge account out belongs to the field of account processing, and the charge of account of the user, the connection and effect of the pre-stored allocated estimated charge and the like can be completed through the charge of charge account out. However, as the fourth generation mobile communication (4rd-generation, 4G) technology is steadily developed with the fifth generation mobile communication (5rd-generation, 5G) technology, and the desire to move from provincial to provincial is enhanced, the number of users is gradually increased, and the system billing pressure is gradually increased. The real-time charge-off is used as a direct means for realizing revenue generation and embodying company value view in telecommunication operation, has important strategic significance for operators, and at present, three domestic telecommunication operators build real-time charge-off systems, so that the real-time charge-off can reduce the charge-off pressure of the systems, shorten the charge-off time of the systems and open the charge-off in advance.
However, although the existing real-time accounting can achieve accounting and billing speed increase, the process of setting up the real-time accounting and charging system by an operator at present is complicated and long, and the set-up real-time accounting system still needs a large amount of verification and reconciliation check.
The disadvantages of the prior art real-time charge-off system are as follows:
1. cumbersome: data between production charging and charge accounting needs to be synchronized between main and standby, and a synchronization mechanism is complex and complicated.
Specifically, the primary/standby synchronization process may include: the main master control board state machine sequentially transfers the following five states: a wait for standby board insertion state, a wait for batch backup request state, a batch backup state, a real-time backup state, and a data smoothing state. The state of the standby main control board is sequentially transferred in a ready state, a batch data receiving state and a real-time data receiving state.
2. The cycle length is as follows: generally, a real-time charge-off system is set up within 1-2 months.
3. Checking accounts: and a large amount of user call bills need to be checked for 2-3 months, the accuracy is verified, problems are found, and the system is continuously improved.
In view of the above, the present application provides a method, a system and a device for real-time charge accounting, which autonomously research and develop a bill parser and a data reverse parsing mechanism by analyzing the main flow and pain points of the currently established real-time charge accounting system, can quickly establish the real-time charge accounting system, have the characteristics of high speed, short period and high accuracy, and are beneficial to improving the satisfaction degree of users.
Fig. 1 shows an overall architecture 100 of a real-time charge-off charging system provided in an embodiment of the present application, where the real-time charge-off charging system 100 includes: a production system and an account-out system.
The production system comprises: and the production charging module is used for generating a bill of the user.
The charge-out system includes: and the charge accounting module and the bill analyzer are used for calculating the final charge accounting of the user.
It should be understood that fig. 1 only illustrates that the bill resolver is deployed in the billing system as an example, in other possible implementations, the bill resolver may also be deployed in the production system, or may be deployed outside the production system and the billing system, and the specific deployment manner of the bill resolver is not limited in this application.
As shown in fig. 1, a call ticket generated by a user is input to a production charging module for call ticket analysis, charge calculation and bill management. Therefore, the real-time bill change file of the user is output, the real-time bill file of the user is input to the bill analyzer for bill analysis, the corresponding charging preferential factors are generated at the same time, and the bill change file and the charging preferential factors which are generated in real time are input to the charge module for charge, so that the preferential factor analysis, the reverse data analysis, the bill updating and the calculation of the real-time cost are carried out.
It should be appreciated that preferential accounting by the production billing module is triggered only upon periodic billing. For example, when the charge is made at the end of each month, preferential calculation is triggered to make the charge.
It should be understood that the parameter module in fig. 1 may include: time, subscriber subscription service, etc. of other bills generated by the subscriber.
It should also be understood that the billing vault 1 of fig. 1 may store real-time bill change files generated by the users of the production billing module or periodically generated cost bills. The data in the bill bank 2 is synchronized with the data in the bill bank 1 in real time.
Before introducing the method, system, and apparatus for real-time charge accounting provided in the embodiments of the present application, the following points are described.
First, in the embodiments shown below, terms and english abbreviations such as the specific bill parser, the charging offer factor, the target bill, etc. are merely exemplary examples given for convenience of description, and should not limit the present application in any way. This application is not intended to exclude the possibility that other terms may exist or may be defined in the future that achieve the same or similar functionality.
Second, the first, second and various numerical numbers in the embodiments shown below are merely for convenience of description and are not intended to limit the scope of the embodiments of the present application. For example, different databases are distinguished.
Third, "at least one" means one or more, "a plurality" means two or more. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, and c, may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
The method 200 for real-time charge accounting according to the embodiment of the present application is described in detail below with reference to fig. 2. The method of the embodiment of the present application may be executed by one or more data processing devices, or may be executed by a chip in the data processing device, which is not limited in this embodiment of the present application.
Fig. 2 is a schematic flow chart of a method 200 for real-time charge accounting according to an embodiment of the present application. As shown in fig. 2, the method 200 may include the following steps:
s201, the production charging module generates a first bill of the user based on the real-time bill change of the user.
It should be understood that the real-time bill change of the user can be understood as the real-time bill charge generated by the user, such as the voice call charge, the short message charge or the traffic charge.
The first bill of the user may be at least one of the voice call charge, the short message charge, the traffic charge or other service charge.
S202, the production billing module stores the first bill to a first database, the first database and a second database are synchronized in real time, and the second database is a view database.
It should be understood that the first database is a warehouse that organizes, stores, and manages data according to a data structure, and is an organized, sharable, and uniformly managed collection of large amounts of data that is stored in a computer for a long time.
The view database may be a virtual table derived from one or several base tables (or views). The data dictionary of the system only stores the definition of the view and does not store the data corresponding to the view. A view database is a transformation of the first database data and is another way to view the data in the first database. The view database can be regarded as a moving window, and the required data can be acquired through the view database.
S203, the production charging module sends the first bill to a bill analyzer.
It should be understood that the account list analyzer is a bridge connecting the production charging module and the charge accounting module, and is a core device for quickly setting up the real-time charge accounting module. The bill analyzer can quickly and accurately transmit the real-time bill charge change of a production charging module user to the charge accounting module, and can generate a charging preferential factor of the user for a real-time charge calculation program to use.
And S204, the bill analyzer receives the first bill, analyzes the first bill and obtains the charging discount factor of the first bill.
It should be understood that the billing advantage factor is based on the first bill obtained for the package of offers ordered by the user.
And S205, the bill analyzer sends the first bill and the charging discount factor to the charge-out module.
S206, the charge-out module receives the first bill and the charge discount factor and inquires a second bill of the user in the second database, wherein the second bill is the latest bill of the user.
It should be appreciated that the process of querying the second database for the second bill of the user may be referred to as reverse data parsing.
The principle of reverse data analysis in the embodiment of the present application is as follows: in a customer bill database (namely, a bill database 1) of the production system, a view database (namely, a bill database 2) is built, and the data of the view database is synchronized with the data of the customer bill database in real time. And when the user expense bill in the production system is changed, synchronizing the bill to the view database in real time. And when calculating the charge of the user, the charge system for charge of.
It should also be understood that, because there is a certain time delay in the process of transmitting the real-time bill to the bill analyzer, in order to ensure that the real-time bill of the user acquired by the charge-out module is the latest bill, the bill in the second database is queried additionally, and for the convenience of distinguishing, the bill in the second database is called the second bill, so that the latest bill of the user can be acquired in time, and the accuracy of real-time charge-out is improved.
And S207, the charge accounting module determines a target bill based on the first bill and the second bill.
And S208, the charge accounting module calculates the charge accounting of the user based on the target bill and the charge preferential factor.
The method, the system and the device for real-time charge accounting of the embodiment of the application utilize the bill analyzer to analyze the real-time bill of the user and obtain the charge preferential factors of the user under the bill, input the analysis result of the bill analyzer into the charge accounting module, determine the target bill of the user through reverse query, calculate the charge accounting cost of the user based on the target bill and the charge preferential factors, and can quickly build the charge accounting module for real-time charge accounting.
Illustratively, fig. 3 is a method 300 of bill resolution of an embodiment of the present application. As shown in fig. 3, the real-time bill change file of the user is input to the bill parser, and the bill is split and combined by the bill parsing engine, so that the real-time bill file generated by the user has more types, such as flow rate cost, short message cost, voice call cost, and the like, and the bill parsing engine splits and combines the bills of the same type, thereby facilitating subsequent processing; then the data are input into a bill transmission engine, and multi-channel parallel transmission is carried out according to the defined transmission rule, so that the data transmission efficiency is improved; then inputting the information into a discount factor processing engine, and determining discount factors of the users under the bill, wherein the discount factors specifically comprise personal discount, account discount, group discount and the like; then inputting the bill and the preferential factors into a file and message processing engine, and packaging the bill and the preferential factors into a file format which can be identified by the charge-out module; then, a dynamic word use scaling engine is entered, and in order to ensure load balance, the number of channels is correspondingly increased or decreased according to the quantity of transmission data, so that smooth transmission of the data is ensured, and the transmission efficiency is improved.
In particular, the bill parser may include the following functions:
1. and analyzing the real-time bill file of the user.
2. And splitting and combining the bills of the users.
3. And constructing a common preferential factor of the user.
4. And constructing a user special preference factor.
5. And dynamically outputting the preferential factors.
6. The method has the function of full-service bill analysis.
7. The method has the function of deducting the bill of the user.
8. The method has a special service data synchronization function.
9. And triggering an output function in an overtime and excessive mode.
10. And the elastic expansion and contraction are self-adaptive according to users.
11. And a file inner duplicate removal function.
12. Read-write kafka message component functions.
It should be understood that the user's general offer factor may be understood as an individual offer to the user, for example, a package ordered 198 yuan may offer 20 yuan. The user specific offer factor may be understood as a group offer factor or an account offer factor.
It should also be understood that kafka is a scientific term for an open source stream processing platform developed by the Apache (Apache) software foundation. kafka is a high-throughput distributed publish-subscribe messaging system that can handle all the action flow data of a consumer in a web site.
As an optional embodiment, the determining, by the charge accounting module, the target bill based on the first bill and the second bill includes: and if the first bill and the second bill are the same, the charge accounting module determines the first bill or the second bill as the target bill.
Illustratively, the user generates a voice call charge of 5 minutes at the first time, i.e., the first bill mentioned above, and the user generates no other charge for a longer time after the first time. The production billing module sends the first bill to the first database and the bill parser, executes S202 to S205 in the method 200, and since the user does not generate any additional charges (i.e., does not generate a new bill) for a long time after the first time, the first bill is the same as the second bill in the second database, and the billing module can select the first bill or the second bill to be determined as the target bill, and executes S208 in the method 200.
As an optional embodiment, the determining, by the charge accounting module, the target bill based on the first bill and the second bill includes: and if the first bill and the second bill are different, the charge accounting module determines the second bill as the target bill.
Illustratively, in connection with the above example, the user incurs a voice call charge of 2 minutes again at the second time (within a short time after the first time); after the production billing module generates the first bill, the production billing module executes S202 to S205 in the method 200; since the user generates a new bill for the fee and stores the bill in the first database, and the bill in the second database (which is synchronized with the first database in real time) is the 7-minute voice call bill for the fee, that is, the second bill, after performing S206 to S207 of the method 200, it is determined that the second bill is the target bill, and S208 of the method 200 is performed.
As an optional embodiment, the charging offer factor includes at least one of the following: an individual-based charging preference factor, an account-based charging preference factor, or a group-based charging preference factor.
It should be understood that an individual billing benefit factor is an offer for a user's individual package or other premium, such as a discount off of a fixed package per month (consumption 200 minus 20, etc.); group offers may be understood as internal offers ordered by a company or organization, such as free minutes of conversation between companies; account billing preference factors may be understood as a large account shared between companies, which may have a preference policy.
Fig. 4 illustrates another method 400 for real-time charge accounting according to an embodiment of the present application. As shown in fig. 4, the call ticket generated by the user is sent to the production charging module to produce a corresponding real-time bill change file, and the real-time bill change file is stored in the first database and sent to the bill parser, and the specific process may refer to the description of S201 to S203 in the method 200, which is not described herein again; the bill analyzer receives the real-time bill change file, analyzes the bill, and sends the bill to the charge accounting module, and the specific process may refer to the description of S204 to S205 in the method 200, which is not described herein again; when receiving the real-time bill and the charging discount factor of the real-time bill, the charge-off charging module queries the real-time bill in the second database (view data block) through reverse data analysis, determines the target bill, and performs charge-off calculation, and the specific process may refer to the description of S206 to S208 in the method 200, which is not described herein again. The parameter library is updated by loading the parameters, and the specific parameters can refer to the related description of the parameter module, which is not described herein again. It will be appreciated that the third database is used to store the user's real-time charge-out fees.
The method for real-time charge accounting according to the embodiment of the present application is described in detail above with reference to fig. 1 to 4, and the system and the apparatus for real-time charge accounting according to the embodiment of the present application are described in detail below with reference to fig. 5 to 7.
As shown in fig. 5, an embodiment of the present application provides a system 500 for real-time charge accounting, where the system 500 includes: a production billing module 510, a bill parser 520, and an outbound billing module 530.
Wherein, the production billing module 510 is configured to: generating a first bill of a user based on the real-time bill change of the user, and storing the first bill to a first database, wherein the first database and a second database are synchronous in real time, and the second database is a view database; and sends the first bill to bill parser 520.
The bill parser 520 is used to: and receiving the first bill, analyzing the first bill, obtaining a charging discount factor of the first bill, and sending the first bill and the charging discount factor to the charge-out module 530.
The charge accounting module 530 is configured to: receiving the first bill and the charging discount factor, and inquiring a second bill of the user in the second database, wherein the second bill is the latest bill of the user; determining a target bill based on the first bill and the second bill; and calculating the charge of the user based on the target bill and the charging discount factor.
Optionally, the charge accounting module 530 is specifically configured to: and if the first bill and the second bill are the same, determining the first bill or the second bill as a target bill.
Optionally, the charge accounting module 530 is specifically configured to: and if the first bill is different from the second bill, determining the second bill as a target bill.
Optionally, the charging offer factor includes at least one of the following: an individual-based charging preference factor, an account-based charging preference factor, or a group-based charging preference factor.
It should be understood that the production billing module 510, bill parser 520, and charge-out module 530 described above may be deployed in a variety of ways:
the first method is as follows: production billing module 510, bill parser 520, and charge out module 530 are deployed in the same data processing device.
The second method comprises the following steps: the production billing module 510 and the bill parser 520 are disposed in the same data processing apparatus, and the charge billing module 530 is disposed in another data processing apparatus.
The third method comprises the following steps: the production billing module 510 is deployed in one data processing device and the charge billing module 530 and the bill parser 520 are deployed in another data processing device.
The method is as follows: the production billing module 510, the bill parser 520, and the charge for charge module 530 are respectively disposed in the three data processing apparatuses.
The deployment modes of the production charging module 510, the bill parser 520 and the charge accounting module 530 are not limited in the present application, as long as the method described in the embodiment of the present application can be implemented.
Fig. 6 shows an apparatus 600 for real-time charge accounting according to an embodiment of the present application, where the apparatus 600 includes: a processing module 610, a transmitting module 620, and a receiving module 630.
In a possible implementation manner, the processing module 610, the sending module 620, and the receiving module 630 are configured to execute a method corresponding to the production charging module in the method 200.
Specifically, the processing module 610 is configured to: generating a first bill of the user based on the real-time bill change of the user; storing the first bill to a first database, wherein the first database and a second database are synchronous in real time, and the second database is a view database; the sending module 620 is configured to: the first bill is sent to a bill parser.
In a possible implementation manner, the processing module 610, the sending module 620, and the receiving module 630 are configured to execute a method corresponding to the bill resolver in the method 200.
Specifically, the receiving module 630 is configured to: receiving the first bill; the processing module 610 is configured to: analyzing the first bill to obtain a charging discount factor of the first bill; the sending module 620 is configured to: and sending the first bill and the charging discount factor to an expenditure charging module.
In a possible implementation manner, the processing module 610, the sending module 620, and the receiving module 630 are configured to execute a method corresponding to the charge accounting module in the method 200.
Specifically, the receiving module 630 is configured to: receiving the first bill and the charging discount factor; the processing module 610 is configured to: inquiring a second bill of the user in the second database, wherein the second bill is the latest bill of the user; determining a target bill based on the first bill and the second bill; and calculating the charge of the user based on the target bill and the charging discount factor.
It should be appreciated that the apparatus 600 herein is embodied in the form of functional modules. The term module herein may refer to an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality. In an alternative example, it may be understood by those skilled in the art that the apparatus 600 may be embodied as any data processing device including the production charging module 510, the bill resolver 520, or the charge-out module 530 in the foregoing embodiment, or functions of the production charging module 510, the bill resolver 520, or the charge-out module 530 in the foregoing embodiment may be integrated in the apparatus 600, and the apparatus 600 may be configured to perform various processes and/or steps corresponding to the production charging module 510, the bill resolver 520, or the charge-out module 530 in the foregoing embodiment, and in order to avoid repetition, the descriptions are omitted here.
The device 600 has the function of implementing the corresponding steps executed by the production charging module 510, the bill resolver 520 or the charge accounting module 530 in the method; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. For example, the sending module 620 may be a communication interface, such as a transceiving interface.
In an embodiment of the present application, the apparatus 600 in fig. 6 may also be a chip or a chip system, for example: system on chip (SoC). This is not a limitation of the present application.
Fig. 7 shows another apparatus 700 for real-time charge accounting according to an embodiment of the present application. The apparatus 700 includes a processor 710, a memory 720, and a transceiver 730. The processor 710, the memory 720 and the transceiver 630 are in communication with each other through an internal connection path, the memory 720 is used for storing instructions, and the processor 710 is used for executing the instructions stored in the memory 720 to control the transceiver 730 to transmit and/or receive signals.
The apparatus 700 may be embodied as any data processing device including the production charging module 510, the bill resolver 520, or the charge-out module 530 in the foregoing embodiments, or the functions of the production charging module 510, the bill resolver 520, or the charge-out module 530 in the foregoing embodiments may be integrated in the apparatus 700, and the apparatus 700 may be configured to perform each step and/or flow corresponding to the method including the production charging module 510, the bill resolver 520, or the charge-out module 530 in the foregoing embodiments.
Alternatively, the memory 720 may include both read-only memory and random-access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 710 may be configured to execute the instructions stored in the memory, and when the processor executes the instructions, the processor may perform the steps and/or processes corresponding to the data processing apparatus in the above method embodiments.
It should be understood that, in the embodiments of the present application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor executes instructions in the memory, in combination with hardware thereof, to perform the steps of the above-described method. To avoid repetition, it is not described in detail here.
The present application provides a readable computer storage medium for storing a computer program for implementing a method corresponding to the production billing system shown in the various possible implementations of the above embodiments.
The present application provides another readable computer storage medium for storing a computer program for implementing the method corresponding to the bill parser shown in the various possible implementations of the above embodiments.
The present application provides a readable computer storage medium, which is used to store a computer program, and the computer program is used to implement the method corresponding to the real-time charge-off accounting system shown in various possible implementation manners in the foregoing embodiments.
The present application provides a computer program product comprising a computer program (also referred to as code, or instructions) which, when run on a computer, can perform the methods corresponding to the production billing system shown in the various possible implementations of the embodiments described above.
The present application provides another computer program product comprising a computer program (which may also be referred to as code, or instructions) which, when run on a computer, can perform the methods corresponding to the bill parser shown in the various possible implementations of the embodiments described above.
The present application provides another computer program product, which includes a computer program (also referred to as code, or instructions), when the computer program runs on a computer, the computer can execute the method corresponding to the real-time charge-off accounting system shown in the various possible implementation manners in the above embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for real-time charge accounting is characterized by comprising the following steps:
the production charging module generates a first bill of a user based on real-time bill change of the user;
the production charging module stores the first bill to a first database, the first database and a second database are synchronous in real time, and the second database is a view database;
the production charging module sends the first bill to a bill analyzer;
the bill analyzer receives the first bill, analyzes the first bill and obtains a charging discount factor of the first bill;
the bill analyzer sends the first bill and the charging discount factor to an account-out charging module;
the charge-off charging module receives the first bill and the charge discount factor, and inquires a second bill of the user in the second database, wherein the second bill is the latest bill of the user;
the charge accounting module determines a target bill based on the first bill and the second bill;
and the charge accounting module calculates the charge accounting of the user based on the target bill and the charge discount factor.
2. The method of claim 1, wherein the determining a target bill by the charge-out module based on the first bill and the second bill comprises:
and if the first bill and the second bill are the same, the charge accounting module determines the first bill or the second bill as the target bill.
3. The method of claim 1, wherein the determining a target bill by the charge-out module based on the first bill and the second bill comprises:
and if the first bill is different from the second bill, the charge accounting module determines the second bill as the target bill.
4. The method according to any of claims 1 to 3, wherein the charging offer factor comprises at least one of:
an individual-based charging preference factor, an account-based charging preference factor, or a group-based charging preference factor.
5. A system for real-time charge-out, comprising:
the production charging module, the bill analyzer and the charge accounting module;
wherein, the production charging module is used for: generating a first bill of a user based on real-time bill change of the user, and storing the first bill to a first database, wherein the first database and a second database are synchronous in real time, and the second database is a view database; and sending the first bill to the bill parser;
the bill parser is to: receiving the first bill, analyzing the first bill, obtaining a charging discount factor of the first bill, and sending the first bill and the charging discount factor to the charge-out module;
the charge accounting module: receiving the first bill and the charging discount factor, and inquiring a second bill of the user in the second database, wherein the second bill is the latest bill of the user; determining a target bill based on the first bill and the second bill; and calculating the charge of the user based on the target bill and the charging discount factor.
6. The system of claim 5, wherein the charge accounting module is specifically configured to:
and if the first bill and the second bill are the same, determining the first bill or the second bill as the target bill.
7. The system of claim 5, wherein the charge accounting module is specifically configured to:
and if the first bill and the second bill are different, determining the second bill as the target bill.
8. The system according to any one of claims 5 to 7, wherein the charging offer factor comprises at least one of:
an individual-based charging preference factor, an account-based charging preference factor, or a group-based charging preference factor.
9. An apparatus for real-time charge accounting, comprising: a processor coupled with a memory for storing a computer program that, when invoked by the processor, causes the apparatus to perform the method of any of claims 1 to 4.
10. A computer-readable storage medium for storing a computer program comprising instructions for implementing the method of any one of claims 1 to 4.
CN202011506991.2A 2020-12-18 2020-12-18 Method, system and device for real-time charge accounting Active CN112702178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011506991.2A CN112702178B (en) 2020-12-18 2020-12-18 Method, system and device for real-time charge accounting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011506991.2A CN112702178B (en) 2020-12-18 2020-12-18 Method, system and device for real-time charge accounting

Publications (2)

Publication Number Publication Date
CN112702178A true CN112702178A (en) 2021-04-23
CN112702178B CN112702178B (en) 2022-09-27

Family

ID=75507490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011506991.2A Active CN112702178B (en) 2020-12-18 2020-12-18 Method, system and device for real-time charge accounting

Country Status (1)

Country Link
CN (1) CN112702178B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008875A (en) * 2019-12-24 2020-04-14 北京思特奇信息技术股份有限公司 Method and system for calculating group preference in real time based on individuals
CN113765681A (en) * 2021-09-08 2021-12-07 中国电信股份有限公司 Expenditure presentation processing method, device, medium and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2302323A1 (en) * 1998-07-29 2000-02-10 American Management Systems, Incorporated A modular, convergent customer care and billing system
CN102348186A (en) * 2010-07-29 2012-02-08 埃森哲环球服务有限公司 Account and asset loader tool
CN103095469A (en) * 2011-11-03 2013-05-08 中国移动通信集团甘肃有限公司 Communication cost copayment method and device
CN104346371A (en) * 2013-07-31 2015-02-11 Sap欧洲公司 Business integration system report driven by in-memory database
CN110059119A (en) * 2019-03-13 2019-07-26 深圳壹账通智能科技有限公司 A kind of bill generation method, device, computer equipment and readable storage medium storing program for executing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2302323A1 (en) * 1998-07-29 2000-02-10 American Management Systems, Incorporated A modular, convergent customer care and billing system
CN102348186A (en) * 2010-07-29 2012-02-08 埃森哲环球服务有限公司 Account and asset loader tool
CN103095469A (en) * 2011-11-03 2013-05-08 中国移动通信集团甘肃有限公司 Communication cost copayment method and device
CN104346371A (en) * 2013-07-31 2015-02-11 Sap欧洲公司 Business integration system report driven by in-memory database
CN110059119A (en) * 2019-03-13 2019-07-26 深圳壹账通智能科技有限公司 A kind of bill generation method, device, computer equipment and readable storage medium storing program for executing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008875A (en) * 2019-12-24 2020-04-14 北京思特奇信息技术股份有限公司 Method and system for calculating group preference in real time based on individuals
CN113765681A (en) * 2021-09-08 2021-12-07 中国电信股份有限公司 Expenditure presentation processing method, device, medium and equipment
CN113765681B (en) * 2021-09-08 2023-02-28 中国电信股份有限公司 Expenditure presentation processing method, device, medium and equipment

Also Published As

Publication number Publication date
CN112702178B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN112702178B (en) Method, system and device for real-time charge accounting
CN110418022B (en) Method and device for adjusting flow package for multiple user identifications
CN107360006A (en) A kind of resource billing method and device
CN103777961B (en) A kind of charging for mobile applications software development kit, Mobile solution and mobile terminal
CN105450461A (en) Shunting method and network equipment
CN110490571B (en) Installment payment method, device, equipment and medium
CN109309596A (en) A kind of method for testing pressure, device and server
CN108632047B (en) Method and device for determining tariff data
CN111047347A (en) User value evaluation method and device, computer equipment and storage medium
CN110489471A (en) A kind of data request processing method, apparatus, storage medium and server
CN101232538A (en) Apparatus and method for merging business data
CN110852559A (en) Resource allocation method and device, storage medium and electronic device
CN112559635A (en) Service processing method, device, equipment and medium for Ether house alliance link node
CN110213071A (en) Verification of data method, apparatus, system, computer equipment and storage medium
Su et al. Embedding smart contract in blockchain transactions to improve flexibility for the IoT
CN102348186B (en) For supporting the mthods, systems and devices of the account check between different operators
CN100433624C (en) Method for realizing communication business payment metering
CN109587244A (en) Cloud data in mobile phone processing method, device, computer readable storage medium and electronic equipment
CN112152818B (en) Call bill processing method, device, system, storage medium and network equipment
CN104142817B (en) The method and apparatus of user resources usage amount is measured in Java applications
CN110662188B (en) Charging method and system
CN202067348U (en) Electrical invoice management system
CN104462116A (en) Data selecting method and device
CN1322706C (en) Method of realizing real time segmental charging
CN104700291A (en) Express cloud quotation system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant