WO2010133052A1 - 话单处理方法和*** - Google Patents

话单处理方法和*** Download PDF

Info

Publication number
WO2010133052A1
WO2010133052A1 PCT/CN2009/073901 CN2009073901W WO2010133052A1 WO 2010133052 A1 WO2010133052 A1 WO 2010133052A1 CN 2009073901 W CN2009073901 W CN 2009073901W WO 2010133052 A1 WO2010133052 A1 WO 2010133052A1
Authority
WO
WIPO (PCT)
Prior art keywords
bill
index
file
query
cdr
Prior art date
Application number
PCT/CN2009/073901
Other languages
English (en)
French (fr)
Inventor
钱炎
陈俊
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP09844804.6A priority Critical patent/EP2434685A4/en
Publication of WO2010133052A1 publication Critical patent/WO2010133052A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1428Invoice generation, e.g. customization, lay-out, database processing, algorithms for calculating the bill or formatting invoices as WWW pages
    • 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/43Billing software details
    • 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
    • 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
    • H04M15/72Administration or customization aspects; Counter-checking correct charges by the user
    • H04M15/721Administration or customization aspects; Counter-checking correct charges by the user using the Internet
    • 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
    • H04M15/74Backing up
    • 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/44Augmented, consolidated or itemized billing statement or bill presentation
    • 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
    • H04M15/725Administration or customization aspects; Counter-checking correct charges by the operator

Definitions

  • the present invention relates to bill processing techniques, and more particularly to a bill processing method and system.
  • BACKGROUND OF THE INVENTION With the rapid increase of telecommunication traffic, the data volume of CDRs is also increasing at an order of magnitude. Therefore, when storing CDRs, the performance and space of the storage devices are also higher; At the same time, customers are no longer satisfied with hours or even 24 hours before they can find their own detailed bills.
  • the real-time performance can be obtained by directly querying the CDR file, but the operation of this mode needs to be completed on the service processor, which affects the operation of the main service, and may also become a fault point affecting the main service, so In the actual situation, a ⁇ 1 does not use this way of directly querying the bill file.
  • the enterprise version of some database systems on the billing server is also easier to implement real-time query of bills, but this method will greatly increase the cost, and the configuration requirements of the dialog single server are relatively high. Therefore, under the premise of low cost, it can handle large data volume bills and meet the real-time requirements of customer's call list query, which has become an important indicator for telecom industry bidding.
  • FIG. 1 is a schematic diagram of a CDR collection, warehousing, and query architecture in the prior art.
  • the service processor generates after the call ends. CDR, and provide the bill to the bill storage program; the bill entry program 4 stores the bill to the corresponding schedule in the database according to the time generated by the bill, and the size of the bill data can be
  • the timetable is divided into a monthly table (such as a January table, a February table, etc.), a daily table or an hour table, etc.; after receiving the CDR request from the client, the WEB server queries the CDR data in the database, and returns the result to the Client.
  • This architecture looks rather straightforward, but has the following problems:
  • the main object of the present invention is to provide a bill processing method and system, which can solve the problem of inefficient bill entry and query efficiency when a large amount of traffic is required.
  • the present invention provides a method for processing a bill, the method comprising: collecting a bill file generated by a service processor by using a bill collecting process;
  • the document file is stored in the library, and an index is created by the index creation process for the bill file;
  • the bill query process queries the required bill file according to the index.
  • the method further includes: the bill collecting process depositing the bill file into the local directory of the bill collecting process according to the generating time, and simultaneously ⁇ ) Deleting the CDR file generated by the service processor;
  • the bill file in the recording is stored in the library.
  • the bill storage process stores the bill file into the library, where the billing process is: according to the storage status of the sequence table in the database recorded in the preset logic control table, the bill file is And the index creation process creates an index for the CDR file according to the preset switching rule.
  • the index creation process is based on the warehousing status of the sequence table in the logic control table. And index status, periodically create an index on the sequence table.
  • the method further includes: the bill exporting process periodically, according to the inbound state, the index state, and the export state of the sequence table in the logic control table, the sequence table is periodically
  • the bill file is exported to the database table of the database; the cable I creation process periodically creates the cord 1 for the day table.
  • the method further includes: creating a query view and a day query view of the day by the view creation process, adding the sequence 1 of the sequence table to the query view of the day, and adding the cable 1 of the date table to the query view
  • the CDR file required by the CDR query process according to the index query is: the CDR query process queries the CDR file required in the query view or the daily query view.
  • the warehousing status of the sequence table includes: an empty table, a warehousing and a warehousing completion; the index status includes: a line 1 is not created and a line 1 has been created; the export status includes: not exported and exported.
  • the method further includes: periodically cleaning, by the data cleaning process, the bill file in the sequence table, the index of the sequence table, the bill file in the daily table, and the line 1 of the daily table.
  • the present invention further provides a bill processing system, the system comprising: a service processor, a bill collection module, a bill entry module, a database, an index creation module, and a bill query module, wherein: the service processor, The CDR collection module is configured to collect the CDR file; the CDR storage module is configured to store the CDR file into the database; and the database is used to store the CDR file.
  • the database includes: a sequence table and a date table; correspondingly, the bill entry module writes the bill file to the sequence table according to a preset switching rule; The list creates an index.
  • the system further includes: a bill exporting module, configured to export the bill file in the sequence table to Correspondingly, the index creation module is further configured to create an index on the date table; the system further includes: a view creation module, configured to create a day query view and a daily query view, and Adding the sequence 1 of the sequence table to the query view of the day, adding the cable 1 of the daily table to the daily query view; correspondingly, the bill query module is configured to query the view according to the day and The daily query view queries the database to query the required bill file; the system further includes: a data cleaning module, configured to clean the bill file in the sequence table, the index of the sequence table, the bill file in the date table, and the date table.
  • the CDR processing method and system provided by the present invention separates the CDR collection process from the CDR warehousing process, and the CDR collection process is responsible for downloading the CDR file to the local directory of the CDR collection process, and the words on the service processor.
  • the bill storage process stores the bill files in the local directory, which not only prevents the bill file from being backlogged on the service processor, but also does not affect the bill collection process, thus avoiding the words.
  • the impact of the single-entry library on the business processor; and the sequence table and the daily table written when the bill is placed into the database are not indexed, but the cable is established after the bill is written, thus increasing the bill.
  • FIG. 1 is a schematic diagram of a CDR collection, warehousing and query architecture in the prior art
  • FIG. 2 is a schematic diagram of a CDR processing method according to an embodiment of the present invention
  • FIG. 3 is a CDR according to an embodiment of the present invention.
  • the embodiments of the present invention provide a bill processing scheme, and the processing principles of the scheme are as follows:
  • the bill collection process is as follows: Collecting a bill file generated by the service processor; the bill entry process ⁇ ) capturing the bill file into the library, and the index creation process creates an index for the bill file; the bill query process is required according to the index query The order file.
  • FIG. 2 is a schematic flowchart of a bill processing method according to an embodiment of the present invention, which includes: Step 201, collecting a bill collection process, in the flowchart of a method for processing a bill collection, warehousing, and query.
  • the bill file generated by the business processor. In practical applications, multiple service processing opportunities generate CDR files at the same time.
  • a CDR collection process can enable multi-threading to download CDR files from multiple service processors at the same time.
  • a file transfer protocol can be used.
  • the protocol, called FTP downloads the CDR file to a local directory and stores it according to its generation time.
  • the CDR file on the service processor is deleted.
  • the bill collection process can also download the bill file by using other existing file download methods in the prior art.
  • Step 202 The preset logic control table records the inbound state, the index state, and the export state of the sequence table in the database.
  • the database contains multiple sequence tables for storing CDR files. In practical applications, the number of sequence tables can be set according to requirements. In the embodiment of the present invention, 1000 sequence tables are taken as an example; each sequence table corresponds to a table name and a sequence number, such as a sequence table named bill-mOOOL The serial number of the sequence number is 1.
  • the sequence number of the table name bill- m0002 is 2, and so on.
  • the sequence number of the sequence name named bill-ml 000 is 1000.
  • the sequence table in the database of the embodiment of the present invention can be divided into multiple, and the CDR files are respectively stored in the sequence tables, so that the number of CDR files stored in each sequence table is limited, and the CDRs in the sequence table can be improved.
  • the dialog file creation index will be explained by the following steps.
  • the embodiment of the present invention records the state of the operation of the sequence table by the three processes of the above-mentioned bill storage, index creation, and bill export by using a preset logic control table, and the CDR file is written into the sequence table as the hang-in of the sequence table.
  • the process is represented by the warehousing state and can be divided into three states: an empty table (that is, the CDR file is not started to be written to the sequence table), and is being warehousing (that is, a CDR file is being written to the sequence table)
  • the warehousing is completed (that is, the CDR file is written to the sequence table);
  • the process of creating an index on the sequence table is represented by an index state, and can be divided into two states: an index is not created, an index has been created;
  • the process of exporting the CDR file to the daily table is represented by the export status and can be divided into two states: unexported and exported. It should be noted that this step can also be performed before step 201.
  • the bill entry process, the index creation process, and the bill export process perform corresponding operations according to various states of the sequence table recorded in the logical control table. The operations performed by the above three processes will be described below in conjunction with the specific examples of Table 1.
  • Table 1 where the start time indicates the time when the CDR file is written to the sequence table, that is, the sequence table is stored.
  • the start time indicates the time when the CDR file is written to the sequence table, that is, the end time of the sequence table storage;
  • 0 indicates an empty table, 1 indicates that the warehousing is in progress, and 2 indicates that the warehousing is completed;
  • Regarding the index status 0 means no index is created, 1 means index has been created; about export status, 0 means not exported, 1 means exported.
  • the values corresponding to the respective states of the sequence table may have other setting methods as long as the respective states can be clearly indicated.
  • Step 203 According to the warehousing state of the sequence table in the logic control table, the CDR warehousing process writes the collected CDR file into the sequence table according to a preset switching rule.
  • the bill entry process writes the bill files in the local directory into the sequence table in order from the morning to the night according to the generation time; when selecting the sequence table to be written, the inbound state is selected according to the serial number.
  • the so-called switching rule may refer to the switching time of the sequence table. For example, when the time when the CDR file is continuously written into the current sequence table has reached the preset switching time, the CDR file is stopped from being written into the sequence table, but is switched to The sequence table of the next empty table continues to be written to the bill file.
  • the switching rule can also be set according to the capacity of the sequence table or other conditions, such as setting a sequence file to which a maximum amount of data can be written. As shown in Table 1, the interval between the start time and the end time is the switching time.
  • the CDR file will be written to the sequence No. 1 in the 0th minute to the 5th minute, and the 5th minute to the 10th minute. Write the bill file to the serial number 2 table, and so on, and switch a sequence table every 5 minutes.
  • the logic control table changes its inbound state from the empty table (0) to the inbound (1); when the sequence table is completed, the logical control table stores it in the state The warehousing (1) is changed to the warehousing completion (2). As shown in Table 1, the sequence listing of No. 1, No. 2 and No. 3 is completed, and the No. 4 sequence table is being put into storage.
  • the embodiment of the present invention separates the bill collection process from the bill entry process: the bill collection process is responsible for downloading the bill file to the local directory of the bill collection process, and the service processor is The single file deletion; the bill storage process stores the bill files in the local directory, which not only prevents the backlog of the bill file from being accumulated on the service processor, but also prevents the bill collection process from affecting the bill collection process. The impact of bill storage on business processors.
  • Step 204 According to the inbound state and the index state of the sequence table in the logic control table, the index creation process periodically creates an index on the sequence table, and the view creation process adds the index of the sequence table to the query view of the day.
  • the index creation process periodically scans the sequence table in the logical control table. If there is a sequence table in which the inbound is completed and the index is not created, an index is immediately created for the index table, and the index and the CDR file included in the sequence table are mapped. Therefore, An index is created for the sequence table to create an index for the CDR file in the sequence table. Then, the view creation process adds the index of the sequence table to the query view of the day, which is used when the CDR query process queries the CDR.
  • the period in which the index creation process scans the logical control table can be set according to actual needs, but the principle of creating an index is fast. In the example of the sequence table switching time of 5 minutes in Table 1, the period of the index creation process scan logic control table can be set to 5 minutes.
  • the amount of CDR data in a 5-minute granularity is relatively small, and the index creation speed is also relatively fast, so that the time from the generation to the collection, the storage, and the query can be short, such as about 5 minutes. , to meet the real-time requirements of the customer dialogue list query.
  • the above switching time and the setting of the period of the index creation process scanning logic control table are all related to the speed of index creation.
  • the sequence table bill-m0003 is the state in which the inbound is completed and the index is not created, and the index creation process creates an index on the sequence table bill_m0003. After the index is created, the logical control table changes the index state of the sequence table from the uncreated index (0) to the created index (1).
  • the query view of the current day is used to facilitate the query of the bills.
  • the process of querying the bills by the billing query process is created by the view creation process.
  • Step 205 According to the warehousing state, the index state, and the export state of the sequence table in the logic control table, the CDR export process periodically exports the CDR file in the sequence table to the database table.
  • the operation of this step needs to be performed in a time period in which the amount of traffic is small and/or the number of CDRs is small.
  • This embodiment of the present invention refers to the time period as idle time.
  • the bill export process periodically scans the logic control table during idle time, if there is inbound completion
  • the CDR file in the sequence table is exported to the corresponding date table according to its generation time.
  • the daily table in the database is divided into 366 tables, corresponding to 366 days of the year, each table corresponds to a table name and a serial number, such as the table name of the day table set on January 1 is bill_dOlOl, serial number
  • the table name of the day table of January 2 is bill_d0102
  • the serial number is 2
  • the table name of the day table of December 31 is bill_dl231, and the serial number is 366.
  • the sequence table bill-m0002 is the status of the completed database, the created index, and the unexported state, and the CDR export process exports the CDR file in the sequence table to the corresponding daily table.
  • the CDR file generated on January 1 is exported to the daily table bill-dOlO1 on January 1 and will be generated on January 2nd.
  • the CDR file is exported to the daily table bill-d0102 on January 2.
  • the logic control table changes the export status of the sequence table from unexported (0) to exported (1). It should be pointed out that the initial date table has no index.
  • the embodiment of the present invention is not limited to only setting the sequence table and the date table, and may also set the monthly table, the aging table, etc.
  • Step 206 The index creation process periodically creates an index on the daily table, and the view creation process adds the index of the table to the daily query view. Preferably, it can be set to create an index on the day of the previous day in the early morning of each day. In the case of ⁇ :, the traffic and bill data are relatively small between 20 and 24 o'clock every day. Therefore, the bill is exported.
  • the process has enough time to import the current bill file in the sequence table into the corresponding day table, and wait until the next morning, that is, 0 o'clock, that the bill file of the previous day has been all exported to the date table, and the query view will be displayed on the same day.
  • the index corresponding to the sequence table of the previous day is deleted, and is no longer associated with the sequence table of the previous day, but is switched to be associated with the sequence table of the day, and the sequence table of the previous day and its corresponding index are all in an idle state.
  • the index creation process creates an index on the daily table corresponding to the bill file of the previous day, and the index is also mapped to the bill file in the daily table.
  • creating an index on the daily table is to create an index on the bill file in the daily table.
  • the index creation process adds the index to the daily query view for use when the bill query process queries the bill. For example, in the early morning of January 2, an index is created for the January 1 day table, and the index is added to the daily query view.
  • the daily query view can be associated with multiple day tables through indexes of multiple daily tables, so the daily query is used.
  • the view can query the bill file for many days before the day. At this time, if you need to query the CDR file of the previous day, you can directly access the CDR file of the previous day through the daily query view; and the sequence table of the previous day and its corresponding index are deleted when the data cleaning process performs the periodic deletion task. .
  • Step 207 The bill query process queries the current query view or the daily query view to query the required bill file.
  • the bill inquiry process can query the bill at any time according to the user's needs.
  • the bill query process performs the bill query operation according to the time range selected by the user to the corresponding query view, because the table (sequence table, date table) associated with the query view is determined according to the current time, so the bill query process There is no need to consider the sequence table or the daily table that needs to be queried at present, but only need to query directly in the query view.
  • the CDR query process can be implemented by the WEB server.
  • the embodiment of the present invention adopts asynchronous JavaScript and the language of Asynchronous JavaScript and XML, the tube is called AJAX technology.
  • the result After the result is queried, it is attached to the already displayed WEB page, so that the query is completed, and the user is allowed to stop the query.
  • the user can view the bill data in about 5 seconds, and the user can interrupt the query, which not only allows the user to see the bills queried as soon as possible, but also increases the flexibility of the query control.
  • the CDR file in the database needs to be cleared periodically through the data cleaning process: Clearing the CDR file in the sequence table: First, setting the sequence table as needed The maximum time that the CDR file can be saved.
  • the maximum time is the start time of each sequence table in the logic control table, and the CDR file in the sequence table and the corresponding sequence table are corresponding to the maximum time.
  • the index is deleted.
  • the database contains 1000 sequence listings, and the switching time is 5 minutes, then 1000 sequence listings can be used for about 3.47 days. Because 1000 sequence lists need to be recycled, you can set the maximum time for saving the CDR file in each sequence table to 3 days, that is, the CDR file needs to be deleted after being stored in the sequence table for 3 days. In addition, it is not necessary for the data cleaning process to check whether the CDR file in the sequence table has arrived for 3 days at all times.
  • the data cleaning process can only clean up the exported sequence table according to the export status of the sequence table in the logic control table; after the cleaning is completed, the logic control table initializes the inbound state, the index state, and the export state of the sequence table.
  • Empty table no index created, and not exported, so that the billing process is used when the bill file is put into the library.
  • the maximum time for saving the CDR file in the ⁇ table is 3 months
  • the generation time of the CDR file is the starting time
  • the CDR file is in the daily table.
  • the log process is also used to collect the bill file and the bill entry process to write the bill file into the sequence table (the switch of the sequence table).
  • the index creation process creates an index of the sequence table and the day table
  • the CDR export process writes the CDR file from the sequence table to the day table and the view creation process to create a query view
  • the operation process writes the log table, and the user can fully understand the log table.
  • the present invention further provides a bill processing system, as shown in FIG. 3, FIG.
  • FIG. 3 is a schematic diagram showing the structure relationship of the bill processing system according to the embodiment of the present invention, and the system includes: The device 10, the bill collection module 20, the bill storage module 30, the database 40, the cable creation module 50, and the bill query module 60, wherein: the service processor 10, the user generates the bill file; the bill collection module 20
  • the billing module 30 is configured to store the bill file into the database; the database 40 is configured to store the bill file; and the index creating module 50 is configured to create an index for the inbound bill file.
  • the bill query module 60 is configured to query the required bill file in the database 40 according to the index.
  • the database may include: a sequence table 41 and a date table 42.
  • the bill entry module 30 writes the bill file to the sequence table 41 according to a preset switching rule; the index creating module 50 creates an index for the sequence table.
  • the system may further include: a bill exporting module 70, configured to export the bill file in the sequence table 41 to the date table 42; and the index creating module 50 is further configured to create a cord 1 for the date table 41.
  • the system may further include: a view creating module 80, configured to create a day query view and a day query view, and add the index of the sequence table 41 to the day query view, and add the index of the day table 42.
  • the bill query module 60 is configured to query the database 41 for the required bill file according to the query view and the daily query view of the day.
  • the system may further include: a data cleaning module 90 for cleaning the CDR file in the sequence table 41, the index of the sequence table 41, the CDR file in the daily table 42, and the index of the date table 42.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Databases & Information Systems (AREA)
  • Educational Administration (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Accounting & Taxation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)

Description

话单处理方法和***
技术领域 本发明涉及话单处理技术, 特别是指一种话单处理方法和***。 背景技术 随着电信业务量的迅速增加 ,话单的数据量也在以数量级的迅猛速度增 加, 因此, 在存储话单时, 对存储设备的性能和空间也都有了更高的要求; 与此同时, 客户也不再满足于几小时甚至 24 小时后才能查询到自己的详细 话单。 目前 , 通过直接查询话单文件的方式可以得到更高的实时性 , 但是这种 方式的操作需要在业务处理机上完成, 会影响主业务的运行, 并且还可能成 为影响主业务的故障点 , 所以实际情况中一^ 1不使用这种直接查询话单文件 的方式。 另外, 在话单月 务器上采用某些数据库***的企业版也比较容易实 现话单的实时查询, 但是这种方式会大大增加成本, 对话单服务器的配置要 求比较高。 因此, 在低成本的前提下, 既能够处理大数据量话单又能够满足客户对 话单查询的实时性要求, 这已经成为电信行业招标的一个重要指标。 图 1为现有技术中话单采集、 入库和查询架构示意图, 目前, 满足上述 指标的现有技术的 ^故法如图 1所示, 具体的流程为: 业务处理机在通话结束 后生成话单 , 并将话单提供给话单入库程序; 话单入库程序 4艮据话单产生的 时间将话单存储到数据库中对应的时间表 , 才艮据话单数据量的大小可以将时 间表划分为月表(如一月表、 二月表等)、 日表或者小时表等; WEB服务器 接收到客户端的话单查询请求后, 在数据库中查询话单数据, 并将结果返回 给客户端。 这种架构看上去比较筒单清晰, 但是存在以下问题:
1、 话单入库程序和话单查询程序同时访问数据库时, 容易造成数据库 表锁的冲突, 还会使查询效率降低;
2、 因为数据库需要提供查询功能, 所以数据库中所有的时间表都需要 建立索引, 则话单入库程序在将话单文件入库的同时还要为其建立索引; 并 且, 话单采集和话单入库是统一的进程, 因此, 当话单数据量增大时, 话单 文件的入库效率会迅速下降, 甚至会造成话单文件的积压, 致使话单文件不 能及时入库。 发明内容 有鉴于此, 本发明的主要目的在于提供一种话单处理方法和***, 能够 解决在大业务量时话单入库和查询效率不高的问题。 为达到上述目的, 本发明的技术方案是这样实现的: 本发明提供了一种话单处理方法, 该方法包括: 话单采集进程采集业务处理机产生的话单文件;话单入库进程将所述话 单文件入库, 并由索引创建进程为所述话单文件创建索引; 话单查询进程依 据所述索引查询所需的话单文件。 其中, 所述话单采集进程采集话单文件时, 该方法进一步包括: 所述话 单采集进程将所述话单文件按照产生时间存入所述话单采集进程的本地目录 中 , 同时^)夺所述业务处理机产生的话单文件删除;
录中的话单文件入库。 所述话单入库进程将所述话单文件入库 , 具体为: 所述话单入库进程依据预设的逻辑控制表记载的数据库中序列表的入 库状态 , 将所述话单文件按照预设的切换规则写入数据库的序列表中; 相应的, 所述索引创建进程为所述话单文件创建索引, 具体为: 索引创 建进程依据所述逻辑控制表中序列表的入库状态和索引状态 , 定期对所述序 列表创建索引。 所述索 1创建进程对所述序列表创建索引之后 , 该方法还包括: 话单导出进程依据所述逻辑控制表中序列表的入库状态、索引状态和导 出状态, 定期将所述序列表中的话单文件导出到数据库的日表中; 所述索 I创建进程定期对所述日表创建索 1 。 该方法还包括: 视图创建进程创建当天查询视图和日查询视图, 并将所 述序列表的索 1添加进所述当天查询视图中 , 将所述日表的索 1添加进所述 曰查询视图中; 相应的, 所述话单查询进程依据所述索引查询所需的话单文件为: 所述 话单查询进程到所述当天查询视图或者所述日查询视图中查询所需的话单文 件。 所述序列表的入库状态包括: 空表、 正在入库和入库完成; 所述索引状态包括: 未创建索 1和已创建索 1; 所述导出状态包括: 未导出和已导出。 该方法还包括: 由数据清理进程定期对序列表中的话单文件、序列表的 索引、 日表中的话单文件和日表的索 1进行清理。 本发明还提供了一种话单处理***, 该***包括: 业务处理机、 话单采 集模块、 话单入库模块、 数据库、 索引创建模块和话单查询模块, 其中: 所述业务处理机, 用于产生话单文件; 所述话单采集模块, 用于采集所述话单文件; 所述话单入库模块, 用于将所述话单文件入库; 所述数据库, 用于存储所述入库的话单文件; 所述索引创建模块, 用于为所述入库的话单文件创建索引; 所述话单查询模块,用于依据所述索引到所述数据库中查询所需的话单 文件。 所述数据库包括: 序列表和日表; 相应的,所述话单入库模块将所述话单文件按照预设的切换规则写入所 述序列表; 所述索 1创建模块对所述序列表创建索引。 该***还包括: 话单导出模块, 用于将所述序列表中的话单文件导出到 所述日表中; 相应的, 所述索引创建模块, 还用于对所述日表创建索引; 该***还包括: 视图创建模块, 用于创建当天查询视图和日查询视图 , 并将所述序列表的索 1添加进所述当天查询视图中 , 将所述日表的索 1添加 进所述日查询视图中; 相应的, 所述话单查询模块, 用于依据所述当天查询视图和日查询视图 到所述数据库中查询所需的话单文件; 该***还包括: 数据清理模块, 用于清理所述序列表中的话单文件、 序 列表的索引、 日表中的话单文件和日表的索引。 本发明所提供的话单处理方法和*** ,将话单采集进程和话单入库进程 分开, 话单采集进程负责将话单文件下载到话单采集进程的本地目录上, 并 将业务处理机上的话单文件删除; 话单入库进程将本地目录中的话单文件入 库, 这样不仅可以防止话单文件在业务处理机上积压, 话单入库进程也不会 影响话单采集进程, 从而避免了话单入库对业务处理机造成的影响; 并且话 单入库时写入的序列表和日表都没有建立索引, 而是在话单写入后才建立索 ^ I , 如此就提高了话单入库的效率。 另夕卜, 本发明将话单入库分为两个部分: 将当天产生的话单写入序列表 中, 将历史话单写入日表中, 如此当序列表异常时不会影响到日表, 提高了 数据库的容灾能力; 并且, 本发明将序列表和日表通过索引和查询视图关联 起来, 用户只需要直接查询视图就可以直接访问数据库中的话单文件, 降低 了话单入库和话单查询的冲突, 提高了话单查询的效率。 附图说明 图 1为现有技术中话单采集、 入库和查询架构示意图; 图 2为才艮据本发明实施例的话单处理方法流程示意图; 图 3为才艮据本发明实施例的话单处理***结构关系示意图。 具体实施方式 功能相克述 考虑到相关技术中大业务量时话单入库和查询效率不高的问题,本发明 实施例提供了一种话单处理方案, 该方案处理原则如下: 话单采集进程采集 业务处理机产生的话单文件; 话单入库进程^)夺所述话单文件入库, 并由索引 创建进程为所述话单文件创建索引; 话单查询进程依据所述索引查询所需的 话单文件。 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互组合。 下面将参考附图并结合实施例来详细说明本发明。 在以下实施例中,在附图的流程图示出的步骤可以在诸如一组计算机可 执行指令的计算机***中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但 是在某些情况下 , 可以以不同于此处的顺序执行所示出或描述的步骤。 下面结合附图和具体实施例对本发明实施例的技术方案进一步详细阐 述。 本发明实施例的话单采集、 入库和查询的处理方法流程, 如图 2所示, 图 2为才艮据本发明实施例的话单处理方法流程示意图 , 包括: 步骤 201 , 话单采集进程采集业务处理机产生的话单文件。 在实际应用中, 有多个业务处理机会同时产生话单文件, 一个话单采集 进程可以启用多线程同时从多个业务处理机上下载话单文件, 较佳地, 可以 采用文件传输协议 (File Transfer Protocol, 筒称为 FTP ) 的方式将话单文件 下载到本地目录, 并按照其产生时间进行存储; 同时将业务处理机上的话单 文件删除。 当然, 话单采集进程也可以采用现有技术中其他已有的文件下载 方式下载话单文件。 步骤 202, 由预设的逻辑控制表来记录数据库中序列表的入库状态、 索 引状态和导出状态。 将采集的话单文件入库时 , 首先需要将话单文件写入数据库的序列表 中, 由话单入库进程完成; 然后对序列表创建索引, 由索引创建进程完成; 最后将序列表中的话单文件再导出到数据库的日表中,由话单导出进程完成。 上述话单入库、 索引创建以及话单导出三个进程, 对序列表具体如何操 作^1通过下面的步骤来说明。 其中, 数据库含有多个序列表, 用来存储话单文件。 在实际应用中, 可 以根据需要来设置序列表的个数, 本发明实施例以 1000 个序列表为例; 每 个序列表对应一个表名和一个序列号, 如表名为 bill— mOOOl的序列表的序列 号为 1、 表名为 bill— m0002 的序列表的序列号为 2 , 以此类推, 表名为 bill— ml 000的序列表的序列号为 1000。 本发明实施例数据库中的序列表可分为多个 ,分别将话单文件存入各序 列表中, 这样每个序列表存储的话单文件的数量是有限的, 可以提高对序列 表中话单文件创建索引的速度。 其中, 对话单文件创建索引将通过下面的步 骤进行说明。 本发明实施例通过预设的逻辑控制表来记录上述话单入库、索引创建以 及话单导出三个进程对序列表操作的状态 , 将话单文件写入序列表称为序列 表的入库, 其过程用入库状态来表示, 可以分为三个状态: 空表(即未开始 向该序列表写入话单文件)、 正在入库 (即正在向该序列表写入话单文件)、 入库完成(即已经完成向该序列表写入话单文件); 将对序列表创建索引的过 程用索引状态表示, 可以分为两个状态: 未创建索引、 已创建索引; 将序列 表中的话单文件导出到日表的过程用导出状态表示, 可以分为两个状态: 未 导出、 已导出。 需要指出的是, 该步骤也可以在步骤 201之前执行。 话单入库进程、索引创建进程和话单导出进程要依据逻辑控制表中记录 的序列表的各种状态来执行相应的操作。 下面结合表 1的具体例子来说明上 述三个进程所执行的操作。
Figure imgf000008_0001
表 1 其中, 开始时间表示向该序列表写入话单文件的时间 , 即该序列表入库 开始时间; 结束时间表示停止向该序列表写入话单文件的时间, 即该序列表 入库结束时间; 关于入库状态, 0表示空表、 1表示正在入库、 2表示入库完 成; 关于索引状态, 0表示未创建索引、 1表示已创建索引; 关于导出状态, 0 表示未导出、 1 表示已导出。 当然, 序列表各个状态对应的值也可以有其 他的设置方法, 只要能明确地表示各个状态即可。 需要指出的是, 序列表的入库状态、 索引状态和导出状态的初始状态分 别为空表(0 )、 未创建索引 (0 )、 未导出 (0 )。 步骤 203 , 依据逻辑控制表中序列表的入库状态, 话单入库进程将采集 的话单文件按照预设的切换规则写入序列表中。 本发明实施例中 ,话单入库进程将本地目录中的话单文件按照其产生时 间由早到晚依次写入序列表中; 在选择需要写入的序列表时要按照序列号选 择入库状态为空表( 0 ) 的序列表。 另外 , 在将话单写入序列表的过程中 , 还需要按照预设的切换规则不断 地切换需要写入的序列表。 所谓的切换规则可以指序列表的切换时间, 如将 话单文件持续写入当前序列表的时间已经到达预设的切换时间时, 则停止将 话单文件写入该序列表, 而是切换到下一个空表的序列表, 继续写入话单文 件。 当然, 切换规则也可以根据序列表的容量或者其他的条件来设置, 如设 定一个序列表最多可以写入多少数据量的话单文件等。 如表 1所示开始时间和结束时间的间隔即为切换时间 , 假设为 5分钟 , 则第 0分钟到第 5分钟内将话单文件写入 1号序列表, 第 5分钟到第 10分 钟内将话单文件写入 2号序列表, 以此类推 , 每 5分钟切换一个序列表。 当一个序列表开始入库时, 逻辑控制表将其入库状态由空表(0 ) 变更 为正在入库 ( 1 ); 当该序列表入库完成时, 逻辑控制表将其入库状态由正在 入库( 1 )变更为入库完成 ( 2 ), 如表 1中 1号、 2号和 3号序列表入库完成、 4号序列表正在入库, 当 4号序列表入库完成时, 就开始向空表的 5号序列 表写入话单文件。 需要指出的是, 如果切换时间已到, 但是当前序列表的下 一个序列表发生故障, 如该序列表不为空表(0 ), 则话单入库进程继续将话 单文件写入当前序列表, 并通过告警进程发出告警, 由维护进程对该序列表 进行维护, 当序列表恢复正常时, 话单入库进程开始将话单文件写入恢复正 常的序列表。 由步骤 201和步骤 203可知,本发明实施例将话单采集进程和话单入库 进程分开:话单采集进程负责将话单文件下载到话单采集进程的本地目录上, 并将业务处理机上的话单文件删除; 话单入库进程将本地目录中的话单文件 入库 , 这样不仅可以防止话单文件在业务处理机上积压 , 话单入库进程也不 会影响话单采集进程, 从而避免了话单入库对业务处理机造成的影响。 步骤 204, 依据逻辑控制表中序列表的入库状态和索引状态, 索引创建 进程定期对序列表创建索引 , 并由视图创建进程将序列表的索引添加到当天 查询视图中。 索引创建进程定期地扫描逻辑控制表中的序列表, 如果存在入库完成、 未创建索引的序列表, 则立刻为其创建索引, 该索引与序列表包含的话单文 件是映射的关系, 因此, 对序列表创建索引即是对序列表中的话单文件创建 索引; 然后, 由视图创建进程将该序列表的索引添加到当天查询视图中, 以 供话单查询进程查询话单时使用。 索引创建进程扫描逻辑控制表的周期可以根据实际需要进行设置 ,但要 遵循创建索引速度快的原则。 结合表 1中序列表切换时间为 5分钟的例子, 可以将索引创建进程扫描逻辑控制表的周期设置为 5 分钟。 一般情况下, 5 分钟粒度中的话单文件数据量相对较少, 创建索引的速度也会比较快, 这样 话单文件从生成到采集、 入库再到可查询的时间比较短、 如 5分钟左右, 满 足了客户对话单查询实时性的要求。 由此可见, 上述切换时间和索引创建进 程扫描逻辑控制表的周期的设置都与索引创建的速度有关。 如表 1 所示, 序列表 bill— m0003为入库完成、 未创建索引的状态, 则 索引创建进程对序列表 bill— m0003创建索引。 索引创建完毕, 逻辑控制表将 该序列表的索引状态由未创建索引 (0 ) 变更为已创建索引 ( 1 )。 具体的关 于索引的创建可以采用现有技术中的索引创建技术 , 此处不再赞述。 另外, 上述当天查询视图是为了更加方便客户查询话单, 筒化话单查询 进程查询话单的流程, 是通过视图创建进程创建的。 将包含当天产生的话单 文件的序列表的索引添加到该视图中 , 这样当天查询视图通过索引就可以和 当天所有的序列表进行关联, 并且, 序列表的索引和序列表包含的话单文件 是映射的关系, 因此话单查询进程只需要直接查询当天查询视图就可以直接 访问所需的话单文件, 而不需要再去关心所需的话单文件在哪个序列表中。 步骤 205 ,依据逻辑控制表中序列表的入库状态、索引状态和导出状态, 话单导出进程定期将序列表中的话单文件导出到数据库的日表中。 该步骤的操作需要在业务量较少和 /或话单数量较少的时间段执行, 本 发明实施例将该时间段称为空闲时间。 话单导出进程在空闲时间内定期地扫描逻辑控制表,如果存在入库完成
( 2 )、 已创建索引 ( 1 )、 未导出 (0 ) 的序列表, 则将该序列表中的话单文 件按照其产生时间导出到对应的日表中。 其中, 数据库中的日表分为 366张 表, 对应一年的 366天, 每张日表对应一个表名和一个序列号, 如设定 1月 1 日的日表的表名为 bill— dOlOl , 序列号为 1 ; 1 月 2 日的日表的表名为 bill— d0102 , 序列号为 2, 以 jt匕类推, 12月 31 日的日表的表名为 bill— dl231 , 序列号为 366。 如表 1 中, 序列表 bill— m0002为入库完成、 已创建索引、 未导出的状 态, 则话单导出进程将该序列表中的话单文件导出到对应的日表中。 假设该 序列表中有 1月 1 日和 1月 2日产生的话单文件, 则将 1月 1 日产生的话单 文件导出到 1月 1 日的日表 bill— dOlOl中, 将 1月 2日产生的话单文件导出 到 1月 2 日的日表 bill— d0102中。 将该序列表的话单文件全部导出后, 逻辑 控制表将该序列表的导出状态由未导出 (0 ) 变更为已导出 (1 )。 需要指出的是, 初始的日表是没有索引的, 因此在将序列表中的话单文 件导入对应的日表时只需要将话单文件写入日表即可, 而不需要同时写入其 对应的索引, 这样将话单文件导入日表的效率非常高; 且该步骤只在每天的 单查询的影响最小。 另夕卜, 本发明实施例并不局限于只设置序列表和日表,根据实际的需要 还可以设置月表、 年表等, 将序列表中的话单文件导出到月表、 年表, 或者 将日表的话单文件导出到月表、 年表等操作与上述将序列表中的话单文件导 出到日表相同 , 此处不再赘述。 步骤 206 , 索引创建进程定期对日表创建索引, 并由视图创建进程将曰 表的索引添加到日查询视图中。 较佳地,可以设置在每天的凌晨对前一天的日表创建索引。一^:情况下, 每天的 20点到 24点之间业务量和话单数据都相对较少 , 因此, 话单导出进 程有足够的时间将序列表中当前的话单文件导入到对应的日表中, 等到次日 凌晨、 即 0点 , 认为前一天的话单文件已经全部导出到日表中 , 此时当天查 询视图会删除前一天的序列表对应的索引, 不再与前一天的序列表关联了, 而是转为与当天的序列表关联, 同时前一天的序列表和其对应的索引都处于 空闲的状态。 此时索引创建进程对前一天的话单文件对应的日表创建索引,该索引与 日表中的话单文件也是映射的关系, 因此, 对日表创建索引即是对日表中的 话单文件创建索引; 同时由视图创建进程将该索引添加进日查询视图中, 以 供话单查询进程查询话单时使用。 如 1月 2 日凌晨对 1月 1 日的日表创建索 引, 并将该索引添加到日查询视图中, 日查询视图通过多个日表的索引可以 关联到多个日表,因此通过日查询视图可以查询到当天以前多天的话单文件。 这时, 如果需要查询前一天的话单文件, 则通过日查询视图就可以直接 访问到前一天的话单文件; 而前一天的序列表和其对应的索引等待数据清理 进程执行定期删除任务时被删除。 如果数据库中存在月表、 年表等 , 则还应该创建对应的月视图或者年视 图, 具体的根据实际需要来设置。 需要指出的是, 由步骤 204和 206可知, 查询视图关联的表(序列表、 日表) 是根据当前时间来确定的, 因此将当天查询视图和日查询视图合并为 一个查询视图即可, 当需要查询话单文件时, 才艮据用户提供的查询时间在查 询视图中查询即可。 查询视图的创建有利于提高话单查询的速度, 以满足用 户对话单查询实时' |·生的要求。 步骤 207 , 话单查询进程到当天查询视图或者日查询视图中查询所需的 话单文件。 话单查询进程才艮据用户的需求可以随时进行话单的查询。话单查询进程 才艮据用户选择的时间范围到对应的查询视图中执行话单查询操作 , 因为查询 视图关联的表(序列表、 日表) 是根据当前时间来确定的, 所以话单查询进 程不需要考虑当前需要查询的是序列表或者日表, 而只需要直接到查询视图 中查询就可以了。 话单查询进程可以通过 WEB 务器来实现, 在查询话单文件时, 本发 明实施例采用异步 JavaScript和可才广展标己语言( Asynchronous JavaScript and XML, 筒称为 AJAX )技术, 当需要查询多天的话单文件时, 通过查询视图 只要查询出一天的话单文件就立刻在 WEB页面上显示, 供用户查阅; 同时, 后台继续查询, 逐步返回每天的查询结果显示在 WEB 页面上。 这种查询方 式与查询完全部话单文件后再一起显示给用户相比, 优化了用户的体 -险。 如话单查询时间范围为 1月 1 日到 1月 10 日, WEB服务器会首先通过 查询视图到数据库里查询 1 月 10 日的日查询视图部分, 结果出来后立即显 示在页面上, 这个过程一 最长需要 5秒钟, 然后后台继续查询 9 日的数据, 查询到结果后立刻附加到已经展现的 WEB页面上, 这样直到查询完成为止, 并且中途允许用户停止查询。 整个过程中, 用户可以在大约 5秒钟左右就能 查阅到话单数据, 同时用户可以中断查询, 这样不仅可以使用户尽快看到所 查询的话单, 而且也增加了查询控制的灵活性。 另外, 由于数据库的容量有限, 不能长期无限地存储话单文件, 因此需 要通过数据清理进程定期地对数据库中的话单文件进行清除: 对序列表中话单文件的清除:首先根据需要设置序列表可以保存话单文 件的最长时间, 该最长时间以逻辑控制表中每个序列表的结束时间为起始时 间, 到达最长时间后将序列表中的话单文件, 及该序列表对应的索引删除。 结合本发明实施例中表 1 所示的例子, 数据库含有 1000张序列表, 且其切 换时间为 5分钟, 那么 1000张序列表可以使用大约 3.47天。 因为 1000张序 列表需要循环使用 , 所以可以设置每张序列表保存话单文件的最长时间为 3 天、 即话单文件在序列表中保存 3天后需要删除。 另外,数据清理进程没有必要每时每刻都在检测序列表中的话单文件是 否已经到达 3天, 因此, 需要设置一个清理序列表的周期, 如每一个小时清 理一次。 需要注意的是, 数据清理进程只能依据逻辑控制表中序列表的导出 状态, 对已导出的序列表进行清理; 清理完毕后逻辑控制表将序列表的入库 状态、 索引状态和导出状态初始化为: 空表、 未创建索引和未导出, 以便话 单入库进程在将话单文件入库时使用。 对曰表中话单文件的清除: 较佳地, 可以设置曰表中保存话单文件的最 长时间为 3个月, 以话单文件的产生时间为起始时间, 话单文件在日表中被 保存达到 3个月后, 立即对其进行清除, 同时还要清除该日表对应的索引; 另外, 数据清理进程清理日表的周期可以设置为每一个月执行一次清理。 为了方便用户更好地了解各个进程对话单业务的处理,还需要通过日志 进程将话单采集进程采集话单文件、话单入库进程将话单文件写入序列表(序 列表的切换)、 索引创建进程创建序列表和日表的索引、话单导出进程将话单 文件从序列表导出到日表和视图创建进程创建查询视图等操作过程写入日志 表, 用户通过日志表可以全面地了解话单业务的处理; 同时数据清理进程还 需要定期地对日志表进行清理, 如根据需要设置日志表可以保存 3个月的日 志, 每一个月对日志表清理一次。 为了实现上述话单处理方法 , 本发明还提供了一种话单处理***, 如图 3所示, 图 3为才艮据本发明实施例的话单处理***结构关系示意图, 该*** 包括: 业务处理机 10、 话单采集模块 20、 话单入库模块 30、 数据库 40、 索 ^ I创建模块 50和话单查询模块 60 , 其中: 业务处理机 10, 用户产生话单文件; 话单采集模块 20, 用于采集话单文件; 话单入库模块 30, 用于将话单文件入库; 数据库 40, 用于存储话单文件; 索引创建模块 50 , 用于为入库的话单文件创建索引; 话单查询模块 60, 用于依据索引到数据库 40中查询所需的话单文件。 其中, 数据库可以包括: 序列表 41和日表 42; 相应的, 话单入库模块 30将话单文件按照预设的切换规则写入序列表 41; 索引创建模块 50对序列表创建索引。 相应的, 该***还可以包括: 话单导出模块 70 , 用于将序列表 41中的 话单文件导出到日表 42中; 则索引创建模块 50还用于对日表 41创建索 1 。 该***还可以包括: 视图创建模块 80, 用于创建当天查询视图和日查 询视图, 并将序列表 41的索引添加进当天查询视图中, 将日表 42的索引添 力。进日查询视图中; 相应的, 话单查询模块 60 , 用于依据当天查询视图和日查询视图到数 据库 41中查询所需的话单文件。 该***还可以包括: 数据清理模块 90 , 用于清理序列表 41中的话单文 件、 序列表 41的索引、 日表 42中的话单文件和日表 42的索引。 综上所述, 本发明实施例提供的话单处理方法和*** , 降氏了话单入库 和话单查询的冲突, 提高了数据库的容灾能力和话单查询的效率。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。 以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的^^申和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围。

Claims

权 利 要 求 书 一种话单处理方法, 其特征在于, 该方法包括:
话单采集进程采集业务处理机产生的话单文件;话单入库进程将所 述话单文件入库, 并由索引创建进程为所述话单文件创建索引; 话单查 询进程依据所述索引查询所需的话单文件。 才艮据权利要求 1所述话单处理方法, 其特征在于, 所述话单采集进程 采集话单文件时, 该方法进一步包括: 所述话单采集进程将所述话单 文件按照产生时间存入所述话单采集进程的本地目录中 , 同时将所述 业务处理机产生的话单文件删除; 地目录中的话单文件入库。 才艮据权利要求 2所述话单处理方法, 其特征在于, 所述话单入库进程 将所述话单文件入库, 具体为:
所述话单入库进程依据预设的逻辑控制表记载的数据库中序列表 的入库状态 , 将所述话单文件按照预设的切换规则写入数据库的序列表 中;
相应的, 所述索引创建进程为所述话单文件创建索引, 具体为: 索 引创建进程依据所述逻辑控制表中序列表的入库状态和索引状态, 定期 对所述序列表创建索引。 才艮据权利要求 3所述话单处理方法, 其特征在于, 所述索引创建进程 对所述序列表创建索引之后, 该方法还包括:
话单导出进程依据所述逻辑控制表中序列表的入库状态、索引状态 和导出状态 , 定期将所述序列表中的话单文件导出到数据库的日表中; 所述索 1创建进程定期对所述日表创建索引。
5. 4艮据权利要求 3或 4所述话单处理方法, 其特征在于, 该方法还包括: 视图创建进程创建当天查询视图和日查询视图, 并将所述序列表的索 引添加进所述当天查询视图中 , 将所述日表的索引添加进所述日查询 视图中;
相应的 , 所述话单查询进程依据所述索引查询所需的话单文件为: 所述话单查询进程到所述当天查询视图或者所述日查询视图中查询所需 的话单文件。
6. 才艮据权利要求 3或 4所述话单处理方法, 其特征在于, 所述序列表的 入库状态包括: 空表、 正在入库和入库完成;
所述索引状态包括: 未创建索 1和已创建索 1;
所述导出状态包括: 未导出和已导出。
7. 4艮据权利要求 3或 4所述话单处理方法, 其特征在于, 该方法还包括: 由数据清理进程定期对序列表中的话单文件、 序列表的索引、 日表中 的话单文件和日表的索引进行清理。
8. 一种话单处理***, 其特征在于, 该***包括: 业务处理机、 话单采 集模块、 话单入库模块、 数据库、 索引创建模块和话单查询模块, 其 中:
所述业务处理机, 用于产生话单文件;
所述话单采集模块, 用于采集所述话单文件;
所述话单入库模块, 用于将所述话单文件入库;
所述数据库, 用于存储所述入库的话单文件;
所述索引创建模块, 用于为所述入库的话单文件创建索引; 所述话单查询模块 ,用于依据所述索 I到所述数据库中查询所需的 话单文件。
9. 才艮据权利要求 8所述话单处理***, 其特征在于, 所述数据库包括: 序列表和日表;
相应的,所述话单入库模块将所述话单文件按照预设的切换规则写 入所述序列表;
所述索 1创建模块对所述序列表创建索 1。 才艮据权利要求 9所述话单处理***, 其特征在于, 该***还包括: 话 单导出模块, 用于将所述序列表中的话单文件导出到所述日表中;
相应的, 所述索引创建模块, 还用于对所述日表创建索引; 该***还包括: 视图创建模块, 用于创建当天查询视图和日查询视 图 , 并将所述序列表的索 1添加进所述当天查询视图中 , 将所述日表的 索引添加进所述日查询视图中;
相应的, 所述话单查询模块, 用于依据所述当天查询视图和日查询 视图到所述数据库中查询所需的话单文件;
该***还包括:数据清理模块,用于清理所述序列表中的话单文件、 序列表的索引、 日表中的话单文件和日表的索引。
PCT/CN2009/073901 2009-05-20 2009-09-11 话单处理方法和*** WO2010133052A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP09844804.6A EP2434685A4 (en) 2009-05-20 2009-09-11 Method and system for processing telephone bill

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910084139.8 2009-05-20
CNA2009100841398A CN101562664A (zh) 2009-05-20 2009-05-20 一种话单处理方法和***

Publications (1)

Publication Number Publication Date
WO2010133052A1 true WO2010133052A1 (zh) 2010-11-25

Family

ID=41221270

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073901 WO2010133052A1 (zh) 2009-05-20 2009-09-11 话单处理方法和***

Country Status (3)

Country Link
EP (1) EP2434685A4 (zh)
CN (1) CN101562664A (zh)
WO (1) WO2010133052A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167460A (zh) * 2011-12-12 2013-06-19 ***通信集团河北有限公司 一种计费话单处理方法和装置
CN103188643A (zh) * 2011-12-29 2013-07-03 ***通信集团河南有限公司 基于双中心容灾计费***的计费方法、装置及其***
CN106250501A (zh) * 2016-07-28 2016-12-21 五八同城信息技术有限公司 报表处理方法及报表***

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815277A (zh) * 2010-04-29 2010-08-25 中兴通讯股份有限公司 话单数据的统计处理方法及装置
CN102737061B (zh) * 2011-04-14 2015-06-03 中兴通讯股份有限公司 分布式话单查询管理***及方法
CN103136315A (zh) * 2011-11-22 2013-06-05 中兴通讯股份有限公司 话单数据的入库处理方法及装置
CN103218426A (zh) * 2013-04-05 2013-07-24 苏州联讯达软件有限公司 一种海量数据的整合方法
CN104144401B (zh) * 2013-05-10 2018-05-11 中国电信股份有限公司 对电信融合业务生成计费数据记录的方法、装置及***
US9433016B2 (en) * 2013-06-25 2016-08-30 Futurewei Technologies, Inc. System and method for detecting and resolving conflicts
CN106168949B (zh) * 2016-05-03 2018-11-16 泰康保险集团股份有限公司 数据库拆分的方法及装置
CN106909596B (zh) * 2016-06-23 2021-07-09 创新先进技术有限公司 业务处理方法、装置及***
CN110019181B (zh) * 2017-08-10 2024-04-16 中兴通讯股份有限公司 一种入库方法及装置、计算机可读存储介质
CN112464049B (zh) * 2020-12-11 2024-03-12 中国联合网络通信集团有限公司 号码详单下载方法、装置和设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547350A (zh) * 2003-12-15 2004-11-17 中兴通讯股份有限公司 一种话单数据的存储方法
CN1859505A (zh) * 2006-03-10 2006-11-08 华为技术有限公司 话单查询***及查询方法
CN101146267A (zh) * 2007-10-24 2008-03-19 中兴通讯股份有限公司 一种短消息查询分析***及方法
CN101216821A (zh) * 2007-01-05 2008-07-09 中兴通讯股份有限公司 数据采集***的存储管理方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998052131A1 (en) * 1997-05-14 1998-11-19 Portal Information Network Method and apparatus for object oriented storage and retrieval of data from a relational database to implement a real time billing system
US6985948B2 (en) * 2000-03-29 2006-01-10 Fujitsu Limited User's right information and keywords input based search query generating means method and apparatus for searching a file
US7099660B2 (en) * 2000-12-22 2006-08-29 Bellsouth Intellectual Property Corp. System, method and apparatus for a network-organized repository of data
US8060483B2 (en) * 2005-08-15 2011-11-15 National Instruments Corporation Method for indexing file structures in an enterprise data system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547350A (zh) * 2003-12-15 2004-11-17 中兴通讯股份有限公司 一种话单数据的存储方法
CN1859505A (zh) * 2006-03-10 2006-11-08 华为技术有限公司 话单查询***及查询方法
CN101216821A (zh) * 2007-01-05 2008-07-09 中兴通讯股份有限公司 数据采集***的存储管理方法
CN101146267A (zh) * 2007-10-24 2008-03-19 中兴通讯股份有限公司 一种短消息查询分析***及方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167460A (zh) * 2011-12-12 2013-06-19 ***通信集团河北有限公司 一种计费话单处理方法和装置
CN103188643A (zh) * 2011-12-29 2013-07-03 ***通信集团河南有限公司 基于双中心容灾计费***的计费方法、装置及其***
CN106250501A (zh) * 2016-07-28 2016-12-21 五八同城信息技术有限公司 报表处理方法及报表***
CN106250501B (zh) * 2016-07-28 2019-11-01 五八同城信息技术有限公司 报表处理方法及报表***

Also Published As

Publication number Publication date
EP2434685A1 (en) 2012-03-28
EP2434685A4 (en) 2017-03-08
CN101562664A (zh) 2009-10-21

Similar Documents

Publication Publication Date Title
WO2010133052A1 (zh) 话单处理方法和***
US20220156335A1 (en) Streaming data processing
US11232100B2 (en) Resource allocation for multiple datasets
US11281706B2 (en) Multi-layer partition allocation for query execution
US7100005B2 (en) Record storage and retrieval solution
US20180089278A1 (en) Data conditioning for dataset destination
US10152480B2 (en) Archiving indexed data
US8566527B2 (en) System and method for usage analyzer of subscriber access to communications network
CN103559231B (zh) 一种文件***配额管理方法、装置及***
US20080154994A1 (en) Managing aged index data for a database
JPH0652230A (ja) 追加専用データベース用の連続問合せ装置
US8675842B2 (en) Speech usage and performance tool
CN111143158B (zh) 一种监控数据实时存储方法、***、电子设备及存储介质
Muniswamy-Reddy et al. Making a Cloud Provenance-Aware.
CN110196885A (zh) 一种云化分布式实时数据库***
WO2012152110A1 (zh) 清分结算子***的拆分规则的生成方法及装置
CN112055061A (zh) 分布式消息处理方法和设备
WO2017000592A1 (zh) 数据处理方法、装置及***
CN109542917B (zh) 数据读取方法及计算机可读介质
CN102104581A (zh) 一种网络卡拉ok的点歌***及其方法
CN108280215A (zh) 一种基于Solr的电商索引文件的混合式更新方法
CN116501584A (zh) 基于elk的可视化监控***及方法
CN114936242B (zh) 一种数据报表定制应用***
CN106357735B (zh) 用于操作云计算架构的基础设施层的方法和装置
CN101364224A (zh) 用于信息管理的***和方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09844804

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2009844804

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: PI0925089

Country of ref document: BR

ENP Entry into the national phase

Ref document number: PI0925089

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20111118