CN110175820A - Bill processing method, device, electronic equipment and the storage medium of cloud calculation service - Google Patents
Bill processing method, device, electronic equipment and the storage medium of cloud calculation service Download PDFInfo
- Publication number
- CN110175820A CN110175820A CN201910473255.2A CN201910473255A CN110175820A CN 110175820 A CN110175820 A CN 110175820A CN 201910473255 A CN201910473255 A CN 201910473255A CN 110175820 A CN110175820 A CN 110175820A
- Authority
- CN
- China
- Prior art keywords
- business
- fitting
- usage
- unit price
- cloud computing
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 52
- 238000004364 calculation method Methods 0.000 title claims description 9
- 238000000034 method Methods 0.000 claims abstract description 32
- 238000004590 computer program Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Technology Law (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明实施例提供了一种云计算业务的账单处理方法、装置、电子设备及存储介质,其中,该方法包括:在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务,确定具有关联关系的业务中的拟合对象;将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。从而可以减少账单处理方式,降低工作人员的工作量。
Embodiments of the present invention provide a bill processing method, device, electronic device, and storage medium for a cloud computing service, wherein the method includes: when receiving a bill processing instruction, obtaining the user identification information corresponding to the bill processing instruction. The detailed table of the cloud computing business used by the user, based on the preset business relationship, determine the business with the relationship in the cloud computing business, determine the fitting object in the business with the relationship; the business with the relationship The business unit price and/or the total amount of business usage of other businesses other than the fitting object are fitted to the business unit price and/or the total amount of business usage of the fitting object to obtain the business unit price and/or the fitting object after fitting Total business usage; based on the business unit price and/or total business usage after fitting the fitting object, calculate the bill corresponding to the business detail table. Thereby, bill processing methods can be reduced and staff workload can be reduced.
Description
技术领域technical field
本发明涉及云计算技术领域,特别是涉及一种云计算业务的账单处理方法、装置、电子设备及存储介质。The present invention relates to the technical field of cloud computing, in particular to a bill processing method, device, electronic equipment and storage medium for cloud computing services.
背景技术Background technique
云计算作为一种新兴的技术,可以将资源或软件服务分布在大量计算机构成的资源池上,使各种应用系统能够根据需要获取对应的资源或软件服务,例如计算能力、存储空间。用户在使用云计算时,只需要根据自身使用需求,向云计算服务商申请对应的使用资源或软件服务,为使用的资源或软件服务支付相应的费用,便可以实现云计算的使用。As an emerging technology, cloud computing can distribute resources or software services on a resource pool composed of a large number of computers, so that various application systems can obtain corresponding resources or software services as needed, such as computing power and storage space. When users use cloud computing, they only need to apply to the cloud computing service provider for corresponding resources or software services according to their own needs, and pay the corresponding fees for the resources or software services used to realize the use of cloud computing.
在实际使用时,用户通常会将多种资源或软件服务结合使用,例如,同时使用CDN(Content Delivery Network,内容分发网络)服务中的直播服务、点播服务和下载服务中的至少两个。通常情况下,为了方便计算不同的资源或软件服务的账单,会在计算账单的电子设备中针对不同业务(资源或软件服务)设置对应的账单处理方式,如果用户同时使用了至少两种业务,例如,用户同时使用了直播服务和点播服务,则工作人员需要针对该两种服务,设置同时包括直播服务和点播服务的账单处理方式,增加了工作人员的工作量,并且,当业务种类较多时,会造成账单处理方式过多。In actual use, users usually use multiple resources or software services in combination, for example, use at least two of live broadcast service, on-demand service and download service in CDN (Content Delivery Network, Content Delivery Network) service at the same time. Usually, in order to facilitate the calculation of bills for different resources or software services, corresponding bill processing methods will be set for different services (resources or software services) in the electronic device for calculating bills. If the user uses at least two services at the same time, For example, if the user uses the live broadcast service and the on-demand service at the same time, the staff needs to set up a bill processing method that includes both the live broadcast service and the on-demand service for the two services, which increases the workload of the staff, and when there are many types of services , resulting in too many billing methods.
发明内容Contents of the invention
本发明实施例的目的在于提供一种云计算业务的账单处理方法、装置、电子设备及存储介质,以实现减少账单处理方式,降低工作人员的工作量。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a bill processing method, device, electronic equipment, and storage medium for cloud computing services, so as to reduce bill processing methods and reduce the workload of staff. The specific technical scheme is as follows:
第一方面,本发明实施例提供了一种云计算业务的账单处理方法,该方法包括:In a first aspect, an embodiment of the present invention provides a bill processing method for a cloud computing service, the method comprising:
在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量;When receiving the bill processing instruction, obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, wherein the service list includes at least the service unit price of the cloud computing service and the cloud computing service. Total business usage;
基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务;Based on the pre-set business association relationship, determine the business with the association relationship in the cloud computing business;
确定具有关联关系的业务中的拟合对象;Determine the fitting objects in the business with an associated relationship;
将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;Fitting the business unit price and/or the total amount of business usage of other businesses in the business with an associated relationship except the fitting object to the business unit price and/or the total amount of business usage of the fitting object to obtain the fitting object fitting The subsequent business unit price and/or total business usage;
基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the business unit price and/or the total business usage after fitting the fitting object.
可选的,在在获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表之后,该云计算业务的账单处理方法还包括:Optionally, after obtaining the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, the bill processing method for the cloud computing service further includes:
查询是否存在预先设置的业务关联关系;Query whether there is a pre-set business relationship;
如果否,基于业务明细表中每个云计算业务的业务单价以及对应的业务使用量,计算业务明细表对应的账单;If not, based on the service unit price of each cloud computing service in the business list and the corresponding service usage, calculate the bill corresponding to the business list;
基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务包括:Based on the pre-set business association relationship, it is determined that the related business in the cloud computing business includes:
如果存在预先设置的业务关联关系,则基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务。If there is a preset business association relationship, then based on the preset business association relationship, determine the business with the association relationship among the cloud computing services.
可选的,在基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务之后,该云计算业务的账单处理方法还包括:Optionally, after determining the associated business in the cloud computing business based on the preset business association relationship, the bill processing method for the cloud computing business further includes:
展示云计算业务中具有关联关系的业务;Demonstrate the related businesses in the cloud computing business;
确定具有关联关系的业务中的拟合对象包括:Determining the fitting objects in the associated business includes:
获取用户基于展示的具有关联关系的业务选择的拟合对象。Obtain the fitting object selected by the user based on the displayed business with an association relationship.
可选的,将具有关联关系的业务中除拟合对象外的其他业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量,包括:Optionally, fit the business unit price and/or the total amount of business usage of other businesses in the associated business except the fitting object to the business unit price and/or the total amount of business usage of the fitting object to obtain the proposed The unit price of business and/or the total amount of business usage after fitting objects, including:
将与拟合对象具有关联关系的业务的业务使用总量,拟合至拟合对象的业务使用总量中,得到拟合对象拟合后的业务使用总量;Fitting the total business usage of the business associated with the fitting object to the total business usage of the fitting object to obtain the total business usage of the fitting object after fitting;
基于拟合对象的业务单价和业务使用总量,以及与拟合对象具有关联关系的云计算业务的业务使用总量和业务单价,计算拟合对象和与拟合对象具有关联关系的业务的总费用;Based on the business unit price and total business usage of the fitting object, and the total business usage and business unit price of the cloud computing business associated with the fitting object, calculate the total amount of the fitting object and the business associated with the fitting object cost;
将总费用和拟合对象拟合后的业务使用总量的商值作为拟合对象拟合后的业务单价;The quotient of the total cost and the total amount of business usage after fitting the fitting object is used as the business unit price after fitting the fitting object;
基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单,包括:Based on the business unit price and/or total business usage after fitting the fitting object, calculate the bill corresponding to the business detail table, including:
基于拟合对象拟合后的业务单价和业务使用总量,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the business unit price and the total business usage after fitting the fitting object.
可选的,将具有关联关系的业务中除拟合对象外的其他业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量,包括:Optionally, fit the business unit price and/or the total amount of business usage of other businesses in the associated business except the fitting object to the business unit price and/or the total amount of business usage of the fitting object to obtain the proposed The unit price of business and/or the total amount of business usage after fitting objects, including:
将与拟合对象具有关联关系的云计算业务的业务使用总量,拟合至拟合对象的业务使用总量中,得到拟合对象拟合后的业务使用总量;Fitting the total business usage of cloud computing services associated with the fitting object to the total business usage of the fitting object to obtain the total business usage of the fitting object after fitting;
基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单,包括:Based on the business unit price and/or total business usage after fitting the fitting object, calculate the bill corresponding to the business detail table, including:
基于拟合对象拟合后的业务使用总量和拟合对象的业务单价,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the total amount of business usage after fitting the fitting object and the business unit price of the fitting object.
确定具有关联关系的业务中的拟合对象,包括:Determine the fitting objects in the business with related relationships, including:
将具有关联关系的业务中的业务单价最低的业务确定为拟合对象。Among the related businesses, the business with the lowest business unit price is determined as the fitting object.
第二方面,本发明实施例还提供了一种云计算业务的账单处理装置,该装置包括:In the second aspect, the embodiment of the present invention also provides a bill processing device for cloud computing services, the device comprising:
业务明细表获取模块,用于在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量;The business detailed table acquisition module is used to obtain the business detailed table of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction when receiving the bill processing instruction, wherein the business detailed table includes at least cloud computing business The unit price of the business and the total business usage of the cloud computing business;
基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务;Based on the pre-set business association relationship, determine the business with the association relationship in the cloud computing business;
拟合对象确定模块,用于确定具有关联关系的业务中的拟合对象;A fitting object determination module, configured to determine a fitting object in a business with an associated relationship;
拟合模块,用于将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;The fitting module is used to fit the business unit price and/or the total amount of business usage of other businesses except the fitting object in the associated business to the business unit price and/or the total amount of business usage of the fitting object, Obtain the business unit price and/or the total amount of business usage after the fitting object is fitted;
第一账单处理模块,用于基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。The first bill processing module is configured to calculate the bill corresponding to the business detailed table based on the business unit price and/or the total amount of business usage after fitting the fitting object.
可选的,该云计算业务的账单处理装置,还包括:Optionally, the bill processing device for the cloud computing service also includes:
查询模块,用于查询是否存在预先设置的业务关联关系,如果否,触发第二账单处理模块,如果是,触发关联关系确定模块;The query module is used to query whether there is a preset business relationship, if not, trigger the second bill processing module, and if yes, trigger the relationship determination module;
第二账单处理模块,用于基于业务明细表中每个云计算业务的业务单价以及对应的业务使用量,计算业务明细表对应的账单。The second bill processing module is configured to calculate the bill corresponding to the business detailed table based on the business unit price of each cloud computing service in the business detailed table and the corresponding service usage.
可选的,该云计算业务的账单处理装置,还包括:Optionally, the bill processing device for the cloud computing service also includes:
展示模块,用于展示云计算业务中具有关联关系的业务;The display module is used to display related services in cloud computing services;
拟合对象确定模块,具体用于获取用户基于展示的具有关联关系的业务选择的拟合对象。The fitting object determining module is specifically configured to obtain the fitting object selected by the user based on the displayed business with an associated relationship.
可选的,拟合模块,包括:Optionally, the fitting module, including:
业务使用量拟合单元,用于将与拟合对象具有关联关系的云计算业务的业务使用总量,拟合至拟合对象的业务使用总量中,得到拟合对象拟合后的业务使用总量;The business usage fitting unit is used to fit the total business usage of the cloud computing business associated with the fitting object to the total business usage of the fitting object to obtain the business usage after fitting the fitting object total amount;
总费用计算单元,用于基于拟合对象的业务单价和业务使用总量,以及与拟合对象具有关联关系的云计算业务的业务使用总量和业务单价,计算拟合对象和与拟合对象具有关联关系的云计算业务的总费用;The total cost calculation unit is used to calculate the fitting object and the fitting object based on the business unit price and the total amount of business usage of the fitting object, as well as the total amount of business usage and the business unit price of the cloud computing business that has an associated relationship with the fitting object The total cost of the cloud computing business with the associated relationship;
业务单价拟合单元,用于将总费用和拟合对象拟合后的业务使用总量的商值作为拟合对象拟合后的业务单价;The business unit price fitting unit is used to use the quotient of the total cost and the total business usage after fitting the fitting object as the business unit price after fitting the fitting object;
第一账单处理模块,具体用于:The first bill processing module is specifically used for:
基于拟合对象拟合后的业务单价和业务使用总量,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the business unit price and the total business usage after fitting the fitting object.
可选的,拟合子模块,具体用于:Optionally, the fitting submodule is specifically used for:
将与拟合对象具有关联关系的云计算业务的业务使用总量,拟合至拟合对象的业务使用总量中,得到拟合对象拟合后的业务使用总量;Fitting the total business usage of cloud computing services associated with the fitting object to the total business usage of the fitting object to obtain the total business usage of the fitting object after fitting;
第一账单处理模块,具体用于:The first bill processing module is specifically used for:
基于拟合对象拟合后的业务使用总量和拟合对象的业务单价,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the total amount of business usage after fitting the fitting object and the business unit price of the fitting object.
可选的,拟合对象确定模块,具体用于:Optionally, the fitting object determination module is specifically used for:
将具有关联关系的业务中的业务单价最低的业务确定为拟合对象。Among the related businesses, the business with the lowest business unit price is determined as the fitting object.
第三方面,本发明实施例还提供了一种电子设备,包括处理器和机器可读存储介质,机器可读存储介质存储有能够被处理器执行的机器可执行指令,处理器被机器可执行指令促使:实现上述第一方面提供的一种云计算业务的账单处理方法步骤。In a third aspect, an embodiment of the present invention also provides an electronic device, including a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is executed by the machine The instruction prompts: to implement the steps of the bill processing method for cloud computing services provided in the first aspect above.
第四方面,本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时,实现上述第一方面提供的一种云计算业务的账单处理方法步骤。In the fourth aspect, the embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the cloud computing service provided in the above-mentioned first aspect is implemented. Steps in the billing method for .
第五方面,本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面提供的一种云计算业务的账单处理方法步骤。In the fifth aspect, the embodiment of the present invention also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the steps of the bill processing method for cloud computing services provided in the first aspect.
第六方面,本发明实施例还提供了一种计算机程序,当其在计算机上运行时,使得计算机执行上述第一方面提供的一种云计算业务的账单处理方法步骤。In the sixth aspect, the embodiment of the present invention also provides a computer program, which, when running on a computer, causes the computer to execute the steps of the bill processing method for a cloud computing service provided in the first aspect.
本发明实施例提供的一种云计算业务的账单处理方法、装置、电子设备及存储介质,在接收到账单处理指令时,可以首先获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,然后基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务,在确定出具有关联关系的云计算业务后,可以确定具有关联关系的业务中的拟合对象,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;这样,可以在计算总的账单时,可以按照拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。从而可以避免在计算账单的电子设备中针对不同业务设置对应的账单处理方式,从而可以减少账单处理方式,降低工作人员的工作量。当然,实施本发明的任一产品或方法并不一定需要同时达到上述的所有优点。The bill processing method, device, electronic device, and storage medium for a cloud computing service provided by the embodiments of the present invention may firstly obtain the account used by the user corresponding to the user identification information carried in the bill processing instruction when receiving the bill processing instruction. The detailed list of cloud computing business, and then based on the pre-set business relationship, determine the associated business in the cloud computing business. After determining the associated cloud computing business, you can determine the proposed Fitting object, fit the business unit price and/or the total amount of business usage of other businesses except the fitting object in the related business to the business unit price and/or total amount of business usage of the fitting object to obtain the fitting The unit price of business and/or the total amount of business usage after the object is fitted; in this way, when calculating the total bill, the business unit price and/or the total amount of business usage after the fitting object can be used to calculate the corresponding bill. Therefore, setting corresponding bill processing methods for different services in the electronic device for calculating bills can be avoided, thereby reducing bill processing methods and reducing the workload of staff. Of course, implementing any product or method of the present invention does not necessarily need to achieve all the advantages mentioned above at the same time.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例的一种云计算业务的账单处理方法第一种实施方式的流程图;FIG. 1 is a flow chart of a first implementation of a bill processing method for a cloud computing service according to an embodiment of the present invention;
图2为本发明实施例的一种云计算业务的账单处理方法第二种实施方式的流程图;FIG. 2 is a flow chart of a second implementation of a cloud computing service bill processing method according to an embodiment of the present invention;
图3为本发明实施例的一种云计算业务的账单处理方法第三种实施方式的流程图;FIG. 3 is a flowchart of a third implementation manner of a cloud computing service bill processing method according to an embodiment of the present invention;
图4为本发明实施例的一种云计算业务的账单处理方法第四种实施方式的流程图;FIG. 4 is a flowchart of a fourth implementation manner of a cloud computing service bill processing method according to an embodiment of the present invention;
图5为本发明实施例的一种云计算业务的账单处理装置的结构示意图;5 is a schematic structural diagram of a bill processing device for a cloud computing service according to an embodiment of the present invention;
图6为本发明实施例的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
为了解决现有技术存在的问题,本发明实施例提供了一种云计算业务的账单处理方法、装置、电子设备及存储介质,以实现减少账单处理方式,降低工作人员的工作量。In order to solve the problems existing in the prior art, an embodiment of the present invention provides a bill processing method, device, electronic equipment, and storage medium for cloud computing services, so as to reduce bill processing methods and reduce staff workload.
下面,首先对本发明实施例的一种云计算业务的账单处理方法进行介绍,如图1所示,为本发明实施例的一种云计算业务的账单处理方法第一种实施方式的流程图,该方法可以包括:In the following, a bill processing method for a cloud computing service according to an embodiment of the present invention is firstly introduced, as shown in FIG. 1 , which is a flow chart of a first implementation mode of a bill processing method for a cloud computing service according to an embodiment of the present invention. The method can include:
S110,在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表。S110, when the bill processing instruction is received, obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction.
其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量。Wherein, the business detailed table includes at least the business unit price of the cloud computing business and the total business usage of the cloud computing business.
在一些示例中,本发明实施例的一种云计算业务的账单处理方法可以应用于电子设备,该电子设备可以是个人计算机,也可以是服务器。In some examples, a bill processing method for a cloud computing service in an embodiment of the present invention may be applied to an electronic device, where the electronic device may be a personal computer or a server.
当该电子设备是个人计算机时,该个人计算机可以与云计算服务器通信连接。该云计算服务器上可以存储有每个用户使用云计算业务的业务明细表。使用该个人计算机的工作人员可以向该个人计算机输入计算账单的用户的标识信息,然后点击计算账单的按钮,因此,该个人计算机可以接收到与该计算账单的按钮对应的账单处理指令。在一些示例中,该账单处理指令中可以携带有该用户的标识信息。When the electronic device is a personal computer, the personal computer can communicate with the cloud computing server. The cloud computing server may store a service list for each user using cloud computing services. The staff using the personal computer can input the identification information of the user who calculates the bill to the personal computer, and then click the button for calculating the bill, so that the personal computer can receive the bill processing instruction corresponding to the button for calculating the bill. In some examples, the bill processing instruction may carry the identification information of the user.
该个人计算机在接收到该账单处理指令时,可以从与该个人计算机通信连接的云计算服务器中,获取与该用户标识信息对应的用户使用云计算业务的业务明细表。When the personal computer receives the bill processing instruction, it can obtain the service list of the cloud computing service used by the user corresponding to the user identification information from the cloud computing server communicatively connected to the personal computer.
当该电子设备是服务器时,该服务器中可以存储有各个用户使用云计算业务的业务明细表,该服务器可以与用户的终端设备建立连接。例如,用户可以基于自身的终端设备上安装的客户端或者自身终端设备上的登录该服务器的登录页面,登录至该服务器,从而与该服务器建立连接。When the electronic device is a server, the server may store a service list of cloud computing services used by each user, and the server may establish a connection with the user's terminal device. For example, the user may log in to the server based on the client installed on his own terminal device or the login page of the server on his own terminal device, so as to establish a connection with the server.
然后用户可以向自身的终端设备中输入账单处理指令,并发送至该服务器,因此,该服务器可以接收到账单处理指令。当该服务器接收到账单处理指令时,可以从本地存储的各个用户使用云计算业务的业务明细表中,查找出与该用户标识信息对应的用户使用云计算业务的业务明细表。Then the user can input the bill processing instruction into his own terminal device and send it to the server, so the server can receive the bill processing instruction. When the server receives the bill processing instruction, it can find out the user's service list of cloud computing service corresponding to the user identification information from the locally stored service list of each user's use of cloud computing service.
在一些示例中,该云计算业务可以包括:直播业务、点播业务、下载业务、存储业务等。In some examples, the cloud computing service may include: a live broadcast service, an on-demand service, a download service, a storage service, and the like.
在一些示例中,该业务明细表可以是如表1所示的业务明细表。In some examples, the service list may be the service list shown in Table 1.
在表1中,可以包括云计算业务的各个业务的业务名称、与每个业务名称对应的业务单价以及与每个业务名称对应的业务使用总量。可见,在该业务明细表中,不同的业务具有不同的业务单价和业务使用总量。In Table 1, the service name of each service of the cloud computing service, the service unit price corresponding to each service name, and the total amount of service usage corresponding to each service name may be included. It can be seen that in the business detailed table, different businesses have different business unit prices and business usage totals.
表1业务明细表Table 1 Business Details
在又一些示例中,上述的业务明细表中,还可以包括业务名称对应的业务的业务服务器所在位置和业务名称对应的业务的业务类型等,这也是可以的。In some other examples, the above-mentioned service list may also include the location of the service server of the service corresponding to the service name and the service type of the service corresponding to the service name, which is also possible.
这样,可以通过后续步骤,计算位于不同位置的业务服务器为该用户提供同一业务的账单。In this way, the bills for providing the same service to the user by service servers located in different locations can be calculated through subsequent steps.
S120,基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务。S120. Based on the pre-set business association relationship, determine the business with the association relationship among the cloud computing services.
其中,预先设置的业务关联关系中,不同的业务之间具有不同的关联关系。Among the pre-set business associations, different businesses have different associations.
在一些示例中,上述的电子设备中可以预先存储有针对不同的云计算业务设置的业务关联关系。In some examples, the above-mentioned electronic device may pre-store service associations set for different cloud computing services.
在又一些示例中,可以基于不同的云计算业务的业务类型,来设置业务的关联关系。该业务类型可以是计费方式。In still some examples, service associations may be set based on different service types of cloud computing services. The service type may be a charging method.
例如,假设直播业务、点播业务以及下载业务的计费方式均为按流量计费。则可以对该直播业务、点播业务以及下载业务建立业务关联关系。For example, it is assumed that the billing methods of the live broadcast service, the video-on-demand service, and the download service are all billing by traffic. Then, a service association relationship can be established for the live broadcast service, the on-demand service and the download service.
上述的电子设备在获取到业务明细表后,可以从本地获取到预先设置的业务关联关系,然后基于该预先设置的业务关联关系,确定上述的云计算业务中具有关联关系的业务。After the above-mentioned electronic device obtains the business detailed table, it can obtain the preset business association relationship locally, and then determine the business with the association relationship among the above-mentioned cloud computing services based on the preset business association relationship.
例如,假设预先设置的业务关联关系为直播业务、点播业务以及下载业务的关联关系,则上述的电子设备在获取到表1所示的业务明细表后,可以确定出表1中的业务名称“直播业务”对应的业务、业务名称“点播业务”对应的业务以及业务名称“下载业务”对应的业务之间具有关联关系,也即,表1所示的业务明细表中具有关联关系的业务为“直播业务”、“点播业务”和“下载业务”。For example, assuming that the pre-set business association relationship is the association relationship of live broadcast service, on-demand service and download service, the above-mentioned electronic device can determine the service name in Table 1 after obtaining the service list shown in Table 1. There is an association relationship between the service corresponding to the "live broadcast service", the service corresponding to the service name "on-demand service", and the service corresponding to the service name "download service", that is, the services in the service list shown in Table 1 are "Live broadcast service", "on-demand service" and "download service".
S130,确定具有关联关系的业务中的拟合对象。S130. Determine a fitting object in a service with an association relationship.
S140,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量。S140, fitting the business unit price and/or the total amount of business usage of other businesses except the fitting object in the associated business to the business unit price and/or the total amount of business usage of the fitting object to obtain the fitting object Fitted business unit price and/or total business usage.
上述的电子设备在确定出业务明细表中具有关联关系的业务后,可以在该具有关联关系的业务中确定出一个拟合对象,例如,在该具有关联关系的业务中,任意选择一个云计算业务作为拟合对象。After the above-mentioned electronic device determines the related business in the business list, it can determine a fitting object in the related business, for example, in the related business, arbitrarily select a cloud computing business as the fitting object.
在又一些实例中,为了提高用户体验,可以将具有关联关系的业务中的业务单价最低的业务确定为拟合对象。In some other examples, in order to improve user experience, the service with the lowest service unit price among the services with an associated relationship may be determined as the fitting object.
然后将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中。Then, the business unit price and/or the total amount of business usage of other businesses except the fitting object in the associated business are fitted to the business unit price and/or the total amount of business usage of the fitting object.
例如,可以将与该拟合对象具有关联关系的其他云计算业务的业务单价和业务使用总量,拟合至拟合对象的业务单价和业务使用总量中;还可以将与该拟合对象具有关联关系的其他云计算业务的业务单价或业务使用总量,拟合至拟合对象的业务单价或业务使用总量中。这都是可以的。For example, the business unit price and total business usage of other cloud computing services associated with the fitting object can be fitted to the business unit price and total business usage of the fitting object; The business unit price or total business usage of other cloud computing services with an associated relationship is fitted to the business unit price or total business usage of the fitting object. This is all possible.
在一些示例中,可以采用以下步骤,将与该拟合对象具有关联关系的其他云计算业务的业务单价和业务使用总量,拟合至拟合对象的业务单价和业务使用总量中:In some examples, the following steps may be adopted to fit the business unit price and the total business usage of other cloud computing services associated with the fitting object to the business unit price and the total business usage of the fitting object:
步骤A1,将与拟合对象具有关联关系的云计算业务的业务使用总量,拟合至拟合对象的业务使用总量中,得到拟合对象拟合后的业务使用总量。In step A1, the total business usage of the cloud computing service associated with the fitting object is fitted to the total business usage of the fitting object to obtain the total business usage of the fitting object after fitting.
在一些示例中,上述的电子设备可以将与该拟合对象具有关联关系的云计算业务的业务使用总量,增加至该拟合对象的业务使用总量中,从而可以得到拟合对象拟合后的业务使用总量。In some examples, the above-mentioned electronic device may add the total service usage of the cloud computing service associated with the fitting object to the total service usage of the fitting object, so that the fitting object fitting The total amount of subsequent business usage.
例如,假设上述的电子设备选择的拟合对象为表1中的“点播业务”。则该电子设备可以将表1中的“直播业务”的业务使用总量“1000M”和“下载业务”的业务使用总量“500M”,增加至“点播业务”的业务使用总量“1500M”中,从而可以得到该拟合对象“点播业务”拟合后的业务使用总量为“3000M”。For example, it is assumed that the fitting object selected by the above-mentioned electronic device is "on-demand service" in Table 1. Then the electronic device can increase the total service usage of "live broadcast service" from "1000M" and the total service usage of "download service" from "500M" in Table 1 to the total service usage of "on-demand service" from "1500M". , so it can be obtained that the total service usage of the fitting object "on-demand service" after fitting is "3000M".
步骤A2,基于拟合对象的业务单价和业务使用量,以及与拟合对象具有关联关系的云计算业务的业务使用量和业务单价,计算拟合对象和与拟合对象具有对应关系的云计算业务的总费用。Step A2, based on the business unit price and business usage of the fitting object, and the business usage and business unit price of the cloud computing business associated with the fitting object, calculate the fitting object and the cloud computing service corresponding to the fitting object The total cost of the business.
在一些示例中,为了使得具有关联关系的云计算业务拟合后的总费用与拟合前的总费用接近或者相同。上述的电子设备可以计算具有关联关系的云计算业务拟合前的总费用。In some examples, in order to make the total cost of the associated cloud computing services after fitting close to or the same as the total cost before fitting. The above-mentioned electronic device can calculate the total cost before the fitting of the cloud computing service with an associated relationship.
例如,上述的电子设备可以基于表1中的“直播业务”的业务单价“2元/M”和业务使用总量“1000M”,表1中的“点播业务”的业务单价“4元/M”和业务使用总量“1500M”,表1中的“下载业务”的业务单价“5元/M”和业务使用总量“500M”,计算得到该具有关联关系的“直播业务”、“点播业务”和“下载业务”的总费用为“10500元”。For example, the above-mentioned electronic equipment can be based on the service unit price of "2 yuan/M" and the total service usage "1000M" of the "live broadcast service" in Table 1, and the service unit price of "4 yuan/M" of the "on-demand service" in Table 1. " and the total amount of business usage "1500M", the business unit price of "download business" in Table 1 is "5 yuan/M" and the total amount of business usage "500M", and the associated "live broadcast business", "on-demand The total cost of "business" and "download business" is "10,500 yuan".
步骤A3,将总费用和拟合对象拟合后的业务使用总量的商值作为拟合对象拟合后的业务单价。In step A3, the quotient of the total cost and the total amount of business usage after fitting of the fitting object is used as the business unit price after fitting of the fitting object.
上述的电子设备在得到总费用后,可以计算该总费用与拟合对象拟合后的业务使用总量的商值,然后将该商值作为该拟合对象拟合后的业务单价,这样,可以使得在后续计算业务明细表对应的账单时,该具有关联关系的云计算业务拟合前的总费用与拟合后的总费用接近或者相同。After the above-mentioned electronic device obtains the total cost, it can calculate the quotient value of the total cost and the total amount of service usage after fitting the fitting object, and then use the quotient value as the service unit price after fitting the fitting object. In this way, It can be made that when the bill corresponding to the business detailed table is subsequently calculated, the total cost of the associated cloud computing service before fitting is close to or the same as the total cost after fitting.
例如,上述的电子设备可以基于总费用“10500”和拟合对象“点播业务”拟合后的业务使用总量“3000M”,来计算得到拟合对象拟合后的业务单价为“3.5元/M”。For example, the above-mentioned electronic equipment can be calculated based on the total cost of "10500" and the total service usage of the fitting object "on-demand service" "3000M", and the unit price of the fitting object after fitting is "3.5 yuan/ M".
S150,基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。S150. Calculate the bill corresponding to the business detailed table based on the unit price of the business and/or the total amount of business usage after the fitting object is fitted.
上述的电子设备在得到拟合对象拟合后的业务单价和/或业务使用总量后,可以基于该拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。After the above-mentioned electronic device obtains the business unit price and/or the total amount of business usage after the fitting object is fitted, it can calculate the corresponding value of the business schedule based on the business unit price and/or the total amount of business usage after the fitting object is fitted. bill.
例如,假设上述的电子设备得到的拟合对象“点播业务”拟合后的业务使用总量为“3000M”,拟合后的业务单价为“3.5元/M”。则可以计算包含该拟合对象“点播业务”的业务明细表对应的账单。得到的账单可以是如表2所示的第一拟合后的账单。For example, assume that the fitting object "on-demand service" obtained by the above-mentioned electronic device has a fitting total service usage of "3000M", and a fitting service unit price of "3.5 yuan/M". Then the bill corresponding to the service detail table including the fitting object "on-demand service" can be calculated. The bill obtained may be the bill after the first fitting as shown in Table 2.
表2第一拟合后的账单Table 2 Bills after the first fit
在一些示例中,该表2中还可以设置有备注,该备注用于表示已将“直播业务”和“下载业务”的费用拟合至“点播业务”的费用中。In some examples, a remark may also be set in Table 2, and the remark is used to indicate that the fees of the "live broadcast service" and the "download service" have been fitted into the fee of the "on-demand service".
本发明实施例提供的一种云计算业务的账单处理方法,在接收到账单处理指令时,可以首先获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,然后基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务,在确定出具有关联关系的云计算业务后,可以确定具有关联关系的业务中的拟合对象,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;这样,可以在计算总的账单时,可以按照拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。从而可以避免在计算账单的电子设备中针对不同业务设置对应的账单处理方式,从而可以减少账单处理方式,降低工作人员的工作量。In a bill processing method for a cloud computing service provided by an embodiment of the present invention, when receiving a bill processing instruction, it may first obtain a service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, Then, based on the pre-set business association relationship, determine the associated business in the cloud computing business. After determining the associated cloud computing business, you can determine the fitting object in the associated business. The business unit price and/or the total amount of business usage of other businesses in the business except the fitting object are fitted to the business unit price and/or the total amount of business usage of the fitting object, and the business unit price and/or the total amount of business usage of the fitting object are obtained after fitting /or the total amount of business usage; in this way, when calculating the total bill, the bill corresponding to the business detail table can be calculated according to the business unit price and/or the total amount of business usage after fitting the fitting object. Therefore, setting corresponding bill processing methods for different services in the electronic device for calculating bills can be avoided, thereby reducing bill processing methods and reducing the workload of staff.
在图1所示的一种云计算业务的账单处理方法的基础上,本发明实施例还提供了一种可能的实现方式,如图2所示,为本发明实施例的一种云计算业务的账单处理方法第二种实施方式的流程图,该方法可以包括:On the basis of the bill processing method for a cloud computing service shown in Figure 1, the embodiment of the present invention also provides a possible implementation, as shown in Figure 2, which is a cloud computing service of the embodiment of the present invention A flow chart of the second implementation of the bill processing method, the method may include:
S210,在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表。S210. When the bill processing instruction is received, obtain a service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction.
其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量。Wherein, the business detailed table includes at least the business unit price of the cloud computing business and the total business usage of the cloud computing business.
S220,查询是否存在预先设置的业务关联关系。S220. Query whether there is a preset business relationship.
如果否,则执行步骤S230,如果是,则执行步骤S240;If no, then perform step S230, if yes, then perform step S240;
S230,基于业务明细表中每个云计算业务的业务单价以及对应的业务使用量,计算业务明细表对应的账单。S230. Based on the service unit price of each cloud computing service in the service list and the corresponding service usage, calculate the bill corresponding to the service list.
S240,基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务。S240. Based on the preset business association relationship, determine the services with association relationship in the cloud computing service.
其中,预先设置的业务关联关系中,不同的业务之间具有不同的关联关系。Among the pre-set business associations, different businesses have different associations.
S250,确定具有关联关系的业务中的拟合对象。S250. Determine fitting objects in services with an association relationship.
S260,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量。S260, fitting the business unit price and/or the total amount of business usage of other businesses except the fitting object in the business with the relationship to the business unit price and/or the total amount of business usage of the fitting object to obtain the fitting object Fitted business unit price and/or total business usage.
S270,基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。S270. Calculate the bill corresponding to the business detailed table based on the unit price of the business and/or the total amount of business usage after the fitting object is fitted.
在一些示例中,上述的电子设备中还可能未存储有预先设置的业务关联关系。因此,为了在该电子设备中未存储预先设置的业务关联关系时,也能够计算账单,上述的电子设备可以在获取到业务明细表后,可以在本地查询是否存在预先设置的业务关联关系。In some examples, there may be no preset business association relationship stored in the above-mentioned electronic device. Therefore, in order to calculate the bill even when no preset business relationship is stored in the electronic device, the above-mentioned electronic device can locally inquire whether there is a preset business relationship after obtaining the business list.
在一些示例中,上述的电子设备可以在该业务明细表中选择一个云计算业务,然后在查询是否存在包含该云计算业务的标识信息的预先设置的业务关联关系。In some examples, the above-mentioned electronic device may select a cloud computing service in the service list, and then inquire whether there is a preset service association relationship including the identification information of the cloud computing service.
如果查询不到包含任一云计算业务的标识信息的预先设置的业务关联关系,则上述的电子设备可以基于业务明细表中每个云计算业务的业务单价以及对应的业务使用量,计算业务明细表对应的账单。If the pre-set business association relationship containing the identification information of any cloud computing service cannot be found, the above-mentioned electronic device can calculate the service details based on the service unit price of each cloud computing service and the corresponding service usage in the service list The bill corresponding to the table.
例如,假设上述的电子设备中查询不到包含表1所示的“直播业务”、“点播业务”、“下载业务”和“存储业务”中的任一云计算业务的预先设置的业务关联关系。则上述的电子设备可以基于云计算业务“直播业务”的业务单价“2元/M”和业务使用总量“1000M”,来计算该云计算业务“直播业务”的业务总费用;基于云计算业务“点播业务”的业务单价“4元/M”和业务使用总量“1500M”,来计算该云计算业务“点播业务”的业务总费用;基于云计算业务“下载业务”的业务单价“5元/M”和业务使用总量“500M”,来计算该云计算业务“下载业务”的业务总费用;从而可以得到表3所示的未拟合时的账单。该未拟合时的账单可以包含表1所示的“直播业务”、“点播业务”、“下载业务”和“存储业务”各自对应的业务总费用。For example, assume that the above-mentioned electronic device cannot find any pre-set business association relationship including any cloud computing service in the "live broadcast service", "on-demand service", "download service" and "storage service" shown in Table 1 . Then the above-mentioned electronic device can calculate the total service cost of the cloud computing service "live service" based on the service unit price of "2 yuan/M" and the total service usage "1000M" of the cloud computing service "live service"; The service unit price of the service "on-demand service" is "4 yuan/M" and the total service usage is "1500M" to calculate the total service cost of the cloud computing service "on-demand service"; based on the service unit price of the cloud computing service "download service" " 5 yuan/M" and the total business usage "500M" to calculate the total business cost of the cloud computing business "download business"; thus, the unfit bill shown in Table 3 can be obtained. The bill at the time of unfitting may include the total service fees corresponding to each of the "live broadcast service", "on-demand service", "download service" and "storage service" shown in Table 1.
表3未拟合时的账单Table 3 Billing when not fitted
在一些示例中,当上述的电子设备查询到包含任一云计算业务的标识信息的预先设置的业务关联关系时,则可以执行步骤S240,确定出与该云计算业务具有关联关系的其他云计算业务,从而可以通过后续步骤,得到该云计算业务以及与该云计算业务具有关联关系的其他云计算业务拟合后的账单。In some examples, when the above-mentioned electronic device inquires about the preset business association relationship containing the identification information of any cloud computing business, step S240 may be executed to determine other cloud computing services that have an association relationship with the cloud computing business. business, so that through subsequent steps, the fitted bills of the cloud computing business and other cloud computing businesses associated with the cloud computing business can be obtained.
可以理解的是,步骤S210、S240~S270可以参考本发明实施例的一种云计算业务的账单处理方法第一种实施方式中的步骤S110~S150,这里不再赘述。It can be understood that, for steps S210, S240-S270, reference may be made to steps S110-S150 in the first implementation manner of a bill processing method for a cloud computing service in the embodiment of the present invention, which will not be repeated here.
在图2所示的一种云计算业务的账单处理方法的基础上,本发明实施例还提供了一种可能的实现方式,如图3所示,为本发明实施例的一种云计算业务的账单处理方法第三种实施方式的流程图,该方法可以包括:On the basis of the bill processing method for a cloud computing service shown in FIG. 2 , an embodiment of the present invention also provides a possible implementation, as shown in FIG. 3 , which is a cloud computing service in an embodiment of the present invention A flow chart of the third embodiment of the bill processing method, the method may include:
S310,在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表。S310. When the bill processing instruction is received, obtain a service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction.
其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量。Wherein, the business detailed table includes at least the business unit price of the cloud computing business and the total business usage of the cloud computing business.
S320,查询是否存在预先设置的业务关联关系。S320. Query whether there is a preset business relationship.
如果否,则执行步骤S330,如果是,则执行步骤S340;If no, then perform step S330, if yes, then perform step S340;
S330,基于业务明细表中每个云计算业务的业务单价以及对应的业务使用量,计算业务明细表对应的账单。S330. Based on the service unit price of each cloud computing service in the service list and the corresponding service usage, calculate the bill corresponding to the service list.
S340,基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务。S340. Based on the preset business association relationship, determine the services with association relationship in the cloud computing service.
其中,预先设置的业务关联关系中,不同的业务之间具有不同的关联关系;Among the pre-set business associations, different businesses have different associations;
S350,展示云计算业务中具有关联关系的业务。S350, displaying related services in the cloud computing service.
S360,获取用户基于展示的具有关联关系的业务选择的拟合对象。S360. Acquire fitting objects selected by the user based on the displayed services with associated relationships.
S370,确定具有关联关系的业务中的拟合对象。S370. Determine fitting objects in services with an association relationship.
S380,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量。S380, fitting the business unit price and/or the total amount of business usage of other businesses except the fitting object in the associated business to the business unit price and/or the total amount of business usage of the fitting object to obtain the fitting object Fitted business unit price and/or total business usage.
S390,基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。S390. Calculate the bill corresponding to the business detailed table based on the unit price of the business and/or the total amount of business usage after the fitting object is fitted.
可以理解的是,步骤S310~S340和S370~S390可以参考本发明实施例的一种云计算业务的账单处理方法第二种实施方式中的步骤S210~S240和S250~S270,这里不再赘述。It can be understood that, for steps S310-S340 and S370-S390, reference may be made to steps S210-S240 and S250-S270 in the second implementation manner of a bill processing method for a cloud computing service in the embodiment of the present invention, and details are not repeated here.
在一些示例中,为了提高应用本发明实施例的一种云计算业务的账单处理方法的灵活性,除了由上述的电子设备选择一个云计算业务作为拟合对象外,还可以由用户指定一个云计算业务作为拟合对象。In some examples, in order to improve the flexibility of applying a bill processing method for a cloud computing service according to an embodiment of the present invention, in addition to selecting a cloud computing service as a fitting object by the above-mentioned electronic device, the user may also specify a cloud computing service Calculate business as the fitting object.
对此,上述的电子设备在基于预先设置的业务关联关系,确定业务明细表中具有关联关系的云计算业务后,可以向用户展示该业务明细表中具有关联关系的云计算业务。In this regard, the above-mentioned electronic device may display the associated cloud computing services in the service list to the user after determining the associated cloud computing services in the service list based on the preset service associations.
在一些示例中,当该电子设备为个人计算机时,该个人计算机可以连接有显示器,则该个人计算机可以将该业务明细表中具有关联关系的云计算业务发送至该显示器进行展示。In some examples, when the electronic device is a personal computer, the personal computer may be connected to a display, and the personal computer may send the associated cloud computing services in the service list to the display for display.
当该电子设备为服务器时,该服务器可以将该业务明细表中具有关联关系的云计算业务发送至与该服务器通信连接的用户的终端设备中进行展示,这都是可以的。When the electronic device is a server, the server can send the associated cloud computing services in the service list to the terminal device of the user communicating with the server for display, which is all possible.
在一些示例中,上述的电子设备可以在展示业务明细表中具有关联关系的云计算业务时,为该具有关联关系的云计算业务对应显示选择按钮,以便用户通过该选择按钮,从该具有关联关系的云计算业务中选择一个云计算业务作为拟合对象。In some examples, when displaying the associated cloud computing services in the business list, the above-mentioned electronic device may display a selection button for the associated cloud computing services, so that the user can select from the associated cloud computing services through the selection button. Select a cloud computing business from the cloud computing business of the relationship as the fitting object.
当用户从该具有关联关系的云计算业务中选择出拟合对象后,上述的电子设备可以获取到用户基于该业务明细表中具有关联关系的云计算业务,选择得到拟合对象。然后可以执行步骤S370。After the user selects a fitting object from the associated cloud computing services, the above-mentioned electronic device may obtain the fitting object selected by the user based on the associated cloud computing services in the service list. Then step S370 can be executed.
这样,可以基于用户选择的拟合对象进行业务单价和/或业务使用总量的拟合。提高用户体验。In this way, the fitting of the service unit price and/or the total amount of service usage can be performed based on the fitting object selected by the user. Improve user experience.
在图2所示的一种云计算业务的账单处理方法的基础上,本发明实施例还提供了一种可能的实现方式,如图4所示,为本发明实施例的一种云计算业务的账单处理方法第四种实施方式的流程图,该方法可以包括:On the basis of the bill processing method for a cloud computing service shown in FIG. 2 , an embodiment of the present invention also provides a possible implementation, as shown in FIG. 4 , which is a cloud computing service in an embodiment of the present invention A flow chart of the fourth implementation of the bill processing method, the method may include:
S410,在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表。S410. When the bill processing instruction is received, obtain a service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction.
其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量。Wherein, the business detailed table includes at least the business unit price of the cloud computing business and the total business usage of the cloud computing business.
S420,查询是否存在预先设置的业务关联关系。S420. Query whether there is a preset business relationship.
如果否,则执行步骤S430,如果是,则执行步骤S440。If no, execute step S430, and if yes, execute step S440.
S430,基于业务明细表中每个云计算业务的业务单价以及对应的业务使用量,计算业务明细表对应的账单。S430. Calculate a bill corresponding to the service list based on the service unit price of each cloud computing service in the service list and the corresponding service usage.
S440,基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务。S440. Based on the preset business association relationship, determine the services with association relationship in the cloud computing service.
其中,预先设置的业务关联关系中,不同的业务之间具有不同的关联关系。Among the pre-set business associations, different businesses have different associations.
S450,确定具有关联关系的业务中的拟合对象。S450. Determine fitting objects in services with an association relationship.
S460,将具有关联关系的业务中除拟合对象外的其它业务的业务的业务使用总量,拟合至拟合对象的业务使用总量中,得到拟合对象拟合后的业务使用总量。S460, fitting the total business usage of other businesses except the fitting object among the related businesses to the total business usage of the fitting object, to obtain the total business usage of the fitting object after fitting .
S470,基于拟合对象拟合后的业务使用总量和拟合对象的业务单价,计算业务明细表对应的账单。S470. Calculate the bill corresponding to the business detailed table based on the total amount of business usage after fitting of the fitting object and the business unit price of the fitting object.
在又一些示例中,上述的电子设备在将与该拟合对象具有关联关系的其他云计算业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中时,可以将与该拟合对象具有关联关系的其他云计算业务的业务使用总量,拟合至拟合对象的业务使用总量中。例如,将表1所示的“直播业务”的业务使用总量和“下载业务”的业务使用总量,拟合至“点播业务”的业务使用总量,也即,将表1所示的“直播业务”的业务使用总量和“下载业务”的业务使用总量,增加至“点播业务”的业务使用总量中,从而可以得到“点播业务”拟合后的业务使用总量“3000M”。In some other examples, the above-mentioned electronic device fits the business unit price and/or the total amount of business usage of other cloud computing services that have an association relationship with the fitting object to the business unit price and/or business usage of the fitting object When the total amount is in the total amount, the total amount of service usage of other cloud computing services associated with the fitting object can be fitted to the total amount of business usage of the fitting object. For example, the total service usage of the "live broadcast service" and the total service usage of the "download service" shown in Table 1 are fitted to the total service usage of the "on-demand service", that is, the total service usage shown in Table 1 is The total business usage of the "live broadcast service" and the total business usage of the "download business" are added to the total business usage of the "on-demand service", so that the total business usage of the "on-demand service" can be obtained "3000M ".
上述的电子设备在得到拟合对象拟合后的业务使用总量后,在计算业务明细表对应的账单时,可以基于该拟合对象拟合后的业务使用总量和该拟合对象的业务单价,计算该业务明细表对应的账单。After obtaining the total amount of business usage of the fitting object, the above-mentioned electronic device can calculate the bill corresponding to the business schedule based on the total amount of business usage of the fitting object and the business amount of the fitting object. Unit price, calculate the bill corresponding to the business detail table.
例如,可以基于“点播业务”拟合后的业务使用总量“3000M”和“点播业务”的业务单价,计算该业务明细表对应的账单。For example, the bill corresponding to the service detail table may be calculated based on the fitted service usage amount of "3000M" of the "on-demand service" and the service unit price of the "on-demand service".
例如,通过上述步骤,计算得到与表1所示业务明细表对应的账单可以是表4所示的第二拟合后的账单。For example, through the above steps, the calculated bill corresponding to the business detailed table shown in Table 1 may be the second fitted bill shown in Table 4.
表4第二拟合后的账单Table 4 Bills after the second fit
在一些示例中,该表2中还可以设置有备注,该备注用于表示已将“直播业务”和“下载业务”的费用拟合至“点播业务”的费用中。In some examples, a remark may also be set in Table 2, and the remark is used to indicate that the fees of the "live broadcast service" and the "download service" have been fitted into the fee of the "on-demand service".
这样,可以实现仅采用拟合对象的业务单价和拟合对象拟合后的业务使用总量计算业务总费用。减少应用本发明实施例的一种云计算业务的账单处理方法的电子设备的计算量,节省计算过程中的资源开销。In this way, it is possible to calculate the total business cost by only using the business unit price of the fitting object and the total amount of business usage of the fitting object after fitting. The calculation amount of the electronic device applying the bill processing method of the cloud computing service according to the embodiment of the present invention is reduced, and the resource overhead in the calculation process is saved.
可以理解的是,步骤S410~S440可以参考本发明实施例的一种云计算业务的账单处理方法第二种实施方式中的步骤S210~S240,这里不再赘述。It can be understood that, for steps S410-S440, reference may be made to steps S210-S240 in the second implementation manner of a bill processing method for a cloud computing service in the embodiment of the present invention, which will not be repeated here.
相应于上述的方法实施例,本发明实施例还提供了一种云计算业务的账单处理装置,如图5所示,为本发明实施例的一种云计算业务的账单处理装置的结构示意图,该装置可以包括:Corresponding to the above method embodiment, the embodiment of the present invention also provides a bill processing device for cloud computing services, as shown in FIG. 5 , which is a schematic structural diagram of a bill processing device for cloud computing services according to an embodiment of the present invention. The device can include:
业务明细表获取模块510,用于在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量;The business detailed table acquisition module 510 is configured to obtain the service detailed table of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction when receiving the bill processing instruction, wherein the business detailed table includes at least cloud computing The business unit price of the business and the total business usage of the cloud computing business;
关联关系确定模块520,用于基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务;An association relationship determining module 520, configured to determine the business with an association relationship in the cloud computing business based on the preset business association relationship;
拟合对象确定模块530,用于确定具有关联关系的业务中的拟合对象;A fitting object determination module 530, configured to determine a fitting object in a business having an association relationship;
拟合模块540,用于将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;The fitting module 540 is used to fit the business unit price and/or the total amount of business usage of other businesses in the associated business except the fitting object to the business unit price and/or the total amount of business usage of the fitting object , to obtain the business unit price and/or the total business usage after the fitting object is fitted;
第一账单处理模块550,用于基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。The first bill processing module 550 is configured to calculate the bill corresponding to the business detailed table based on the unit price of the business and/or the total amount of business usage after fitting the fitting object.
本发明实施例提供的一种云计算业务的账单处理装置,在接收到账单处理指令时,可以首先获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,然后基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务,在确定出具有关联关系的云计算业务后,可以确定具有关联关系的业务中的拟合对象,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;这样,可以在计算总的账单时,可以按照拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。从而可以避免在计算账单的电子设备中针对不同业务设置对应的账单处理方式,从而可以减少账单处理方式,降低工作人员的工作量。A bill processing device for cloud computing services provided by an embodiment of the present invention, when receiving a bill processing instruction, may first obtain a service list of cloud computing services used by the user corresponding to the user identification information carried in the bill processing instruction, Then, based on the pre-set business association relationship, determine the associated business in the cloud computing business. After determining the associated cloud computing business, you can determine the fitting object in the associated business. The business unit price and/or the total amount of business usage of other businesses in the business except the fitting object are fitted to the business unit price and/or the total amount of business usage of the fitting object, and the business unit price and/or the total amount of business usage of the fitting object are obtained after fitting /or the total amount of business usage; in this way, when calculating the total bill, the bill corresponding to the business detail table can be calculated according to the business unit price and/or the total amount of business usage after fitting the fitting object. Therefore, setting corresponding bill processing methods for different services in the electronic device for calculating bills can be avoided, thereby reducing bill processing methods and reducing the workload of staff.
在一些示例中,该云计算业务的账单处理装置,还包括:In some examples, the bill processing device for the cloud computing service further includes:
查询模块,用于查询是否存在预先设置的业务关联关系,如果否,触发第二账单处理模块,如果是,触发关联关系确定模块520;The query module is used to query whether there is a preset business relationship, if not, trigger the second bill processing module, and if so, trigger the relationship determination module 520;
第二账单处理模块,用于基于业务明细表中每个云计算业务的业务单价以及对应的业务使用量,计算业务明细表对应的账单。The second bill processing module is configured to calculate the bill corresponding to the business detailed table based on the business unit price of each cloud computing service in the business detailed table and the corresponding service usage.
在一些示例中,该云计算业务的账单处理装置,还包括:In some examples, the bill processing device for the cloud computing service further includes:
展示模块,用于展示云计算业务中具有关联关系的业务;The display module is used to display related services in cloud computing services;
拟合对象确定模块530,具体用于获取用户基于展示的具有关联关系的业务选择的拟合对象。The fitting object determination module 530 is specifically configured to obtain the fitting object selected by the user based on the displayed business with an associated relationship.
在一些示例中,拟合模块540,包括:In some examples, the fitting module 540 includes:
业务使用量拟合单元,用于将与拟合对象具有关联关系的云计算业务的业务使用总量,拟合至拟合对象的业务使用总量中,得到拟合对象拟合后的业务使用总量;The business usage fitting unit is used to fit the total business usage of the cloud computing business associated with the fitting object to the total business usage of the fitting object to obtain the business usage after fitting the fitting object total amount;
总费用计算单元,用于基于拟合对象的业务单价和业务使用总量,以及与拟合对象具有关联关系的云计算业务的业务使用总量和业务单价,计算拟合对象和与拟合对象具有关联关系的业务的总费用;The total cost calculation unit is used to calculate the fitting object and the fitting object based on the business unit price and the total amount of business usage of the fitting object, as well as the total amount of business usage and the business unit price of the cloud computing business that has an associated relationship with the fitting object the total expenses of the business with which the relationship is related;
业务单价拟合单元,用于将总费用和拟合对象拟合后的业务使用总量的商值作为拟合对象拟合后的业务单价;The business unit price fitting unit is used to use the quotient of the total cost and the total business usage after fitting the fitting object as the business unit price after fitting the fitting object;
第一账单处理模块550,具体用于:The first bill processing module 550 is specifically used for:
基于拟合对象拟合后的业务单价和业务使用总量,计算业务明细表对应的账单。Based on the business unit price and total business usage after fitting the fitting object, calculate the bill corresponding to the business detail table.
在一些示例中,拟合模块540,具体用于:In some examples, the fitting module 540 is configured to:
将与拟合对象具有关联关系的云计算业务的业务使用总量,拟合至拟合对象的业务使用总量中,得到拟合对象拟合后的业务使用总量;Fitting the total business usage of cloud computing services associated with the fitting object to the total business usage of the fitting object to obtain the total business usage of the fitting object after fitting;
第一账单处理模块550,具体用于:The first bill processing module 550 is specifically used for:
基于拟合对象拟合后的业务使用总量和拟合对象的业务单价,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the total amount of business usage after fitting the fitting object and the business unit price of the fitting object.
拟合对象确定模块530,具体用于:The fitting object determination module 530 is specifically used for:
将所述具有关联关系的业务中的业务单价最低的业务确定为拟合对象。The business with the lowest business unit price among the related businesses is determined as the fitting object.
本发明实施例还提供了一种电子设备,如图6所示,为本发明实施例的一种云计算业务的账单处理方法应用于电子设备的结构示意图,该电子设备可以包括处理器601和机器可读存储介质602,机器可读存储介质602存储有能够被处理器601执行的机器可执行指令,处理器601被机器可执行指令促使:实现以下步骤:An embodiment of the present invention also provides an electronic device. As shown in FIG. 6 , it is a schematic structural diagram of a cloud computing service bill processing method applied to an electronic device according to an embodiment of the present invention. The electronic device may include a processor 601 and The machine-readable storage medium 602, the machine-readable storage medium 602 stores machine-executable instructions that can be executed by the processor 601, and the processor 601 is prompted by the machine-executable instructions to: implement the following steps:
在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量;When receiving the bill processing instruction, obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, wherein the service list includes at least the service unit price of the cloud computing service and the cloud computing service. total business use;
基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务;Based on the pre-set business association relationship, determine the business with the association relationship in the cloud computing business;
确定具有关联关系的业务中的拟合对象;Determine the fitting objects in the business with an associated relationship;
将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;Fitting the business unit price and/or the total amount of business usage of other businesses in the business with an associated relationship except the fitting object to the business unit price and/or the total amount of business usage of the fitting object to obtain the fitting object fitting The subsequent business unit price and/or total business usage;
基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the business unit price and/or the total business usage after fitting the fitting object.
本发明实施例提供的一种电子设备,在接收到账单处理指令时,可以首先获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,然后基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务,在确定出具有关联关系的云计算业务后,可以确定具有关联关系的业务中的拟合对象,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;这样,可以在计算总的账单时,可以按照拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。从而可以避免在计算账单的电子设备中针对不同业务设置对应的账单处理方式,从而可以减少账单处理方式,降低工作人员的工作量。An electronic device provided by an embodiment of the present invention, when receiving a bill processing instruction, can first obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, and then based on the preset Business association relationship, to determine the associated business in the cloud computing business, after determining the associated cloud computing business, you can determine the fitting object in the associated business, and remove the fitting object from the associated business The business unit price and/or total business usage of other businesses outside the target are fitted to the business unit price and/or total business usage of the fitting object to obtain the business unit price and/or total business usage of the fitting object In this way, when calculating the total bill, the bill corresponding to the business detail table can be calculated according to the business unit price and/or the total business usage after fitting the fitting object. Therefore, setting corresponding bill processing methods for different services in the electronic device for calculating bills can be avoided, thereby reducing bill processing methods and reducing the workload of staff.
机器可读存储介质602可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The machine-readable storage medium 602 may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one magnetic disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.
上述的处理器601可以是通用处理器,包括中央处理器(Central ProcessingUnit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DigitalSignal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor 601 can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DigitalSignal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现如下步骤:The embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:
在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量;When receiving the bill processing instruction, obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, wherein the service list includes at least the service unit price of the cloud computing service and the cloud computing service. total business usage;
基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务;Based on the pre-set business association relationship, determine the business with the association relationship in the cloud computing business;
确定具有关联关系的业务中的拟合对象;Determine the fitting objects in the business with an associated relationship;
将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;Fitting the business unit price and/or the total amount of business usage of other businesses in the business with an associated relationship except the fitting object to the business unit price and/or the total amount of business usage of the fitting object to obtain the fitting object fitting The subsequent business unit price and/or total business usage;
基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the business unit price and/or the total business usage after fitting the fitting object.
本发明实施例提供的一种计算机可读存储介质,在接收到账单处理指令时,可以首先获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,然后基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务,在确定出具有关联关系的云计算业务后,可以确定具有关联关系的业务中的拟合对象,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;这样,可以在计算总的账单时,可以按照拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。从而可以避免在计算账单的电子设备中针对不同业务设置对应的账单处理方式,从而可以减少账单处理方式,降低工作人员的工作量。According to a computer-readable storage medium provided by an embodiment of the present invention, when receiving a bill processing instruction, it can first obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, and then based on The pre-set business association relationship determines the associated business in the cloud computing business. After the associated cloud computing business is determined, the fitting object in the associated business can be determined, and the associated business The business unit price and/or the total amount of business usage of other businesses other than the fitting object are fitted to the business unit price and/or the total amount of business usage of the fitting object to obtain the business unit price and/or the fitting object after fitting The total amount of business usage; in this way, when calculating the total bill, the bill corresponding to the business detail table can be calculated according to the business unit price and/or the total amount of business usage after fitting the fitting object. Therefore, setting corresponding bill processing methods for different services in the electronic device for calculating bills can be avoided, thereby reducing bill processing methods and reducing the workload of staff.
本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以下步骤:The embodiment of the present invention also provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the following steps:
在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量;When receiving the bill processing instruction, obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, wherein the service list includes at least the service unit price of the cloud computing service and the cloud computing service. total business usage;
基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务;Based on the pre-set business association relationship, determine the business with the association relationship in the cloud computing business;
确定具有关联关系的业务中的拟合对象;Determine the fitting objects in the business with an associated relationship;
将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;Fitting the business unit price and/or the total amount of business usage of other businesses in the business with an associated relationship except the fitting object to the business unit price and/or the total amount of business usage of the fitting object to obtain the fitting object fitting The subsequent business unit price and/or total business usage;
基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the business unit price and/or the total business usage after fitting the fitting object.
本发明实施例提供的一种包含指令的计算机程序产品,在接收到账单处理指令时,可以首先获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,然后基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务,在确定出具有关联关系的云计算业务后,可以确定具有关联关系的业务中的拟合对象,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;这样,可以在计算总的账单时,可以按照拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。从而可以避免在计算账单的电子设备中针对不同业务设置对应的账单处理方式,从而可以减少账单处理方式,降低工作人员的工作量。According to a computer program product containing instructions provided by an embodiment of the present invention, when receiving a bill processing instruction, it may first obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, and then Based on the pre-set business association relationship, determine the associated business in the cloud computing business. After determining the associated cloud computing business, you can determine the fitting object in the associated business. Fit the business unit price and/or the total amount of business usage of other businesses except the fitting object in the fitting object to the business unit price and/or the total amount of business usage of the fitting object, and obtain the business unit price and/or the total amount of business usage of the fitting object or the total amount of business usage; in this way, when calculating the total bill, the bill corresponding to the business detail table can be calculated according to the business unit price and/or the total amount of business usage after fitting the fitting object. Therefore, setting corresponding bill processing methods for different services in the electronic device for calculating bills can be avoided, thereby reducing bill processing methods and reducing the workload of staff.
本发明实施例还提供了一种计算机程序,当其在计算机上运行时,使得计算机执行以下步骤:An embodiment of the present invention also provides a computer program that, when run on a computer, causes the computer to perform the following steps:
在接收到账单处理指令时,获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,其中,业务明细表至少包括云计算业务的业务单价以及云计算业务的业务使用总量;When receiving the bill processing instruction, obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, wherein the service list includes at least the service unit price of the cloud computing service and the cloud computing service. total business usage;
基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务;Based on the pre-set business association relationship, determine the business with the association relationship in the cloud computing business;
确定具有关联关系的业务中的拟合对象;Determine the fitting objects in the business with an associated relationship;
将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;Fitting the business unit price and/or the total amount of business usage of other businesses in the business with an associated relationship except the fitting object to the business unit price and/or the total amount of business usage of the fitting object to obtain the fitting object fitting The subsequent business unit price and/or total business usage;
基于拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。Calculate the bill corresponding to the business detail table based on the business unit price and/or the total business usage after fitting the fitting object.
本发明实施例提供的一种计算机程序,在接收到账单处理指令时,可以首先获取与账单处理指令中携带的用户标识信息对应的用户使用的云计算业务的业务明细表,然后基于预先设置的业务关联关系,确定云计算业务中具有关联关系的业务,在确定出具有关联关系的云计算业务后,可以确定具有关联关系的业务中的拟合对象,将具有关联关系的业务中除拟合对象外的其它业务的业务单价和/或业务使用总量,拟合至拟合对象的业务单价和/或业务使用总量中,得到拟合对象拟合后的业务单价和/或业务使用总量;这样,可以在计算总的账单时,可以按照拟合对象拟合后的业务单价和/或业务使用总量,计算业务明细表对应的账单。从而可以避免在计算账单的电子设备中针对不同业务设置对应的账单处理方式,从而可以减少账单处理方式,降低工作人员的工作量。According to a computer program provided by an embodiment of the present invention, when receiving a bill processing instruction, it can first obtain the service list of the cloud computing service used by the user corresponding to the user identification information carried in the bill processing instruction, and then based on the preset Business association relationship, to determine the associated business in the cloud computing business, after determining the associated cloud computing business, you can determine the fitting object in the associated business, and remove the fitting object from the associated business The business unit price and/or total business usage of other businesses outside the target are fitted to the business unit price and/or total business usage of the fitting object to obtain the business unit price and/or total business usage of the fitting object In this way, when calculating the total bill, the bill corresponding to the business detail table can be calculated according to the business unit price and/or the total business usage after fitting the fitting object. Therefore, setting corresponding bill processing methods for different services in the electronic device for calculating bills can be avoided, thereby reducing bill processing methods and reducing the workload of staff.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiment.
上述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The foregoing are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910473255.2A CN110175820A (en) | 2019-05-31 | 2019-05-31 | Bill processing method, device, electronic equipment and the storage medium of cloud calculation service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910473255.2A CN110175820A (en) | 2019-05-31 | 2019-05-31 | Bill processing method, device, electronic equipment and the storage medium of cloud calculation service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110175820A true CN110175820A (en) | 2019-08-27 |
Family
ID=67697077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910473255.2A Pending CN110175820A (en) | 2019-05-31 | 2019-05-31 | Bill processing method, device, electronic equipment and the storage medium of cloud calculation service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110175820A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112465615A (en) * | 2020-12-01 | 2021-03-09 | 中国联合网络通信集团有限公司 | Bill data processing method, device and system |
CN114189461A (en) * | 2020-09-11 | 2022-03-15 | 北京金山云网络技术有限公司 | Bandwidth bill generation method and device, electronic equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150066713A1 (en) * | 2013-09-04 | 2015-03-05 | Capital One Financial Corporation | Entropic link filter for automatic network generation |
CN106991727A (en) * | 2016-01-21 | 2017-07-28 | 北京四维图新科技股份有限公司 | A kind of method and system of highway intercommunication charging |
CN107590731A (en) * | 2017-08-31 | 2018-01-16 | 深圳市联邦重科电子科技有限公司 | A kind of recording method, device and the equipment of bill expense |
CN108062383A (en) * | 2017-12-13 | 2018-05-22 | 泰康保险集团股份有限公司 | Generation method, device and the equipment of moon bill are insured again |
CN108781222A (en) * | 2016-01-29 | 2018-11-09 | 飒乐有限公司 | Multiserver automation for secure cloud verification |
-
2019
- 2019-05-31 CN CN201910473255.2A patent/CN110175820A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150066713A1 (en) * | 2013-09-04 | 2015-03-05 | Capital One Financial Corporation | Entropic link filter for automatic network generation |
CN106991727A (en) * | 2016-01-21 | 2017-07-28 | 北京四维图新科技股份有限公司 | A kind of method and system of highway intercommunication charging |
CN108781222A (en) * | 2016-01-29 | 2018-11-09 | 飒乐有限公司 | Multiserver automation for secure cloud verification |
CN107590731A (en) * | 2017-08-31 | 2018-01-16 | 深圳市联邦重科电子科技有限公司 | A kind of recording method, device and the equipment of bill expense |
CN108062383A (en) * | 2017-12-13 | 2018-05-22 | 泰康保险集团股份有限公司 | Generation method, device and the equipment of moon bill are insured again |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114189461A (en) * | 2020-09-11 | 2022-03-15 | 北京金山云网络技术有限公司 | Bandwidth bill generation method and device, electronic equipment and medium |
CN112465615A (en) * | 2020-12-01 | 2021-03-09 | 中国联合网络通信集团有限公司 | Bill data processing method, device and system |
CN112465615B (en) * | 2020-12-01 | 2023-06-30 | 中国联合网络通信集团有限公司 | Billing data processing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103874032B (en) | Information-pushing method and device based on mobile terminal | |
WO2017032226A1 (en) | Returns information processing method and apparatus | |
CN113329069B (en) | Instant messaging method, system and computing device | |
CN105303417A (en) | Goods automatic ordering system and method | |
WO2018064951A1 (en) | Service ordering method, system, and service server | |
CN107451785B (en) | Method and apparatus for outputting information | |
TWI724331B (en) | Method and device for generating electronic invoice | |
CN111833102A (en) | Data display method and device | |
CN110233741A (en) | Service charging method, device, equipment and storage medium | |
CN108122124B (en) | Information push method, platform and system | |
CN110175820A (en) | Bill processing method, device, electronic equipment and the storage medium of cloud calculation service | |
CN112734460B (en) | Data processing, payment data output, payment preferential data providing method and device | |
CN113015116A (en) | Dynamic quota method and device based on flow prediction | |
US9626682B2 (en) | Systems and methods for reseller discovery and analysis | |
CN111861436B (en) | Data processing method, device, system, and medium executed by a server | |
CN114240527B (en) | Resource pushing method, device, electronic equipment, readable medium and computer program | |
CN111369281A (en) | Online message processing method, apparatus, device and readable storage medium | |
US9665890B1 (en) | Determining lookback windows | |
CN108377203A (en) | Differentiation flow service providing method based on order business and device | |
CN114520830A (en) | A message push method, device and system | |
CN110751464A (en) | Information prompting method, device, equipment and storage medium | |
CN115936703A (en) | Payment channel display method and device, computer equipment and readable storage medium | |
CN113132928B (en) | Charging method and device for video short message service | |
US20130080180A1 (en) | Method and apparatus for sender paid data delivery | |
CN110956514A (en) | Method and device for generating order information |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190827 |
|
RJ01 | Rejection of invention patent application after publication |