CN104219064B - charging method and device - Google Patents
charging method and device Download PDFInfo
- Publication number
- CN104219064B CN104219064B CN201310210002.9A CN201310210002A CN104219064B CN 104219064 B CN104219064 B CN 104219064B CN 201310210002 A CN201310210002 A CN 201310210002A CN 104219064 B CN104219064 B CN 104219064B
- Authority
- CN
- China
- Prior art keywords
- result
- period
- state
- accounting
- account
- 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
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000003111 delayed effect Effects 0.000 claims description 31
- 230000014759 maintenance of location Effects 0.000 claims description 7
- 238000004891 communication Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 7
- 238000006243 chemical reaction Methods 0.000 description 5
- 206010027336 Menstruation delayed Diseases 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
A kind of charging method of present invention offer and device, are related to field of communication technology, the problem of solving since the step of carrying out revision by hand to a large amount of enterprises is relatively complicated, cause to increase the complexity that bill clearance operates.The method of the present invention can specifically include:After the account phase expires, operation of entering an item of expenditure in the accounts is carried out, first is obtained and enters an item of expenditure in the accounts result;Obtain second enter an item of expenditure in the accounts as a result, to first enter an item of expenditure in the accounts result and second enter an item of expenditure in the accounts result carry out reconciliation operation;Judge whether the result of reconciliation operation meets preset requirement;If the result of reconciliation operation is unsatisfactory for preset requirement, the reconciliation phase executes rollback operation, and the charging event in the reconciliation phase is handled again, and re-starts operation of entering an item of expenditure in the accounts;Result and second to operation of entering an item of expenditure in the accounts again enter an item of expenditure in the accounts result carry out reconciliation operation, until reconciliation operation result meet preset requirement.Present invention can apply to based in the account period management between enterprise.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a charging method and apparatus.
Background
The concept of white Bi l line (also sometimes referred to as settlement System or PRM (Partner relationship management) System) in BSS (Business reporting System) domain relative to Retail Billing System in the traditional sense is to help telecommunication operators manage Partner, and to realize client revenue sharing by agreement between operators and Partner. Among them, the wheelesale Billing system is a service relationship between an operator (i.e., an enterprise) and an enterprise (i.e., Partner), and the Retail Billing system is a service relationship between an operator (i.e., an enterprise) and a Customer (i.e., Customer).
For Wholescale Billing, the Billing period refers to the period for generating a bill for payment agreed between the operator and Partner. In general, the billing period may be a natural month (for example, the starting time is 00:00:00 of the number l of each month, and the ending time is 23:59:59 of the last day of each month), or may be flexibly set.
In the wheelesale Billing system, an operator manages the accounting period of an enterprise, and after the accounting period expires, a method of bill clearing operation may include:
after entering an account period designated by an enterprise, setting the state of the account period to be an open state, acquiring a charging event of the enterprise from an MSC (Mobile Switching Center) by a WholeslaBilling system, and performing standardized processing and pricing operation on the acquired charging event; when the accounting period expires and after a specified time is delayed (within a time period of the specified time, the wheatage Billing system continues to collect the charging event of the enterprise in the current accounting period), setting the accounting period state to be a closed state, and the wheatage Billing system performs an accounting operation on the collected charging event to obtain a first accounting result and performs an accounting operation with a second accounting result sent by the BSS system of the enterprise (namely, the first accounting result and the second accounting result are compared at the same rate) to obtain an accounting result; if the reconciliation result meets the condition, the Wholescale Billing system performs bill clearing operation according to the first accounting result and completes bill payment clearing operation; and if the reconciliation result does not meet the condition, the operation and maintenance personnel are required to manually revise the first accounting result until the reconciliation result meets the condition, and then bill clearing operation and the like are carried out.
Generally, operations such as account period management and bill clearing can be simplified by batch operations.
Based on the requirement of batch operation, the account period can be reused, that is, the account periods of a plurality of enterprises can be the same, so that the accounting operation can be simultaneously carried out on the enterprises when the same account period expires. However, on the premise, if the reconciliation result of some enterprises does not meet the preset condition, the bills of the enterprises need to be manually revised. The manual bill revision operation is complicated, which not only affects the bill clearing efficiency, but also ensures the accuracy.
Disclosure of Invention
After the scheme is adopted, under the condition that the account period is reused and account checking results of part of enterprises do not meet the preset condition, the enterprises with the account checking results not meeting the preset condition can be subjected to the account checking operation again until the account checking results of the enterprises meet the preset condition.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a charging method is provided, including:
after the accounting period is expired, performing an accounting operation to obtain a first accounting result;
acquiring a second expenditure presentation result, and performing expenditure presentation operation on the first expenditure presentation result and the second expenditure presentation result;
judging whether the result of the account checking operation meets a preset requirement or not;
if the result of the account checking operation does not meet the preset requirement, executing a rollback operation on the account period, processing the charging event in the account period again, and performing an account discharge operation again;
and performing reconciliation operation on the result of the reimbursement operation and the second reimbursement result until the result of the reconciliation operation meets the preset requirement.
In a first possible implementation, at least three billing period states are set for the billing period: open state, hold retention state and closed off state;
and before the accounting period expires, setting the accounting period state as the open state.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, after the accounting period expires and an accounting operation is performed, the method further includes:
and changing the accounting period state into a holding state, and storing the delayed charging event in the accounting period.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, when the accounting period state is a holding state, if the result of the reconciliation operation does not meet the preset requirement, the method further includes:
and switching the accounting period state from the holding state to the opening state.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the performing charging processing on the charging event in the billing period again includes:
and processing the delayed charging event in the stored account period.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the performing charging processing on the charging event in the billing period again further includes:
and re-rating the specified charging event in the accounting period according to the reset tariff.
With reference to any one of the first possible implementation manner to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, if the result of the reconciliation operation meets the preset result, the method further includes:
and switching the accounting period state from the holding state to the closed state.
In a second aspect, a charging apparatus is provided, including:
the first charge-off unit is used for carrying out charge-off operation after the charge-off period is expired to obtain a first charge-off result;
the first reconciliation unit is used for acquiring a second expenditure result and performing reconciliation operation on the first expenditure result and the second expenditure result;
the judging unit is used for judging whether the result of the account checking operation meets a preset requirement or not;
the second charge-off unit is used for executing a rollback operation on the account period, processing the charging event in the account period again and performing charge-off operation again if the result of the account checking operation does not meet the preset requirement;
and the second reconciliation unit is used for performing reconciliation operation on the result of the reimbursement operation and the second reimbursement result until the result of the reconciliation operation meets the preset requirement.
In a first possible implementation, the charging apparatus further includes:
the account period setting unit is used for setting at least three account period states for the account period: open state, hold retention state and closed off state; and before the accounting period expires, setting the accounting period state as the open state.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the accounting period setting unit is further configured to change the accounting period state to a holding state after the accounting period expires and an accounting operation is performed;
the device further comprises:
and the storage unit is used for storing the delayed charging event in the accounting period after the accounting period setting unit changes the accounting period state into the holding state.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the accounting period setting unit is further configured to, when the accounting period state is a holding state, switch the accounting period state from the holding state to the opening state if a result of the reconciliation operation does not meet the preset requirement.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the second charge-off unit is specifically configured to process a delayed charging event within the stored charging period.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner, the second charge-off unit is specifically configured to re-rate the specified charging event in the billing period according to a re-set tariff.
With reference to any one of the first possible implementation manner to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, the accounting period setting unit is further configured to switch the accounting period state from the holding state to the closed state if the result of the reconciliation operation satisfies the preset result.
After the charging method and the charging device provided by the embodiment of the invention are adopted, if the account checking result does not meet the preset requirement, the charging event can be continuously subjected to the account discharge operation, the account checking operation and the like according to the preset requirement until the account checking result meets the preset condition. Therefore, when the account period is reused and account checking results of part of enterprises do not meet the preset conditions, the enterprises with the account checking results not meeting the preset conditions can be subjected to the account checking operation again until the account checking results of the enterprises meet the preset conditions, and compared with the mode of manually revising the account checking results, the method has the advantages that the steps are simple, the complexity is reduced, and the performance of the system is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a system architecture applied in the present embodiment;
fig. 2 is a flowchart of a charging method provided in this embodiment;
fig. 3 is a flowchart of another charging method provided in this embodiment;
FIG. 4 is a schematic diagram of a billing period setting mode;
FIG. 5 is a flowchart illustrating the charging method shown in FIG. 4;
fig. 6 is a schematic structural diagram of a charging apparatus provided in this embodiment;
fig. 7 is a schematic structural diagram of another charging apparatus provided in this embodiment;
fig. 8 is a schematic structural diagram of another charging apparatus provided in this embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the following embodiments more clear, a brief description of the system scenario in which the embodiments are applied is first provided.
As shown in fig. 1, in an account period, batch operations, such as an account-out operation, an account-checking operation, and the like, may be performed on a plurality of enterprises (enterprises 1 to n) at the same time, and the account period status corresponding to each enterprise may be independent, that is, the account period status of each enterprise may be the same or different, and corresponding operations may be performed on the enterprises according to the corresponding account period status.
In order to solve the problems in the background art, the present embodiment provides a charging method, where an execution subject of the method may be, but is not limited to, a charging apparatus, as shown in fig. 2, and may include:
201. and after the accounting period is expired, performing an accounting operation to obtain a first accounting result.
The method comprises the steps of providing charging service for an enterprise, collecting charging events of the enterprise to be charged in an account period, and then performing charge-off operation according to the obtained charging events to obtain a first charge-off result. The first charge-out result may include a bill of charge of the enterprise, and the like.
202. And acquiring a second expenditure presentation result, and performing expenditure presentation operation on the first expenditure presentation result and the second expenditure presentation result.
As an implementation manner of this embodiment, in order to improve the accuracy of the charging result, the enterprise side may also perform an accounting operation according to the charging event in the accounting period to obtain a second accounting result; then, the charging device can obtain a second expenditure presentation result from the enterprise side; and carrying out account checking operation on the first account-out result and the second account-out result.
The reconciliation operation on the first and second accounting results may include: and comparing whether the corresponding contents in the first and second charge-out results are the same.
203. And judging whether the reconciliation result meets the preset requirement or not.
204. And if the result of the account checking operation does not meet the preset requirement, executing a rollback operation in the account checking period, processing the charging event in the account checking period again, and performing an account discharge operation again.
205. And carrying out account checking operation on the result of the re-account checking operation and the second account checking result until the result of the account checking operation meets the preset requirement.
As an implementation manner of this embodiment, after a charging event in an accounting period is acquired, the charging event may be processed first, and then an accounting operation may be performed on the processed charging event. Because the situation that the account checking result does not meet the preset requirement due to the fact that the charging event is processed incorrectly before the account is paid out may occur, if the result of the account checking operation does not meet the preset requirement, the rollback operation may be executed on the account period, the charging event in the account period may be processed again, and the account is paid out again.
After the scheme is adopted, if the account checking result does not meet the preset requirement, the account-out operation, the account checking operation and the like can be continuously carried out on the charging event according to the preset requirement until the account checking result meets the preset condition. Therefore, when the account period is reused and account checking results of part of enterprises do not meet the preset conditions, the enterprises with the account checking results not meeting the preset conditions can be subjected to the account checking operation again until the account checking results of the enterprises meet the preset conditions, and compared with the mode of manually revising the account checking results, the method has the advantages that the steps are simple, the complexity is reduced, and the performance of the system is improved.
This embodiment provides another charging method, which is a detailed description of specific implementation of each step in the method shown in fig. 2, and is also directed to further limiting some of the steps, and at the same time, is also directed to an extension of the implementation steps of the method.
In addition, in this embodiment, at least three accounting period states may also be set for the accounting period: as shown in fig. 3, the opening state, the holding state, and the closed state may specifically include:
301. before the accounting period expires, the charging device obtains the charging event of the enterprise to be charged in the accounting period from the MSC.
Further, before the accounting period expires, the accounting period status may be set to the open status.
The charging service is provided for the enterprise to be charged, the charging event of the enterprise to be charged in the account period can be collected firstly, and then the charge-off operation is carried out according to the obtained charging event to obtain a first charge-off result. The first charge-out result may include a bill of charge of the enterprise, and the like.
As an implementation manner of this embodiment, the charging device may store identifiers of a plurality of enterprises to be charged, and obtain corresponding charging events according to the identifiers.
For example, if the current account period is 23:59:59 of 1 month and 1 day, namely 00:00:00 of 1 month and 1 day and 31 day, the charging device acquires the charging event in the current account period from the MSC (if the charging event of 2 months is collected, the charging event is merged into 2 months to be processed in the corresponding account period, and the charging event can be classified into the charging event of 2 months, and the acquired charging event is the charging event corresponding to the identifier of the enterprise to be acquired.
In this embodiment, the method for obtaining the charging event from the MSC is not limited, and may be set according to actual needs, which is not described herein again.
It should be noted that the accounting period in this embodiment is an accounting period specified by an enterprise to be charged, and the accounting period may be flexibly set according to the requirement of the enterprise.
As shown in fig. 1, there are various ways of setting the accounting period, the accounting period of the upper word in the figure is a natural month accounting period (from 1 day per month to the last day of the month), and the accounting period of the lower word is an accounting period starting from 15 days per month. The accounting period marks shown in fig. 1 are all cycle times using 1 month as the accounting period, and the cycle time of the actual accounting period can be flexibly set, for example, the month accounting period, the year accounting period, the cycle accounting period, and the like.
The setting mode of the account period in this embodiment is not limited, and can be set according to actual needs, which is not described herein again.
Further, after the charging device obtains the charging event, the charging event may be processed first, which may include but is not limited to: event standardization processing and event pricing operation; and then, performing charge-off operation according to the processed charging event.
Specifically, the standardized processing may include converting the format of the charging event into a suitable format, unifying the formats of the charging events into the same format, and may simplify the step of charging the charging event, and the method of converting the format of the charging event is a technique well known to those skilled in the art, and may be set according to actual needs, which is not described herein again.
Rating operations may include, but are not limited to: and calculating the price of the charging event according to the corresponding charging rule, and the like.
For example, the charging device stores a corresponding service and a corresponding price correspondence information table, and if a certain charging event is an internet access service executed by an enterprise for five hours, a price corresponding to the internet access service can be obtained from the stored correspondence information table, and if the price of the internet access service is 2 yuan/hour, the corresponding price of the charging event is 10 yuan.
The pricing operation provided in this embodiment is not limited to the above-mentioned example, and may also be in other cases, and may be set according to actual needs, which is not described herein again.
302. And after the accounting period is expired, performing an accounting operation to obtain a first accounting result.
Further, after the accounting period expires and the accounting operation is performed, the accounting period state may be changed to a holding state, and a delayed charging event in the accounting period may be stored.
Fig. 4 is a schematic diagram of a switching relationship between an opening state, a holding state, and a closed state, that is, the opening state and the holding state may be switched to each other, but between the holding state and the closed state, only the holding state may be switched to the closed state, and the closed state may not be switched to the holding state.
In order to more clearly understand the present embodiment, as shown in fig. 5, a data interaction diagram of the charging method provided by the present embodiment is provided.
Furthermore, in order to collect the charging event in the accounting period more completely and further make the accounting result more accurate, the accounting can be delayed for a period of time after the accounting period expires, in the delayed period of time, the charging device can continue to acquire the charging event of the enterprise to be charged in the accounting period, and if the charging event in the non-accounting period is acquired in the delayed period of time, the charging event in the non-accounting period is merged into the next accounting period for processing.
The length of the delay time period is not limited in this embodiment, and may be set according to actual needs, which is not described herein again.
In order to ensure that the charging event in the current account period is not omitted to be processed, in a holding state, the charging device can also acquire and store other delay charging events except the acquired charging event in the current account period of the enterprise, and if the delay charging event in the non-account period is acquired at the moment, the event is classified into the corresponding account period, for example, planned into the next account period.
303. And the charging device receives a second charge-out result sent by the BSS of the enterprise to be charged.
As an implementation manner of this embodiment, the BSS of the enterprise to be billed also performs a billing operation according to the billing event in the billing period, so as to obtain a second billing result.
The method for the BSS of the enterprise to be billed to perform the charge-off operation according to the charging event in the billing period in this embodiment is not particularly limited, is a technique well known to those skilled in the art, and can be set according to actual needs, and is not described herein again.
304. And carrying out account checking operation on the first account-out result and the second account-out result to obtain an account checking result.
As an implementation manner of this embodiment, performing the reconciliation operation on the first and second accounting results may include, but is not limited to:
and comparing whether the data in the first and second expenditure results are the same or not, and in addition, calculating the accuracy of the first and second expenditure results.
305. And judging whether the reconciliation result meets a preset requirement, if so, executing step 308, and if not, executing step 306.
As an implementation manner of this embodiment, the determining whether the reconciliation result meets the preset requirement may include, but is not limited to:
and judging whether the same data volume between the first expenditure presentation result and the second expenditure presentation result is larger than a preset data volume or not, and in addition, judging whether the accuracy of the data in the first expenditure presentation result and the second expenditure presentation result is larger than a preset probability or not.
If the same data volume is larger than the preset data volume and the accuracy is larger than the preset probability, the reconciliation result meets the preset requirement, and if the same data volume is not larger than the preset data volume and/or the accuracy is not larger than the preset probability, the reconciliation result does not meet the preset requirement.
For example, the first and second accounting results both include amounts of money to be paid by the enterprise to be billed to execute the services 1 to 9, and the billing device may compare the amounts of money of the services corresponding to the first and second accounting results one by one, determine whether a difference between the amounts of money of the services corresponding to the different accounting results satisfies a requirement (i.e., whether a preset value or the same value is determined), and then determine whether a probability that the services 1 to 9 are the same or satisfy the preset requirement is greater than a preset probability. The preset requirement may include a preset value, etc.
In addition, the charging device may further determine whether the charge-out result is correct according to a preset requirement, which may include, but is not limited to, determining that the rating of the charging event is correct enough, and the like. The preset requirements may include a service and corresponding price corresponding relation information table and the like; the charging device may further determine whether format conversion is correct for the charging event according to a preset requirement, where the preset requirement may include format conversion and the like.
Whether the reconciliation result meets the preset requirement or not is not limited by the embodiment, and can be set according to actual needs, which is not described herein again.
306. And executing a rollback operation in the account checking period, deleting the first account-out result, processing the charging event in the account checking period again, and performing the account-out operation again.
Further, when the account period executes the rollback operation, the account period state is switched from the holding state to the opening state.
The following is a brief description of the steps for processing the charging event in the reconciliation period under different situations.
When the charging event is processed, some errors may occur to cause an error in the account-out result, and further may cause the account-checking result not to meet the preset requirement, for example, the format conversion of the charging event is incorrect, or the rating of the charging event is incorrect, etc.
Therefore, after the rollback operation is performed in the reconciliation period, the specified charging event in the reconciliation period can be processed again, and the specified charging event can include but is not limited to: and processing at least one of wrong charging event and delay event.
As an implementation manner of this embodiment, the obtaining of the specified charging event may include, but is not limited to:
and inquiring the obtained billing events with wrong rating or wrong format conversion in the billing events in the accounting period, and determining the events with wrong processing as the specified billing events.
Specifically, if the reconciliation result does not meet the preset requirement and the delayed charging event is obtained in the holding state, the processing of the specified charging event in the reconciliation period again may include at least one of the following: and carrying out rating again on the specified charging event in the reconciliation period according to the reset tariff, and carrying out format conversion again on the specified charging event in the reconciliation period according to the reset format.
Specifically, under different scenarios, the step of processing the specified charging event in the reconciliation period again may specifically include:
if the account checking result does not meet the preset requirement and the delayed charging event is obtained in the holding state, processing the obtained charging event and the delayed charging event according to the preset requirement, wherein the obtained charging event and the delayed charging event are designated charging events, and the obtained charging event is a charging event in the account period; or,
and processing the delayed charging event according to a preset requirement, wherein the delayed charging event is a specified charging event.
And if the reconciliation result does not meet the preset requirement and the delayed charging event is not acquired in the holding state, processing the acquired charging event again according to the preset requirement, wherein the acquired charging event is the specified charging event.
After the charging event in the reimbursement period is processed, the reissued charging event can be reissued.
The following is a brief description of the steps for re-performing the charge-out operation in a specific case.
If the reconciliation result does not meet the preset requirement and the delayed charging event is obtained in the holding state, the reimbursement operation can be as follows:
and re-performing the charge-out operation on at least one event of the acquired charging event and the delay charging event according to the preset requirement.
307. And carrying out account checking operation on the result of the re-account checking operation and the second account checking result until the result of the account checking operation meets the preset requirement.
It should be noted that, if the reconciliation result meets the preset requirement, step 308 is executed, and if the reconciliation result does not meet the preset requirement, step 306 is executed.
As an implementation manner of this embodiment, after a charging event in an accounting period is acquired, the charging event may be processed first, and then an accounting operation may be performed on the processed charging event. Because the situation that the account checking result does not meet the preset requirement due to the fact that the charging event is processed incorrectly before the account checking can occur, if the result of the account checking operation does not meet the preset requirement, the rollback operation can be executed on the account checking period, the first account checking result is deleted, the charging event in the account checking period is processed again, and the account checking operation is performed again.
308. The billing device performs a bill clearing operation, and an enterprise to be billed can check the bill through a Graphical User Interface (GUI) in the billing device.
Further, if the result of the reconciliation operation satisfies the preset result, the accounting state can be switched from the holding state to the closed state.
As an implementation manner of this embodiment, the charging apparatus may generate a bill of the enterprise to be charged according to the posting result with the correct posting result, so that the enterprise can view the bill.
The method of the bill clearing operation is not limited in this embodiment, and may be set according to actual needs, which is not described herein again.
After the scheme is adopted, when the account checking result of the enterprise to be charged does not meet the preset requirement, the account period state can be switched back to the open state from the hold state, so that the charging device can process the charging event again, and the account check operation can be performed again after the account checking result is switched to the hold state, so that the enterprise of which the account checking result does not meet the preset condition can be subjected to the account check operation again under the condition that the account checking period is reused and the account checking result of part of the enterprise does not meet the preset condition until the account checking result of the enterprise meets the preset condition, compared with the mode of manually revising the account checking result, the steps are simpler, the complexity is reduced, and the batch operation is easier to realize; in addition, in a holding state, delayed charging events of an enterprise to be charged in an account period can be continuously acquired, when an account checking result meets a preset requirement and account-out operation is performed again, the delayed charging events can be classified into the account period to be processed in time, so that the charging events in the account period can be more completely acquired, and the problems that the account-out result is wrong and a queue length result does not meet the preset requirement due to omission of the charging events in the account period can be further avoided.
In the following, some embodiments of the apparatus are provided for performing the charging method mentioned in the previous embodiments.
The present embodiment provides a charging apparatus, as shown in fig. 6, which may include:
the first charge-off unit 61 is configured to perform charge-off operation after the charge-off period expires, so as to obtain a first charge-off result;
the first reconciliation unit 62 is configured to obtain a second accounting result 61, and perform reconciliation operation on the first accounting result and the second accounting result;
a judging unit 63, configured to judge whether a result of the reconciliation operation meets a preset requirement;
a second charge-off unit 64, configured to, if the result of the reconciliation operation does not meet the preset requirement, execute a rollback operation in the reconciliation period, process the charging event in the reconciliation period again, and perform a charge-off operation again;
and the second reconciliation element 65 is configured to perform reconciliation on the result of the reimbursement operation and the second reimbursement result until the result of the reconciliation operation meets the preset requirement.
After the scheme is adopted, if the account checking result does not meet the preset requirement, the account-out operation, the account checking operation and the like can be continuously carried out on the charging event according to the preset requirement until the account checking result meets the preset condition. Therefore, when the account period is reused and account checking results of part of enterprises do not meet the preset conditions, the enterprises with the account checking results not meeting the preset conditions can be subjected to the account checking operation again until the account checking results of the enterprises meet the preset conditions, and compared with the mode of manually revising the account checking results, the method has the advantages that the steps are simple, the complexity is reduced, and the performance of the system is improved.
This embodiment provides another charging apparatus, which is a further extension of the apparatus shown in fig. 6, and as shown in fig. 7, the charging apparatus may include:
the first charge-off unit 71 is configured to perform charge-off operation after the charge-off period expires, so as to obtain a first charge-off result;
the first reconciliation unit 72 is configured to obtain a second accounting result, and perform reconciliation operation on the first accounting result and the second accounting result;
a judging unit 73, configured to judge whether a result of the reconciliation operation meets a preset requirement;
the second charge-off unit 74 is configured to, if the result of the reconciliation operation does not meet the preset requirement, execute a rollback operation on the reconciliation period, delete the first charge-off result, re-process the charging event in the reconciliation period, and re-perform the charge-off operation;
a second reconciliation unit 75, configured to perform reconciliation on the result of the reimbursement operation and the second reimbursement result until the result of the reconciliation operation meets a preset requirement
Further, the apparatus provided in this embodiment may further include:
an account period setting unit 76, configured to set at least three account period states for the account period: open state, hold retention state and closed off state; before the accounting period expires, the accounting period state is set to the open state.
Further, the accounting period setting unit 76 is further configured to change the accounting period state to a hold state after the accounting period expires and the accounting operation is performed;
the apparatus provided in this embodiment may further include:
a storage unit 77, configured to store the delayed charging event in the accounting period after the accounting period setting unit changes the accounting period state to the holding state.
Further, the accounting period setting unit 76 is further configured to switch the accounting period state from the accounting state to the opening state if the accounting operation result does not meet the preset requirement when the accounting period state is the counting state.
Further, the second charge-off unit 74 is specifically configured to process a delayed charging event within the stored charge period.
Further, the second charge-off unit 74 is specifically configured to re-batch the specified charging event in the account period according to the re-set tariff.
Further, the accounting period setting unit 76 is further configured to switch the accounting period state from the holding state to the closed state if the result of the accounting checking operation satisfies the preset result.
After the scheme is adopted, when the account checking result of the enterprise to be charged does not meet the preset requirement, the account period state can be switched back to the open state from the hold state, so that the charging device can process the charging event again, and the account check operation can be performed again after the account checking result is switched to the hold state, so that the enterprise of which the account checking result does not meet the preset condition can be subjected to the account check operation again under the condition that the account checking period is reused and the account checking result of part of the enterprise does not meet the preset condition until the account checking result of the enterprise meets the preset condition, compared with the mode of manually revising the account checking result, the steps are simpler, the complexity is reduced, and the batch operation is easier to realize; in addition, in a holding state, delayed charging events of an enterprise to be charged in an account period can be continuously acquired, when an account checking result meets a preset requirement and account-out operation is performed again, the delayed charging events can be classified into the account period to be processed in time, so that the charging events in the account period can be more completely acquired, and the problems that the account-out result is wrong and a queue length result does not meet the preset requirement due to omission of the charging events in the account period can be further avoided.
In the following, some embodiments of the physical device are provided, which correspond to the above-described corresponding embodiments of the method and the virtual device, respectively.
The present embodiment also provides a computer 1, as shown in fig. 8, where the computer 1 includes: at least one processor 15, such as a CPU (Central Processing Unit), at least one output interface 16 or other user interface 17, a memory 18, at least one communication bus 19. The communication bus 19 is used to realize connection communication between these components. The computer 1 optionally contains other user interfaces 17 including a display, a keyboard or a pointing device (e.g. a mouse, trackball, touch pad or touch screen). The memory 18 may comprise a high-speed RAM (Random access memory) and may also comprise a non-volatile memory, such as at least one disk memory. The memory 18 may optionally comprise at least one memory device located remotely from the aforementioned processor 15.
In some embodiments, memory 18 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
operating system 180, which contains various system programs for implementing various basic services and for handling hardware-based tasks.
The application 181 includes various applications for implementing various application services.
Applications 181 may include, but are not limited to:
the first charge-off unit is used for carrying out charge-off operation after the charge-off period is expired to obtain a first charge-off result;
the first reconciliation unit is used for acquiring a second expenditure result and performing reconciliation operation on the first expenditure result and the second expenditure result;
the judging unit is used for judging whether the result of the account checking operation meets the preset requirement or not;
the second charge-off unit is used for executing a rollback operation in the account checking period, processing the charging event in the account checking period again and performing charge-off operation again if the result of the account checking operation does not meet the preset requirement;
and the second reconciliation unit is used for performing reconciliation operation on the result of the reimbursement operation and the second reimbursement result until the result of the reconciliation operation meets the preset requirement.
Further, the computer 1 may further include:
the account period setting unit is used for setting at least three account period states for the account period: open state, hold retention state and closed off state; before the accounting period expires, the accounting period state is set to the open state.
Further, the accounting period setting unit is further configured to change the accounting period state to a hold state after the accounting period expires and the charge-off operation is performed;
the device still includes:
and the storage unit is used for storing the delayed charging event in the accounting period after the accounting period setting unit changes the accounting period state into the holding state.
Further, the accounting period setting unit is further configured to switch the accounting period state from the accounting state to the opening state if the accounting operation result does not meet the preset requirement when the accounting period state is the counting state.
Further, the second charge-off unit is specifically configured to process a delayed charging event within the stored charge period.
Further, the second charge-off unit is specifically configured to re-perform rating on the specified charging event in the account period according to the reset tariff.
Further, the account period setting unit is further configured to switch the account period state from the holding state to the closed state if the result of the account checking operation meets a preset result.
In an embodiment of the invention, the processor 15 is configured to, by invoking programs or instructions stored in the memory 18:
after the accounting period is expired, performing an accounting operation to obtain a first accounting result;
acquiring a second expenditure presentation result, and performing expenditure presentation operation on the first expenditure presentation result and the second expenditure presentation result;
judging whether the result of the account checking operation meets the preset requirement or not;
if the result of the account checking operation does not meet the preset requirement, executing a rollback operation in the account checking period, deleting the first account-out result, processing the charging event in the account checking period again, and performing the account-out operation again;
and carrying out account checking operation on the result of the re-account checking operation and the second account checking result until the result of the account checking operation meets the preset requirement.
Further, at least three account period states are set for the account period: open state, hold retention state and closed off state;
the processor 15 is further configured to set the accounting period status to the open status before the accounting period expires.
Further, the processor 15 is further configured to change the accounting period state to a holding state after the accounting period expires and an accounting operation is performed, and store a delayed charging event in the accounting period.
Further, the processor 15 is further configured to switch the accounting period state from the accounting state to the opening state if the result of the reconciliation operation does not meet the preset requirement when the accounting period state is the accounting state.
Further, the processor 15 is specifically configured to process a delayed charging event within the stored account period.
Further, the processor 15 is specifically configured to re-rate the specified charging event in the billing period according to the re-set tariff.
Further, the processor 15 is specifically configured to switch the accounting period state from the holding state to the closed state if the result of the reconciliation operation satisfies the preset result.
After the scheme is adopted, when the account checking result of the enterprise to be charged does not meet the preset requirement, the account period state can be switched back to the open state from the hold state, so that the charging device can process the charging event again, and the account check operation can be performed again after the account checking result is switched to the hold state, so that the enterprise of which the account checking result does not meet the preset condition can be subjected to the account check operation again under the condition that the account checking period is reused and the account checking result of part of the enterprise does not meet the preset condition until the account checking result of the enterprise meets the preset condition, compared with the mode of manually revising the account checking result, the steps are simpler, the complexity is reduced, and the batch operation is easier to realize; in addition, in a holding state, delayed charging events of an enterprise to be charged in an account period can be continuously acquired, when an account checking result meets a preset requirement and account-out operation is performed again, the delayed charging events can be classified into the account period to be processed in time, so that the charging events in the account period can be more completely acquired, and the problems that the account-out result is wrong and a queue length result does not meet the preset requirement due to omission of the charging events in the account period can be further avoided.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part of the technical solutions contributing to the prior art may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention 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 invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (12)
1. A charging method, comprising:
after the accounting period expires, delaying a designated time to perform an accounting operation, changing the accounting period state into a holding state in the designated time, and storing a delayed charging event in the accounting period to obtain a first accounting result;
acquiring a second expenditure presentation result, and performing expenditure presentation operation on the first expenditure presentation result and the second expenditure presentation result;
judging whether the result of the account checking operation meets a preset requirement or not;
if the result of the account checking operation does not meet the preset requirement, executing a rollback operation on the account period, processing the charging event in the account period again, and performing an account discharge operation again;
and performing reconciliation operation on the result of the reimbursement operation and the second reimbursement result until the result of the reconciliation operation meets the preset requirement.
2. The method of claim 1, wherein at least three billing period states are set for the billing period: open state, hold retention state and closed off state;
and before the accounting period expires, setting the accounting period state as the open state.
3. The method according to claim 2, wherein when the billing period status is a logging status, if the result of the reconciliation operation does not meet the preset requirement, the method further comprises:
and switching the accounting period state from the holding state to the opening state.
4. The method of claim 3, wherein the re-charging the charging event in the billing period comprises:
and processing the delayed charging event in the stored account period.
5. The method of claim 4, wherein the re-charging the charging event in the billing period further comprises:
and re-rating the specified charging event in the accounting period according to the reset tariff.
6. The method according to any one of claims 2-5, wherein if the result of the reconciliation operation satisfies the preset result, further comprising:
and switching the accounting period state from the holding state to the closed state.
7. A charging apparatus, comprising:
the first charge-off unit is used for delaying specified time to carry out charge-off operation after the charge-off period is expired to obtain a first charge-off result;
the first reconciliation unit is used for acquiring a second expenditure result and performing reconciliation operation on the first expenditure result and the second expenditure result;
the judging unit is used for judging whether the result of the account checking operation meets a preset requirement or not;
the second charge-off unit is used for executing a rollback operation on the account period, processing the charging event in the account period again and performing charge-off operation again if the result of the account checking operation does not meet the preset requirement;
the second reconciliation unit is used for performing reconciliation operation on the result of the reimbursement operation and the second reimbursement result until the result of the reconciliation operation meets the preset requirement;
the device further comprises: the accounting period setting unit is used for changing the accounting period state into a holding state in the specified time;
and the storage unit is used for storing the delayed charging event in the accounting period after the accounting period setting unit changes the accounting period state into the holding state.
8. The apparatus of claim 7, wherein the account period setting unit is further configured to set at least three account period states for the account period: open state, hold retention state and closed off state; and before the accounting period expires, setting the accounting period state as the open state.
9. The apparatus according to claim 8, wherein the accounting period setting unit is further configured to switch the accounting period state from the accounting state to the opening state if the result of the reconciliation operation does not meet the preset requirement when the accounting period state is the accounting state.
10. The apparatus according to claim 9, wherein the second charge-out unit is specifically configured to process a delayed charging event within the stored billing period.
11. The apparatus according to claim 10, wherein the second billing unit is further configured to re-rate the specified charging event in the billing period according to the re-set tariff.
12. The apparatus according to any one of claims 8-11, wherein the accounting period setting unit is further configured to switch the accounting period status from the holding status to the closed status if the result of the reconciliation operation satisfies the preset result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310210002.9A CN104219064B (en) | 2013-05-30 | 2013-05-30 | charging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310210002.9A CN104219064B (en) | 2013-05-30 | 2013-05-30 | charging method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104219064A CN104219064A (en) | 2014-12-17 |
CN104219064B true CN104219064B (en) | 2018-07-20 |
Family
ID=52100226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310210002.9A Active CN104219064B (en) | 2013-05-30 | 2013-05-30 | charging method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104219064B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106856496B (en) * | 2015-12-09 | 2020-04-14 | 阿里巴巴集团控股有限公司 | Data processing method and device |
CN117251120B (en) * | 2023-11-17 | 2024-03-01 | 杭州乒乓智能技术有限公司 | Accounting system optimization method, device, equipment and medium based on jvm out-of-heap memory |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231876A (en) * | 2011-06-24 | 2011-11-02 | 华为软件技术有限公司 | Compatibility test method and device of billing system |
CN102571369A (en) * | 2010-12-24 | 2012-07-11 | 普天信息技术研究院有限公司 | Method and system for realizing automatic message reconciliation with function of fault-tolerance protection |
CN103095469A (en) * | 2011-11-03 | 2013-05-08 | 中国移动通信集团甘肃有限公司 | Communication cost copayment method and device |
-
2013
- 2013-05-30 CN CN201310210002.9A patent/CN104219064B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571369A (en) * | 2010-12-24 | 2012-07-11 | 普天信息技术研究院有限公司 | Method and system for realizing automatic message reconciliation with function of fault-tolerance protection |
CN102231876A (en) * | 2011-06-24 | 2011-11-02 | 华为软件技术有限公司 | Compatibility test method and device of billing system |
CN103095469A (en) * | 2011-11-03 | 2013-05-08 | 中国移动通信集团甘肃有限公司 | Communication cost copayment method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104219064A (en) | 2014-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108805632B (en) | Charging method and device | |
US10750031B2 (en) | Tariff data determining method and apparatus for creating the same | |
US11599954B2 (en) | System and method for a revenue allocation engine for use with subscription economy | |
CN117689499B (en) | Middle-long time sharing accounting method and system for electric quantity of power grid | |
CN108023735A (en) | A kind of charging method based on dynamic resource | |
CN112258306B (en) | Account information checking method, device, electronic equipment and storage medium | |
US10944874B2 (en) | Telecommunication system for monitoring and controlling of a network providing resource to a user | |
CN104219064B (en) | charging method and device | |
WO2015049515A1 (en) | Improvements relating to distributed resource management in real-time systems | |
EP2413279B1 (en) | Account reconciliation server | |
US8660917B2 (en) | Multipoint billing quality control and certification | |
EP3104550B1 (en) | Mobile digital cellular telecommunication system with advanced functionality for rating correction | |
CN111651345A (en) | System testing method and device and electronic equipment | |
CN107919968A (en) | A kind of charging method and device | |
CN114463100A (en) | Order data processing method, device, equipment and storage medium | |
CN102136089A (en) | Group interdepartmental account checking method and system | |
EP3331196A1 (en) | Telecommunication system for monitoring and controlling of a network providing resource to a user | |
CN1322706C (en) | Method of realizing real time segmental charging | |
CN112967047A (en) | Settlement method, apparatus, device, storage medium and program product | |
CN112838932A (en) | Re-rating method and device based on volume accumulated rating and computing equipment | |
CN104424590A (en) | House-leasing contract cost calculation method based on multi-Agent collaborative technology | |
US20150227576A1 (en) | Checking the completeness and correctness of transitions in electronic data processing | |
CN114282923A (en) | Data processing method and device, electronic equipment and computer readable medium | |
JP2024510863A (en) | System and method for services via distributed ledger | |
US20210374814A1 (en) | A reconciliation system based on hybrid cloud computing platform and its reconciliation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |