CN110866742A - Bill generation method, device, server and storage medium - Google Patents

Bill generation method, device, server and storage medium Download PDF

Info

Publication number
CN110866742A
CN110866742A CN201910901521.7A CN201910901521A CN110866742A CN 110866742 A CN110866742 A CN 110866742A CN 201910901521 A CN201910901521 A CN 201910901521A CN 110866742 A CN110866742 A CN 110866742A
Authority
CN
China
Prior art keywords
flow
gear
tariff
card
periodic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910901521.7A
Other languages
Chinese (zh)
Other versions
CN110866742B (en
Inventor
彭立民
努力曼·阿布拉
周毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinghai IoT Technology Co Ltd
Original Assignee
Shenzhen Zhongjingyuan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhongjingyuan Technology Co Ltd filed Critical Shenzhen Zhongjingyuan Technology Co Ltd
Priority to CN201910901521.7A priority Critical patent/CN110866742B/en
Publication of CN110866742A publication Critical patent/CN110866742A/en
Application granted granted Critical
Publication of CN110866742B publication Critical patent/CN110866742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The present application relates to the field of bill calculation technologies, and in particular, to a bill generation method, apparatus, server, and storage medium. The bill generation method comprises the following steps: acquiring information of a plurality of flow cards, wherein the information comprises card numbers, periodic flow usage, tariff gears and flow gears corresponding to the tariff gears one by one, and the flow between the flow cards corresponding to the same flow gear can be shared; selecting the tariff gear according to the periodic flow quantity, so that the average value of the periodic flow quantity of the flow cards of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear; and generating a bill file by the information of the flow card and a bill corresponding to the tariff gear selected by the flow card. The technical scheme of the application has the advantage of generating the bill intelligence.

Description

Bill generation method, device, server and storage medium
Technical Field
The present application relates to the field of bill calculation technologies, and in particular, to a bill generation method, apparatus, server, and storage medium.
Background
When the flow cards include a plurality of flow cards, in order to perform unified management, the tariff gears of the flow cards need to be adjusted, and bills are generated according to the tariff gears of the flow cards. Has been sent to the network operator before the time required by the network operator to adjust the tariff schedule of the mass flow cards. The existing bill generation method is manual bill making. Manually generated bills have obvious defects such as easy error in calculation, long time consumption, high experience requirement, inconvenience in handover and maintenance and the like.
Therefore, how to provide an intelligent bill generation scheme is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The application provides a bill generation method, a bill generation device, a server and a storage medium, and aims to solve the technical problem that existing bill generation is not intelligent enough.
In a first aspect, the present application provides a bill generation method applied to a first server, where the bill generation method includes:
acquiring information of a plurality of flow cards, wherein the information comprises card numbers, periodic flow usage, tariff gears and flow gears corresponding to the tariff gears one by one, and the flow between the flow cards corresponding to the same flow gear can be shared;
selecting the tariff gear according to the periodic flow quantity, so that the average value of the periodic flow quantity of the flow cards of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear;
and generating a bill file by the information of the flow card and a bill corresponding to the tariff gear selected by the flow card.
Preferably, the selecting the tariff gear according to the periodic flow usage so that the preset flow threshold corresponding to the flow of which the periodic flow usage of the flow card of the same tariff gear is smaller than and closest to the tariff gear includes:
sequencing flow gears in a descending order, wherein the flow gears comprise n flow gears, n is greater than or equal to 2 and is a positive integer, and the flow of the 1 st flow gear is the largest;
sequencing the flow cards in the sequence of the periodic flow consumption from large to small as an h-th flow sequence, wherein the flow cards comprise m, m is more than or equal to n, h is more than or equal to 1 and less than or equal to n-1, and h and m are positive integers;
when the average value of the first i periodic flow use amounts in the h flow sequence is larger than a preset flow threshold corresponding to the flow of the h flow gear, calculating the average value of the first i +1 periodic flow use amounts, wherein i is a positive integer, and i is smaller than or equal to the number of flow cards of the h flow sequence;
when the average value of the first i periodic flow quantities in the h flow sequence is smaller than a preset flow threshold corresponding to the flow of the h flow gear, selecting a charge gear corresponding to the h flow gear from the flow cards corresponding to the first i periodic flow quantities;
deleting the flow card of the tariff gear corresponding to the selected h flow gear from the h flow sequence to obtain an h +1 flow sequence;
when the average value of the previous i periodic flow quantities in the h +1 flow sequence is larger than a preset flow threshold corresponding to the flow of the h +1 flow gear, calculating the average value of the previous i +1 periodic flow quantities, wherein i is a positive integer, and i is less than or equal to the number of flow cards of the h +1 flow sequence;
when the average value of the first i periodic flow quantities in the h +1 flow sequence is smaller than a preset flow threshold corresponding to the flow of the h +1 flow gear, selecting a charge gear corresponding to the h +1 flow gear from a flow card corresponding to the first i periodic flow quantities;
and deleting the flow card of the tariff gear corresponding to the h +1 th flow gear from the flow sequence to obtain the h +1+1 th flow sequence.
Preferably, the bill generation method further includes:
and sending the bill file to a second server.
Preferably, the bill generation method further includes:
after the first preset time point, calculating the average value of the periodic flow quantity of the flow card of the expense gear corresponding to the h-th flow gear every second preset time period;
and if the average value of the periodic flow quantity of the flow card of the tariff gear corresponding to the selected h-th flow gear is larger than the preset variable flow threshold corresponding to the flow of the h-th flow gear, adjusting the tariff of the flow card which causes the average value of the periodic flow quantity of the flow card of the tariff gear corresponding to the selected h-th flow gear to be larger than the preset variable flow threshold corresponding to the flow of the h-th flow gear.
Preferably, if a preset flow threshold corresponding to the flow of the h-th flow gear is a and the flow of the h-th flow gear is b, the flow is detected
a=b*c,
Wherein c is more than 0 and less than 1.
Preferably, the information further includes a traffic card status, and the bill generation method further includes:
and when the state of the flow card is inactive, deleting the flow card.
Preferably, the format of the bill file is an excel file.
In a second aspect, the present application further provides a bill generation apparatus applied to a first server, where the bill generation apparatus includes:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring information of a plurality of flow cards, the information comprises card numbers, periodic flow usage, tariff gears and flow gears corresponding to the tariff gears one to one, and the flow between the flow cards corresponding to the same flow gear can be shared;
the selection module is used for selecting the expense gear according to the periodic flow quantity, so that the periodic flow quantity of the flow card of the same expense gear is smaller than and closest to a preset flow threshold corresponding to the flow of the expense gear;
and the generating module is used for generating a bill file by the information of the flow card and a bill corresponding to the tariff gear selected by the flow card.
In a third aspect, the present application further provides a server, including:
a memory for storing a bill generation program;
and a processor, configured to implement the bill generation method according to the embodiment of the first aspect of the present application when executing the bill generation program.
In a fourth aspect, the present application further provides a storage medium, where the storage medium is a computer-readable storage medium, and a bill generation program is stored in the storage medium, where the bill generation program, when executed by a processor, implements the bill generation method according to the embodiment of the first aspect of the present application.
Compared with the prior art, the technical scheme provided by the application obtains the information of a plurality of flow cards, wherein the information comprises card numbers, periodic flow quantity, tariff gears and flow gears corresponding to the tariff gears one by one, and the flow between the flow cards corresponding to the same flow gear can be shared; selecting the tariff gear according to the periodic flow quantity, so that the average value of the periodic flow quantity of the flow cards of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear; the information of the flow card and the bill corresponding to the charge gear selected by the flow card are generated into a bill file, so that the charge bill of the flow card can be automatically and intelligently generated, the generated charge bill is reasonable, the flow of the flow card is fully utilized, the flow of the flow card is not easy to be excessive, and no extra charge is generated.
Drawings
Fig. 1 is a flowchart of a bill generation method according to a first embodiment of the present application.
Fig. 2 is a detailed flowchart of S12 in fig. 1.
Fig. 3 is a block diagram of a bill generation apparatus according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a bill generating method according to a first embodiment of the present application, where the bill generating method can be executed by a bill generating device, and the bill generating device can be implemented by hardware and/or software to generate a bill of a charge level corresponding to a flow card, so as to make the charge level of the flow card reasonable and reduce unnecessary money waste. The bill generation method comprises the following steps:
s11: the method comprises the steps of obtaining information of a plurality of flow cards, wherein the information comprises card numbers, periodic flow usage, tariff gears and flow gears corresponding to the tariff gears one to one, and the flow between the flow cards corresponding to the same flow gear can be shared.
The flow is a digital record, which records the number of bytes consumed by a web page on an internet access device. The traffic card is a card capable of providing internet traffic for other devices, and includes, but is not limited to, an internet of things card and a SIM (subscriber identity Module) card. The flow card comprises a plurality of flow cards, for example, the flow card comprises 10 ten thousand flow cards. The information of the traffic card is stored in a database, which may be a database of the network operator side or a database of the own side. The network operator can be China Mobile, China Unicom or China telecom, etc. The card number is the number identification of the traffic card, such as the card number of the SIM card. The periodic traffic volume is a volume of traffic in a time period between the current time and the last data settlement time. For example, china unicom has 26 # 24 points of each month at the data settlement time of each month, and can adjust the tariff gear plan according to the use flow of the flow card at the current time interval of 26 # 24 points of each month before 12 noon on 25-26 days so as to reasonably control the cost. The tariff gear is the monthly consumption of one traffic card. Each tariff gear comprises a certain flow, and the more money the tariff gear has, the more flow the tariff gear corresponds to. In the bill generation method, if a plurality of cards are located at the same charge level, the flow of the plurality of cards at the same charge level can be shared, for example, the charge level of 2 cards is the same, the flow level of each card of 2 cards is 10GB (Gigabyte), if one card uses 19GB and the other card uses 0.9GB, and the total flow does not exceed 20GB, the extra charge does not need to be paid. It is understood that the information includes, but is not limited to, a card number, a periodic traffic volume, a tariff gear, and a traffic gear corresponding to the tariff gear one to one, and the information may further include a traffic card status, an activation date, and the like.
S12: and selecting the tariff gear according to the periodic flow quantity, so that the average value of the periodic flow quantity of the flow cards of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear.
When the charge gear of the flow card is selected and adjusted, a certain time is left between the next data settlement time, a certain flow value needs to be reserved for the flow card for the continuous use of the flow card, and the flow card is prevented from exceeding the flow and needing to pay more charges. The preset flow threshold corresponding to the flow of the tariff gear is the threshold used for reserving a certain flow value for the flow card. And the preset flow threshold corresponding to the flow of the expense gear is smaller than the flow of the expense gear. And if the preset flow threshold corresponding to the flow of the flow gear is a and the flow of the flow gear is b, the a is b and c, wherein the 0 < c < 1. The value of c can be set according to the needs, for example, c can be 0.93, that is, 7% of the traffic is reserved for the traffic card. When the average value of the periodic flow usage of the flow cards in the same tariff gear is larger than the preset flow threshold corresponding to the flow of the tariff gear, it indicates that the flow of some of the flow cards is too much, and the tariff gear of the flow card using the too much flow needs to be adjusted to increase the flow. In order to make full use of the flow, the average value of the periodic flow usage of the flow cards of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear.
Referring to fig. 2, specifically, selecting the tariff gear according to the periodic traffic volume so that the average value of the periodic traffic volumes of the traffic cards in the same tariff gear is smaller than and closest to a preset traffic threshold corresponding to the traffic of the tariff gear includes:
s121: the flow gears are sequenced from large to small, the flow gears comprise n, n is larger than or equal to 2 and is a positive integer, and the flow of the 1 st flow gear is the largest.
Each flow card comprises 1 flow gear, and after the flow gear of each flow card is obtained, the flow gears of the multiple flow cards can be sequenced. The number of flow gears is not limited. If 10 ten thousand flow cards include 5 flow gears, including 5GB, 8GB, 3GB, 1GB, 10GB, 1GB, respectively, then the flow gears after the sequencing are 10GB, 8GB, 5GB, 3GB and 1 GB. The flow rate of the flow gear of the first flow gear 10GB is the maximum.
S122: and sequencing the flow cards in the sequence of the periodic flow consumption from large to small as an h-th flow sequence, wherein the flow cards comprise m, m is more than or equal to n, h is more than or equal to 1 and less than or equal to n-1, and h and m are positive integers.
The periodic traffic volume may vary in size from one traffic card to another. After sorting, the whole is taken as the h-th flow sequence. h is first taken to be 1.
S123: and when the average value of the previous i periodic flow use in the h flow sequence is larger than the preset flow threshold corresponding to the flow of the h flow gear, calculating the average value of the previous i +1 periodic flow use, wherein i is a positive integer, and i is less than or equal to the number of flow cards of the h flow sequence.
The value of i is less than the total number of flow cards. i can be a value 1, and when the first periodic flow consumption is greater than a preset flow threshold corresponding to the flow of the h-th flow gear, an average value of the first 2 periodic flow consumptions is calculated.
It is understood that step S123 may be preceded by: and calculating the average value of the flow usage of the first i +1 periods in the h flow sequence.
S124: and when the average value of the first i periodic flow quantities in the h flow sequence is smaller than the preset flow threshold corresponding to the flow of the h flow gear, selecting the charge gear corresponding to the h flow gear from the flow card corresponding to the first i periodic flow quantities.
The average value of the first i periodic flow quantities is calculated one by one, and when the average value of the first 1 periodic flow quantities is larger than the preset flow threshold corresponding to the flow of the h-th flow gear, the average value of the first 2 periodic flow quantities is calculated until the average value of the first i periodic flow quantities in the h-th flow sequence is smaller than the preset flow threshold corresponding to the flow of the h-th flow gear. Therefore, when the average value of the first i periodic flow quantities in the h-th flow sequence is smaller than the preset flow threshold corresponding to the flow of the h-th flow gear, the average value of the first i periodic flow quantities is smaller than and closest to the preset flow threshold corresponding to the flow of the h-th flow gear. If the average value of the former 999 periodic flow rates is greater than the preset flow rate threshold corresponding to the flow rate of the 1 st flow rate gear, and the average value of the former 1000 periodic flow rates is greater than the preset flow rate threshold corresponding to the flow rate of the 1 st flow rate gear.
When the flow card corresponding to the first i periodic flow quantities selects the tariff gear corresponding to the h-th flow gear, if the flow card corresponding to the first 1000 periodic flow quantities selects the tariff gear corresponding to the 1 st flow gear 10GB, the tariff gear of the flow card corresponding to the first 1000 periodic flow quantities may already be the 1 st flow gear 10GB, or may be another tariff gear, such as the 2 nd flow gear 8GB or 5 GB.
S125: and deleting the flow card of the tariff gear corresponding to the selected h flow gear from the h flow sequence to obtain an h +1 flow sequence.
And if the flow cards of the first 1000 selected tariff gears corresponding to the 1 st flow gear 10GB are deleted from the 1 st flow gear, a 2 nd flow sequence is obtained.
S126: when the average value of the previous i periodic flow use amount in the h +1 flow sequence is larger than a preset flow threshold corresponding to the flow of the h +1 flow gear, calculating the average value of the previous i +1 periodic flow use amount, wherein i is a positive integer, and i is less than or equal to the number of flow cards of the h +1 flow sequence.
In S126, the same as S123, and no description is given in the non-application.
S127: when the average value of the previous i periodic flow quantities in the h +1 flow sequence is smaller than the preset flow threshold corresponding to the flow of the h +1 flow gear, selecting the charge gear corresponding to the h +1 flow gear from the flow cards corresponding to the previous i periodic flow quantities, wherein i is a positive integer, and i is smaller than or equal to the number of the flow cards of the h +1 flow sequence.
In S127, the same as S124, and no description is given in the non-application.
S128: and deleting the flow card of the tariff gear corresponding to the h +1 th flow gear from the flow sequence to obtain the h +1+1 th flow sequence.
In S128, the same as S125, and no description is given in the non-application.
The steps are repeated in sequence, so that all the flow cards can be in proper tariff gears, and the flow of the flow cards can be fully used.
S13: and generating a bill file by the information of the flow card and a bill corresponding to the tariff gear selected by the flow card.
The generated file can be viewed by operators. Preferably, the format of the bill file is an excel file.
The method for generating a bill provided by this embodiment obtains information of a plurality of traffic cards, where the information includes a card number, a periodic traffic amount, a tariff gear, and a traffic gear corresponding to the tariff gear, and where traffic between traffic cards corresponding to the same traffic gear may be shared; selecting the tariff gear according to the periodic flow quantity, so that the average value of the periodic flow quantity of the flow cards of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear; the information of the flow card and the bill corresponding to the charge gear selected by the flow card are generated into a bill file, so that the charge bill of the flow card can be automatically and intelligently generated, the generated charge bill is reasonable, the flow of the flow card is fully utilized, the flow of the flow card is not easy to be excessive, and no extra charge is generated.
Preferably, the bill generation method further includes:
and sending the bill file to a second server.
The second server may be a network operator server, or a client server. When the bill file is sent to the network operator server, the network operator server can directly modify the tariff gear of the flow card according to the bill file. The billing file is sent to the client server, and the client may perform operations based on the billing file, such as the client determining whether the billing file is appropriate, the client sending the billing file to a network operator server, and so forth.
Preferably, the bill generation method further includes:
and when the state of the flow card is inactive, deleting the flow card.
And (4) the flow card is not used, the flow card is deleted, and the flow card is not managed any more.
Preferably, the bill generation method further includes:
after the first preset time point, calculating the average value of the periodic flow quantity of the flow card of the expense gear corresponding to the h-th flow gear every second preset time period;
and if the average value of the periodic flow quantity of the flow card of the tariff gear corresponding to the selected h-th flow gear is larger than the preset variable flow threshold corresponding to the flow of the h-th flow gear, adjusting the tariff of the flow card which causes the average value of the periodic flow quantity of the flow card of the tariff gear corresponding to the selected h-th flow gear to be larger than the preset variable flow threshold corresponding to the flow of the h-th flow gear.
The first preset time point can be set as required, for example, china unicom is 26/24 o 'clock per month at the monthly data settlement time, china unicom requires that the bill file is uploaded before 12 o' clock per 26 m.p. and the status is confirmed to be displayed as "completed", in order to monitor the possible change of the flow card, so that the charge is exceeded, the bill file can be generated again after the first time point to determine whether there is a problem. Such as the first time point may be 26 # 11 points per month. The second preset time period can be set as required, and if the second preset time period is 1h, the bill file is generated every 1 h. And when generating the bill file after the first preset time point, generating the bill file according to the bill corresponding to the information of the flow card and the tariff gear selected by the flow card in the bill file generated in the month. Specifically, in the bill file generated before the first preset time point in this month, for example, 1000 traffic cards are included, the traffic included in 200 selected tariff gears is 10GB, the traffic included in 300 selected tariff gears is 8GB, the traffic included in 500 selected tariff gears is 5GB, the average value of the periodic traffic of the traffic card having 10GB in the traffic included in 200 selected tariff gears is calculated, the average value of the periodic traffic of the traffic card having 8GB in the traffic included in 300 selected tariff gears is calculated, and the average value of the periodic traffic of the traffic card having 5GB in the traffic included in 500 selected tariff gears is calculated.
As time passes, the closer the time is to the monthly data settlement time, the closer the preset variable flow threshold is to the flow gear. The preset variable flow threshold is changed as required. And adjusting the tariff of the flow card which causes the average value of the periodic flow quantity of the flow card of the tariff gear corresponding to the selected h-th flow gear to be larger than the preset variable flow threshold value corresponding to the flow of the h-th flow gear, namely adjusting the flow card with the maximum periodic flow quantity change after generating the bill file. If the flow gears comprise 3 flow cards with 15GB, when the preset variable flow threshold is 14GB, and if a bill file is generated, the periodic flow quantity of the flow card A is 14.8GB, the periodic flow quantity of the flow card B is 13.1GB, the periodic flow quantity of the flow card C is 13.8GB, and the variation of the periodic flow quantity of the flow card C is maximum, so that the average value of the periodic flow quantity of the flow cards of the tariff gear corresponding to the h-th flow gear is larger than the preset variable flow threshold corresponding to the flow of the h-th flow gear, the tariff gear of the flow card C is changed. The fine adjustment is carried out aiming at the expense gears of a single or a certain number of flow cards, so that the situation that the flow of a certain or a certain number of flow cards is increased sharply in the following process can be avoided.
Referring to fig. 3, a second embodiment of the present application provides a bill generation apparatus, where the bill generation apparatus 20 is configured to implement the bill generation method of the foregoing embodiment, and the bill generation apparatus 20 includes:
the acquiring module 21 is configured to acquire information of a plurality of traffic cards, where the information includes card numbers, periodic traffic usage, tariff gears, and traffic gears corresponding to the tariff gears one to one, and where traffic between traffic cards corresponding to the same traffic gear may be shared;
the selecting module 22 is configured to select the tariff gear according to the periodic flow usage, so that the periodic flow usage of the flow card of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear;
and the generating module 23 is configured to generate a bill file from the information of the traffic card and a bill corresponding to the tariff gear selected by the traffic card.
The bill generation device provided in this embodiment obtains information of a plurality of traffic cards, where the information includes a card number, a periodic traffic amount, a tariff gear, and a traffic gear corresponding to the tariff gear, where traffic between traffic cards corresponding to the same traffic gear may be shared; selecting the tariff gear according to the periodic flow quantity, so that the average value of the periodic flow quantity of the flow cards of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear; the information of the flow card and the bill corresponding to the charge gear selected by the flow card are generated into a bill file, so that the charge bill of the flow card can be automatically and intelligently generated, the generated charge bill is reasonable, the flow of the flow card is fully utilized, the flow of the flow card is not easy to be excessive, and no extra charge is generated.
Preferably, the selection module 22 comprises:
the first sequencing unit is used for sequencing the flow gears in a descending order, wherein the flow gears comprise n flow gears, n is greater than or equal to 2 and is a positive integer, and the flow of the 1 st flow gear is the largest;
the second sorting unit is used for sorting the flow cards in the sequence of the periodic flow consumption from large to small as an h-th flow sequence, wherein the flow cards comprise m flow cards, m is more than or equal to n, h is more than or equal to 1 and less than or equal to n-1, and h and m are positive integers;
the first calculating unit is used for calculating the average value of the previous i +1 periodic flow quantities when the average value of the previous i periodic flow quantities in the h flow sequence is larger than a preset flow threshold corresponding to the flow of the h flow gear, wherein i is a positive integer, and i is smaller than or equal to the number of flow cards of the h flow sequence;
the first selection unit is used for selecting the charging gear corresponding to the h-th flow gear from the flow card corresponding to the first i periodic flow quantities when the average value of the first i periodic flow quantities in the h-th flow sequence is smaller than the preset flow threshold corresponding to the flow of the h-th flow gear;
the first deleting unit is used for deleting the flow card of the expense gear corresponding to the selected h flow gear from the h flow sequence to obtain an h +1 flow sequence;
the second calculation unit is used for calculating the average value of the previous i +1 periodic flow quantities when the average value of the previous i periodic flow quantities in the h +1 flow sequence is larger than a preset flow threshold corresponding to the flow of the h +1 flow gear, wherein i is a positive integer and is less than or equal to the number of flow cards of the h +1 flow sequence;
the second selection unit is used for selecting the charging gear corresponding to the h +1 th flow gear from the flow card corresponding to the first i periodic flow quantities when the average value of the first i periodic flow quantities in the h +1 th flow sequence is smaller than the preset flow threshold corresponding to the flow of the h +1 th flow gear;
and the second deleting unit is used for deleting the flow card of the tariff gear corresponding to the selected h +1 th flow gear from the flow sequence to obtain the h +1+1 th flow sequence.
Preferably, the bill generation apparatus further includes:
and the sending module is used for sending the bill file to a second server.
Preferably, the bill generation apparatus further includes:
the calculation module is used for calculating the average value of the periodic flow quantity of the flow card of the expense gear corresponding to the h-th flow gear every second preset time period after the first preset time point;
and the adjusting module is used for adjusting the charge of the flow card, which causes the average value of the periodic flow quantity of the flow card of the charge gear corresponding to the selected h-th flow gear to be greater than the preset variable flow threshold value corresponding to the flow of the h-th flow gear, if the average value of the periodic flow quantity of the flow card of the charge gear corresponding to the selected h-th flow gear is greater than the preset variable flow threshold value corresponding to the flow of the h-th flow gear.
Preferably, the bill generation apparatus further includes:
and the deleting module is used for deleting the flow card when the state of the flow card is inactive.
The product can execute the method provided by any embodiment of the application, and has the corresponding functional module and the beneficial effect of the execution method.
Referring to fig. 4, a third embodiment of the present application provides a server 40, and the server 40 can execute a bill generation method according to the above embodiments. The server 40 includes:
one or more processors 31 and memory 32. Here, one processor 31 is illustrated as an example.
The processor 31 and the memory 32 may be connected by a bus or other means, such as a bus.
The memory 32 is a non-volatile computer readable storage medium, and can be used to store a non-volatile software program, a non-volatile computer executable program, such as program instructions corresponding to a bill generation method in the above embodiments of the present application. The processor 31 executes various functional applications of a bill generation method and data processing by executing nonvolatile software program instructions stored in the memory 32, that is, implements a bill generation method in the above-described method embodiments.
The memory 32 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like.
Further, the memory 32 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 32 may optionally include memory located remotely from the processor 31, and these remote memories may be connected to the processor 31 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions are stored in the memory 32 and, when executed by the one or more processors 31, perform the steps of a bill generation method in any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, and has corresponding beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the above embodiments of the present application.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer-executable instructions, which are executed by one or more processors, such as a processor 31 in the figure, to enable the computer to perform the steps of a bill generation method in any of the above-mentioned method embodiments.
Embodiments of the present application further provide a computer program product comprising a computer program stored on a non-volatile computer-readable storage medium, the computer program comprising program instructions that, when executed by one or more processors, such as the processor 31 in the figure, cause the computer to perform the steps of one of the method embodiments described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a general hardware platform, and may also be implemented by hardware. Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be performed by hardware associated with computer program instructions.
The present application also provides a storage medium, which includes a computer readable storage medium, and the above bill generation program may be stored in a computer readable storage medium, and when executed, the program may include the above flow of the implementation method of each bill generation method. The storage medium may include, among others, flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The storage medium may be a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like in other embodiments.
The modules or units described in the embodiments of the present application may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A bill generation method is applied to a first server, and is characterized by comprising the following steps:
acquiring information of a plurality of flow cards, wherein the information comprises card numbers, periodic flow usage, tariff gears and flow gears corresponding to the tariff gears one by one, and the flow between the flow cards corresponding to the same flow gear can be shared;
selecting the tariff gear according to the periodic flow quantity, so that the average value of the periodic flow quantity of the flow cards of the same tariff gear is smaller than and closest to a preset flow threshold corresponding to the flow of the tariff gear;
and generating a bill file by the information of the flow card and a bill corresponding to the tariff gear selected by the flow card.
2. The bill generation method according to claim 1, wherein the selecting the tariff gear according to the periodic traffic volume so that the periodic traffic volume of the traffic card of the same tariff gear is smaller than and closest to a preset traffic threshold corresponding to the traffic volume of the tariff gear comprises:
sequencing flow gears in a descending order, wherein the flow gears comprise n flow gears, n is greater than or equal to 2 and is a positive integer, and the flow of the 1 st flow gear is the largest;
sequencing the flow cards in the sequence of the periodic flow consumption from large to small as an h-th flow sequence, wherein the flow cards comprise m, m is more than or equal to n, h is more than or equal to 1 and less than or equal to n-1, and h and m are positive integers;
when the average value of the first i periodic flow use amounts in the h flow sequence is larger than a preset flow threshold corresponding to the flow of the h flow gear, calculating the average value of the first i +1 periodic flow use amounts, wherein i is a positive integer, and i is smaller than or equal to the number of flow cards of the h flow sequence;
when the average value of the first i periodic flow quantities in the h flow sequence is smaller than a preset flow threshold corresponding to the flow of the h flow gear, selecting a charge gear corresponding to the h flow gear from the flow cards corresponding to the first i periodic flow quantities;
deleting the flow card of the tariff gear corresponding to the selected h flow gear from the h flow sequence to obtain an h +1 flow sequence;
when the average value of the previous i periodic flow quantities in the h +1 flow sequence is larger than a preset flow threshold corresponding to the flow of the h +1 flow gear, calculating the average value of the previous i +1 periodic flow quantities, wherein i is a positive integer, and i is less than or equal to the number of flow cards of the h +1 flow sequence;
when the average value of the first i periodic flow quantities in the h +1 flow sequence is smaller than a preset flow threshold corresponding to the flow of the h +1 flow gear, selecting a charge gear corresponding to the h +1 flow gear from a flow card corresponding to the first i periodic flow quantities;
and deleting the flow card of the tariff gear corresponding to the h +1 th flow gear from the flow sequence to obtain the h +1+1 th flow sequence.
3. The bill generation method according to claim 1, wherein the bill generation method further comprises:
and sending the bill file to a second server.
4. The bill generation method according to claim 2, wherein: the bill generation method further comprises:
after the first preset time point, calculating the average value of the periodic flow quantity of the flow card of the expense gear corresponding to the h-th flow gear every second preset time period;
and if the average value of the periodic flow quantity of the flow card of the tariff gear corresponding to the selected h-th flow gear is larger than the preset variable flow threshold corresponding to the flow of the h-th flow gear, adjusting the tariff of the flow card which causes the average value of the periodic flow quantity of the flow card of the tariff gear corresponding to the selected h-th flow gear to be larger than the preset variable flow threshold corresponding to the flow of the h-th flow gear.
5. The bill generation method according to claim 1, wherein: if the preset flow threshold corresponding to the flow of the h-th flow gear is a and the flow of the h-th flow gear is b, determining that
a=b*c,
Wherein c is more than 0 and less than 1.
6. The bill generation method according to claim 1, wherein the information further includes a traffic card status, the bill generation method further comprising:
and when the state of the flow card is inactive, deleting the flow card.
7. The bill generation method according to claim 1, wherein the bill file is in the format of an excel file.
8. A bill generation apparatus applied to a first server, the bill generation apparatus comprising:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring information of a plurality of flow cards, the information comprises card numbers, periodic flow usage, tariff gears and flow gears corresponding to the tariff gears one to one, and the flow between the flow cards corresponding to the same flow gear can be shared;
the selection module is used for selecting the expense gear according to the periodic flow quantity, so that the periodic flow quantity of the flow card of the same expense gear is smaller than and closest to a preset flow threshold corresponding to the flow of the expense gear;
and the generating module is used for generating a bill file by the information of the flow card and a bill corresponding to the tariff gear selected by the flow card.
9. A server, characterized in that the server comprises:
a memory for storing a bill generation program;
a processor for implementing the bill generation method as claimed in any one of claims 1 to 7 when executing the bill generation program.
10. A storage medium which is a computer-readable storage medium, characterized in that a bill generation program is stored in the storage medium, and the bill generation program realizes the bill generation method according to any one of claims 1 to 7 when executed by a processor.
CN201910901521.7A 2019-09-23 2019-09-23 Bill generation method, device, server and storage medium Active CN110866742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910901521.7A CN110866742B (en) 2019-09-23 2019-09-23 Bill generation method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910901521.7A CN110866742B (en) 2019-09-23 2019-09-23 Bill generation method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN110866742A true CN110866742A (en) 2020-03-06
CN110866742B CN110866742B (en) 2024-03-01

Family

ID=69652100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910901521.7A Active CN110866742B (en) 2019-09-23 2019-09-23 Bill generation method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN110866742B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261691A (en) * 2020-12-22 2021-01-22 上海大汉三通通信股份有限公司 Distribution management method, device and system of 5G flow data and storage medium
CN114205764A (en) * 2020-09-02 2022-03-18 中国移动通信集团安徽有限公司 Traffic resource sharing method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682832A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Data processing method and device, computer equipment, computer-readable recording medium
CN108346080A (en) * 2018-01-09 2018-07-31 厦门集微科技有限公司 A kind of flow package combined optimization method and device
CN109118349A (en) * 2018-08-02 2019-01-01 平安科技(深圳)有限公司 Business finance bill generation method, device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682832A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Data processing method and device, computer equipment, computer-readable recording medium
CN108346080A (en) * 2018-01-09 2018-07-31 厦门集微科技有限公司 A kind of flow package combined optimization method and device
CN109118349A (en) * 2018-08-02 2019-01-01 平安科技(深圳)有限公司 Business finance bill generation method, device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205764A (en) * 2020-09-02 2022-03-18 中国移动通信集团安徽有限公司 Traffic resource sharing method, device, equipment and computer readable storage medium
CN114205764B (en) * 2020-09-02 2023-11-03 中国移动通信集团安徽有限公司 Traffic resource sharing method, device, equipment and computer readable storage medium
CN112261691A (en) * 2020-12-22 2021-01-22 上海大汉三通通信股份有限公司 Distribution management method, device and system of 5G flow data and storage medium

Also Published As

Publication number Publication date
CN110866742B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
EP2944060B1 (en) Communication quota allocation method and corresponding online charging system
CN111742521B (en) Incremental billing using blockchain
CN103414577B (en) Accounting system and method for Hadoop platform
CN110866742A (en) Bill generation method, device, server and storage medium
EP2918043A1 (en) Network resource allocation in communication networks
CN110839069B (en) Node data deployment method, node data deployment system and medium
CN104574051A (en) Charging method and device
CN108564355A (en) A kind of automobile changes electric charging method, device and computer readable storage medium
CN110233741A (en) Service charging method, device, equipment and storage medium
CN109470918A (en) The electricity data processing method and IR46 electric energy meter of IR46 electric energy meter
CN109191104A (en) A kind of information processing method and its equipment
CN111162921A (en) Multi-account cloud service usage package sharing method and device and related equipment
CN112270466A (en) Operation method and device of vehicle charging device
WO2019184632A1 (en) Rating method and apparatus
CN102045681B (en) For the method and apparatus of Web vector graphic charging
CN103607707A (en) Resource distribution method and apparatus based on inverse computation charging
EP3331196B1 (en) Telecommunication system for monitoring and controlling of a network providing resource to a user
CN111815314B (en) Charging order charging fee generation method, electronic equipment and storage medium
CN115099801A (en) Payment information processing method and device based on public cloud
CN103914512A (en) Method and system for managing data services
WO2021258719A1 (en) Billing method and system for container platform
CN103260193A (en) Device and method for strategy control
CN114240416A (en) Data processing method, data processing device, computer equipment and storage medium
CN112737796A (en) Cross-region user communication charge transfer method, device, equipment, medium and product
DE102011103010A1 (en) Method and system for online participant billing, program and computer program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240122

Address after: 518000 World Trade Plaza 101-1, Funan Community, Futian Street, Futian District, Shenzhen, Guangdong Province

Applicant after: SHENZHEN XINGHAI IOT TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: B1104, building 11, Shenzhen Bay science and technology ecological park, No.16, South Keji Road, high tech community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: Shenzhen zhongjingyuan Technology Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant