Billing method, device, equipment and storage medium
By acquiring and processing billing data, we generate detailed expense data and redundant data to form a traceable billing link, which solves the problem of users being unable to obtain historical billing results and facilitates user reconciliation.
Patent Information
- Application Number
- CN202110439611.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-04-23
AI Technical Summary
The existing billing system cannot obtain historical billing results during user reconciliation, causing user reconciliation to be inconvenient.
By obtaining the preset charging data and quotation data, it is judged whether the billing result is successful for the first time, generates detailed cost data and marks the billing status. If it is not successful for the first time, generate red offset data to hedge the last billing result, and adjust the detailed cost data. Form a traceable billing link.
This enables users to know the historical billing results during the reconciliation process, which improves the convenience of reconciliation for users.
Smart Images

Figure CN113139841B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of system automatic billing, and in particular to a billing method, device, equipment and storage medium. Background Art
[0002] At present, most systems have automatic billing functions. For example, when faced with massive billing data, the express delivery industry has improved the billing speed and saved human resources through automatic billing of the system.
[0003] However, the billing system of the related art only has the functions of billing and recalculation, so that the billing system of the related art only records one billing result, resulting in that the user cannot know the historical billing results during the reconciliation process, making it inconvenient for the user to reconcile. Summary of the invention
[0004] In view of this, a billing method, device, equipment and storage medium are provided to solve the problem in the related art that users cannot know the historical billing results during the reconciliation process, making it inconvenient for users to reconcile.
[0005] The present invention adopts the following technical solution:
[0006] In a first aspect, an embodiment of the present invention provides a charging method, including:
[0007] Obtain pre-design fee data;
[0008] Obtaining quotation data corresponding to the pre-design fee data;
[0009] Determine the current billing result corresponding to the pre-design fee data according to the quotation data;
[0010] Determine whether the current billing result is a corresponding billing result in the first successful billing state, and obtain a first preset result;
[0011] When the first preset result is yes, generating a fee detail data, the fee detail data including the current billing result;
[0012] Marking the billing status corresponding to the pre-designed fee data as billing success;
[0013] When the first preset result is no, generating first redemption data, and offsetting the previous billing result corresponding to the current billing result according to the first redemption data;
[0014] Adjust the fee details data based on the current billing result;
[0015] The billing status corresponding to the pre-designed fee data is marked as billing success.
[0016] Furthermore, the charging method described in the embodiment of the present invention further includes:
[0017] When the acquisition of the quotation data corresponding to the pre-designed fee data fails, the preset number of retries is increased by 1 to obtain the target number of retries;
[0018] Determine whether the target retry number is greater than a preset retry number threshold, and obtain a second preset result;
[0019] When the second preset result is yes, marking the billing status corresponding to the pre-designed billing data as billing failure;
[0020] When the second preset result is no, the billing status corresponding to the preset fee data is maintained.
[0021] Furthermore, the charging method described in the embodiment of the present invention further includes:
[0022] The waiting time for billing corresponding to the pre-designed fee data is set based on the preset number of retries; the greater the preset number of retries, the longer the waiting time for billing corresponding to the pre-designed fee data.
[0023] Furthermore, the charging method described in the embodiment of the present invention further includes:
[0024] When the current billing result corresponding to the pre-designed fee data is determined according to the quotation data and the billing fails, obtaining the previous billing result corresponding to the current billing result;
[0025] Determine whether the billing status corresponding to the last billing result is successful billing, and obtain a third preset result;
[0026] When the third preset result is yes, generating second red-offset data, and offsetting the last charging result according to the second red-offset data;
[0027] Marking the billing status corresponding to the pre-designed fee data as billing failure;
[0028] When the third preset result is no, the billing status corresponding to the preset billing data is marked as billing failure.
[0029] Furthermore, the pre-designed billing data includes data to be billed whose calculation execution time is less than the system time and data to be re-billed whose calculation execution time is less than the system time.
[0030] Furthermore, the charging method described in the embodiment of the present invention further includes:
[0031] When the system or network abnormality time is less than the preset abnormality time threshold, the billing will be automatically re-calculated.
[0032] Furthermore, the charging method described in the embodiment of the present invention further includes:
[0033] The expense detail data is stored.
[0034] In a second aspect, an embodiment of the present invention provides a charging device, including:
[0035] A first data acquisition module is used to acquire pre-design fee data;
[0036] A second data acquisition module is used to acquire quotation data corresponding to the pre-design fee data;
[0037] A first charging module, used for determining the current charging result corresponding to the pre-designed fee data according to the quotation data;
[0038] A judgment module, used to judge whether the current billing result is a corresponding billing result under the first successful billing state, and obtain a first preset result;
[0039] A data detail module, configured to generate a piece of fee detail data when the first preset result is yes, wherein the fee detail data includes the current billing result;
[0040] A status marking module, used for marking the billing status corresponding to the pre-designed fee data as successful billing;
[0041] A redemption module, configured to generate first redemption data when the first preset result is no, and to offset the last billing result corresponding to the current billing result according to the first redemption data;
[0042] The data detail module is also used to adjust the fee detail data based on the current billing result.
[0043] In a third aspect, an embodiment of the present invention provides a device comprising: a processor, and a memory connected to the processor; the memory is used to store a computer program, and the computer program is at least used to execute the above-mentioned billing method; the processor is used to call and execute the computer program in the memory.
[0044] In a fourth aspect, an embodiment of the present invention provides a storage medium storing a computer program, wherein when the computer program is executed by a processor, each step in the above-mentioned billing method is implemented.
[0045] The present invention adopts the above technical scheme to obtain pre-designed fee data; obtain quotation data corresponding to the pre-designed fee data; determine the current billing result corresponding to the billing data according to the quotation data; judge whether the current billing result is the corresponding billing result under the first successful billing state, and obtain a first preset result; when the first preset result is yes, generate a fee detail data; mark the billing state corresponding to the pre-designed fee data as successful billing; when the first preset result is no, generate the first red flush data, and offset the last billing result corresponding to the current billing result according to the first red flush data; adjust the fee detail data based on the current billing result, and mark the billing state corresponding to the pre-designed fee data as successful billing. Based on this, the system inserts a fee detail data at the time of the first billing. When re-billing is required, the system inserts a red offset data and offsets the previous billing result corresponding to the current billing result based on the red offset data. Then, the fee detail data is adjusted based on the current billing result, so that the fee detail data includes the historical billing results and red offset adjustment records, forming a traceable billing link, so that users can know the historical billing results during the reconciliation process, making it convenient for users to reconcile. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 It is a flowchart of a billing method provided by an embodiment of the present invention.
[0048] Figure 2 This is a billing status diagram provided in an embodiment of the present application.
[0049] Figure 3 It is a flowchart of another billing method provided by an embodiment of the present invention.
[0050] Figure 4 It is a structural diagram of a billing device provided in an embodiment of the present application.
[0051] Figure 5 It is a structural schematic diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0053] Figure 1 FIG. 1 is a flow chart of a charging method provided by an embodiment of the present invention. Figure 1 As shown, the billing method of the embodiment of the present application includes:
[0054] S11. Obtaining preliminary design fee data.
[0055] The pre-designed billing data is data of a pre-defined billing state that meets the preset conditions, and specifically may include data to be billed whose calculation execution time is less than the system time and data to be re-billed whose calculation execution time is less than the system time. In detail, when there is a lot of system billing data, a large amount of billing data is in the billing queue and becomes billing data. The re-billing data is billing data that has been successfully billed but needs to be re-billed. The system time can be standard Beijing time. For example, Figure 2 This is a billing status diagram provided by an embodiment of the present application. Figure 2 As shown, the billing status of the embodiment of the present application includes: data to be improved 21, data to be billed 22, billing failure data 23, billing success data 24, data to be re-billed 25, re-billing failure data 26 and repeated charging data 27.
[0056] Among them, the data to be completed 21 becomes the data to be billed 22 by completing the parameters. When the data to be billed 22 fails to be billed due to a failure to obtain the corresponding quotation data, it becomes the billing failure data 23. The billing failure data 23 becomes the data to be billed 22 by manually or automatically updating the relevant data by the system. After the billing data is successfully billed, it becomes the billing success data 24. The billing success data can become the data to be re-billed 25 according to the manual or automatic update of the relevant data by the system. After the re-billing data 25 is successfully billed, it becomes the billing success data 24. When the data to be re-billed 25 fails to be billed due to a failure to obtain the corresponding quotation data, it becomes the re-billing failure data 26. The re-billing failure data 26 can become the data to be re-billed 25 according to the manual or automatic update of the relevant data by the system. The data to be re-billed 25 is packaged without billing and becomes the re-billing data.
[0057] The billing method of the embodiment of the present application predefines the billing status of the billing data, for example, the billing data is defined as data to be billed. When the system billing data is large, a large amount of billing data is in the queue to be billed to alleviate the billing pressure. When the system billing data is reduced to a pre-designed billing data amount, the system automatically obtains the data to be billed whose calculation execution time is less than the system time. In this way, asynchronous billing is implemented, the system billing pressure is reduced, the system is avoided from billing failures due to a large amount of billing data, and the impact of a large amount of billing data on the main business is reduced.
[0058] S12. Obtain quotation data corresponding to the pre-design fee data.
[0059] Specifically, the quotation data corresponding to the pre-design fee data can be obtained by calling the data in the quotation service module.
[0060] S13. Determine the current billing result corresponding to the pre-design fee data according to the quotation data.
[0061] S14. Determine whether the current billing result is the corresponding billing result under the first successful billing state, and obtain a first preset result.
[0062] S15. When the first preset result is yes, generate a fee detail data, the fee detail data including the current billing result.
[0063] Specifically, when the system determines the billing result for the first time, a sub-expense detail data corresponding to the billing result is generated, and the sub-expense detail data includes the billing result, the red reversal status of the billing result, and the adjustment status; the red reversal status of the billing result includes whether it is a red reversal and whether it is red reversal; a red reversal means that the previous billing result is cleared and the current billing result is determined as the final billing result; being red reversal means that the corresponding billing result is cleared. The adjustment status is whether it is adjusted. This sub-expense detail data constitutes the expense detail data.
[0064] It should be noted that each time the system determines a billing result, it will generate sub-cost detail data corresponding to the billing result, and all sub-cost detail data together constitute the cost detail data.
[0065] In a specific example, the system successfully performs billing for the first time and determines the billing result. The sub-cost details corresponding to the billing result are: whether it is a red offset (no), whether it is a red offset (no), whether it is adjusted (no), and the amount (billing result).
[0066] S16: Mark the billing status corresponding to the pre-designed billing data as billing success.
[0067] S17: When the first preset result is no, generate first redemption data, and offset the previous billing result corresponding to the current billing result according to the first redemption data.
[0068] Specifically, the embodiment of the present application adopts inserting a red-reversal data, and according to the red-reversal data, the last billing result corresponding to the current billing result is offset. The inserted red-reversal data is the negative of the last billing result.
[0069] S18. Adjust the fee details data based on the current billing result and proceed to step S16.
[0070] Specifically, firstly, the sub-expense detail data corresponding to the current billing result is generated based on the current billing result, and then the sub-expense detail data corresponding to the current billing result is inserted into the expense detail data, and the sub-expense detail data corresponding to the previous billing result is modified accordingly to obtain the adjusted expense detail data. In the adjusted expense detail data, the current billing result is used as the current final billing result.
[0071] The specific process is: first, the billing result of this time is red-cleared, and the data are: whether it is a red-cleared (yes), whether it is red-cleared (no), whether it is adjusted (yes), and the amount (the billing result of this time is negative). At the same time, the last billing data is modified to: whether it is a red-cleared (yes). Then, the billing result of this time is used as the adjustment data, and the data are: whether it is a red-cleared (no), whether it is red-cleared (no), whether it is adjusted (yes), and the amount (the billing result of this time). The adjusted fee details data includes the red-cleared adjustment records corresponding to the billing result of this time and the last billing result. The entire billing process is processed as a transaction to ensure data consistency.
[0072] The present invention adopts the above technical scheme to obtain pre-designed fee data; obtain quotation data corresponding to the pre-designed fee data; determine the current billing result corresponding to the billing data according to the quotation data; judge whether the current billing result is the corresponding billing result under the first successful billing state, and obtain a first preset result; when the first preset result is yes, generate a fee detail data; mark the billing state corresponding to the pre-designed fee data as successful billing; when the first preset result is no, generate the first red flush data, and offset the last billing result corresponding to the current billing result according to the first red flush data; adjust the fee detail data based on the current billing result, and mark the billing state corresponding to the pre-designed fee data as successful billing. Based on this, the system inserts a fee detail data at the time of the first billing. When re-billing is required, the system inserts a red offset data and offsets the previous billing result corresponding to the current billing result based on the red offset data. Then, the fee detail data is adjusted based on the current billing result, so that the fee detail data includes the historical billing results and red offset adjustment records, forming a traceable billing link, so that users can know the historical billing results during the reconciliation process, making it convenient for users to reconcile.
[0073] Preferably, the billing method in the embodiment of the present application further includes:
[0074] When obtaining the quotation data corresponding to the pre-designed fee data, if the acquisition fails, the preset number of retries is increased by 1 to obtain the target number of retries;
[0075] Determine whether the target retry count is greater than a preset retry count threshold, and obtain a second preset result;
[0076] When the second preset result is yes, the billing status corresponding to the preset billing data is marked as billing failure.
[0077] Specifically, the preset number of retries is the current number of re-billings corresponding to the target billing data. When obtaining the quotation data corresponding to the preset billing data and the acquisition fails, the preset number of retries is increased by 1. When the number of times the target billing data is re-billed exceeds the preset retry threshold, in order to reduce the system billing pressure, the target billing data will no longer be re-billed, and the billing status corresponding to the target billing data will be marked as billing failure.
[0078] Preferably, the billing method in the embodiment of the present application further includes:
[0079] The waiting time for billing corresponding to the pre-designed fee data is set based on the preset number of retries; the greater the preset number of retries, the longer the waiting time for billing corresponding to the pre-designed fee data.
[0080] In a specific example, when the target billing data fails to be billed for the first time, the corresponding waiting time for billing is set to 1 minute. Therefore, after 1 minute, the target billing data is re-billed for the first time. When the target billing data fails to be re-billed for the first time, the corresponding waiting time for billing is set to 3 minutes. After 3 minutes, the target billing data is re-billed for the second time. When the target billing data fails to be re-billed for the second time, the corresponding waiting time for billing is set to 5 minutes. Similarly, when subsequent re-billing fails, the waiting time is set to 15 minutes and 30 minutes respectively. If the target billing data still fails to be billed for the fifth time, the billing status of the target billing data is marked as billing failure, and the target billing data is no longer re-billed. In this way, the system billing success rate is improved without causing excessive billing pressure on the system.
[0081] Preferably, the billing method in the embodiment of the present application further includes:
[0082] When the current billing result corresponding to the pre-designed fee data is determined based on the quotation data and the billing fails, the previous billing result corresponding to the current billing result is obtained;
[0083] Determine whether the billing status corresponding to the last billing result is successful billing, and obtain a third preset result;
[0084] When the third preset result is yes, second red-offset data is generated, and the last charging result is offset according to the second red-offset data;
[0085] Mark the billing status corresponding to the pre-designed billing data as billing failure;
[0086] When the third preset result is no, the billing status corresponding to the preset billing data is marked as billing failure.
[0087] Preferably, the billing method in the embodiment of the present application further includes:
[0088] When the system or network abnormality time is less than the preset abnormality time threshold, automatic re-billing is performed to avoid the problem of system billing failure due to system or network abnormalities, thereby improving the system billing success rate.
[0089] Preferably, the billing method in the embodiment of the present application further includes:
[0090] Stores detailed fee data so that users can view the billing data at any time, making billing more convenient for users.
[0091] Figure 3 FIG. 1 is a flow chart of another charging method provided by an embodiment of the present invention. Figure 3 As shown, the billing method of the embodiment of the present application includes:
[0092] S31. Obtain the to-be-billed data whose calculation execution time is less than the system time.
[0093] S32: Whether the quotation data corresponding to the data to be billed is successfully obtained, if so, proceed to step S33, otherwise, proceed to step S39.
[0094] S33: Whether the current billing result corresponding to the data to be billed is determined based on the quotation data; if the billing is successful, proceed to step S34; otherwise, proceed to step S310.
[0095] S34. Determine whether the current billing result is the corresponding billing result under the first successful billing state. If so, proceed to step S35; otherwise, proceed to step S37.
[0096] S35. Generate a fee detail data, which includes the current billing result.
[0097] S36: Mark the billing status corresponding to the data to be billed as successful billing.
[0098] S37: Generate first red-offset data, and offset the last billing result corresponding to the current billing result according to the first red-offset data.
[0099] S38. Adjust the fee details data based on the current billing result and proceed to step S36.
[0100] S39. The preset number of retries corresponding to the data to be billed is increased by 1, and the corresponding waiting time for billing is set.
[0101] S310: Obtain the last billing result corresponding to the current billing result.
[0102] S311. Determine whether the billing status corresponding to the last billing result is successful billing. If so, proceed to step S312; otherwise, proceed to step S313.
[0103] S312: Generate second red-offset data, and offset the last billing result according to the second red-offset data.
[0104] S313: Mark the billing status corresponding to the data to be billed as billing failure.
[0105] The billing method of this embodiment has the same execution process and beneficial effects as the billing method of the above embodiment, which will not be described in detail here.
[0106] Figure 4 Schematic diagram of a charging device provided in an embodiment of the present application. Figure 4As shown, the billing device of the embodiment of the present application includes: a first data acquisition module 41, a second data acquisition module 42, a first billing module 43, a judgment module 44, a data detail module 45, a status marking module 46 and a red-charge module 47.
[0107] Among them, the first data acquisition module 41 is used to obtain the pre-designed fee data; the second data acquisition module 42 is used to obtain the quotation data corresponding to the pre-designed fee data; the first billing module 43 is used to determine the current billing result corresponding to the billing data based on the quotation data; the judgment module 44 is used to judge whether the current billing result is the corresponding billing result under the first successful billing state, and obtain the first preset result; the data detail module 45 is used to generate a fee detail data when the first preset result is yes; the status marking module 46 is used to mark the billing status corresponding to the pre-designed fee data as successful billing; the red flush module 47 is used to generate the first red flush data when the first preset result is no, and offset the previous billing result corresponding to the current billing result according to the first red flush data; the data detail module 45 is also used to adjust the fee detail data based on the current billing result.
[0108] The billing module in the embodiment of the present application is used to implement the billing method in the embodiment of the present application, and has the corresponding execution process and beneficial effects, which will not be repeated here.
[0109] Based on a general inventive concept, an embodiment of the present application also provides a device.
[0110] Figure 5 Schematic diagram of a device provided in an embodiment of the present application. Figure 5 As shown, the device of the embodiment of the present application includes:
[0111] A processor 510 and a memory 520 connected to the processor 510; the memory 520 is used to store a computer program, and the computer program is used to execute the billing method described in the present application; the processor 510 is used to call and execute the computer program in the memory 520.
[0112] Based on a general inventive concept, the embodiment of the present application further provides a storage medium. The storage medium of the embodiment of the present application stores a computer program, and when the computer program is executed by a processor, each step of the charging method described in the present application is implemented.
[0113] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0114] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0115] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0116] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0117] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0118] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0119] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0120] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0121] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A charging method, characterized in that: include: Obtain pre-design fee data; The pre-designed billing data includes data to be billed whose calculation execution time is less than the system time and data to be re-billed whose calculation execution time is less than the system time; the data to be billed refers to data to be billed after the parameters are completed or the billing failure data is updated manually or automatically by the system; the data to be re-billed refers to data to be re-billed after the billing success data is updated manually or automatically by the system; Obtaining quotation data corresponding to the pre-design fee data; Determine the current billing result corresponding to the pre-design fee data according to the quotation data; Determine whether the current billing result is a corresponding billing result in the first successful billing state, and obtain a first preset result; When the first preset result is yes, generating a fee detail data, the fee detail data including the current billing result; Marking the billing status corresponding to the pre-designed fee data as billing success; When the first preset result is no, generating first redemption data, and offsetting the previous billing result corresponding to the current billing result according to the first redemption data; Adjust the fee details data based on the current billing result; Marking the billing status corresponding to the pre-designed fee data as billing success; When the current billing result corresponding to the pre-designed fee data is determined according to the quotation data and the billing fails, obtaining the previous billing result corresponding to the current billing result; Determine whether the billing status corresponding to the last billing result is successful billing, and obtain a third preset result; When the third preset result is yes, generating second red-offset data, and offsetting the last charging result according to the second red-offset data; Marking the billing status corresponding to the pre-designed fee data as billing failure; When the third preset result is no, the billing status corresponding to the preset billing data is marked as billing failure.
2. The charging method according to claim 1, characterized in that: Also includes: When the acquisition of the quotation data corresponding to the pre-designed fee data fails, the preset number of retries is increased by 1 to obtain the target number of retries; Determine whether the target retry number is greater than a preset retry number threshold, and obtain a second preset result; When the second preset result is yes, the billing status corresponding to the preset billing data is marked as billing failure.
3. The charging method according to claim 2, characterized in that: Also includes: Setting the waiting time corresponding to the pre-set charging data based on the preset number of retries; The greater the preset number of retries, the longer the waiting billing time corresponding to the preset billing data.
4. The charging method according to claim 1, characterized in that: Also includes: When the system or network abnormality time is less than the preset abnormality time threshold, the billing will be automatically re-calculated.
5. The charging method according to claim 1, characterized in that: Also includes: The expense detail data is stored.
6. A charging device, characterized in that: include: A first data acquisition module is used to acquire pre-design fee data; The pre-designed billing data includes data to be billed whose calculation execution time is less than the system time and data to be re-billed whose calculation execution time is less than the system time; the data to be billed refers to data to be billed after the parameters are completed or the billing failure data is updated manually or automatically by the system; the data to be re-billed refers to data to be re-billed after the billing success data is updated manually or automatically by the system; A second data acquisition module is used to acquire quotation data corresponding to the pre-design fee data; A first charging module, used for determining the current charging result corresponding to the pre-designed fee data according to the quotation data; A judgment module, used to judge whether the current billing result is a corresponding billing result under the first successful billing state, and obtain a first preset result; A data detail module, configured to generate a piece of fee detail data when the first preset result is yes, wherein the fee detail data includes the current billing result; A status marking module, used for marking the billing status corresponding to the pre-designed fee data as successful billing; A redemption module, configured to generate first redemption data when the first preset result is no, and to offset the last billing result corresponding to the current billing result according to the first redemption data; The data detail module is further used to adjust the fee detail data based on the current billing result; The charging device is further configured to obtain a previous charging result corresponding to the current charging result when the current charging result corresponding to the pre-designed charging data is determined according to the quotation data and the charging fails; Determine whether the billing status corresponding to the last billing result is successful billing, and obtain a third preset result; When the third preset result is yes, generating second red-offset data, and offsetting the last charging result according to the second red-offset data; Marking the billing status corresponding to the pre-designed fee data as billing failure; When the third preset result is no, the billing status corresponding to the preset billing data is marked as billing failure.
7. A device, characterized in that: include: A processor, and a memory connected to the processor; The memory is used to store a computer program, and the computer program is used to execute the charging method according to any one of claims 1 to 5; The processor is used to call and execute the computer program in the memory.
8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, each step in the charging method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and system for realizing automatic message reconciliation with function of fault-tolerance protection
CN102571369A
Data preservation relevant business charging method and system
CN107563741A
Logistics charging method and system based on charging rule engine
CN110189158A
Data processing method and device and medium
CN111611305A
Parking lot charging and account dividing method and device and computer readable storage medium
CN111754643A
