[go: up one dir, main page]

CN115473968B - Call record processing method and device - Google Patents

Call record processing method and device Download PDF

Info

Publication number
CN115473968B
CN115473968B CN202110657233.9A CN202110657233A CN115473968B CN 115473968 B CN115473968 B CN 115473968B CN 202110657233 A CN202110657233 A CN 202110657233A CN 115473968 B CN115473968 B CN 115473968B
Authority
CN
China
Prior art keywords
user
user call
data
processed
call record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110657233.9A
Other languages
Chinese (zh)
Other versions
CN115473968A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110657233.9A priority Critical patent/CN115473968B/en
Publication of CN115473968A publication Critical patent/CN115473968A/en
Application granted granted Critical
Publication of CN115473968B publication Critical patent/CN115473968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a ticket processing method and a ticket processing device, wherein the method comprises the following steps: the method comprises the steps of obtaining an identifier of a user to be processed, and distributing the identifier of the user to be processed to a plurality of intermediate ends, so that each intermediate end respectively obtains user ticket data corresponding to the identifier of the user to be processed, which is distributed and obtained from a database; acquiring user ticket data sent by each intermediate end, and distributing the user ticket data to a plurality of message middleware so that each message middleware can respectively determine rollback user ticket data from the user ticket data distributed by the message middleware; and acquiring the call ticket data of the rollback user sent by each message middleware, and sending all call ticket data of the rollback user to the target charging system, so that the call ticket rollback is rapidly processed, the time required for carrying out the call ticket rollback is reduced, and the call ticket rollback efficiency is improved.

Description

话单处理方法及设备Call record processing method and device

技术领域Technical Field

本发明实施例涉及通信技术领域,尤其涉及一种话单处理方法及设备。The embodiments of the present invention relate to the field of communication technology, and in particular to a call record processing method and device.

背景技术Background technique

话单回退是指由于资费变更等原因导致部分用户的计费错误等原因,需要根据用户通信详单,即话单数据进行重新批价。Call bill rollback refers to the situation where some users are charged incorrectly due to rate changes, etc., and the price needs to be re-rated based on the user's communication details, i.e. the call bill data.

现有技术中,在进行话单回退时,电子设备在获取到待处理用户标识后,从分布式数据库中依次获取各个待处理用户标识对应的话单数据,并从话单数据中获取回退用户的话单数据。在得到回退用户的话单数据后,将其输入至计费系统,以使计费系统根据该回退用户的话单数据重新进行批价处理。In the prior art, when performing call bill rollback, after obtaining the to-be-processed user ID, the electronic device sequentially obtains the call bill data corresponding to each to-be-processed user ID from the distributed database, and obtains the call bill data of the rolled-back user from the call bill data. After obtaining the call bill data of the rolled-back user, it is input into the billing system so that the billing system re-batch prices according to the call bill data of the rolled-back user.

然而,由于在获取待处理用户标识对应的话单数据以及获取回退用户的话单数据时,均是按照顺序依次进行获取的,导致获取数据的时间较长,从而造成进行话单回退所需的时间较长,话单回退效率低。However, since the call bill data corresponding to the pending user identifier and the call bill data of the rolled-back user are obtained in sequence, it takes a long time to obtain the data, which results in a long time required for call bill rollback and low call bill rollback efficiency.

发明内容Summary of the invention

本发明实施例提供一种话单处理方法及设备,以解决现有技术中话单回退效率低的技术问题。The embodiment of the present invention provides a call record processing method and device to solve the technical problem of low call record fallback efficiency in the prior art.

第一方面,本发明实施例提供一种话单处理方法,包括:In a first aspect, an embodiment of the present invention provides a method for processing a call record, including:

获取待处理用户的标识,并将所述待处理用户的标识分配至多个中间端,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据;Obtaining the identifier of the user to be processed, and distributing the identifier of the user to be processed to multiple intermediate terminals, so that each intermediate terminal respectively obtains user call record data corresponding to the identifier of the user to be processed allocated to it from the database;

获取各个中间端发送的用户话单数据,并将所述用户话单数据分配至多个消息中间件,以使各个消息中间件分别从其分配得到的用户话单数据中确定回退用户话单数据;Acquire user call list data sent by each middle end, and distribute the user call list data to multiple message middlewares, so that each message middleware can respectively determine the fallback user call list data from the user call list data distributed to it;

获取各个消息中间件发送的回退用户话单数据,并将所有回退用户话单数据发送至目标计费系统。Obtain the fallback user call list data sent by each message middleware, and send all fallback user call list data to the target billing system.

在一种可能的设计中,所述将所述用户话单数据分配至多个消息中间件,包括:In a possible design, distributing the user call record data to a plurality of message middlewares includes:

获取各个消息中间件对应的哈希值区间,并确定各个用户话单数据对应的哈希值;Obtain the hash value range corresponding to each message middleware, and determine the hash value corresponding to each user call record data;

对于每个用户话单数据,根据所述用户话单数据对应的哈希值,确定所述用户话单数据所属的消息中间件;其中,所述用户话单数据对应的哈希值在与所述用户话单数据所属的消息中间件对应的哈希值区间内。For each user call record data, the message middleware to which the user call record data belongs is determined according to the hash value corresponding to the user call record data; wherein the hash value corresponding to the user call record data is within the hash value range corresponding to the message middleware to which the user call record data belongs.

在一种可能的设计中,所述确定各个用户话单数据对应的哈希值,包括:In a possible design, determining the hash value corresponding to each user call record data includes:

对于每个用户话单数据,获取所述用户话单数据对应的关键字段,并对所述关键字段进行哈希计算,得到所述用户话单数据对应的哈希值。For each user call record data, the key field corresponding to the user call record data is obtained, and a hash calculation is performed on the key field to obtain the hash value corresponding to the user call record data.

在一种可能的设计中,所述方法还包括:In one possible design, the method further includes:

获取各个消息中间件对应的权重,并根据各个消息中间件对应的权重确定各个消息中间值对应的哈希值区间。The weight corresponding to each message middleware is obtained, and the hash value interval corresponding to each message intermediate value is determined according to the weight corresponding to each message middleware.

在一种可能的设计中,所述将所述用户话单数据分配至多个消息中间件,包括:In a possible design, distributing the user call record data to a plurality of message middlewares includes:

将所述用户话单数据平均分配至各个消息中间件。The user call record data is evenly distributed to each message middleware.

在一种可能的设计中,所述将所述待处理用户的标识分配至多个中间端,包括:In a possible design, distributing the identifier of the to-be-processed user to multiple intermediate terminals includes:

将所述待处理用户的标识平均分配至各个中间端。The identifiers of the users to be processed are evenly distributed to each intermediate end.

第二方面,本发明实施例提供一种话单处理设备,包括:In a second aspect, an embodiment of the present invention provides a call record processing device, including:

信息获取模块,用于获取待处理用户的标识,并将所述待处理用户的标识分配至多个中间端,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据;An information acquisition module, used to acquire the identifier of the user to be processed, and distribute the identifier of the user to be processed to multiple intermediate terminals, so that each intermediate terminal respectively acquires the user call record data corresponding to the identifier of the user to be processed allocated to it from the database;

处理模块,用于获取各个中间端发送的用户话单数据,并将所述用户话单数据分配至多个消息中间件,以使各个消息中间件分别从其分配得到的用户话单数据中确定回退用户话单数据;A processing module, used for acquiring user call bill data sent by each intermediate end, and distributing the user call bill data to a plurality of message middlewares, so that each message middleware can respectively determine the fallback user call bill data from the user call bill data distributed to it;

处理模块,用于获取各个消息中间件发送的回退用户话单数据,并将所有回退用户话单数据发送至目标计费系统。The processing module is used to obtain the fallback user call list data sent by each message middleware, and send all the fallback user call list data to the target billing system.

在一种可能的设计中,所述处理模块还用于:In a possible design, the processing module is further used for:

获取各个消息中间件对应的哈希值区间,并确定各个用户话单数据对应的哈希值;Obtain the hash value range corresponding to each message middleware, and determine the hash value corresponding to each user call record data;

对于每个用户话单数据,根据所述用户话单数据对应的哈希值,确定所述用户话单数据所属的消息中间件;其中,所述用户话单数据对应的哈希值在与所述用户话单数据所属的消息中间件对应的哈希值区间内。For each user call record data, the message middleware to which the user call record data belongs is determined according to the hash value corresponding to the user call record data; wherein the hash value corresponding to the user call record data is within the hash value range corresponding to the message middleware to which the user call record data belongs.

在一种可能的设计中,所述处理模块还用于:In a possible design, the processing module is further used for:

对于每个用户话单数据,获取所述用户话单数据对应的关键字段,并对所述关键字段进行哈希计算,得到所述用户话单数据对应的哈希值。For each user call record data, the key field corresponding to the user call record data is obtained, and a hash calculation is performed on the key field to obtain the hash value corresponding to the user call record data.

在一种可能的设计中,所述处理模块还用于:In a possible design, the processing module is further used for:

获取各个消息中间件对应的权重,并根据各个消息中间件对应的权重确定各个消息中间值对应的哈希值区间。The weight corresponding to each message middleware is obtained, and the hash value interval corresponding to each message intermediate value is determined according to the weight corresponding to each message middleware.

在一种可能的设计中,所述处理模块还用于:In a possible design, the processing module is further used for:

将所述用户话单数据平均分配至各个消息中间件。The user call record data is evenly distributed to each message middleware.

在一种可能的设计中,所述信息获取模块还用于:In a possible design, the information acquisition module is further used to:

将所述待处理用户的标识平均分配至各个中间端。The identifiers of the users to be processed are evenly distributed to each intermediate end.

第三方面,本发明实施例提供一种电子设备,包括:至少一个处理器和存储器;In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one processor and a memory;

所述存储器存储计算机执行指令;The memory stores computer-executable instructions;

所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计所述的话单处理方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the call record processing method as described in the first aspect and various possible designs of the first aspect.

第四方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的话单处理方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the call record processing method described in the first aspect and various possible designs of the first aspect is implemented.

第五方面,本发明实施例提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如上第一方面以及第一方面各种可能的设计所述的话单处理方法。In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the call record processing method as described in the first aspect and various possible designs of the first aspect.

本发明提供一种话单处理方法及设备,通过在获取到待处理用户的标识时,表明需要从待处理用户中确定出回退用户,则将待处理用户的标识分配至中间端,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据,即每个中间端仅负责查找部分待处理用户对应的用户话单数据,且各个中间端可以同时进行查找,实现用户话单数据的并行获取,减少用户话单数据获取所需的时间,在获取到待处理用户对应的用户话单数据后,将待处理用户对应的用户话单数据分配至消息中间件,以使各个消息中间件分别从其分配得到的用户话单数据中确定回退用户话单数据,即从待处理用户中确定回退用户,由于每个消息中间件仅负责从部分待处理用户中查找回退用户,且各个消息中间件可以同时进行查找,实现回退用户,即回退用户话单数据的并行获取,减少回退用户话单数据获取所需的时间。接收各个消息中间件发送的回退用户话单数据,并将其发送至目标计费系统,以使目标计费系统对回退用户话单数据重新进行批价,实现话单回退快速处理,减少进行话单回退所需的时间,提高话单回退的效率。The present invention provides a call bill processing method and device. When the identifier of a user to be processed is obtained, it indicates that a fallback user needs to be determined from the users to be processed. Then, the identifier of the user to be processed is allocated to an intermediate end, so that each intermediate end respectively obtains user call bill data corresponding to the identifier of the user to be processed allocated to it from a database, that is, each intermediate end is only responsible for searching for user call bill data corresponding to some of the users to be processed, and each intermediate end can search at the same time, so as to realize parallel acquisition of user call bill data and reduce the time required for acquiring user call bill data. After the user call bill data corresponding to the user to be processed is obtained, the user call bill data corresponding to the user to be processed is allocated to a message middleware, so that each message middleware respectively determines the fallback user call bill data from the user call bill data allocated to it, that is, determines the fallback user from the users to be processed. Since each message middleware is only responsible for searching for fallback users from some of the users to be processed, and each message middleware can search at the same time, the fallback user, that is, the parallel acquisition of fallback user call bill data is realized, so as to reduce the time required for acquiring fallback user call bill data. Receive the rolled-back user call sheet data sent by each message middleware, and send it to the target billing system so that the target billing system can re-price the rolled-back user call sheet data, realize fast processing of call sheet rollback, reduce the time required for call sheet rollback, and improve the efficiency of call sheet rollback.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

图1为本发明实施例提供的现有话单处理过程的示意图;FIG1 is a schematic diagram of an existing call record processing process provided by an embodiment of the present invention;

图2为本发明实施例提供的话单处理方法的流程示意图一;FIG2 is a flow chart of a method for processing a call slip according to an embodiment of the present invention;

图3为本发明实施例提供的话单处理方法的流程示意图二;FIG3 is a second flow chart of a method for processing a call slip according to an embodiment of the present invention;

图4为本发明实施例提供的话单处理设备的结构示意图;FIG4 is a schematic diagram of the structure of a call record processing device provided in an embodiment of the present invention;

图5为本发明实施例提供的电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

图1为本发明实施例提供的现有话单处理过程的示意图,如图1所示,现有话单处理过程的包括如下步骤:FIG. 1 is a schematic diagram of an existing call record processing process provided by an embodiment of the present invention. As shown in FIG. 1 , the existing call record processing process includes the following steps:

(一)、上游系统把采集到的用户,即待处理用户的通信话单文件传输至计费系统。(I) The upstream system transmits the collected communication call record files of the users, i.e. the users to be processed, to the billing system.

(二)、计费系统中的批价程序处理用户通信话单文件后,将得到的累积量、账单等数据输入至内存数据库,同时生成详单数据文件,即包含话单数据的文件,并将其发送至入库程序。(ii) After the batch pricing program in the billing system processes the user's communication call record file, it inputs the accumulated amount, bill and other data into the memory database, and generates a detailed data file, i.e., a file containing the call record data, and sends it to the warehousing program.

(三)、入库程序将详单数据文件输入至分布式数据库,即Hbase数据库中。(3) The warehousing program inputs the detailed order data file into the distributed database, namely the Hbase database.

(四)、在需要获取回退用户的话单数据时,回退程序,即电子设备从分布式数据库中逐个获取待处理用户标识对应的话单数据,即获取待处理用户的话单数据,并按照回退规则循环执行数据查询操作从待处理用户的话单数据中抽取回退用户的话单数据。(IV) When it is necessary to obtain the call bill data of the rolled-back user, the rollback program, that is, the electronic device obtains the call bill data corresponding to the pending user identifier from the distributed database one by one, that is, obtains the call bill data of the pending user, and cyclically executes the data query operation according to the rollback rule to extract the call bill data of the rolled-back user from the call bill data of the pending user.

(五)、回退程序按照获取到的用户累积量、账单等数据删减内存数据库相关表数据,并将抽取到的回退用户的话单数据写入到文件中,以使计费系统中的批价程序利用该文件中的回退用户的话单数据重新进行批价处理。(V) The rollback program deletes the data in the relevant tables of the memory database according to the acquired user accumulation, bills and other data, and writes the extracted call list data of the rolled-back user into a file, so that the pricing program in the billing system can use the call list data of the rolled-back user in the file to re-process the pricing.

然而,由于在获取待处理用户标识对应的话单数据时以及在从待处理用户的话单数据中抽取回退用户的话单数据时,均是按照顺序逐个进行处理的,导致获取数据所需的时间较长,降低话单回退的效率,从而影响出账的进度,影响用户感知。However, since the call bill data corresponding to the pending user identifier is obtained and the call bill data of the rolled-back user is extracted from the call bill data of the pending user, they are all processed one by one in sequence, which results in a longer time for obtaining the data, reducing the efficiency of call bill rollback, thereby affecting the progress of billing and user perception.

因此,针对上述问题,本发明的技术构思是对上述步骤(四)和(五)进行改进,即在获取待处理用户标识对应的话单数据时,利用中间端并行查询分布式数据库,以从分布式数据库中获取待处理用户标识对应的话单数据,提高话单数据获取的效率。并在按照回退规则循环执行数据查询操作从待处理用户的话单数据中抽取回退用户的话单数据时,利用消息中间件进行并行抽取,实现回退用户的话单数据的筛选效率。由于获取待处理用户的话单数据的效率以及抽取回退用户的话单数据的效率均得到了提高,因此,可以进一步提高话单回退的处理效率,保证出账的进度,可以使用户及时获取相关通信费用,保障用户的使用满意度,用户体验高。Therefore, in response to the above problems, the technical concept of the present invention is to improve the above steps (iv) and (v), that is, when obtaining the call bill data corresponding to the pending user identifier, the middle end is used to query the distributed database in parallel to obtain the call bill data corresponding to the pending user identifier from the distributed database, thereby improving the efficiency of obtaining the call bill data. And when the data query operation is cyclically executed according to the fallback rule to extract the call bill data of the rolled-back user from the call bill data of the pending user, the message middleware is used for parallel extraction to achieve the efficiency of screening the call bill data of the rolled-back user. Since the efficiency of obtaining the call bill data of the pending user and the efficiency of extracting the call bill data of the rolled-back user are both improved, the processing efficiency of the call bill rollback can be further improved, the progress of the billing can be guaranteed, and the user can obtain the relevant communication fees in a timely manner, ensuring the user's satisfaction and high user experience.

下面以具体地示例对本公开的技术方案以及本公开的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的示例可以相互结合,对于相同或相似的概念或过程可能在某些示例中不再赘述。下面将结合附图,对本公开的示例进行描述。The following is a detailed description of the technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems with specific examples. The following specific examples can be combined with each other, and the same or similar concepts or processes may not be repeated in some examples. The examples of the present invention will be described below in conjunction with the accompanying drawings.

图2为本发明实施例提供的话单处理方法的流程示意图一,本实施例的执行主体可以为电子设备,具体的,可以为回退程序。如图2所示,该方法包括:FIG2 is a flow chart of a method for processing a call slip according to an embodiment of the present invention. The execution subject of this embodiment may be an electronic device, and specifically, may be a rollback program. As shown in FIG2 , the method includes:

S201、获取待处理用户的标识,并将待处理用户的标识分配至多个中间端,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据。S201. Obtain an identifier of a user to be processed, and distribute the identifier of the user to be processed to multiple intermediate terminals, so that each intermediate terminal obtains user call record data corresponding to the identifier of the user to be processed distributed to it from a database.

在本实施例中,在需要从用户,即待处理用户中查找需要重新进行批价的用户,即回退用户时,获取该待处理用户的标识,以利用各个待处理用户的标识查找各个待处理用户对应的用户话单数据,从而利用待处理用户的用户话单数据,从待处理用户中确定回退用户。In this embodiment, when it is necessary to search for users who need to be re-priced, i.e., rolled-back users, from users, i.e., users to be processed, the identifier of the user to be processed is obtained, and the user call list data corresponding to each user to be processed is searched using the identifier of each user to be processed, thereby determining the rollback users from the users to be processed using the user call list data of the users to be processed.

为了提高查找用户话单数据的效率,将待处理用户的标识分配给多个中间端,每个中间端仅负责处理所有待处理用户的标识中的部分待处理用户的标识,且各个中间端可以同步进行处理,即对于每个中间端,该中间端仅从数据库中查找其被分配的,即分配得到的待处理用户的标识所对应的用户话单数据,并将其查找到的用户话单数据发送至电子设备,即将查找到的待处理用户的用户话单数据发送至电子设备,实现用户话单数据的并行获取,而不是依次逐个从数据库中查找待处理用户的用户话单数据,减少用户话单数据获取所需的时间,从而提高用户话单数据的获取效率。In order to improve the efficiency of searching for user call bill data, the identifiers of the users to be processed are assigned to multiple intermediate ends, each intermediate end is only responsible for processing the identifiers of some of the users to be processed among all the users to be processed, and each intermediate end can perform processing synchronously, that is, for each intermediate end, the intermediate end only searches the database for the user call bill data corresponding to the identifier of the user to be processed that is assigned to it, and sends the found user call bill data to the electronic device, that is, sending the found user call bill data of the user to be processed to the electronic device, thereby realizing parallel acquisition of user call bill data, instead of searching the user call bill data of the users to be processed from the database one by one, reducing the time required for acquiring user call bill data, thereby improving the efficiency of acquiring user call bill data.

在任意实施例中,可选的,在将待处理用户的标识分别给多个中间端时,将待处理用户的标识平均分配至各个中间端。In any embodiment, optionally, when the identifiers of the users to be processed are given to a plurality of intermediate terminals respectively, the identifiers of the users to be processed are evenly distributed to the intermediate terminals.

具体的,获取中间端的数目以及获取所有待处理用户的数目,即所有待处理用户的标识的数目,根据S1=N1/N2确定各个中间端对应的待处理数目,以供利用各个中间端对应的待处理数目分配待处理用户的标识。其中,S1为中间端对应的待处理数目,N1为所有待处理用户的标识的数目,N2为所有中间端的数目。例如,待处理用户的标识的数目为20万,中间端的数目为5个,则每个中间端对应的待处理数目为4万,即每个中间端负责处理4万个待处理用户的标识,即从数据库中查找该4万个待处理用户的标识对应的用户话单数据,即查找该4万个待处理用户的用户话单数据。Specifically, the number of intermediate terminals and the number of all users to be processed, that is, the number of identifiers of all users to be processed, are obtained, and the number to be processed corresponding to each intermediate terminal is determined according to S1=N1/N2, so as to allocate the identifiers of the users to be processed using the number to be processed corresponding to each intermediate terminal. Among them, S1 is the number to be processed corresponding to the intermediate terminal, N1 is the number of identifiers of all users to be processed, and N2 is the number of all intermediate terminals. For example, if the number of identifiers of users to be processed is 200,000 and the number of intermediate terminals is 5, then the number to be processed corresponding to each intermediate terminal is 40,000, that is, each intermediate terminal is responsible for processing the identifiers of 40,000 users to be processed, that is, searching the database for the user call list data corresponding to the identifiers of the 40,000 users to be processed, that is, searching for the user call list data of the 40,000 users to be processed.

其中,数据库为分布式数据库,其存储有多个用户的详单数据,即话单数据。中间端包括计算机、服务器等具有数据处理能力的终端设备。The database is a distributed database that stores detailed data of multiple users, namely, call data. The middle end includes computers, servers and other terminal devices with data processing capabilities.

S202、获取各个中间端发送的用户话单数据,并将用户话单数据分配至多个消息中间件,以使各个消息中间件分别从其分配得到的用户话单数据中确定回退用户话单数据。S202: Obtain user call bill data sent by each intermediate end, and distribute the user call bill data to multiple message middlewares, so that each message middleware determines the rollback user call bill data from the user call bill data distributed to it.

在本实施例中,电子设备在接收到各个中间端发送的待处理用户的用户话单数据后,即在接收到各个中间端发送的各自分配得到的待处理用户的标识所对应的用户话单数据后,将所有用户话单数据分配给多个消息中间件,每个消息中间件仅负责所有用户话单数据中的部分用户话单数据,即对于每个消息中间件,该消息中间件按照回退规则从其被分配的,即分配得到的用户话单数据中筛选需要回退的用户话单数据,得到回退用户话单数据,即根据待处理用户的用户话单数据从分配得到的待处理用户中确定回退用户。在筛选出回退用户,即回退用户话单数据后,将回退用户话单数据发送至电子设备,实现回退用户话单数据的并行查询,即实现需回退的待处理用户的并行查询。In this embodiment, after receiving the user call bill data of the to-be-processed users sent by each intermediate end, that is, after receiving the user call bill data corresponding to the identifiers of the to-be-processed users assigned to each intermediate end, the electronic device distributes all the user call bill data to multiple message middlewares, and each message middleware is only responsible for part of the user call bill data in all the user call bill data, that is, for each message middleware, the message middleware filters the user call bill data that needs to be rolled back from the user call bill data that is assigned to it, that is, the assigned user call bill data, according to the rollback rule, to obtain the rollback user call bill data, that is, determine the rollback user from the assigned to-be-processed users according to the user call bill data of the to-be-processed users. After the rollback users, that is, the rollback user call bill data, are screened out, the rollback user call bill data, the rollback user call bill data is sent to the electronic device to realize parallel query of the rollback user call bill data, that is, to realize parallel query of the to-be-processed users that need to be rolled back.

在本实施例中,可选的,在将用户话单数据分配至多个消息中间件时,可以通过两种方式进行分配。In this embodiment, optionally, when distributing user call record data to multiple message middlewares, the distribution can be performed in two ways.

一种方式为,对用户话单数据进行平均分配,即将用户话单数据平均分配至各个消息中间件。One way is to evenly distribute the user call record data, that is, evenly distribute the user call record data to each message middleware.

具体的,获取消息中间件的数目以及获取所有用户话单数据的数目,即所有待处理用户的标识的数目,根据S2=N1/N3确定各个消息中间件对应的待处理数目,以供利用各个消息中间件对应的待处理数目分配用户话单数据,即每个消息中间分配得到的用户话单数据的数目为该消息中间件对应的待处理数目。其中,S2为消息中间件对应的待处理数目,N1为所有待处理用户的标识的数目,即所有用户话单数据,N3为所有消息中间件的数目。Specifically, the number of message middleware and the number of all user call list data are obtained, that is, the number of identifiers of all users to be processed, and the corresponding number of to-be-processed data of each message middleware is determined according to S2=N1/N3, so as to allocate user call list data using the corresponding number of to-be-processed data of each message middleware, that is, the number of user call list data allocated in each message middleware is the corresponding number of to-be-processed data of the message middleware. Among them, S2 is the corresponding number of to-be-processed data of the message middleware, N1 is the number of identifiers of all users to be processed, that is, all user call list data, and N3 is the number of all message middleware.

另一种方式为,根据消息中间件的处理能力,即权重进行分配。Another way is to allocate according to the processing capability of the message middleware, that is, weight.

可选的,回退规则为回退条件,其为相关人员定义的筛选计费存在问题的用户的条件,其包括筛选日期,回退问题类型等。回退问题类型表示计费存在问题的类型,例如,资费变更。例如,回退规则包括筛选日期和问题类型,其中筛选日期为1月20日,回退问题类型为通话资费变更,在根据回退规则筛选回退用户时,实际上是确定在1月20日进行过通话的用户。Optionally, the fallback rule is a fallback condition, which is a condition defined by relevant personnel for screening users with billing problems, including screening date, fallback problem type, etc. The fallback problem type indicates the type of billing problem, such as rate change. For example, the fallback rule includes a screening date and a problem type, where the screening date is January 20, and the fallback problem type is call rate change. When screening fallback users according to the fallback rule, users who made calls on January 20 are actually determined.

可选的,用户话单数据表示用户的通信详单数据,其包括用户标识、帐单等数据。Optionally, user call bill data represents the user's communication detail data, which includes user identification, bill and other data.

另外,可选的,在接收到各个中间端发送的待处理用户的用户话单数据后,对其进行聚合,以得到所有用户话单数据,即得到所有待处理用户的用户话单数据。In addition, optionally, after receiving the user call bill data of the to-be-processed users sent by each intermediate end, the user call bill data is aggregated to obtain all user call bill data, that is, to obtain the user call bill data of all the to-be-processed users.

另外,可选的,在从数据库中筛选出回退用户话单数据后,删除内存数据库中的回退用户的相关话单数据,以避免后续入库时,导致话单数据的重复。In addition, optionally, after filtering out the call sheet data of the rolled-back user from the database, the related call sheet data of the rolled-back user in the memory database is deleted to avoid duplication of the call sheet data during subsequent storage.

S203、获取各个消息中间件发送的回退用户话单数据,并将所有回退用户话单数据发送至目标计费系统。S203: Acquire the call sheet data of the rolled-back users sent by each message middleware, and send all the call sheet data of the rolled-back users to the target billing system.

在本实施例中,消息中间件在从用户话单数据中确定出回退用户话单数据,即在从待处理用户中筛选出回退用户后,将回退用户的用户话单数据,即回退用户话单数据发送至电子设备。电子设备在接收到所有消息中间件发送的回退用户话单数据后,表明需要利用回退用户对应的回退用户话单数据重新进行批价,即对回退用户重新进行计费,则将接收到的所有用户话单数据发送至目标计费系统,以使目标计费系统重新根据用户话单数据进行批价,以实现话单回退。In this embodiment, the message middleware determines the fallback user call sheet data from the user call sheet data, that is, after screening the fallback user from the to-be-processed users, the user call sheet data of the fallback user, that is, the fallback user call sheet data, is sent to the electronic device. After receiving the fallback user call sheet data sent by all the message middleware, the electronic device indicates that it is necessary to use the fallback user call sheet data corresponding to the fallback user for re-pricing, that is, to re-bill the fallback user, and then sends all the received user call sheet data to the target billing system, so that the target billing system re-prices according to the user call sheet data to realize call sheet fallback.

可选的,目标计费系统在重新进行批价时,实际上是目标计费系统中的批价程序进行批价的。Optionally, when the target billing system re-rates, it is actually the pricing program in the target billing system that performs the pricing.

可以理解,上述消息中间件所执行的操作(例如,筛选回退用户)实际上是由消息中间件对应的终端,即消息中间件所在终端执行的。It can be understood that the operations performed by the above-mentioned message middleware (for example, screening rollback users) are actually performed by the terminal corresponding to the message middleware, that is, the terminal where the message middleware is located.

在本实施例例中,在从数据库中查询待处理用户的话单数据时,利用多个中间端进行并行查询,提高话单数据的获取效率。在从待处理用户确定回退用户,即从话单数据中确定回退用户话单数据时,利用多个消息中间件进行并行确定,提高回退用户,即回退用户话单数据的获取效率,从而可以提高回退处理的效率。且在传输回退用户话单数据时,采用用消息传输的方式,而不是文件传输,避免仅利用一个输出通道进行传输,大大提高数据的传输效率,同时进一步地提高了回退处理的效率。In this embodiment, when querying the call list data of the user to be processed from the database, multiple middle terminals are used for parallel query to improve the efficiency of obtaining the call list data. When determining the fallback user from the user to be processed, that is, determining the fallback user's call list data from the call list data, multiple message middlewares are used for parallel determination to improve the fallback user, that is, the efficiency of obtaining the fallback user's call list data, thereby improving the efficiency of the fallback processing. And when transmitting the fallback user's call list data, the message transmission method is adopted instead of the file transmission, so as to avoid using only one output channel for transmission, which greatly improves the data transmission efficiency and further improves the efficiency of the fallback processing.

从上述描述可知,在获取到待处理用户的标识时,表明需要从待处理用户中确定出回退用户,则将待处理用户的标识分配至中间端,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据,即每个中间端仅负责查找部分待处理用户对应的用户话单数据,且各个中间端可以同时进行查找,实现用户话单数据的并行获取,减少用户话单数据获取所需的时间,在获取到待处理用户对应的用户话单数据后,将待处理用户对应的用户话单数据分配至消息中间件,以使各个消息中间件分别从其分配得到的用户话单数据中确定回退用户话单数据,即从待处理用户中确定回退用户,由于每个消息中间件仅负责从部分待处理用户中查找回退用户,且各个消息中间件可以同时进行查找,实现回退用户,即回退用户话单数据的并行获取,减少回退用户话单数据获取所需的时间。接收各个消息中间件发送的回退用户话单数据,并将其发送至目标计费系统,以使目标计费系统对回退用户话单数据重新进行批价,实现话单回退快速处理,减少进行话单回退所需的时间,提高话单回退的效率。From the above description, it can be seen that when the identifier of the user to be processed is obtained, it indicates that the fallback user needs to be determined from the users to be processed. Then, the identifier of the user to be processed is assigned to the intermediate end, so that each intermediate end obtains the user call bill data corresponding to the identifier of the user to be processed assigned to it from the database, that is, each intermediate end is only responsible for finding the user call bill data corresponding to some of the users to be processed, and each intermediate end can search at the same time, so as to realize the parallel acquisition of user call bill data and reduce the time required for acquiring user call bill data. After obtaining the user call bill data corresponding to the user to be processed, the user call bill data corresponding to the user to be processed is assigned to the message middleware, so that each message middleware can determine the fallback user call bill data from the user call bill data assigned to it, that is, determine the fallback user from the users to be processed. Since each message middleware is only responsible for finding the fallback user from some of the users to be processed, and each message middleware can search at the same time, the fallback user, that is, the parallel acquisition of the fallback user call bill data is realized, and the time required for acquiring the fallback user call bill data is reduced. Receive the rolled-back user call sheet data sent by each message middleware, and send it to the target billing system so that the target billing system can re-price the rolled-back user call sheet data, realize fast processing of call sheet rollback, reduce the time required for call sheet rollback, and improve the efficiency of call sheet rollback.

图3为本发明实施例提供的话单处理方法的流程示意图二,本实施例在图2实施例的基础上,在将用户话单数据分配至消息中间件时,可以根据消息中间件的处理能力,即权重确定消息中间件所需处理的用户话单数据,下面将结合一个具体实施例对此过程进行描述。如图3所示,该方法包括:FIG3 is a second flow chart of the method for processing a call sheet provided by an embodiment of the present invention. Based on the embodiment of FIG2 , when allocating user call sheet data to the message middleware, the user call sheet data to be processed by the message middleware can be determined according to the processing capability of the message middleware, that is, the weight. This process will be described below in conjunction with a specific embodiment. As shown in FIG3 , the method includes:

S301、获取待处理用户的标识,并将待处理用户的标识分配至多个中间端,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据。S301, obtaining the identifier of the user to be processed, and distributing the identifier of the user to be processed to multiple intermediate terminals, so that each intermediate terminal obtains user call record data corresponding to the identifier of the user to be processed distributed to it from the database.

S302、获取各个中间端发送的用户话单数据。S302: Obtain user call record data sent by each intermediate end.

S303、获取各个消息中间件对应的哈希值区间,并确定各个用户话单数据对应的哈希值。S303: Obtain the hash value interval corresponding to each message middleware, and determine the hash value corresponding to each user call record data.

在本实施例中,在为各个消息中间件分配用户话单数据时,即在确定各个用户话单数据所属的消息中间件时,计算各个用户话单数据对应的哈希值,以供利用各个用户话单数据对应的哈希值所属的哈希值区间,确定各个用户话单数据所属的消息中间件。In this embodiment, when allocating user call record data to each message middleware, that is, when determining the message middleware to which each user call record data belongs, the hash value corresponding to each user call record data is calculated so as to utilize the hash value range to which the hash value corresponding to each user call record data belongs to determine the message middleware to which each user call record data belongs.

在本实施例中,可选的,在计算各个用户话单数据对应的哈希值时,对于每个用户话单数据,获取用户话单数据对应的关键字段,并对关键字段进行哈希计算,得到用户话单数据对应的哈希值。In this embodiment, optionally, when calculating the hash value corresponding to each user call bill data, for each user call bill data, the key field corresponding to the user call bill data is obtained, and the key field is hashed to obtain the hash value corresponding to the user call bill data.

具体的,对于每个用户话单数据,从该用户话单数据中提取关键字段,并利用预设哈希函数对该关键字段进行哈希计算,以得到该用户话单数据对应的哈希值,即得到该用户话单数据对应的待处理用户的哈希值。Specifically, for each user call bill data, key fields are extracted from the user call bill data, and a hash calculation is performed on the key fields using a preset hash function to obtain a hash value corresponding to the user call bill data, that is, to obtain a hash value of the user to be processed corresponding to the user call bill data.

其中,预设哈希函数为现有的哈希函数,可以根据实际需求进行设置,在此,不对其进行限制。Among them, the preset hash function is an existing hash function, which can be set according to actual needs and is not limited here.

可选的,关键字段可以为用户标识,即待处理用户的标识。具体的,可以为用户标识中的后四位数字。Optionally, the key field may be a user ID, that is, an ID of the user to be processed, and specifically, may be the last four digits of the user ID.

另外,可选的,在确定消息中间件对应的哈希值区间时,即消息中间件所负责的哈希值区间时,可以通过以下两种方式进行确定。In addition, optionally, when determining the hash value interval corresponding to the message middleware, that is, the hash value interval that the message middleware is responsible for, it can be determined in the following two ways.

一种方式为,相关人员设定各个消息中间件对应的哈希值区间,即各个消息中间件所负责的哈希值区间是由人工直接设定的,实现哈希值区间的快速设定。One way is that relevant personnel set the hash value interval corresponding to each message middleware, that is, the hash value interval responsible for each message middleware is directly set by humans, so as to realize the rapid setting of the hash value interval.

另一种方式为,获取各个消息中间件对应的权重,并根据各个消息中间件对应的权重确定各个消息中间值对应的哈希值区间。Another way is to obtain the weight corresponding to each message middleware, and determine the hash value interval corresponding to each message middleware according to the weight corresponding to each message middleware.

具体的,获取各个消息中间件对应的权重系数,以利用各个消息中间件对应的权重系数确定各个消息中间件所负责的哈希值区间。Specifically, the weight coefficient corresponding to each message middleware is obtained, so as to determine the hash value interval that each message middleware is responsible for by using the weight coefficient corresponding to each message middleware.

进一步的,在利用权重系数确定消息中间件所负责的哈希值区间时,可以根据权重哈希映射表进行确定,即对于每个消息中间件,从权重哈希映射表中查找与该消息中间件对应的权重系数对应的哈希值区间,以得到该消息中间件对应的哈希值区间。Furthermore, when using the weight coefficient to determine the hash value interval that the message middleware is responsible for, it can be determined according to the weight hash mapping table, that is, for each message middleware, the hash value interval corresponding to the weight coefficient corresponding to the message middleware is searched from the weight hash mapping table to obtain the hash value interval corresponding to the message middleware.

可选的,在利用权重系数确定消息中间件所负责的哈希值区间时,设定一致性哈希函数H的值空间0~9999,按照公式hase(N)=∑i=1,...,n10000*wn计算每个消息中间件所负责的哈希值,以得到每个消息中间件对应的哈希值区间。其中,wn表示第n个消息中间件的权重,消息中间件的数量为N。Optionally, when using the weight coefficient to determine the hash value interval that the message middleware is responsible for, the value space of the consistent hash function H is set to 0-9999, and the hash value that each message middleware is responsible for is calculated according to the formula hash(N)=∑ i=1,...,n 10000*w n to obtain the hash value interval corresponding to each message middleware. Wherein, w n represents the weight of the nth message middleware, and the number of message middleware is N.

可选的,消息中间件的权重系统是根据消息中间件,即消息中间件对应的终端的性能确定的。具体的,是相关人员或电子设备根据消息中间件的后端性能分析报告为消息中间件分配的。Optionally, the weight system of the message middleware is determined according to the performance of the message middleware, that is, the terminal corresponding to the message middleware. Specifically, it is assigned to the message middleware by relevant personnel or electronic equipment according to the backend performance analysis report of the message middleware.

S304、对于每个用户话单数据,根据用户话单数据对应的哈希值,确定用户话单数据所属的消息中间件,其中,用户话单数据对应的哈希值在与用户话单数据所属的消息中间件对应的哈希值区间内。S304. For each user call record data, determine the message middleware to which the user call record data belongs according to the hash value corresponding to the user call record data, wherein the hash value corresponding to the user call record data is within the hash value range corresponding to the message middleware to which the user call record data belongs.

在本实施例中,在计算得到每个用户话单数据对应的哈希值时,即在计算得到每个待处理用户对应的哈希值时,对于每个待处理用户,确定该待处理用户对应的哈希值所属的哈希区间,并将该哈希区间对应的消息中间件确定为处理待处理用户的用户话单数据的消息中间件,以得到该待处理用户的用户话单数据所属的消息中间件,实现用户话单数据的分配。In this embodiment, when the hash value corresponding to each user's call record data is calculated, that is, when the hash value corresponding to each user to be processed is calculated, for each user to be processed, the hash interval to which the hash value corresponding to the user to be processed belongs is determined, and the message middleware corresponding to the hash interval is determined as the message middleware that processes the user call record data of the user to be processed, so as to obtain the message middleware to which the user call record data of the user to be processed belongs, thereby realizing the distribution of user call record data.

S305、将用户话单数据分配至其所属的消息中间件,以使消息中间件从其分配得到的用户话单数据中确定回退用户话单数据。S305: distribute the user call record data to the message middleware to which it belongs, so that the message middleware determines the rollback user call record data from the user call record data distributed to it.

S306、获取各个消息中间件发送的回退用户话单数据,并将所有回退用户话单数据发送至目标计费系统。S306: Acquire the rollback user call list data sent by each message middleware, and send all the rollback user call list data to the target billing system.

在本实施例中,在为消息中间件分配用户话单数据时,根据消息中间件的权重,即处理能力为消息中间件进行分配,从而可以使消息中间件快速处理用户话单数据,即快速从用户话单数据中筛选出回退用户话单数据,实现回退用户话单数据的快速确定,提高数据的处理效率。In this embodiment, when allocating user call record data to the message middleware, it is allocated to the message middleware according to the weight of the message middleware, that is, the processing capacity, so that the message middleware can quickly process the user call record data, that is, quickly filter out the rolled back user call record data from the user call record data, realize the rapid determination of the rolled back user call record data, and improve the data processing efficiency.

图4为本发明实施例提供的话单处理设备的结构示意图,如图4所示,该话单处理设备400包括:信息获取模块401和处理模块402。FIG. 4 is a schematic diagram of the structure of a call record processing device provided in an embodiment of the present invention. As shown in FIG. 4 , the call record processing device 400 includes: an information acquisition module 401 and a processing module 402 .

其中,信息获取模块401,用于获取待处理用户的标识,并将待处理用户的标识分配至多个中间端,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据。The information acquisition module 401 is used to obtain the identifier of the user to be processed and distribute the identifier of the user to be processed to multiple intermediate terminals, so that each intermediate terminal can obtain the user call list data corresponding to the identifier of the user to be processed allocated to it from the database.

处理模块402,用于获取各个中间端发送的用户话单数据,并将用户话单数据分配至多个消息中间件,以使各个消息中间件分别从其分配得到的用户话单数据中确定回退用户话单数据。The processing module 402 is used to obtain the user call record data sent by each intermediate end, and distribute the user call record data to multiple message middlewares, so that each message middleware can determine the rollback user call record data from the user call record data distributed to it.

处理模块402,用于获取各个消息中间件发送的回退用户话单数据,并将所有回退用户话单数据发送至目标计费系统。The processing module 402 is used to obtain the rollback user call record data sent by each message middleware, and send all the rollback user call record data to the target billing system.

在本发明的另一个实施例中,在上述图4所示的实施例的基础上,处理模块402还用于:In another embodiment of the present invention, based on the embodiment shown in FIG. 4 above, the processing module 402 is further configured to:

获取各个消息中间件对应的哈希值区间,并确定各个用户话单数据对应的哈希值。Get the hash value range corresponding to each message middleware, and determine the hash value corresponding to each user call record data.

对于每个用户话单数据,根据用户话单数据对应的哈希值,确定用户话单数据所属的消息中间件。其中,用户话单数据对应的哈希值在与用户话单数据所属的消息中间件对应的哈希值区间内。For each user call sheet data, the message middleware to which the user call sheet data belongs is determined according to the hash value corresponding to the user call sheet data, wherein the hash value corresponding to the user call sheet data is within the hash value interval corresponding to the message middleware to which the user call sheet data belongs.

在本实施例中,可选的,处理模块402还用于:In this embodiment, optionally, the processing module 402 is further configured to:

对于每个用户话单数据,获取用户话单数据对应的关键字段,并对关键字段进行哈希计算,得到用户话单数据对应的哈希值。For each user call record data, obtain the key field corresponding to the user call record data, and perform hash calculation on the key field to obtain the hash value corresponding to the user call record data.

在本实施例中,可选的,处理模块402还用于:In this embodiment, optionally, the processing module 402 is further configured to:

获取各个消息中间件对应的权重,并根据各个消息中间件对应的权重确定各个消息中间值对应的哈希值区间。The weight corresponding to each message middleware is obtained, and the hash value interval corresponding to each message intermediate value is determined according to the weight corresponding to each message middleware.

在任意实施例中,可选的,处理模块402还用于:In any embodiment, optionally, the processing module 402 is further configured to:

将用户话单数据平均分配至各个消息中间件。Distribute user call record data evenly to each message middleware.

在任意实施例中,可选的,信息获取模块401还用于:In any embodiment, optionally, the information acquisition module 401 is further used to:

将待处理用户的标识平均分配至各个中间端。Distribute the IDs of the users to be processed evenly to each intermediate end.

本发明实施例提供的话单处理设备,可以实现上述实施例的话单处理方法,其实现原理和技术效果类似,此处不再赘述。The call record processing device provided in the embodiment of the present invention can implement the call record processing method of the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

图5为本发明实施例提供的电子设备的硬件结构示意图。如图5所示,本实施例的电子设备500包括:处理器501以及存储器502;Fig. 5 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. As shown in Fig. 5, the electronic device 500 of this embodiment includes: a processor 501 and a memory 502;

其中,存储器502,用于存储计算机执行指令;The memory 502 is used to store computer-executable instructions;

处理器501,用于执行存储器存储的计算机执行指令,以实现上述实施例中接收设备所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。The processor 501 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the receiving device in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

可选地,存储器502既可以是独立的,也可以跟处理器501集成在一起。Optionally, the memory 502 may be independent or integrated with the processor 501 .

当存储器502独立设置时,该电子设备还包括总线503,用于连接所述存储器502和处理器501。When the memory 502 is independently provided, the electronic device further includes a bus 503 for connecting the memory 502 and the processor 501 .

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上所述的话单处理方法。An embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the call record processing method as described above is implemented.

本发明实施例还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如上所述的话单处理方法。An embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the call record processing method as described above is implemented.

在本发明所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述模块成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned module-composed unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例所述方法的部分步骤。The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application.

应理解,上述处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(ExtendedIndustry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

上述存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。存储介质可以是通用或专用计算机能够存取的任何可用介质。The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(Application Specific Integrated Circuits,简称:ASIC)中。当然,处理器和存储介质也可以作为分立组件存在于电子设备或主控设备中。An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1.一种话单处理方法,其特征在于,包括:1. A method for processing a call record, characterized by comprising: 获取待处理用户的多个标识,并将所述待处理用户的多个标识分配至多个中间端,且分配至各个中间端的待处理用户的标识不同,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据;Acquire multiple identifiers of users to be processed, and distribute the multiple identifiers of the users to be processed to multiple intermediate terminals, wherein the identifiers of the users to be processed distributed to each intermediate terminal are different, so that each intermediate terminal respectively acquires user call record data corresponding to the identifiers of the users to be processed distributed to it from the database; 获取各个中间端发送的用户话单数据,并将所述用户话单数据分配至多个消息中间件,以使各个消息中间件分别从其分配得到的用户话单数据中确定回退用户话单数据;Acquire user call list data sent by each middle end, and distribute the user call list data to multiple message middlewares, so that each message middleware can respectively determine the fallback user call list data from the user call list data distributed to it; 获取各个消息中间件发送的回退用户话单数据,并将所有回退用户话单数据发送至目标计费系统。Obtain the fallback user call list data sent by each message middleware, and send all fallback user call list data to the target billing system. 2.根据权利要求1所述的方法,其特征在于,所述将所述用户话单数据分配至多个消息中间件,包括:2. The method according to claim 1, characterized in that the step of distributing the user call record data to a plurality of message middlewares comprises: 获取各个消息中间件对应的哈希值区间,并确定各个用户话单数据对应的哈希值;Obtain the hash value range corresponding to each message middleware, and determine the hash value corresponding to each user call record data; 对于每个用户话单数据,根据所述用户话单数据对应的哈希值,确定所述用户话单数据所属的消息中间件;其中,所述用户话单数据对应的哈希值在与所述用户话单数据所属的消息中间件对应的哈希值区间内。For each user call record data, the message middleware to which the user call record data belongs is determined according to the hash value corresponding to the user call record data; wherein the hash value corresponding to the user call record data is within the hash value interval corresponding to the message middleware to which the user call record data belongs. 3.根据权利要求2所述的方法,其特征在于,所述确定各个用户话单数据对应的哈希值,包括:3. The method according to claim 2, wherein determining the hash value corresponding to each user call record data comprises: 对于每个用户话单数据,获取所述用户话单数据对应的关键字段,并对所述关键字段进行哈希计算,得到所述用户话单数据对应的哈希值。For each user call record data, the key field corresponding to the user call record data is obtained, and a hash calculation is performed on the key field to obtain the hash value corresponding to the user call record data. 4.根据权利要求2所述的方法,其特征在于,所述方法还包括:4. The method according to claim 2, characterized in that the method further comprises: 获取各个消息中间件对应的权重,并根据各个消息中间件对应的权重确定各个消息中间值对应的哈希值区间。The weight corresponding to each message middleware is obtained, and the hash value interval corresponding to each message intermediate value is determined according to the weight corresponding to each message middleware. 5.根据权利要求1所述的方法,其特征在于,所述将所述用户话单数据分配至多个消息中间件,包括:5. The method according to claim 1, characterized in that the step of distributing the user call record data to a plurality of message middlewares comprises: 将所述用户话单数据平均分配至各个消息中间件。The user call record data is evenly distributed to each message middleware. 6.根据权利要求1至5任一项所述的方法,其特征在于,所述将所述待处理用户的标识分配至多个中间端,包括:6. The method according to any one of claims 1 to 5, characterized in that the step of distributing the identifiers of the to-be-processed users to a plurality of intermediate terminals comprises: 将所述待处理用户的标识平均分配至各个中间端。The identifiers of the users to be processed are evenly distributed to each intermediate end. 7.一种话单处理设备,其特征在于,包括:7. A call record processing device, characterized by comprising: 信息获取模块,用于获取待处理用户的多个标识,并将所述待处理用户的多个标识分配至多个中间端,且分配至各个中间端的待处理用户的标识不同,以使各个中间端分别从数据库中获取与其分配得到的待处理用户的标识对应的用户话单数据;An information acquisition module is used to acquire multiple identifiers of users to be processed, and allocate the multiple identifiers of the users to be processed to multiple intermediate terminals, and the identifiers of the users to be processed allocated to each intermediate terminal are different, so that each intermediate terminal respectively acquires user call list data corresponding to the identifiers of the users to be processed allocated to it from the database; 处理模块,用于获取各个中间端发送的用户话单数据,并将所述用户话单数据分配至多个消息中间件,以使各个消息中间件分别从其分配得到的用户话单数据中确定回退用户话单数据;A processing module, used for acquiring user call bill data sent by each intermediate end, and distributing the user call bill data to a plurality of message middlewares, so that each message middleware can respectively determine the fallback user call bill data from the user call bill data distributed to it; 处理模块,用于获取各个消息中间件发送的回退用户话单数据,并将所有回退用户话单数据发送至目标计费系统。The processing module is used to obtain the fallback user call list data sent by each message middleware, and send all the fallback user call list data to the target billing system. 8.一种电子设备,其特征在于,包括:至少一个处理器和存储器;8. An electronic device, comprising: at least one processor and a memory; 所述存储器存储计算机执行指令;The memory stores computer-executable instructions; 所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1至6任一项所述的话单处理方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the call record processing method as described in any one of claims 1 to 6. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至6任一项所述的话单处理方法。9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the call record processing method as described in any one of claims 1 to 6 is implemented. 10.一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6任一项所述的话单处理方法。10. A computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, the call record processing method according to any one of claims 1 to 6 is implemented.
CN202110657233.9A 2021-06-11 2021-06-11 Call record processing method and device Active CN115473968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110657233.9A CN115473968B (en) 2021-06-11 2021-06-11 Call record processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110657233.9A CN115473968B (en) 2021-06-11 2021-06-11 Call record processing method and device

Publications (2)

Publication Number Publication Date
CN115473968A CN115473968A (en) 2022-12-13
CN115473968B true CN115473968B (en) 2024-04-30

Family

ID=84363329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110657233.9A Active CN115473968B (en) 2021-06-11 2021-06-11 Call record processing method and device

Country Status (1)

Country Link
CN (1) CN115473968B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1708010A (en) * 2004-06-08 2005-12-14 华为技术有限公司 Charged gateway decoding error toll ticket processing method in radio communication system
CN102546189A (en) * 2010-12-07 2012-07-04 中国移动通信集团上海有限公司 Rebilling method and device for telephone bills
CN110333944A (en) * 2019-04-19 2019-10-15 中国联合网络通信集团有限公司 Bill data service processing method and device
CN112838932A (en) * 2019-11-25 2021-05-25 中国移动通信集团浙江有限公司 Method, Apparatus and Computing Device for Re-rating Based on Cumulative Pricing by Volume

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288526A1 (en) * 2006-06-08 2007-12-13 Emc Corporation Method and apparatus for processing a database replica
US10873499B2 (en) * 2018-12-04 2020-12-22 T-Mobile Usa, Inc. Network-charging communication-failure handling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1708010A (en) * 2004-06-08 2005-12-14 华为技术有限公司 Charged gateway decoding error toll ticket processing method in radio communication system
CN102546189A (en) * 2010-12-07 2012-07-04 中国移动通信集团上海有限公司 Rebilling method and device for telephone bills
CN110333944A (en) * 2019-04-19 2019-10-15 中国联合网络通信集团有限公司 Bill data service processing method and device
CN112838932A (en) * 2019-11-25 2021-05-25 中国移动通信集团浙江有限公司 Method, Apparatus and Computing Device for Re-rating Based on Cumulative Pricing by Volume

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
强化计费分析确保运营收入;李华;;电信技术;20070525(第05期);全文 *
电信计费批价管理信息系统的研究;李惠林;中国优秀硕士学位论文全文数据库-信息科技辑;20140815;全文 *

Also Published As

Publication number Publication date
CN115473968A (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN111241177B (en) Data collection method, system and network equipment
CN107888716A (en) Sorting method, terminal device and storage medium of domain name resolution server
CN109313642B (en) Billing information caching method, billing information query method and terminal device
CN107784596A (en) Insurance kind state information statistics method, terminal device and the storage medium of declaration form
CN110941530B (en) Method, device, computer equipment and storage medium for acquiring monitoring data
WO2020103573A1 (en) Block chain-based network transaction signature method and device, and terminal equipment
CN110909212B (en) Bank identification code matching method and equipment
CN112988812A (en) Inventory data processing method, device, equipment and storage medium
CN107704566A (en) Ticket centralized procurement preprocess method, system and re-scheduling, fractionation and combination system
CN109377206B (en) Payment limit system, method, device and storage medium
CN115473968B (en) Call record processing method and device
CN106658444A (en) Short message channel provider selection method and terminal
CN101799803B (en) Method, module and system for processing information
CN112148782B (en) Market data access method and device
CN111539707B (en) Bill query method, device, equipment and medium
CN114817588A (en) Business image data management method, device and storage medium
CN113836145A (en) Method and device for requesting data, electronic equipment and computer-readable storage medium
CN114443932A (en) Information pushing method, device and system for financial products, electronic equipment and medium
CN111784512A (en) Bank-enterprise reconciliation process processing method, device and electronic device
CN111274203A (en) A bill storage system and method
CN118803623A (en) Call record processing method, device, equipment and storage medium
CN112508617B (en) User interaction processing method, device and system
CN117787961B (en) Payment ticket business integrated management method and system
CN117591155A (en) Method, device, equipment and storage medium for processing ticket
CN108038783A (en) Position management method, system and computer-readable recording medium

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