CN108805632B - Charging method and device - Google Patents
Charging method and device Download PDFInfo
- Publication number
- CN108805632B CN108805632B CN201810425537.0A CN201810425537A CN108805632B CN 108805632 B CN108805632 B CN 108805632B CN 201810425537 A CN201810425537 A CN 201810425537A CN 108805632 B CN108805632 B CN 108805632B
- Authority
- CN
- China
- Prior art keywords
- information
- product
- charging
- module
- settlement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/04—Billing or invoicing
Landscapes
- Business, Economics & Management (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a charging method and a charging device, and relates to the technical field of computers. One embodiment of the method comprises: acquiring the information of all charging objects, and respectively executing the following steps for each charging object: acquiring usage records of all products corresponding to the current charging object in a first time period and charging standard information of all products corresponding to the current charging object; and generating bill information of the current charging object in the first time period according to the information of the current charging object, the use records of all products corresponding to the current charging object and the charging standard information. The implementation mode can save cost and improve efficiency and accuracy.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a charging method and apparatus.
Background
With the development of computer network technology, service providers provide various services to users through networks. The service provider sets up a server in the network, the server provides an access interface for the user, and the interface service is used to meet various requirements of the user, such as services of face recognition, identity verification, optical character recognition, personal verification and the like. Currently, charging for interface services is done manually offline.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: the interface service charging is completed by means of manual online operation, so that the labor cost and the operation cost are huge, and the efficiency is low. First, the information of the client and the contract is paper version information, which is not easy to maintain. Secondly, the links of counting, charging, settlement, invoicing, bill checking and the like of the calling condition of the interface are finished manually, the labor operation cost is high, the accuracy is difficult to guarantee, the counting analysis of the calling condition of the interface cannot be realized, and the perfect tracking of the life cycle of the bill is lacked.
Therefore, there is a need for an automated billing method and apparatus that can save costs and improve efficiency and accuracy.
Disclosure of Invention
In view of this, embodiments of the present invention provide a charging method and apparatus, which can save cost and improve efficiency and accuracy.
In order to achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a charging method, including:
acquiring the information of all charging objects, and respectively executing the following steps for each charging object:
acquiring usage records of all products corresponding to the current charging object in a first time period and charging standard information of all products corresponding to the current charging object;
and generating bill information of the current charging object in the first time period according to the information of the current charging object, the use records of all products corresponding to the current charging object and the charging standard information.
The charging method provided by the embodiment of the invention also comprises the following steps:
and acquiring all bill information of the specified charging object in the second time period to generate a statement bill of the specified charging object in the second time period.
Optionally, the statement of account includes: a settlement status and an invoicing status;
the charging method provided by the embodiment of the invention also comprises the following steps:
sending the account checking list to a settlement module, and updating the settlement state after receiving a settlement result sent back by the settlement module;
and sending the statement of account and the result of settlement to an invoicing module, and updating the invoicing state after receiving the invoicing result sent back by the invoicing module.
The charging method provided by the embodiment of the invention also comprises the following steps:
recording the use information of the user of the charging object on the product to generate a use record of the specified product;
recording basic information of a client, product use contract information of the client and available product information agreed by a product use contract;
inquiring the customer information and the usage record of the corresponding product to obtain the associated information of the customer information and the usage record of the corresponding product, wherein the customer information comprises one or more of the following information in combination: the customer basic information, the product use contract information of the customer and the available product information agreed by the product use contract;
and generating a report of the associated information of the customer information and the use record of the corresponding product for displaying.
The charging method provided by the embodiment of the invention also comprises the following steps:
recording a usable product list of a user of a charging object into a first storage module;
before a user of a charging object uses a specified product, reading a usable product list of the charging object from a first storage module, judging whether the usable product list comprises the specified product, if so, allowing the user to use the specified product, otherwise, not allowing the user to use the specified product.
In order to achieve the above object, according to another aspect of the embodiments of the present invention, there is also provided a charging apparatus, including:
the charging module is used for acquiring the information of all charging objects and respectively executing the following steps for each charging object:
acquiring usage records of all products corresponding to the current charging object in a first time period and charging standard information of all products corresponding to the current charging object;
and generating bill information of the current charging object in the first time period according to the information of the current charging object, the use records of all products corresponding to the current charging object and the charging standard information.
The charging device provided by the embodiment of the invention also comprises:
and the bill management module is used for acquiring all bill information of the specified charging object in the second time period so as to generate a statement bill of the specified charging object in the second time period.
Optionally, the statement of account includes: a settlement status and an invoicing status;
the bill management module is also used for sending the statement of account to a settlement module and updating the settlement state after receiving a settlement result sent back by the settlement module;
and sending the statement of account and the result of settlement to an invoicing module, and updating the invoicing state after receiving the invoicing result sent back by the invoicing module.
The charging device provided by the embodiment of the invention also comprises:
the product module is used for recording the use information of the user of the charging object on the product so as to generate the use record of the specified product;
the client management module is used for recording the basic information of the client, the product use contract information of the client and the available product information agreed by the product use contract;
the business management module is used for inquiring the customer information and the use record of the corresponding product to obtain the associated information of the customer information and the use record of the corresponding product, and the customer information comprises one or more of the following information: the customer basic information, the product use contract information of the customer and the available product information agreed by the product use contract; and generating a report of the associated information of the customer information and the use record of the corresponding product for displaying.
Further, the client management module is also used for recording the available product list of the user of the charging object in the first storage module;
the product module is also used for reading the usable product list of the charging object from the first storage module before the user of the charging object uses the designated product, judging whether the usable product list comprises the designated product, if so, allowing the user to use the designated product, otherwise, not allowing the user to use the designated product.
In order to achieve the above object, according to another aspect of the embodiments of the present invention, there is also provided a charging electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the charging method provided by the embodiment of the invention.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is also provided a computer-readable medium on which a computer program is stored, the program implementing the charging method provided by the embodiments of the present invention when executed by a processor.
The charging method and the charging device provided by the invention provide uniform information management of clients, contracts and related products, and are convenient for management personnel to operate and maintain. The product service condition statistical function is provided, and the display of the product service information under multiple granularities and the report statistical analysis function are realized. And formulating a uniform interface service charging type and a corresponding charge calculation rule. The automatic charging function with the accounting period as the charging unit is provided, and the labor operation cost is greatly reduced. A complete bill management system is provided, which comprises functions of settlement state, invoice state tracking and the like. The bill pushing function is provided, the checking of the bill information by the service management personnel and the client is facilitated, and the labor cost is reduced.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a charging method provided in an embodiment of the present invention;
FIG. 2 is a schematic illustration of a statement provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of customer information provided by an embodiment of the invention;
FIG. 4 is a schematic diagram of product usage contract information provided by an embodiment of the present invention;
FIG. 5 is a schematic illustration of product information provided by an embodiment of the present invention;
FIG. 6 is a first diagram illustrating association information provided by an embodiment of the invention;
FIG. 7 is a second diagram illustrating association information provided by an embodiment of the invention;
fig. 8 is a schematic diagram of an application flow of a charging method according to an embodiment of the present invention;
fig. 9 is a schematic diagram of main modules of a charging apparatus according to an embodiment of the present invention;
fig. 10 is a schematic diagram of application modules of a charging apparatus according to an embodiment of the present invention;
FIG. 11 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 12 is a block diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
An embodiment of the present invention provides a charging method, as shown in fig. 1, where the method includes: step S101, step S102, and step S103. In step S101, information of all the charging objects is acquired, and the following steps S102 and S103 are performed for each charging object, respectively. Wherein the charging object refers to a generation range of the charged fee. For example, when the calculated charge is a charge generated by a certain client using all products that can be used by the certain client, the charging object is the client, and when the calculated charge is a charge generated by a certain client using a part of all products that can be used by the certain client (for example, a product that can be used by agreement in a certain contract that the client subscribes), the charging object can be the contract. The product referred to in the embodiments of the present invention refers to tangible articles, intangible services, organizations, ideas or their combination, for example, it may be an online service product: interface services (face recognition, identity verification, optical character recognition, and personal verification, etc.).
In step S102, usage records of all products corresponding to the current charging object in the first time period and charging standard information of all products corresponding to the current charging object are obtained, and then in step S103, bill information of the current charging object in the first time period is generated according to the information of the current charging object, the usage records of all products corresponding to the current charging object and the charging standard information. The billing information may include information related to the charging target, start and end information of the first time period, unit price (single use price) of the product, total cost, and the like.
The charging standard information of the product may include a charging type of the product, for example, when the charging type of the product is charging according to the number of times of use of the product, the total charge in the finally calculated bill is a product of the total number of times of use of the product corresponding to the charging object in the first time period and the single use price.
In one embodiment of the present invention, step S101 may be performed according to a preset period, for example, once a day or a week, that is, the bills of all the billing objects are calculated once a day or a week. And calculating the charge generated in the charging object range in a preset first time period each time of execution. The preset period and the first time period may be configured according to a specific application scenario. For example, when the billing period (calculation period of generating charges, time unit of settlement) is one month, the preset period may be daily, step S101 is executed at zero point of each day, each time step S101 is executed, the first time period is a time period between the calculation day of the billing period and the current day, the bill of the previous day is updated by the bill generated on the current day, the daily change of the bill cost can be known, and the bill of the current day is the complete bill of one billing period when the current day is the accounting date.
In an embodiment of the present invention, the charging method further includes the following statement: and acquiring all bill information of the specified charging object in the second time period to generate a statement bill of the specified charging object in the second time period. The charging method provided by the invention collects all bills of the charging object in the second time period to generate the bill of the charging object under the trigger of the specific condition, for example, the second time period is one year, the generated bill is the bill of each account period of the charging object in the steps, then the bills of all account periods of the charging object in the year are collected, and the bill of the year is generated. The statement of account may be pushed to the customer by mail for confirmation.
In one embodiment of the invention, the billing comprises: settlement status and billing status. The charging method provided by the invention also comprises the following processes: and after the client side completes the checking confirmation of the statement, the statement is sent to the settlement module. The settlement module can be realized through a related settlement function platform, the settlement platform completes related business logic verification work after receiving the statement of account information, then contacts a client responsible person for settlement, and returns a settlement result. And after receiving a settlement result sent back by the settlement module, updating the settlement state of the statement of account.
And after the settlement is finished, the statement of account and the settlement result are sent to an invoicing module. The billing module can be realized by a functional platform which has the function of issuing invoices corresponding to the settlement bills to the clients, and the billing platform completes the logic check work of related services after receiving the information, performs billing operation and mails the invoices to the clients. And after receiving the billing result sent back by the billing module, updating the billing state of the statement.
The statement of account generated by the method of the present invention as shown in fig. 2, in this example, the billing product serves as the personal verification interface, the billing object of the statement of account is the contract numbered GZT, the second time period of the statement of account is from 6 months of 2017 to 1 month of 2018, the statement of account includes the statement of account (the first time period) in each month of the second time period, wherein each statement of account has the corresponding unit price of the product, the amount due, the invoice status and the settlement status.
In an embodiment of the present invention, the charging method further includes the following verification steps: and recording the available product list of the user of the charging object. Before a user of a charging object uses a specified product, reading a usable product list of the charging object, judging whether the usable product list comprises the specified product, if so, allowing the user to use the specified product, otherwise, not allowing the user to use the specified product.
In an embodiment of the present invention, the charging method further includes: and recording the use information of the product by the user of the charging object to generate a use record of the specified product. And recording the customer information, the product use contract information of the customer and the available product information agreed by the product use contract.
As shown in fig. 3, the customer information may be recorded and displayed in the form of a web page, and the recorded customer information may include customer basic information and financial information used for settlement and invoicing. The basic information includes, but is not limited to, the following: customer name, customer contact, fax, business location, department or institution name, contact phone, zip code, etc., and financial information including, but not limited to, the following: the name of the bank of account, the account number of the bank of account, the registered telephone, the registered address, the taxpayer identification number, the billing content and the like.
As shown in fig. 4, the product usage contract information may be recorded and displayed in the form of a web page, and the recorded product usage contract information may include, but is not limited to, the following: contract number, contract name, responsible person, contact means, contact mailbox, settlement period, contract start date, contract end date, and the like.
As shown in fig. 5, the product information may be recorded and displayed in the form of a web page, and the recorded product information may include, but is not limited to, the following: product name, billing type, payment type, start date, end date, unit price, and the like.
Inquiring the customer information and the usage record of the corresponding product to obtain the associated information of the customer information and the usage record of the corresponding product, wherein the customer information comprises one or more of the following information in combination: the customer basic information, the product use contract information of the customer and the usable product information agreed by the product use contract. The method supports the display of the product use record statistical information under three granularities of taking a client as granularity, taking a client signing contract as granularity and taking a product in the client signing contract as granularity. And then generating a report of the associated information of the customer information and the use record of the corresponding product for displaying for the use of related operators.
In the application scenario in which the charging product serves as an interface, the usage record of the product may include basic information such as the total number of calling interfaces, the calling time, the calling result, the calling duration, and the like.
As shown in fig. 6, the client name, contract number, service product, billing type and status generated for the query are associated with the usage record (call status, accumulated occurred traffic and remaining traffic) of the product.
Fig. 7 shows the association information of the client name, contract number and service product generated by the query and the usage record (call time, call state, IP and url) of the product.
The charging method provided by the present invention is further described with reference to specific application scenarios. In the application scenario, the charging product is an interface service, one client may correspond to a plurality of contracts, and each contract may correspond to a plurality of agreed interface services that can be used.
Assume that client a has contracted with the interface service platform for use of interface B. In the invention, the basic information, contract information and product information of the client A are recorded, and the product information comprises the charging type and the standard.
The invention provides three interface service charging types, namely per-time charging, package charging and step charging. Wherein. The charging according to times requires the interface calling unit price stipulated in the contract, and the total amount of the charges is the product of the unit price and the calling times. The package charging needs to specify package amount and package quantity, the fee rule is package amount, and when the calling times exceed the package quantity, interface service is no longer provided for a calling party. The step charging requires specifying a step unit price and a corresponding call quantity interval, for example, the step unit price is: 4-membered, 3-membered, 2-membered, 1-membered; the number interval is 0-100, 101-200, 201-300, 301-400; the charging rule is that when the calling frequency is between 0 and 100 times, charging is carried out according to the unit price of 4 yuan, when the calling frequency is between 101 and 200 times, the part exceeding 100 times is charged according to the unit price of 3 yuan, when the calling frequency is between 201 and 300 times, the part exceeding 200 times is charged according to the unit price of 2 yuan, when the calling test is between 300 and 400 times or more, the part exceeding 300 times is charged according to the unit price of 1 yuan. For example, when the number of calls in a certain accounting period is 350, the corresponding total amount of charges is: 100 × 4+100 × 3+100 × 2+50 × 1 is 950 yuan.
In the application scenario, the charging type of the interface B is per-time charging, and the unit price is 1 yuan. The customer a information is stored in the Mysql database, resulting in the example data (only key data listed) as in table 1 below:
id | name of customer | Contact person | Contact telephone | Location of enterprise | …… |
… | A | Zhang San | …… | Beijing City | …… |
Table 1 (customer information table)
Storing the usage contract information of customer a into Mysql database, the example data (only key data listed) is obtained as follows in table 2:
contract table:
id | client id | Contract number | Contact telephone | Person in charge | Date of start | End date |
… | … | …… | …… | Li Si | 2018-2-1 | 2018-12-31 |
Table 2 (contract information table)
The information of the interface B service provided for the client a is stored in the Mysql database, resulting in the example data as in table 3 below (only the key data are listed):
id | client id | Contract id | Interface | Type of charge | Unit price of | Date of start | End date |
… | … | … | B | Pay-per- |
1 | 2018-2-1 | 2018-12-31 |
Table 3 (product information table)
And the client A calls an interface B of the interface service platform, and the interface service platform stores the calling information in an Hbase table.
By reading the data in the Mysql database and the HBase database, the associated information table of the customer information, the contract information, the product information and the interface calling information can be obtained.
In the charging process, as shown in fig. 8, the charging target is a contract, the contract information of all clients is acquired, and the following charging steps are performed for each contract one by one: firstly, judging whether the contract validity period contains the current accounting period time, if not, ending the charging step of the current contract. If so, acquiring the charging type of the corresponding interface service in the contract, then acquiring information (acquiring information stored in a MySQL database) and calling records (data stored in an Hbase database) of the corresponding client, the contract and the interface product, finishing the calculation of the cost of each interface product of the current contract by combining the acquired information, finally packaging the bill information of the current account by taking the contract as a unit, and storing the bill information in a MySQL database table corresponding to the bill. And when all the contracts are charged, finishing the charging process.
For example, in the bill information table shown in table 4 below, if the interface is called 1000 times in 2018 in 2 months, the corresponding amount is 1000 yuan.
TABLE 4
Then according to the stored bill information, the service management personnel can trigger the generation of a statement of the contract in 2018, and according to the statement, the service management personnel can trigger the corresponding settlement and invoicing service operation by clicking the configured trigger 'settlement' and 'invoicing' buttons.
For example, after the settlement operation is completed, the settlement status is changed to settled in the bill information table shown in table 5 below.
id | Client id | Contract id | Product id | Unit price of | Period of time | Number of calls | Corresponding amount of money | Status of settlement | Billing status |
… | … | … | … | 1 | 2018-2 | 1000 | 1000 | Settled account | Not making an invoice |
TABLE 5
In the application scenario, the settlement module and the invoicing module push results in a mode that related information is pushed to the flow processing platform Kafka first, and the system consumes data in the Kafka.
An embodiment of the present invention further provides a charging apparatus, as shown in fig. 9, where the apparatus 900 includes: a charging module 901. The charging module 901 is configured to obtain information of all charging objects, and perform the following steps for each charging object:
acquiring usage records of all products corresponding to the current charging object in a first time period and charging standard information of all products corresponding to the current charging object;
and generating bill information of the current charging object in the first time period according to the information of the current charging object, the use records of all products corresponding to the current charging object and the charging standard information.
In the present invention, the charging device provided by the present invention further comprises: and the bill management module is used for acquiring all bill information of the specified charging object in the second time period so as to generate a statement bill of the specified charging object in the second time period.
In the present invention, the statement of account includes: settlement status and billing status.
The bill management module is also used for sending the account checking list to the settlement module and updating the settlement state after receiving the settlement result sent back by the settlement module.
And sending the statement of account and the result of settlement to an invoicing module, and updating the invoicing state after receiving the invoicing result sent back by the invoicing module.
In the present invention, the charging device provided by the present invention further comprises:
and the product module is used for recording the use information of the user of the charging object on the product so as to generate the use record of the specified product.
The client management module is used for recording the basic information of the client, the product use contract information of the client and the usable product information agreed by the product use contract.
The business management module is used for inquiring the customer information and the use record of the corresponding product to obtain the associated information of the customer information and the use record of the corresponding product, and the customer information comprises one or more of the following information: the customer basic information, the product use contract information of the customer and the available product information agreed by the product use contract; and generating a report of the associated information of the customer information and the use record of the corresponding product for displaying.
In the invention, the customer management module is also used for recording the usable product list of the user of the charging object in the first storage module.
The product module is also used for reading the usable product list of the charging object from the first storage module before the user of the charging object uses the designated product, judging whether the usable product list comprises the designated product, if so, allowing the user to use the designated product, otherwise, not allowing the user to use the designated product.
As shown in fig. 10, in a specific application process of the charging apparatus provided in the embodiment of the present invention, the charging product takes the interface service as an example, and the service manager and the client sign a contract for using the interface product service. And the service management personnel maintain the information such as the basic information of the client, the information of the interface product, the charging standard of the interface product and the like in the client management module according to the contract content, and the client management module stores the information in the Mysql database.
The customer sends a request to the product module, invoking the interface. The product module acquires the contract and the corresponding product information of the signed customer from customer management so as to judge whether the customer can call the interface service. Meanwhile, the product module saves the interface calling record into the Hbase database.
And the service management module respectively acquires the client and contract information from the Mysql database, acquires the interface product calling record information from the Hbase database, and arranges the interface product calling record information into service information. The service information means: the method supports displaying the interface calling record statistical information under three granularities of taking a client as granularity, taking a client signing contract as granularity and taking an interface product in the client signing contract as granularity, wherein the statistical information comprises basic information such as the total number of calling interfaces, calling time, calling results, calling duration and the like. And meanwhile, the interface use condition is displayed in a report form for the use of product module operators.
The charging module respectively acquires contract, interface product and charging standard information from the Mysql database, acquires interface product calling record information from the Hbase database, and completes calculation of charge information with the account period of each contract as granularity to form billing information. And the charging module sends the calculated bill information to the bill management module. The bill management module arranges the bill detail information into a statement bill and pushes the statement bill detail information to the client side in a mail mode for confirmation. After the client finishes checking and confirming the bill, the bill management submits the bill information to be settled to the settlement module, and the settlement module promotes the later settlement process. After the client finishes the settlement process, the bill management pushes invoice detail information required by the client to the invoicing module, and the invoicing module pushes the invoicing process. And the settlement module pushes settlement result information to the Kafka. The invoicing module pushes invoicing result information into Kafka. And the bill management module consumes the messages in the Kafka to obtain the bill settlement result information and the invoice issuing result information.
The charging method and the charging device provided by the invention provide uniform information management of clients, contracts and related products, and are convenient for management personnel to operate and maintain; the product service condition statistical function is provided, and the display of the product service information under multiple granularities and the report statistical analysis function are realized. And formulating a uniform interface service charging type and a corresponding charge calculation rule. The automatic charging function with the accounting period as the charging unit is provided, and the labor operation cost is greatly reduced. A complete bill management system is provided, which comprises functions of settlement state, invoice state tracking and the like. The bill pushing function is provided, the checking of the bill information by the service management personnel and the client is facilitated, and the labor cost is reduced.
Fig. 11 shows an exemplary system architecture 1100 to which the charging method or charging apparatus of an embodiment of the present invention may be applied.
As shown in fig. 11, the system architecture 1100 may include terminal devices 1101, 1102, 1103, a network 1104, and a server 1105. The network 1104 is a medium to provide communication links between the terminal devices 1101, 1102, 1103 and the server 1105. Network 1104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 1101, 1102, 1103 to interact with a server 1105 over a network 1104 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 1101, 1102, 1103.
The terminal devices 1101, 1102, 1103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 1105 may be a server that provides various services, such as a server that provides billing services.
It should be noted that the charging method provided by the embodiment of the present invention is generally executed by the server 1105, and accordingly, the charging apparatus is generally disposed in the server 1105.
It should be understood that the number of terminal devices, networks, and servers in fig. 11 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 12, shown is a block diagram of a computer system 1200 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 12, the computer system 1200 includes a Central Processing Unit (CPU)1201, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1202 or a program loaded from a storage section 1208 into a Random Access Memory (RAM) 1203. In the RAM1203, various programs and data necessary for the operation of the system 1200 are also stored. The CPU1201, ROM1202, and RAM1203 are connected to each other by a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204.
The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output portion 1207 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 1208 including a hard disk and the like; and a communication section 1209 including a network interface card such as a LAN card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. A driver 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 1210 as necessary, so that a computer program read out therefrom is mounted into the storage section 1208 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1209, and/or installed from the removable medium 1211. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 1201.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a billing module, a billing management module, a product module, a customer management module, and a service management module. The names of these modules do not form a limitation to the module itself in some cases, and for example, the charging module may also be described as a "module that obtains information of all charging objects".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
acquiring the information of all charging objects, and respectively executing the following steps for each charging object:
acquiring usage records of all products corresponding to the current charging object in a first time period and charging standard information of all products corresponding to the current charging object;
and generating bill information of the current charging object in the first time period according to the information of the current charging object, the use records of all products corresponding to the current charging object and the charging standard information.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A charging method, comprising:
acquiring the information of all charging objects, and respectively executing the following steps for each charging object:
acquiring usage records of all products corresponding to the current charging object in a first time period and charging standard information of all products corresponding to the current charging object; the product serves as an interface; the usage record of the product in the first time period comprises the total number of calling interfaces, calling time, calling results and calling duration of the interface service; the charging standard information of the product comprises an interface service charging type;
generating bill information of the current charging object in the first time period according to the information of the current charging object, the use records of all products corresponding to the current charging object and the charging standard information;
acquiring all bill information of the specified charging object in the second time period to generate a statement bill of the specified charging object in the second time period, wherein the statement bill comprises: a settlement status and an invoicing status; the account checking list is sent to a settlement module, and the settlement module completes related business logic verification work and performs settlement; after receiving a settlement result sent back by the settlement module, updating the settlement state; after the settlement is finished, the statement and the settlement result are sent to an invoicing module, and the invoicing module finishes the logic check work of the related business and performs the invoicing work; after receiving the billing result sent back by the billing module, updating the billing state;
inquiring customer information and a usage record of a corresponding product to obtain associated information of the customer information and the usage record of the corresponding product, and generating a report of the associated information of the customer information and the usage record of the corresponding product for display, wherein the customer information comprises one or more of the following information in combination: the customer basic information, the product use contract information of the customer and the usable product information agreed by the product use contract.
2. The method of claim 1, further comprising:
recording the use information of the user of the charging object on the product to generate a use record of the specified product;
the basic information of the client, the product use contract information of the client and the available product information agreed by the product use contract are recorded.
3. The method of claim 1, further comprising:
recording a usable product list of a user of a charging object into a first storage module;
before a user of a charging object uses a specified product, reading a usable product list of the charging object from a first storage module, judging whether the usable product list comprises the specified product, if so, allowing the user to use the specified product, otherwise, not allowing the user to use the specified product.
4. A charging apparatus, comprising:
the charging module is used for acquiring the information of all charging objects and respectively executing the following steps for each charging object:
acquiring usage records of all products corresponding to the current charging object in a first time period and charging standard information of all products corresponding to the current charging object; the product serves as an interface; the usage record of the product in the first time period comprises the total number of calling interfaces, calling time, calling results and calling duration of the interface service; the charging standard information of the product comprises an interface service charging type;
generating bill information of the current charging object in the first time period according to the information of the current charging object, the use records of all products corresponding to the current charging object and the charging standard information;
the bill management module is used for acquiring all bill information of the specified charging object in the second time period to generate a statement bill of the specified charging object in the second time period, and the statement bill comprises: a settlement status and an invoicing status; the account checking list is sent to a settlement module, and the settlement module completes related business logic verification work and performs settlement; after receiving a settlement result sent back by the settlement module, updating the settlement state; after the settlement is finished, the statement and the settlement result are sent to an invoicing module, and the invoicing module finishes the logic check work of the related business and performs the invoicing work; after receiving the billing result sent back by the billing module, updating the billing state;
the business management module is used for inquiring the customer information and the use record of the corresponding product to obtain the associated information of the customer information and the use record of the corresponding product, and generating a report of the associated information of the customer information and the use record of the corresponding product for display, wherein the customer information comprises one or more of the following information: the customer basic information, the product use contract information of the customer and the usable product information agreed by the product use contract.
5. The apparatus of claim 4, further comprising:
the product module is used for recording the use information of the user of the charging object on the product so as to generate the use record of the specified product;
the client management module is used for recording the basic information of the client, the product use contract information of the client and the usable product information agreed by the product use contract.
6. The apparatus of claim 4,
the client management module is also used for recording the usable product list of the user of the charging object into the first storage module;
the product module is also used for reading the usable product list of the charging object from the first storage module before the user of the charging object uses the designated product, judging whether the usable product list comprises the designated product, if so, allowing the user to use the designated product, otherwise, not allowing the user to use the designated product.
7. A charging electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-3.
8. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810425537.0A CN108805632B (en) | 2018-05-07 | 2018-05-07 | Charging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810425537.0A CN108805632B (en) | 2018-05-07 | 2018-05-07 | Charging method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108805632A CN108805632A (en) | 2018-11-13 |
CN108805632B true CN108805632B (en) | 2022-03-04 |
Family
ID=64091060
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810425537.0A Active CN108805632B (en) | 2018-05-07 | 2018-05-07 | Charging method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108805632B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109787781A (en) * | 2018-12-17 | 2019-05-21 | 深圳壹账通智能科技有限公司 | Online charging method, apparatus, computer equipment and storage medium |
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 |
CN110134346A (en) * | 2019-04-15 | 2019-08-16 | 杭州瑾信科技有限公司 | The method and device of automatically generated data report |
CN111198816B (en) * | 2019-12-26 | 2024-08-23 | 中国平安人寿保险股份有限公司 | Method and equipment for identifying abnormal algorithm |
CN111309758B (en) * | 2020-01-19 | 2024-02-13 | 北京金堤科技有限公司 | Charging data verification comparison method and device |
CN114189461A (en) * | 2020-09-11 | 2022-03-15 | 北京金山云网络技术有限公司 | Bandwidth bill generation method and device, electronic equipment and medium |
CN113129123A (en) * | 2021-05-12 | 2021-07-16 | 上海递道信息技术有限公司 | Express logistics settlement method and system |
CN114581069A (en) * | 2022-03-03 | 2022-06-03 | 百融至信(北京)征信有限公司 | Minimum bill amount charging method and system based on API call amount |
CN114612091A (en) * | 2022-03-17 | 2022-06-10 | 北京市商汤科技开发有限公司 | Automatic account checking method and device, electronic equipment and storage medium |
CN115718762A (en) * | 2022-11-18 | 2023-02-28 | 北京字跳网络技术有限公司 | Fee calculation method, device, electronic equipment, storage medium and product |
CN116192542B (en) * | 2022-12-06 | 2024-06-04 | 中国联合网络通信集团有限公司 | Charging method and device for data traffic and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7318550B2 (en) * | 2004-07-01 | 2008-01-15 | American Express Travel Related Services Company, Inc. | Biometric safeguard method for use with a smartcard |
CN101887553A (en) * | 2010-08-12 | 2010-11-17 | 深圳市五巨科技有限公司 | Automatic data settlement processing method and system |
CN106339933A (en) * | 2016-08-24 | 2017-01-18 | 明算科技(北京)股份有限公司 | Accounting document generating method and accounting document generating system |
CN107301595A (en) * | 2017-07-12 | 2017-10-27 | 百望电子发票数据服务有限公司 | A kind of electronic invoice account checking method and system |
-
2018
- 2018-05-07 CN CN201810425537.0A patent/CN108805632B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108805632A (en) | 2018-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108805632B (en) | Charging method and device | |
CN113362025B (en) | Data accounting system, method, computer-readable storage medium, and electronic device | |
CN113205402A (en) | Account checking method and device, electronic equipment and computer readable medium | |
CN113806400A (en) | Financial data processing method and device, storage medium and electronic equipment | |
CN112258306B (en) | Account information checking method, device, electronic equipment and storage medium | |
CN111327514A (en) | WeChat image-text message group sending method, system, server and storage medium | |
CN111861745A (en) | Service wind control method and device | |
CN113159859B (en) | Expense adjustment method and device | |
CN113393219A (en) | Logistics service data processing method and device, electronic equipment and storage medium | |
CN113627922B (en) | Logistics data processing method and device, storage medium and electronic equipment | |
CN111127224B (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN113379523A (en) | Bill generation method, device, medium and electronic equipment | |
CN111429135A (en) | Case management method, system and storage medium based on charge notice | |
CN114997977B (en) | Data processing method, device, electronic equipment and computer readable medium | |
CN112990991A (en) | Method and device for merging invoices | |
CN115277271A (en) | Charging management method of hybrid cloud under micro-service architecture | |
CN112181817B (en) | Test method and test device for SOA architecture platform | |
CN113496321B (en) | Method and device for determining workload | |
US10015322B2 (en) | Creating rating requests for groups of consumption items | |
CN114239519A (en) | Credit investigation data processing method and device, electronic equipment and computer readable medium | |
US20060143125A1 (en) | Method and system for electronic billing and reconciliation | |
CN113139785A (en) | Tender agent business process management method and device | |
CN113450231A (en) | Processing method and device for social security payment service | |
CN113485902A (en) | Method, device, equipment and computer readable medium for testing service platform | |
CN114612172A (en) | Virtual asset increment calculation method and device, storage medium and electronic equipment |
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 |