[go: up one dir, main page]

CN111581483A - A billing method, electronic device and storage medium - Google Patents

A billing method, electronic device and storage medium Download PDF

Info

Publication number
CN111581483A
CN111581483A CN202010255687.9A CN202010255687A CN111581483A CN 111581483 A CN111581483 A CN 111581483A CN 202010255687 A CN202010255687 A CN 202010255687A CN 111581483 A CN111581483 A CN 111581483A
Authority
CN
China
Prior art keywords
charging
order
billing
result
data
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
CN202010255687.9A
Other languages
Chinese (zh)
Other versions
CN111581483B (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN202010255687.9A priority Critical patent/CN111581483B/en
Publication of CN111581483A publication Critical patent/CN111581483A/en
Application granted granted Critical
Publication of CN111581483B publication Critical patent/CN111581483B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • 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/14Payment architectures specially adapted for billing systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明实施例涉及数据处理领域,公开了一种计费方法、电子设备及存储介质。本申请的部分实施例中,计费方法包括:获取预先存储的暂估计划信息;暂估计划信息包括计费订单的标识信息和计费时间段信息,计费订单中包括计费资源的标识信息;根据暂估计划信息,查询计费数据配置表;计费数据配置表包括计费资源的标识信息、计费资源的计费数据,以及各个计费数据的可用时间段信息;根据查询结果,确定计费订单的计费结果。该实施例中,使得可以提高查询速度,提高计费结果的准确性,减少出账错误。

Figure 202010255687

The embodiments of the present invention relate to the field of data processing, and disclose a charging method, an electronic device and a storage medium. In some embodiments of the present application, the charging method includes: acquiring pre-stored tentative plan information; the tentative plan information includes identification information and charging time period information of a charging order, and the charging order includes an identification of a charging resource According to the temporary estimation plan information, query the charging data configuration table; the charging data configuration table includes the identification information of the charging resource, the charging data of the charging resource, and the available time period information of each charging data; according to the query result to determine the billing result of the billing order. In this embodiment, the query speed can be improved, the accuracy of the billing result can be improved, and the billing errors can be reduced.

Figure 202010255687

Description

一种计费方法、电子设备及存储介质A billing method, electronic device and storage medium

技术领域technical field

本发明实施例涉及数据处理领域,特别涉及一种计费方法、电子设备及存储介质。The embodiments of the present invention relate to the field of data processing, and in particular, to a charging method, an electronic device and a storage medium.

背景技术Background technique

内容分发网络(Content Delivery Network,CDN)服务厂商提供的计费系统其计费数据来源经过一条链路才到达计费系统,日志采集组件进行底层日志流量采集分析,并且通过内部远程过程调用(Remote Procedure Call,RPC)方式将数据传递给大数据组件,大数据存储组件再对传递给其组件的数据进行再次处理和聚合操作等并将聚合后的数据进行分布式的存储,并提供服务查询供上层计费系统进行实时和离线查询计算。In the billing system provided by the Content Delivery Network (CDN) service provider, the billing data source reaches the billing system through a link. The log collection component collects and analyzes the underlying log traffic, and uses an internal remote procedure call (Remote Procedure Call, RPC) method to transfer the data to the big data component, the big data storage component then reprocesses and aggregates the data passed to its components, and stores the aggregated data in a distributed manner, and provides service query for The upper billing system performs real-time and offline query calculations.

然而,发明人发现现有技术中至少存在如下问题:CDN厂商出账一般是月初进行出账并且一般是在月初计费系统承接大量的实时查询计算,会存在性能缓慢问题,并且出账效率缓慢,出账耗时久等缺点。However, the inventor found that there are at least the following problems in the prior art: CDN vendors generally issue bills at the beginning of the month, and the billing system usually undertakes a large number of real-time query calculations at the beginning of the month, which will cause slow performance and slow billing efficiency. , the disadvantage of taking a long time to pay out.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above Background section is only for enhancement of understanding of the background of the present disclosure, and therefore may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.

发明内容SUMMARY OF THE INVENTION

本发明实施方式的目的在于提供一种计费方法、电子设备及存储介质,使得可以提高查询速度,提高计费结果的准确性,减少出账错误。The purpose of the embodiments of the present invention is to provide a charging method, an electronic device and a storage medium, so that the query speed can be improved, the accuracy of the charging result can be improved, and the billing errors can be reduced.

为解决上述技术问题,本发明的实施方式提供了一种计费方法,包括以下步骤:获取预先存储的暂估计划信息;暂估计划信息包括计费订单的标识信息和计费时间段信息,计费订单中包括计费资源的标识信息;根据暂估计划信息,查询计费数据配置表;计费数据配置表包括计费资源的标识信息、计费资源的计费数据,以及各个计费数据的可用时间段信息;根据查询结果,确定计费订单的计费结果。In order to solve the above technical problem, an embodiment of the present invention provides a charging method, which includes the following steps: acquiring pre-stored tentative plan information; the tentative plan information includes identification information of a charging order and charging time period information, The charging order includes the identification information of the charging resource; according to the tentative plan information, the charging data configuration table is queried; the charging data configuration table includes the identification information of the charging resource, the charging data of the charging resource, and the charging data of each charging Information about the available time period of the data; according to the query result, determine the billing result of the billing order.

本发明的实施方式还提供了一种电子设备,包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行如上述实施方式提及的计费方法。Embodiments of the present invention also provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by at least one processor. One processor executes to enable at least one processor to execute the charging method as mentioned in the above embodiments.

本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现上述实施方式提及的计费方法。Embodiments of the present invention further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the charging method mentioned in the foregoing embodiments is implemented.

本发明实施方式相对于现有技术而言,电子设备基于暂估计划,计算计费订单的计费结果,可以避免月初出账造成系统查询造成的应用服务慢等问题,提高了查询速度。电子设备基于计费数据和计费数据的可用时间段信息进行计费,可以避免计费过程中使用不可用的计费数据进行计费,导致的计费错误的问题,提高了计费结果的准确性,减少出账错误。Compared with the prior art, the electronic device calculates the billing result of the billing order based on the tentative estimation plan, which can avoid problems such as slow application service caused by system query caused by billing at the beginning of the month, and improve the query speed. The electronic device performs charging based on the charging data and the available time period information of the charging data, which can avoid the problem of charging errors caused by using the unavailable charging data for charging during the charging process, and improve the reliability of the charging results. Accuracy, reducing billing errors.

另外,查询结果包括计费订单中计费资源的计费数据,以及计费订单中计费资源的计费数据的可用时间段信息;根据查询结果,确定计费订单的计费结果,包括:根据计费订单中的计费数据,计算计费订单的计费值;根据计费订单中计费资源的计费数据的可用时间段信息,以及计费时间段信息,确定计费订单计费值的可用性标识;根据计费订单的计费值和计费订单计费值的可用性标识,确定计费订单的计费结果。In addition, the query result includes the billing data of the billing resource in the billing order, and the available time period information of the billing data of the billing resource in the billing order; according to the query result, the billing result of the billing order is determined, including: Calculate the billing value of the billing order according to the billing data in the billing order; determine the billing order based on the available time period information of the billing data of the billing resources in the billing order and the billing time period information The availability identifier of the value; the charging result of the charging order is determined according to the charging value of the charging order and the availability identifier of the charging value of the charging order.

另外,在根据查询结果,确定计费订单的计费结果之后,计费方法还包括:存储计费订单的计费结果;接收实时查询指令;实时查询指令中包括实时查询订单的标识信息和查询时间段信息;判断是否存储有实时查询订单对应的计费结果;若存储有实时查询订单对应的计费结果,则将对应的计费结果,作为实时查询订单的计费结果;若没有存储实时查询订单对应的计费结果,根据实时查询指令,查询计费数据配置表,得到实时查询订单中计费资源的计费数据和实时查询订单中的计费资源的计费数据的可用时间段信息;根据实时查询订单中的计费资源的计费数据和实时查询订单中的计费资源的计费数据的可用时间段信息,确定实时查询订单的计费结果。In addition, after determining the charging result of the charging order according to the query result, the charging method further includes: storing the charging result of the charging order; receiving a real-time query instruction; the real-time query instruction includes the identification information of the real-time query order and the query Time period information; determine whether the billing result corresponding to the real-time query order is stored; if the billing result corresponding to the real-time query order is stored, the corresponding billing result will be used as the billing result of the real-time query order; Query the billing result corresponding to the order, query the billing data configuration table according to the real-time query instruction, and obtain the billing data of the billing resources in the real-time query order and the available time period information of the billing data of the billing resources in the real-time query order ; Determine the charging result of the real-time query order according to the charging data of the charging resources in the real-time query order and the available time period information of the charging data of the charging resources in the real-time query order.

另外,在确定实时查询订单的计费结果之后,计费方法还包括:判断实时查询订单的计费资源的固化标识是否指示存储计费结果;若确定是,存储实时查询计费订单的计费结果。该实施例中,有选择的对预先标识的计费资源的计费数据进行固化,避免计费结果占用过多内存。In addition, after determining the charging result of the real-time query order, the charging method further includes: judging whether the solidification identifier of the charging resource of the real-time query order indicates to store the charging result; if so, storing the charging of the real-time query charging order result. In this embodiment, the charging data of the pre-identified charging resources is selectively solidified, so as to prevent the charging result from occupying too much memory.

另外,计费方法还包括:接收各个计费资源的计费数据;若确定各个计费资源的计费数据的推送时间大于预设置的时延时间,发送告警提示。该实施例中,在计费数据推送时间大于时延时间时,及时告警,便于及时发现链路的问题。In addition, the charging method further includes: receiving the charging data of each charging resource; if it is determined that the pushing time of the charging data of each charging resource is greater than a preset delay time, sending an alarm prompt. In this embodiment, when the billing data push time is greater than the delay time, an alarm is given in time, so that the link problem can be discovered in time.

另外,计费数据的可用时间段信息包括计费数据的收集组件反馈的可用时间信息、收集组件的不可用时间信息和人工标记的不可用时间信息。该实施例中,可以人工标记数据资源的不可用时间,避免由于可用性判断标准变化导致该计费数据不可用,造成计费错误等问题。In addition, the available time period information of the charging data includes the available time information fed back by the charging data collection component, the unavailable time information of the collecting component, and the manually marked unavailable time information. In this embodiment, the unavailable time of the data resource can be manually marked, so as to avoid problems such as the unavailability of the charging data due to the change of the availability judgment standard, and the resulting charging errors.

另外,计费方法还包括:在接收到更改指令后,根据更改指令,更改计费数据配置表;更改指令指示删除或修改计费资源的计费数据。In addition, the charging method further includes: after receiving the modification instruction, modifying the charging data configuration table according to the modification instruction; the modification instruction instructs to delete or modify the charging data of the charging resource.

另外,暂估计划信息还包括暂估计划状态信息;在根据查询结果,确定计费订单的计费结果之后,计费方法还包括:将暂估计划状态信息更改为已完成状态。In addition, the tentative plan information also includes tentative plan status information; after determining the charging result of the billing order according to the query result, the charging method further includes: changing the tentative plan state information to a completed state.

附图说明Description of drawings

一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute limitations of the embodiments, and elements with the same reference numerals in the drawings are denoted as similar elements, Unless otherwise stated, the figures in the accompanying drawings do not constitute a scale limitation.

图1是根据本发明的第一实施方式的计费方法的流程图;1 is a flowchart of a charging method according to a first embodiment of the present invention;

图2是根据本发明的第二实施方式的计费方法的流程图;2 is a flowchart of a charging method according to a second embodiment of the present invention;

图3是根据本发明的第二实施方式的计费系统的结构示意图;3 is a schematic structural diagram of a charging system according to a second embodiment of the present invention;

图4是根据本发明的第三实施方式的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can appreciate that, in the various embodiments of the present invention, many technical details are set forth in order for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized.

除非上下文明确要求,否则整个说明书和权利要求书中的“包括”、“包含”等类似词语应当解释为包含的含义而不是排他或穷举的含义;也就是说,是“包括但不限于”的含义。Unless clearly required by the context, words such as "including", "comprising" and the like throughout the specification and claims should be construed in an inclusive rather than an exclusive or exhaustive sense; that is, "including but not limited to" meaning.

在本发明公开的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明公开的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the description of the present disclosure, it should be understood that the terms "first", "second" and the like are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of the present disclosure, unless stated otherwise, "plurality" means two or more.

本发明的第一实施方式涉及一种计费方法,应用于电子设备,例如,终端、服务器或云服务器。该计算方法可用于内容分发网络领域等多个领域。如图1所示,计费方法包括:The first embodiment of the present invention relates to a charging method, which is applied to an electronic device, such as a terminal, a server or a cloud server. The calculation method can be used in many fields such as the content distribution network field. As shown in Figure 1, the charging method includes:

步骤101:获取预先存储的暂估计划信息。Step 101: Acquire pre-stored estimation plan information.

具体地说,暂估计划信息包括计费订单的标识信息和计费时间段信息,计费订单中包括计费资源的标识信息。其中,计费订单的标识信息是计费订单的唯一标识,例如,计费订单的身份标识(ID)。计费时间段信息可以指示计费订单的开始时间和计费订单的结束时间。Specifically, the tentative plan information includes identification information and charging time period information of the charging order, and the charging order includes identification information of the charging resource. Wherein, the identification information of the charging order is the unique identification of the charging order, for example, the identification (ID) of the charging order. The billing period information may indicate the start time of the billing order and the end time of the billing order.

在一个实施例中,计费数据的可用时间段信息包括计费数据的收集组件反馈的可用时间信息、收集组件的不可用时间信息和人工标记的不可用时间信息。In one embodiment, the available time period information of the charging data includes the available time information fed back by the charging data collection component, the unavailable time information of the collecting component, and the manually marked unavailable time information.

例如,电子设备提供暂估计划管理界面,暂估计划管理界面提供账务暂估功能,账务人员可以在该界面增加暂估计划。电子设备中存储有暂估计划管理列表,可以包括如下几列:暂估计划的ID、订单类型、订单项ID、计费时间段信息(即暂估开始时间和暂估结束时间)、暂估类别和暂估计划状态。其中,暂估计划的ID是此条暂估计划的唯一标识,订单类型包括单个计费订单计费类型和多个计费订单共同计费类型两种。订单项ID是各计费订单唯一标识,多个计费订单共同计费类型的暂估计划中,多个计费订单的订单项ID可以用逗号隔开。暂估开始时间是计费订单的计费开始时间,暂估结束时间是计费订单的计费结束时间。暂估类别可以包括两种,即实际出账计划和用于决策分析的预判断暂估计划。暂估计划状态包括已完成状态和暂不可用状态。已完成状态用于表示处理完成,可以进行计费值查看。暂不可用状态用于表示暂时由于各种原因未进行计算,计费值不可用。For example, the electronic device provides an estimation plan management interface, and the estimation plan management interface provides an accounting estimation function, and the accounting personnel can add an estimation plan on the interface. An estimation plan management list is stored in the electronic device, which may include the following columns: ID of the estimation plan, order type, order item ID, billing time period information (that is, estimation start time and estimation end time), estimation Category and Estimate Plan Status. The ID of the tentative estimate plan is the unique identifier of the tentative estimate plan, and the order types include a single billing order billing type and a common billing type for multiple billing orders. The line item ID is the unique identifier of each billing order. In a tentative plan with a common billing type for multiple billing orders, the line item IDs of multiple billing orders can be separated by commas. The tentative start time is the billing start time of the billing order, and the tentative end time is the billing end time of the billing order. There are two types of estimation types, namely actual billing plan and pre-judgment estimation plan for decision analysis. Estimated plan status includes completed status and temporarily unavailable status. Completed status is used to indicate that processing is complete and billing value viewing is available. The temporarily unavailable state is used to indicate that the billing value is not available because the calculation is not performed temporarily due to various reasons.

需要说明的是,本领域技术人员可以理解,暂估计划管理列表中可以有选择的设置订单类型、暂估类别和暂估计划状态,还可以设置其他项,此处不一一列举。It should be noted that those skilled in the art can understand that the order type, the estimation type and the estimation plan status can be selectively set in the estimation plan management list, and other items can also be set, which are not listed here one by one.

在一个实施例中,暂估计划信息还包括暂估计划状态信息。在根据查询结果,确定计费订单的计费结果之后,将暂估计划状态信息更改为已完成状态。In one embodiment, the tentative plan information further includes tentative plan status information. After the billing result of the billing order is determined according to the query result, the state information of the tentative plan is changed to the completed state.

步骤102:根据暂估计划信息,查询计费数据配置表。Step 102: Query the charging data configuration table according to the information of the tentative estimation plan.

具体地说,计费数据配置表包括计费资源的标识信息、计费资源的计费数据,以及各个计费数据的可用时间段信息。其中,计费资源的标识信息是计费资源的唯一标识,例如,计费资源的身份标识(ID)。计费资源的计费数据指示用户的消费数据。计费数据的可用时间段信息指示该计费数据的有效时间,即在该时间段内,则该计费数据有效,超过该时间段,则该计费数据无效。Specifically, the charging data configuration table includes the identification information of the charging resource, the charging data of the charging resource, and the available time period information of each charging data. Wherein, the identification information of the charging resource is the unique identification of the charging resource, for example, the identification (ID) of the charging resource. The charging data of the charging resource indicates the consumption data of the user. The available time period information of the charging data indicates the valid time of the charging data, that is, within the time period, the charging data is valid, and beyond the time period, the charging data is invalid.

在一个实施例中,电子设备提供数据配置管理页面。账务人员可以在数据源配置管理页面进行计费数据配置表的管理,例如,进行添加、修改、查询等基本操作。计费数据配置表可以展示的内容包括如下几列:计费资源的标识信息(如计费资源的ID)、计费数据和可用时间段信息。可选择的,计费数据配置表中还可以包括:数据存储位置信息、数据源名称、自动识别的不可用时间段信息、人工标记的不可用时间段信息、固化标识信息和更新时间信息中的任意一个或多个。其中,数据存储位置信息指示数据存储位置,数据源名称说明数据的业务含义,可用时间段信息指在此时间段内计费数据均是可以用于计费的,在此时间段外计费数据不能用于计费出账。自动识别的不可用时间段信息由计费数据的收集组件确定,在此时间段内计费数据不可用于计费出账。由于计费数据的收集组件在做数据比对,发现数据不一致时,会该时间段进行自动打标。人工标记的不可用时间段信息由人工标记。当某个时间段的计费数据需要修复时,可以手动将计费数据不可用时间进行打标。例如,由于商务谈判要求或者数据可用性判断标准变化后造成数据在可用时间段内实际是不可用的,这时候可以人工将可用时间段信息中的不可用时间段标记。In one embodiment, the electronic device provides a data configuration management page. Accounting personnel can manage the billing data configuration table on the data source configuration management page, for example, perform basic operations such as adding, modifying, and querying. The content that can be displayed in the charging data configuration table includes the following columns: identification information of the charging resource (such as the ID of the charging resource), charging data and available time period information. Optionally, the billing data configuration table may also include: data storage location information, data source name, automatically identified unavailable time period information, manually marked unavailable time period information, solidified identification information and update time information. any one or more. Among them, the data storage location information indicates the data storage location, the data source name indicates the business meaning of the data, and the available time period information means that the billing data can be used for billing within this time period, and the billing data outside this time period Cannot be used for billing. The automatically identified unavailable time period information is determined by the charging data collection component, and the charging data is unavailable for billing and billing within this time period. Since the data collection component of the billing data is doing data comparison, when the data is found inconsistent, it will automatically mark the time period. Manually flagged unavailable time period information is manually flagged. When the billing data in a certain period of time needs to be repaired, you can manually mark the time when the billing data is unavailable. For example, due to changes in business negotiation requirements or data availability judgment criteria, the data is actually unavailable within the available time period. At this time, the unavailable time period in the available time period information can be manually marked.

需要说明的是,本领域技术人员可以理解,实际应用中,还可以在计费数据配置表中添加其他项,本实施方式不一一列举。It should be noted that those skilled in the art can understand that, in practical applications, other items may also be added to the charging data configuration table, which are not listed one by one in this embodiment.

以下对自动标识不可用时间段的方式进行举例说明。An example of the way of automatically identifying the unavailable time period is given below.

在一个实施例中,电子设备包括可用性时间推送接口,计费数据涉及到的收集组件收集的数据经过各机房一致性比较,完整性校验等手段确认数据是完备的,且该数据可以用于计费时,收集组件调用计费系统提供的可用性时间推送服务,将该计费数据的可用时间推送到电子设备。如果收集组件收集的数据经过各机房一致性比对不一致,或者数据完整性校验不一致时,也会将计费数据的不可用时间推送到电子设备。电子设备将计费数据的可用时间段信息或不可用时间段信息保存至电子设备的存储器中,并基于计费数据的可用时间段信息或不可用时间段信息,提供数据源配置管理页面。In one embodiment, the electronic device includes an availability time push interface, and the data collected by the collection components involved in the billing data is confirmed to be complete by means of consistency comparison and integrity verification of each computer room, and the data can be used for During charging, the collection component invokes the availability time push service provided by the charging system, and pushes the available time of the charging data to the electronic device. If the data collected by the collection component is inconsistent after the consistency comparison of each computer room, or the data integrity check is inconsistent, the unavailable time of the billing data will also be pushed to the electronic device. The electronic device saves the available time period information or the unavailable time period information of the billing data in the memory of the electronic device, and provides a data source configuration management page based on the available time period information or the unavailable time period information of the billing data.

在一个实施例中,电子设备在接收到更改指令后,根据更改指令,更改计费数据配置表;更改指令指示删除或修改计费资源的计费数据。In one embodiment, after receiving the modification instruction, the electronic device modifies the charging data configuration table according to the modification instruction; the modification instruction instructs to delete or modify the charging data of the charging resource.

值得一提的是,电子设备可以基于更改指令调整计费数据配置表,使得账务人员可以对计费数据配置表进行调整。It is worth mentioning that the electronic device can adjust the charging data configuration table based on the modification instruction, so that the accounting personnel can adjust the charging data configuration table.

步骤103:根据查询结果,确定计费订单的计费结果。Step 103: Determine the charging result of the charging order according to the query result.

在一个实施例中,查询结果包括计费订单中计费资源的计费数据,以及计费订单中计费资源的计费数据的可用时间段信息。电子设备根据查询结果,确定计费订单的计费结果的过程包括:根据计费订单中的计费数据,计算计费订单的计费值;根据计费订单中计费资源的计费数据的可用时间段信息,以及计费时间段信息,确定计费订单计费值的可用性标识;计费值的可用性标识用于指示计费值是否准确;根据计费订单计费值和计费订单计费值的可用性标识,确定计费订单的计费结果。In one embodiment, the query result includes the charging data of the charging resource in the charging order, and the available time period information of the charging data of the charging resource in the charging order. The process that the electronic device determines the charging result of the charging order according to the query result includes: calculating the charging value of the charging order according to the charging data in the charging order; and calculating the charging value of the charging order according to the charging data in the charging order; Available time period information, and billing time period information, determine the availability identifier of the billing value of the billing order; the availability identifier of the billing value is used to indicate whether the billing value is accurate; The availability identifier of the fee value, which determines the billing result of the billing order.

可选择的,对于可用性标识指示计费值不可用时,电子设备可以在计费数据恢复后,自动触发,重新计算计费值。Optionally, when the availability identifier indicates that the charging value is unavailable, the electronic device may automatically trigger the charging value to be recalculated after the charging data is recovered.

值得一提的是,基于可用时间段信息,确定并保存计费值的可用性标识,使得能够确定计费值是否可靠。It is worth mentioning that, based on the available time period information, the availability identifier of the charging value is determined and saved, so that it can be determined whether the charging value is reliable.

在一个实施例中,电子设备接收各个计费资源的计费数据;若确定各个计费资源的计费数据的推送时间大于预设置的时延时间,发送告警提示。具体地说,电子设备可以根据计费数据的时延特点,可以配置每个计费数据的时延标准。如果计费数据的推送时间超过时延标准,则计费数据源不可用预警服务会发送告警通知,这样整个计费链路上的上游组件会感知到数据出现状况,进而可以逐链条追踪问题的根本原因。In one embodiment, the electronic device receives the charging data of each charging resource; if it is determined that the pushing time of the charging data of each charging resource is greater than a preset delay time, an alarm prompt is sent. Specifically, the electronic device can configure the delay standard of each billing data according to the delay characteristic of the billing data. If the push time of the billing data exceeds the delay standard, the early warning service of the unavailability of the billing data source will send an alarm notification, so that the upstream components on the entire billing link will perceive the data status, and then can track the problem chain by chain. root cause.

在一个实施例中,暂估计划信息还包括暂估计划状态信息;在根据查询结果,确定计费订单的计费结果之后,计费方法还包括:将暂估计划状态信息更改为已完成状态。具体地说,若还未计算暂估计划中计费订单的计费结果,则暂估计划状态信息更改为未处理状态。若正在计算暂估计划中计费订单的计费结果,则暂估计划状态信息更改为处理中状态。若计算得到计费结果,则暂估计划状态信息为已完成状态。In one embodiment, the tentative plan information further includes tentative plan status information; after determining the charging result of the billing order according to the query result, the charging method further includes: changing the tentative plan state information to a completed state . Specifically, if the billing result of the billing order in the tentative plan has not been calculated, the tentative plan status information is changed to the unprocessed state. If the billing result of the billing order in the estimation plan is being calculated, the estimation plan status information changes to the status in processing. If the charging result is obtained by calculation, the status information of the tentative plan is the completed status.

值得一提的是,及时更新暂估计划状态信息,可以了解各暂估计划的是否已计算完成,便于对各暂估计划进行管理。It is worth mentioning that by updating the status information of the tentative plan in time, you can know whether the calculation of each tentative plan has been completed, which is convenient for the management of each tentative plan.

需要说明的是,以上仅为举例说明,并不对本发明的技术方案构成限定。It should be noted that the above are only examples, and do not limit the technical solutions of the present invention.

与现有技术相比,本实施方式中提供的计费方法,电子设备基于暂估计划,计算计费订单的计费结果,可以避免月初出账造成系统查询造成的应用服务慢等问题,提高了查询速度。电子设备基于计费数据和计费数据的可用时间段信息进行计费,可以避免计费过程中使用不可用的计费数据进行计费,导致的计费错误的问题,提高了计费结果的准确性,减少出账错误。Compared with the prior art, in the billing method provided in this embodiment, the electronic device calculates the billing result of the billing order based on the tentative estimation plan, which can avoid problems such as slow application services caused by system query caused by billing at the beginning of the month, and improve the performance of the billing method. query speed. The electronic device performs charging based on the charging data and the available time period information of the charging data, which can avoid the problem of charging errors caused by using the unavailable charging data for charging during the charging process, and improve the reliability of the charging results. Accuracy, reducing billing errors.

本发明的第二实施方式涉及一种计费方法。本实施方式是对第一实施方式的进一步改进,具体改进之处为:在步骤103之后,增加了存储计费结果等其他相关步骤。The second embodiment of the present invention relates to a charging method. This embodiment is a further improvement to the first embodiment, and the specific improvement is: after step 103, other related steps such as storing the charging result are added.

具体的说,如图2所示,在本实施方式中,包含步骤201至步骤208,其中,步骤201至步骤203分别与第一实施方式中的步骤101至步骤103大致相同,此处不再赘述。下面主要介绍不同之处:Specifically, as shown in FIG. 2 , in this embodiment, steps 201 to 208 are included, wherein, steps 201 to 203 are respectively substantially the same as steps 101 to 103 in the first embodiment, and are not repeated here. Repeat. The main differences are as follows:

步骤201:获取预先存储的暂估计划信息。Step 201: Acquire pre-stored estimation plan information.

步骤202:根据暂估计划信息,查询计费数据配置表。Step 202: Query the charging data configuration table according to the tentative plan information.

步骤203:根据查询结果,确定计费订单的计费结果。Step 203: Determine the charging result of the charging order according to the query result.

步骤204:存储计费订单的计费结果。Step 204: Store the charging result of the charging order.

具体地说,电子设备对暂估计划的计费结果存储进行存储,以便后续查询。Specifically, the electronic device stores the billing result storage of the tentative estimation plan for subsequent inquiries.

步骤205:接收实时查询指令。Step 205: Receive a real-time query instruction.

具体地说,实时查询指令中包括实时查询订单的标识信息和查询时间段信息。当财务人员或其他人员需要查询使用费用时,可以发起实时查询指令。Specifically, the real-time query instruction includes the identification information of the real-time query order and the query time period information. When financial personnel or other personnel need to inquire about usage fees, they can initiate real-time inquiry instructions.

步骤206:判断是否存储有实时查询订单对应的计费结果。Step 206: Determine whether the charging result corresponding to the real-time query order is stored.

具体地说,若存储有实时查询订单对应的计费结果,执行步骤207,若没有存储所述实时查询订单对应的计费结果,执行步骤208。Specifically, if the charging result corresponding to the real-time query order is stored, step 207 is performed, and if the charging result corresponding to the real-time query order is not stored, step 208 is performed.

步骤207:将对应的计费结果,作为实时查询订单的计费结果。Step 207: Use the corresponding charging result as the charging result of the real-time query order.

在一个实施例中,若存储的计费结果中,某一计费结果的存在标识信息与实时查询订单的标识信息相同,则确定存在与实时查询订单对应的计费结果,并将该计费结果,作为实时查询订单的计费结果。In one embodiment, if in the stored charging results, the existence identification information of a certain charging result is the same as the identification information of the real-time query order, then it is determined that there is a charging result corresponding to the real-time query order, and the charging result is calculated accordingly. The result is the billing result of the real-time query order.

在另一实施例中,电子设备先判断是否存在标识信息与实时查询订单的标识信息相同的计费结果,若确定存在,则判断该计费结果的计费时间段信息和实时查询订单的查询时间段信息是否相同;若确定相同,则确定存在实时查询订单对应的计费结果,并将该计费结果作为实时查询订单的计费结果;若确定不存在标识信息与实时查询订单的标识信息相同的计费结果,或者,标识信息相同的计费结果的计费时间段信息和实时查询订单的查询时间段信息不相同,则确定不存在实时查询订单对应的计费结果。In another embodiment, the electronic device first determines whether there is a charging result with the same identification information as the identification information of the real-time query order, and if it is determined to exist, then determines the charging time period information of the charging result and the query of the real-time query order Whether the time period information is the same; if it is determined to be the same, it is determined that there is a charging result corresponding to the real-time query order, and the charging result is used as the charging result of the real-time query order; if it is determined that there is no identification information and the identification information of the real-time query order If the charging result is the same, or the charging time period information of the charging result with the same identification information is different from the query time period information of the real-time query order, it is determined that there is no charging result corresponding to the real-time query order.

步骤208:根据实时查询指令,查询计费数据配置表,得到实时查询订单中计费资源的计费数据和实时查询订单中的计费资源的计费数据的可用时间段信息;根据实时查询订单中的计费资源的计费数据和实时查询订单中的计费资源的计费数据的可用时间段信息,确定实时查询订单的计费结果。Step 208: According to the real-time query instruction, query the charging data configuration table to obtain the charging data of the charging resources in the real-time query order and the available time period information of the charging data of the charging resources in the real-time query order; according to the real-time query order The charging data of the charging resources in the real-time query order and the available time period information of the charging data of the charging resources in the real-time query order determine the charging result of the real-time query order.

在一个实施例中,在确定实时查询订单的计费结果之后,电子设备判断实时查询订单的计费资源的固化标识是否指示存储计费结果;若确定是,存储实时查询计费订单的计费结果。In one embodiment, after determining the charging result of the real-time query order, the electronic device determines whether the solidified identifier of the charging resource of the real-time query order indicates to store the charging result; if so, stores the charging result of the real-time query charging order. result.

值得一提的是,计费结果均固化在电子设备中,使得可以基于各计费结果进行智能账单审核、支持各种情形账单明细数据回溯和导出查询等功能。有选择的对预先标识的计费资源的计费数据进行固化,避免计费结果占用过多内存。It is worth mentioning that the billing results are solidified in the electronic device, which enables intelligent bill review based on each billing result, and supports functions such as bill detail data retrospect and export query in various situations. Selectively solidify the billing data of the pre-identified billing resources to prevent the billing result from occupying too much memory.

在一个实施例中,电子设备提供固化结果管理页面。固化结果中可以包括基于暂估计划得到的计费结果,以及基于实时查询订单得到的计费结果。固化结果管理页面对已出账并保存的计费结果提供查询、计费重算、将计费结果中的可用性标识改为指示计费值不可用,以及计费信息查看等功能。同时可以基于历史的出账结果进行智能分析和核算,并且管理层可以基于历史的账单进行数据挖掘等相关工作,以便公司未来决策提供信息支撑。In one embodiment, the electronic device provides a curing result management page. The solidified results may include billing results obtained based on the tentative plan and billing results obtained based on real-time query orders. The solidified result management page provides functions such as querying, charging recalculation, changing the availability flag in the charging result to indicate that the charging value is unavailable, and viewing the charging information for the billing results that have been billed and saved. At the same time, intelligent analysis and accounting can be performed based on historical billing results, and the management can perform data mining and other related work based on historical bills, so as to provide information support for the company's future decision-making.

在一个实施例中,暂估计划信息为暂估计划表,计费方法应用于计费系统,该计费系统设计总图如图3所示,该计费系统包括八个模块内容,具体如下:同步模块301用于将账务人员输入的暂估计划表同步到计费系统的暂估计划表的数据库3001中;推送模块302用于将计费数据的可用性时间段实时更新推送到计费系统的计费数据配置表的数据库3002中;定期批量预计算模块303用于拉取暂估计划表配置和计费数据配置表,根据这两个配置预计算计费订单的计费结果,并将计费结果存储在计费结果的存储数据库3003中。外部计费查询接口模块304用于判断是否存在实时查询订单对应的计费结果,如果实时查询订单的标识信息和查询时间段信息已经存在暂估计划表中,则通过读取模块305从计费结果的存储数据库3003中读取计费结果。如果不存在,则外部计费查询接口模块304通过实时计费模块306完成计费值的计算,并在计算完成后,根据这份计费数据的固化标识决定是否存储到计费结果的存储数据库中。展示模块307用于提供暂估计划管理界面。配置模块308用于提供数据配置管理页面。固化模块309用于提供计费结果的管理界面。具体地说,首先,前端出账的财务人员根据出账周期提前将出账计划(暂估计划)同步到计费系统端,计费系统端将同步的暂估计划表提供页面展示和页面操作功能;计费链路上各组件将计费数据的可用性时间段信息一直往上推送到计费系统端,计费系统端维护计费数据可用性管理、配置及展示功能;定期批量预计算模块结合暂估计划表、计费数据和计费数据可用性时间段信息,定时更新暂估计划表中计费值,并将计费结果进行固化处理;如果前端客户实时查询订单的计费值、当前查询的订单和查询时间段已经在固化结果表中存在时,直接从计费结果的存储数据库中获取。若查询的订单和查询时间段没有存在计费结果的存储数据库中,则需要计费系统进行实时计算,并将实时计算结果更新到计费结果的存储数据库中。In one embodiment, the tentative plan information is a tentative plan table, and the charging method is applied to a charging system. The overall design of the charging system is shown in FIG. 3 , and the charging system includes eight modules, as follows: : The synchronization module 301 is used for synchronizing the tentative estimation plan table input by the accounting personnel to the database 3001 of the tentative estimation plan table of the billing system; the push module 302 is used for pushing the real-time update of the availability time period of the billing data to the billing system In the database 3002 of the system's billing data configuration table; the periodic batch pre-calculation module 303 is used to pull the tentative plan table configuration and the billing data configuration table, pre-calculate the billing result of the billing order according to these two configurations, and The billing result is stored in the billing result storage database 3003 . The external charging query interface module 304 is used to determine whether there is a charging result corresponding to the real-time query order. The billing result is read from the result storage database 3003 . If it does not exist, the external charging query interface module 304 completes the calculation of the charging value through the real-time charging module 306, and after the calculation is completed, determines whether to store the charging result in the storage database according to the solidified identifier of the charging data. middle. The presentation module 307 is used to provide a management interface for the estimation plan. The configuration module 308 is used to provide a data configuration management page. The solidification module 309 is used to provide a management interface for charging results. Specifically, first, the front-end financial personnel who issue bills synchronize the billing plan (provisional plan) to the billing system in advance according to the billing cycle, and the billing system will provide page display and page operations for the synchronized tentative plan. Function; each component on the billing link pushes the availability time period information of billing data up to the billing system, and the billing system maintains the functions of billing data availability management, configuration and display; regular batch pre-calculation modules combine Estimated schedule, billing data, and billing data availability time period information, regularly update the billing value in the tentative schedule, and solidify the billing result; if the front-end customer queries the billing value of the order in real time, When the order and query time period already exists in the solidified result table, it is directly obtained from the storage database of the billing result. If the queried order and query time period do not exist in the storage database of the billing result, the billing system needs to perform real-time calculation, and update the real-time calculation result to the storage database of the billing result.

需要说明的是,以上仅为举例说明,并不对本发明的技术方案构成限定。It should be noted that the above are only examples, and do not limit the technical solutions of the present invention.

与现有技术相比,本实施方式中提供的计费方法,电子设备基于暂估计划,计算计费订单的计费结果,可以避免月初出账造成系统查询造成的应用服务慢等问题,提高了查询速度。电子设备基于计费数据和计费数据的可用时间段信息进行计费,可以避免计费过程中使用不可用的计费数据进行计费,导致的计费错误的问题,提高了计费结果的准确性,减少出账错误。除此之外,在存储的计费结果中不存在实时查询订单对应的计费结果后,再进行实时查询,可以避免反复进行相同的查询导致电子设备过负荷,反应慢等问题。Compared with the prior art, in the billing method provided in this embodiment, the electronic device calculates the billing result of the billing order based on the tentative estimation plan, which can avoid problems such as slow application services caused by system query caused by billing at the beginning of the month, and improve the performance of the billing method. query speed. The electronic device performs charging based on the charging data and the available time period information of the charging data, which can avoid the problem of charging errors caused by using the unavailable charging data for charging during the charging process, and improve the reliability of the charging results. Accuracy, reducing billing errors. In addition, after there is no billing result corresponding to the real-time query order in the stored billing results, the real-time query can be performed, which can avoid problems such as overloading the electronic equipment and slow response caused by repeating the same query.

上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.

本发明的第三实施方式涉及一种电子设备,如图4所示,包括:至少一个处理器401;以及,与至少一个处理器401通信连接的存储器402;其中,存储器402存储有可被至少一个处理器401执行的指令,指令被至少一个处理器401执行,以使至少一个处理器401能够执行如上述实施方式提及的计费方法。The third embodiment of the present invention relates to an electronic device, as shown in FIG. 4 , comprising: at least one processor 401 ; and a memory 402 communicatively connected to the at least one processor 401 ; wherein the memory 402 stores data that can be accessed by at least one processor 401 . An instruction executed by one processor 401, and the instruction is executed by at least one processor 401, so that the at least one processor 401 can execute the charging method mentioned in the above embodiment.

该电子设备包括:一个或多个处理器401以及存储器402,图4中以一个处理器401为例。处理器401、存储器402可以通过总线或者其他方式连接,图4中以通过总线连接为例。存储器402作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。处理器401通过运行存储在存储器402中的非易失性软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述计费方法。The electronic device includes: one or more processors 401 and a memory 402 , and one processor 401 is taken as an example in FIG. 4 . The processor 401 and the memory 402 may be connected through a bus or in other ways, and the connection through a bus is taken as an example in FIG. 4 . As a non-volatile computer-readable storage medium, the memory 402 can be used to store non-volatile software programs, non-volatile computer-executable programs and modules. The processor 401 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory 402, that is, the above charging method is implemented.

存储器402可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储选项列表等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施方式中,存储器402可选包括相对于处理器401远程设置的存储器,这些远程存储器可以通过网络连接至外接设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function; the storage data area may store an option list and the like. Additionally, memory 402 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, memory 402 may optionally include memory located remotely relative to processor 401, and these remote memories may be connected to external devices via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

一个或者多个模块存储在存储器402中,当被一个或者多个处理器401执行时,执行上述任意方法实施方式中的计费方法。One or more modules are stored in the memory 402, and when executed by the one or more processors 401, perform the charging method in any of the above method embodiments.

上述产品可执行本申请实施方式所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施方式中详尽描述的技术细节,可参见本申请实施方式所提供的方法。The above product can execute the method provided by the embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present application.

本发明的第四实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。A fourth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.

即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those skilled in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present invention. scope.

Claims (10)

1. A charging method, comprising:
acquiring prestored temporary estimation plan information; the temporary estimation plan information comprises identification information of a charging order and charging time section information, and the charging order comprises identification information of charging resources;
inquiring a charging data configuration table according to the temporary estimation plan information; the charging data configuration table comprises identification information of charging resources, charging data of the charging resources and available time period information of each charging data;
and determining the charging result of the charging order according to the query result.
2. The charging method according to claim 1, wherein the query result includes charging data of charging resources in the charging order and available time period information of the charging data of the charging resources in the charging order;
the determining the charging result of the charging order according to the query result comprises:
calculating a charging value of the charging order according to charging data in the charging order;
determining an availability identifier of a charging value of the charging order according to available time period information of charging data of charging resources in the charging order and the charging time period information;
and determining a charging result of the charging order according to the charging value of the charging order and the availability identifier of the charging value of the charging order.
3. The billing method of claim 2, wherein after the determining the billing result of the billing order according to the query result, the billing method further comprises:
storing a charging result of the charging order;
receiving a real-time query instruction; the real-time query instruction comprises identification information and query time period information of a real-time query order;
judging whether a charging result corresponding to the real-time query order is stored or not;
if the charging result corresponding to the real-time query order is stored, taking the corresponding charging result as the charging result of the real-time query order;
if the charging result corresponding to the real-time query order is not stored, inquiring the charging data configuration table according to the real-time query instruction to obtain the charging data of the charging resources in the real-time query order and the available time period information of the charging data of the charging resources in the real-time query order; and determining a charging result of the real-time query order according to the charging data of the charging resources in the real-time query order and the available time period information of the charging data of the charging resources in the real-time query order.
4. The billing method of claim 3, wherein after determining the billing result of the real-time query order, the billing method further comprises:
judging whether the solidified identification of the charging resource of the real-time query order indicates to store a charging result;
and if so, storing the charging result of the real-time inquiry charging order.
5. The charging method according to any one of claims 1 to 4, wherein the charging method further comprises:
receiving charging data of each charging resource;
and if the pushing time of the charging data of each charging resource is determined to be greater than the preset time delay time, sending an alarm prompt.
6. The charging method according to any one of claims 1 to 4, wherein the available time period information of the charging data comprises available time information fed back by a collection component of the charging data, unavailable time information of the collection component and artificially marked unavailable time information.
7. The charging method according to any one of claims 1 to 4, wherein the charging method further comprises:
after receiving a change instruction, changing the charging data configuration table according to the change instruction; the change instruction indicates to delete or modify charging data of the charging resource.
8. The charging method according to any one of claims 1 to 4, wherein the tentative estimate plan information further includes tentative estimate plan state information;
after determining the charging result of the charging order according to the query result, the charging method further includes:
and changing the temporary estimation plan state information into a finished state.
9. An electronic device, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the charging method of any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the charging method of any one of claims 1 to 8.
CN202010255687.9A 2020-04-02 2020-04-02 Charging method, electronic equipment and storage medium Active CN111581483B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010255687.9A CN111581483B (en) 2020-04-02 2020-04-02 Charging method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010255687.9A CN111581483B (en) 2020-04-02 2020-04-02 Charging method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111581483A true CN111581483A (en) 2020-08-25
CN111581483B CN111581483B (en) 2024-04-05

Family

ID=72122495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010255687.9A Active CN111581483B (en) 2020-04-02 2020-04-02 Charging method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111581483B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114022137A (en) * 2021-11-04 2022-02-08 航天信息股份有限公司 A billing method, billing device, electronic device, and computer storage medium
CN115331355A (en) * 2020-08-28 2022-11-11 支付宝(杭州)信息技术有限公司 Payment reminding method and device
CN116132204A (en) * 2021-11-09 2023-05-16 中国联合网络通信集团有限公司 Data processing method, device, electronic equipment and readable storage medium
CN116346514A (en) * 2023-04-12 2023-06-27 浪潮云信息技术股份公司 Metering and charging method for cloud service products

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060174007A1 (en) * 2005-01-31 2006-08-03 International Business Machines Corporation Permanently activating resources based on previous temporary resource usage
CN107516199A (en) * 2017-08-01 2017-12-26 携程旅游信息技术(上海)有限公司 Container charging method, apparatus and system, equipment, the storage medium of cloud platform
CN108717656A (en) * 2018-06-11 2018-10-30 上海云会贸易有限公司 A kind of taxi management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060174007A1 (en) * 2005-01-31 2006-08-03 International Business Machines Corporation Permanently activating resources based on previous temporary resource usage
CN107516199A (en) * 2017-08-01 2017-12-26 携程旅游信息技术(上海)有限公司 Container charging method, apparatus and system, equipment, the storage medium of cloud platform
CN108717656A (en) * 2018-06-11 2018-10-30 上海云会贸易有限公司 A kind of taxi management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
龚电花;付丽苑;: "通信网络计费数据采集与传输系统" *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115331355A (en) * 2020-08-28 2022-11-11 支付宝(杭州)信息技术有限公司 Payment reminding method and device
CN114022137A (en) * 2021-11-04 2022-02-08 航天信息股份有限公司 A billing method, billing device, electronic device, and computer storage medium
CN116132204A (en) * 2021-11-09 2023-05-16 中国联合网络通信集团有限公司 Data processing method, device, electronic equipment and readable storage medium
CN116132204B (en) * 2021-11-09 2024-04-09 中国联合网络通信集团有限公司 Data processing method, device, electronic equipment and readable storage medium
CN116346514A (en) * 2023-04-12 2023-06-27 浪潮云信息技术股份公司 Metering and charging method for cloud service products

Also Published As

Publication number Publication date
CN111581483B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN111581483A (en) A billing method, electronic device and storage medium
WO2020024968A1 (en) Resource transfer data management method and apparatus, and storage medium
CN111192004A (en) Method for displaying current to-do task and subsequent to-do workflow
US11913811B2 (en) Enhanced meter management solution
CN110335022A (en) Automatic audit method, device, equipment and storage medium
CN109949144A (en) Entry processing method, apparatus, device and computer-readable storage medium
WO2019019447A1 (en) Annuity data processing method and device, server and storage medium
WO2019205324A1 (en) Task allocation method and system, and terminal device
US20210374870A1 (en) Custom data
CN117291761A (en) Litigation case management method and system, intelligent terminal and readable storage medium
CN111400283B (en) Data processing method, system, electronic equipment and storage medium
CN116308321A (en) Account separating method and device based on income account separating system, electronic equipment and storage medium
CN103297419B (en) Line rolls off the production line upper data fusion method and system
CN107316245A (en) Expense adjusts method and system
CN113051332B (en) Multi-source data integration method and system based on big data technology
CN112001705B (en) A management system for equipment billing and settlement
CN116883170A (en) API service calling evidence-storing and settling method based on blockchain
CN114723533A (en) A method, device and electronic device for generating settlement data of rental income
CN114463100A (en) Order data processing method, device, equipment and storage medium
CN115222419A (en) Equity after-sale service method and equity after-sale service system based on block chain
CN114997977A (en) Data processing method and device, electronic equipment and computer readable medium
CN111861669A (en) A method, device and terminal for settlement of bills
WO2015192519A1 (en) Bid ranking method and device
CN117295054B (en) Number unbinding method, system and device
CN113411761B (en) Call bill charging method and system

Legal Events

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