CN107943902B - Call bill collection method and device - Google Patents
Call bill collection method and device Download PDFInfo
- Publication number
- CN107943902B CN107943902B CN201711145576.7A CN201711145576A CN107943902B CN 107943902 B CN107943902 B CN 107943902B CN 201711145576 A CN201711145576 A CN 201711145576A CN 107943902 B CN107943902 B CN 107943902B
- Authority
- CN
- China
- Prior art keywords
- ticket
- call
- acquisition
- time
- call ticket
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2477—Temporal data queries
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Probability & Statistics with Applications (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Fuzzy Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a call ticket acquisition method and a call ticket acquisition device, which solve the problem that the acquisition progress of each device is greatly different when the call ticket files generated by a plurality of call ticket generation devices are acquired. The acquisition method comprises the following steps: acquiring an acquisition breakpoint of each call ticket generating device in a plurality of call ticket generating devices, wherein the acquisition breakpoint is a breakpoint of last call ticket acquisition; determining the target time of the call ticket collection, wherein the target time is determined by the collection breakpoints of the plurality of call ticket generating devices; and before the target time, acquiring the call tickets generated by each call ticket generating device in the plurality of call ticket generating devices.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for acquiring call tickets.
Background
In the prior art, when a plurality of call ticket generating devices are collected, the problem that the collection progress of the call ticket generating devices is too large is easily caused, so that the collection progress of part of the call ticket generating devices is too fast, call ticket files generated by the call ticket devices which are collected too fast are not data which are required to be processed currently, but due to lack of uniform management or planning, the data which are not required to be processed currently can still be collected and processed by a system, so that system resources are occupied, and the efficiency is reduced.
Therefore, it is desirable to provide a technique for improving the precision of ticket collection.
Disclosure of Invention
The embodiment of the invention provides a call ticket acquisition method and a call ticket acquisition device, which can improve the accuracy of call ticket acquisition.
In a first aspect, the present invention provides a method for acquiring a call ticket, including: acquiring an acquisition breakpoint of each call ticket generating device in a plurality of call ticket generating devices, wherein the acquisition breakpoint is a breakpoint of the last call ticket acquisition; determining the target time of the call ticket collection, wherein the target time is determined by the collection breakpoints of a plurality of call ticket generating devices; and collecting the call ticket generated by each call ticket generating device in the plurality of call ticket generating devices before the target time.
Further, the acquisition breakpoint is the latest deadline recorded by the ticket file acquired by the corresponding ticket generating device in the last ticket acquisition.
Further, determining the target time of the call ticket collection comprises: determining time granularity, wherein the time granularity is a period of time; and determining the target time by adding the earliest time in the acquisition breakpoints of the plurality of call ticket generating devices and the time granularity.
Further, the step of collecting the call tickets generated by each call ticket generating device in the plurality of call ticket generating devices comprises: for each of a plurality of call ticket generating devices, collecting generated call tickets according to a time sequence; and when the collection of one call ticket is finished, comparing the recorded deadline of the collected call ticket with the target time, and if the deadline is earlier than the target time, continuing to collect the call ticket by the call ticket generating equipment.
Further, the method also comprises the following steps: and if the ticket generating equipment does not generate the ticket file before the target time and the ticket is generated after the target time, taking the target time as a breakpoint when the ticket generating equipment carries out next ticket acquisition.
On the other hand, the invention also provides a call ticket collecting device, which comprises: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an acquisition breakpoint of each call ticket generation device in a plurality of call ticket generation devices, and the acquisition breakpoint is a breakpoint of the last call ticket acquisition; the determining module is used for determining the target time of the call ticket acquisition, wherein the target time is determined by the acquisition breakpoints of the plurality of call ticket generating devices; and the acquisition module is used for acquiring the call ticket generated by each call ticket generating device in the plurality of call ticket generating devices before the target time.
Further, the acquisition breakpoint is the latest deadline recorded by the ticket file acquired by the corresponding ticket generating device in the last ticket acquisition.
Further, determining the target time of the call ticket collection comprises: determining time granularity, wherein the time granularity is a period of time; and determining the target time by adding the earliest time in the acquisition breakpoints of the plurality of call ticket generating devices and the time granularity.
Further, the step of collecting the call tickets generated by each call ticket generating device in the plurality of call ticket generating devices comprises: for each of a plurality of call ticket generating devices, collecting generated call tickets according to a time sequence; and when the collection of one call ticket is finished, comparing the recorded deadline of the collected call ticket with the target time, and if the deadline is earlier than the target time, continuing to collect the call ticket by the call ticket generating equipment.
Further, the method also comprises the following steps: and the breakpoint updating module is used for updating the breakpoints, and if the ticket generating equipment does not generate the ticket file before the target time and generates the ticket file after the target time, the target time is used as the breakpoint when the ticket generating equipment carries out next ticket acquisition.
Yet another aspect of the present invention provides a computer-readable storage medium having computer-executable instructions stored thereon, wherein the executable instructions, when executed by a processor, implement the method as described above.
Yet another aspect of the invention provides a computer apparatus comprising: the system comprises a memory, a processor and executable instructions stored in the memory and executable in the processor, wherein the processor implements the method as described above when executing the executable instructions.
In the embodiment of the invention, the collection progress of a plurality of call ticket generating devices is kept consistent through the steps and the modules, the problem that the collection progress of each device is greatly different when the call ticket files generated by the call ticket generating devices are collected is solved, and the precision of call ticket collection is further improved.
Drawings
Fig. 1 is a schematic flow chart of a call ticket collection method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a call ticket collection method according to another embodiment of the present invention.
Fig. 3 is a schematic block diagram of a call ticket collecting apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of a call ticket collection apparatus according to another embodiment of the present invention.
FIG. 5 is a schematic block diagram illustrating a computer device in accordance with another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a call ticket collection method 100 according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
110: acquiring an acquisition breakpoint of each call ticket generating device in a plurality of call ticket generating devices, wherein the acquisition breakpoint is a breakpoint of the last call ticket acquisition;
120: determining the target time of the call ticket collection, wherein the target time is determined by the collection breakpoints of a plurality of call ticket generating devices;
130: and collecting the call ticket generated by each call ticket generating device in the plurality of call ticket generating devices before the target time.
In the embodiment of the invention, the unified time period to be acquired is determined, and then the call ticket files generated by each call ticket generating device are acquired, so that the acquisition schedules of a plurality of call ticket generating devices are kept consistent, and the problem that the acquisition schedules of each device are greatly different when the call ticket files generated by the plurality of call ticket generating devices are acquired is solved.
In another embodiment of the present invention, in step 110, the system divides the last collected call ticket files into corresponding call ticket file groups according to different call ticket generating devices, and selects the latest deadline recorded by the call ticket files in each group as the breakpoint of each corresponding call ticket generating device in the current call ticket collection.
For example, in the embodiment of the present invention, the ticket files generated by two ticket generating devices need to be collected, in the last collection, two ticket files a1 and B1 of the ticket device 11 are collected, and a1 file records a sequence from 9: 00 to 10: ticket 00, B1 file records 13: 00 to 15: a ticket of 00; a ticket file C1 of the ticket device 12 is also collected, which records the following information from 12: 00 to 14: a ticket of 00. The system divides the call ticket into two groups according to different call ticket generating devices, namely, the A1 and B1 files are divided into one group, and the two groups correspond to the call ticket generating device 11; the C1 files are grouped into a group corresponding to the ticket generating device 12. The system respectively compares the deadline in each group of files, and selects the latest deadline as the last acquisition breakpoint of the corresponding ticket generating device, for example, in the files a1 and B1, the deadline recorded by the file B1 is 15: 00, the system determines 15: 00 is used as the breakpoint of the last collection of the ticket equipment 11; likewise, the system determines 14: 00 is used as the breakpoint of the last collection of the ticket device 12. Through step 110, the system can grasp the collection conditions of different call ticket generation devices after the last collection, so as to generate the collection plan for the situation.
In step 120, the system compares all the collection breakpoints, and selects the collection breakpoint with the earliest time as the start time of the current collection. For example, in the embodiment of the present invention, the system compares the breakpoint 15 of the ticket device 11: 00 and the breakpoint 14 of the ticket device 12: 00, selecting the earliest time among them 14: 00 is used as the starting time of the acquisition. The system determines the time starting point of the acquisition through the step. The administrator sets a fixed time length as the time granularity of the current acquisition and uploads the time granularity to the acquisition system; the system sets a time point after the time granularity is passed as a target time by taking the starting time as a starting point. For example, in the embodiment of the present invention, the administrator sets 2 hours as the time granularity and uploads the time granularity to the system; the starting time was 14: 00, time granularity of 2 hours, the system operates at 16: 00 is used as the target time of the current collection. The system determines the target time of the acquisition through the step.
In another embodiment of the present invention, the system adds a time granularity to the breakpoint of each device, compares the results, and selects the earliest one of the breakpoints as the target time.
In the embodiment of the present invention, step 130 is implemented by the following method: and collecting the call tickets generated by each call ticket generating device in the plurality of call ticket generating devices between the starting time and the target time. For example, in the embodiment of the present invention, the ticket device 11 generates a ticket file D1, and records 15: 10-15: 30, the ticket generating device 12 generates two ticket files E1 and F1, and E1 records 14: 00-14: 10, a call ticket; f1 recorded 16: 15-16: in the ticket of 30, because the D1 and E1 files are in the time range of the current collection, the system collects the D1 and E1 files, and because the F1 file is not in the time range of the current collection, the system does not collect the F1 file.
In another embodiment of the present invention, the ticket file is named according to the starting point of the recorded time period, the system uses the starting time of each recording as a breakpoint according to the name of the ticket file, compares breakpoints belonging to the same ticket generating device, and selects the latest breakpoint as the breakpoint of the corresponding ticket generating device, thereby implementing step 110.
For example, in the embodiment of the present invention, the ticket files generated by two ticket generating devices need to be collected, in the last collection, two ticket files a2 and B2 of the ticket device 21 are collected, and a2 file records a sequence from 9: 10 to 10: ticket 00, a2 named 091000, B2 file records 12: 00 to 14: ticket 30, B2 named 120000; a ticket file C2 of the ticket device 22 is also collected, which records the following parameters from 12: 00 to 14: ticket 00, C2 is named 120000. The system determines 3 breakpoints according to the name of the ticket file, namely A2 breakpoint 9: 10. b2 breakpoint 12: 00, C2 breakpoint 12: 00 and selecting the latest breakpoint time as the last acquisition breakpoint of the corresponding ticket generating device, for example, in the embodiment of the present invention, for the ticket generating device 21, the breakpoint 12 of B2: 00 is the latest breakpoint time; according to the same method, for the ticket generating device 22, the breakpoint 12 of C2: 00 is the latest breakpoint time. Through step 110, the system can grasp the collection conditions of different call ticket generation devices after the last collection, so as to generate the collection plan for the situation.
In step 120, the system compares all the acquisition breakpoints, and selects the acquisition breakpoint with the earliest time as the start time of the acquisition. For example, in the embodiment of the present invention, the system compares the breakpoint 12 of the ticket device 21: 00 and the breakpoint 12 of the ticket device 22: 00, selecting the earliest time among 12: 00 is used as the starting time of the acquisition. The system determines the time starting point of the acquisition through the step. The system selects the time span with the longest time span in the last time of acquiring the ticket file as the time span of the current acquisition, and determines the target time by combining the time starting point of the current acquisition. For example, in the embodiment of the present invention, the time span of the B2 file is longest, and is 2 hours and 30 minutes, the system takes 12: 00-14: and 30 is used as the time period to be collected. The system determines the time endpoint of the acquisition through the step.
In the embodiment of the present invention, step 130 is implemented by the following steps: and before the target time, acquiring the call tickets generated by each call ticket generating device in the plurality of call ticket generating devices. For example, in the embodiment of the present invention, the ticket device 21 generates a ticket file D2, and records 15: 10-15: 30, the ticket generating device 22 generates two ticket files E2 and F2, and E2 records 14: 01-14: 15, a call ticket; f2 recorded 16: 15-16: in the ticket of 30, the system collects the E2 file because the E2 file is in the time range of the current collection, and does not collect the D2 and F2 files because the D2 and F2 files are not in the time range of the current collection.
Further, the acquisition breakpoint is the latest deadline recorded by the ticket file acquired by the corresponding ticket generating device in the last ticket acquisition. The latest deadline is used as a breakpoint, so that the system does not need to obtain the breakpoint through complex calculation, and the running resources of the system are saved. For example, in an embodiment of the present invention, data of three ticket generating devices needs to be collected, and in the previous collection, 3 ticket files, respectively, a file a3, recorded 1: 00-1: 20 ticket, file B3, records 3: 15-3: 20 ticket, file C3, records 6: 00-8: a ticket of 00; 2 ticket files are collected from the ticket generating device 32, and respectively, the file D3 records 7: 00-8: ticket 00, file E3, records 10: 00-10: 30, 2 ticket files are collected from the ticket generating device 33, and the files are respectively a file F3, which records 3: 00-7: ticket of 00, file G3, records 8: 00-10: a ticket of 00. The system selects 8: 00 as a breakpoint of the ticket generating device 31, 10: 30 is taken as a breakpoint of the ticket generating device 32, 10: 00 as the break point of the ticket generating device 33.
Further, determining the target time of ticket collection according to the starting time comprises: determining time granularity, wherein the time granularity is a period of time; and determining the target time by adding the earliest time in the acquisition breakpoints of the plurality of call ticket generating devices and the time granularity.
For example, in the embodiment of the present invention, the administrator sets 30 minutes as the time granularity in the configuration file in advance, and sends the configuration file to the system, and the system determines the target time by adding the time granularity to the earliest one of the breakpoints. For example, in the embodiment of the present invention, the earliest one of the breakpoints is the breakpoint 8 of the ticket generating device 31: 00, adding a time granularity of 30 minutes to determine that the target time of the current collection is 8: 30. in another embodiment of the present invention, the administrator directly sets the system to set 1 hour to time granularity. The embodiment of the invention does not limit the setting mode and the time length of the time granularity.
Further, the step of collecting the call tickets generated by each call ticket generating device in the plurality of call ticket generating devices comprises: sequentially collecting call tickets generated by a plurality of call ticket generating devices according to a time sequence; and when the ticket collection of each ticket generating device is finished, comparing the recorded deadline of the ticket with the target time, and if the recorded deadline of the ticket is earlier than the target time, continuing to collect the ticket by the ticket generating device. The files are collected according to the time sequence, so that all the call ticket files can be collected, file omission can not be generated, the implementation method is simple, and the resource consumption during the operation of the system is reduced.
In another embodiment of the present invention, the system needs to compare the two ticket generating devices 41 and 42 in the following steps 10: 00-15: and (00) collecting call bills generated between the stations. The ticket generating device 41 generates 2 files in this time period, which are respectively a file a4, and records 10: 30-11: ticket 00, file B4, records 14: 30-15: 30, a call ticket; the ticket generating device 42 generates 3 files in this time period, which are respectively a file C4, and records 10: 00-10: 15 ticket, file D4, records 11: 00-11: 20 ticket, file E4, records 12: 00-15: 30 of a ticket file. Wherein the C4 file has been acquired during the last acquisition. And the system collects the files generated by each ticket generating device according to the time sequence. For the ticket generating device 41, the system collects the file a4 first, and when the collection of a4 is completed, the system records the deadline 11 of a 4: 00 and target time 15: in contrast, since the expiration time of the A4 record is earlier than the target time, the system continues to acquire file B4 after the end of the acquisition of the A4 file. In the same way, the system collects the dialog sheet generation device 42 until the file E4 is collected, and the system records the deadline 15: 30 and target time 15: in contrast, since the expiration time recorded by E4 is later than the target time, the system ends the collection by the dialog sheet generation device 42 after the collection of the E4 file is completed. In another embodiment of the present invention, since the C4 file was acquired in the last acquisition process, the system does not acquire the C4 file, and the deadline recorded by C4 is obtained from the last acquisition result, and since the deadline recorded by C4 is earlier than the target time, the system continues to acquire the file D4. The embodiment of the invention does not limit whether the files collected last time are repeatedly collected.
Further, if the ticket generating device does not generate the ticket file between the starting time and the target time and the ticket is generated after the target time, the target time is used as a breakpoint when the ticket generating device performs the next ticket collection. By updating the breakpoint, the system can avoid dead circulation, so that the acquisition process is smoother.
In an embodiment of the present invention, 1 call ticket generating device 51 in a plurality of call ticket generating devices needs to be collected, and the collection 10: 00-10: 30, wherein the call ticket file is named by the collected starting time, the call ticket generating device generates a call ticket file A5, and records 11: 00-11: 30, the system confirms that the file name of the ticket file is read and the file name of the ticket file is within the range of 10: 00-10: no ticket file exists between 30, and in the target time 10: after 30, there is a ticket file a 5. Then the system compares the target time 10 of this acquisition: 30 is set as the next acquisition breakpoint of the ticket generating device 51.
Fig. 2 is a schematic flow chart of a call ticket collection method according to an embodiment of the present invention, including: 210: acquiring an acquisition breakpoint of each call ticket generating device in a plurality of call ticket generating devices; 220: determining the starting time of the call ticket collection; 230: determining the target time of the ticket collection according to the starting time; 240: judging whether breakpoint updating is needed or not; 250: collecting each call ticket generating device; in the embodiment of the invention, the system needs to collect 3 call ticket generating devices 61, 62 and 63, and the system determines the information needed in partial collection through the configuration file, so that the administrator can conveniently carry out unified setting and management. For example, in the embodiment of the present invention, the content of the configuration file includes time granularity, thread number, a call ticket file naming rule, and an access mode of each call ticket generating device. The administrator sets the time granularity to be 2 hours, the number of threads is 3, the call ticket files are named according to the recorded deadline time, and each call ticket device accesses through an FTP (file transfer protocol) mode. In another embodiment of the present invention, the number of threads is 1, and each call ticket device accesses through an SFTP (secure file transfer protocol) mode.
In the embodiment of the present invention, the ticket generating device 61 generates 3 ticket files, which are, respectively, a6 file, and record 1: 00-2: a ticket of 00; b6 file, recording 2: 01-2: 05, a call ticket; c6 file, recording 9: 00-10: a ticket of 00. The ticket generating device 62 generates 2 ticket files, which are, respectively, D6 files, and record 3: 00-3: ticket of 30, E6 file, record 3: 45-6: a ticket of 00. The ticket generating device 63 generates 4 ticket files, which are F6 files respectively, and record 1: 00-2: 10 ticket, G6 file, records 2: 15-2: 20 ticket, H6 file, records 3: 00-3: 15, I6 file, records 9: 00-10: a ticket of 00.
Among them, the files of A6, B6, D6 and F6 were collected during the last collection. In step 210, the system divides the call tickets into 3 groups according to different call ticket generating devices, namely, a6 and B6 are a group and correspond to the call ticket generating device 61; d6 is a group corresponding to the ticket generating device 62; f6 is a group corresponding to the ticket generating device 63. The system respectively compares the deadline in each group of files, and selects the latest deadline as the last acquisition breakpoint of the corresponding ticket generating device, for example, in the files a6 and B6, the deadline recorded by the file B6 is later, which is 2: 05, system determination 2: 05, taking the obtained result as a breakpoint of the last collection of the ticket equipment 61; likewise, the system determines 3: 30 is used as the breakpoint of the last collection of the ticket equipment 62; determination 2: 10 is taken as the breakpoint of the last collection of the ticket equipment 63.
In step 220, the system collects breakpoint information by establishing a progress management table, and determines the starting time of the call ticket collection through the progress management table. The progress management table manages the breakpoint information in a centralized manner, so that the resource consumption of the system during breakpoint information query and use is reduced, and the working efficiency of the system is improved. For example, in the embodiment of the present invention, the method for determining the start time includes: and setting the second earliest acquisition breakpoint time as the starting time. The system calculates the acquisition breakpoint of the call ticket device 63 as the initial time of this acquisition according to the acquisition breakpoints of the three devices, namely 2: 10. in another embodiment of the invention, the system calculates the starting time of the current acquisition by averaging all the acquisition breakpoints. The embodiment of the present invention does not limit the method for calculating the start time from the breakpoint.
In step 230, the embodiment of the present invention determines the target time of this time of ticket collection by adding a time granularity to the starting time. For example, the start time is 2: 10, time granularity of 2 hours, the system calculates the target time to be 4: 10.
in step 240, the embodiment of the present invention checks each ticket generating device to determine whether the breakpoint needs to be updated. The judging method is that if the call ticket generating equipment does not generate a call ticket file before the target time and a call ticket is generated after the target time, the target time is used as a breakpoint when the call ticket generating equipment carries out the next call ticket collection. For example, the system checks the dialogue collection apparatus 61 to find that at the target time 4: before 10, no call ticket file is generated, and in the target file 4: after 10 there is a ticket file C6. The system judges that the target time 4: 10 is set as the breakpoint of the next collection of the call ticket generating device 61. According to the same method, the system judges that the call ticket generating devices 62 and 63 do not need to update breakpoints.
In step 250, the system collects files generated by each call ticket generating device according to a time sequence, collects call ticket files generated between a breakpoint of each call ticket generating device and a target time, and distributes a thread for collecting each call ticket. For example, the system dialog sheet generation device 63 collects and assigns a thread thereto. At target time 4: 10 and breakpoint 2: 10, files G6 and H6 exist, the system collects G6 in time sequence, and after the collection is finished, the deadline time 2 recorded by G6 is: 20 and target time 4: in comparison to 10, the cutoff time is earlier than the target time and the system continues to acquire H6. After the collection by H6 ends, the deadline is still earlier than the target time, but there is no file not collected before the target time, and the collection by the system dialog sheet generation device 63 ends. According to the same method, the E6 file of the system dialog sheet generating device 62 is collected, and after the collection of the E6 is finished, the deadline is earlier than the target time, and the collection of the system dialog sheet generating device 62 is finished.
Fig. 3 is a schematic block diagram of a call ticket collecting apparatus according to an embodiment of the present invention.
The present invention further provides a call ticket collecting apparatus 300, as shown in fig. 3, including: an obtaining module 310, configured to obtain an acquisition breakpoint of each of a plurality of ticket generating devices, where the acquisition breakpoint is a breakpoint of last ticket acquisition; a determining module 320, configured to determine an initial time of the current ticket collection, where the initial time is determined by collection breakpoints of multiple ticket generating devices, and determine a target time of ticket collection according to the initial time; the collection module 330 is configured to collect a ticket generated by each of the plurality of ticket generating devices before the target time.
An obtaining module 310 is configured to obtain an acquisition breakpoint, a module 320 is configured to determine a time period of this acquisition, a module 330 is configured to collect a ticket generated by a ticket generating device, and the module 310 is configured to execute step 110, and the module 320 is configured to execute step 120; module 330 is used to perform step 130. For the sake of brevity, detailed description is omitted herein.
Further, the acquisition breakpoint is the latest deadline recorded by the ticket file acquired by the corresponding ticket generating device in the last ticket acquisition. The specific implementation means refers to the method for determining the breakpoints of the ticket generating devices 31, 32, and 33, and for the sake of brevity, details are not repeated here.
Further, determining the target time of ticket collection according to the starting time comprises: determining time granularity, wherein the time granularity is a period of time; and determining the target time by adding the earliest time in the acquisition breakpoints of the plurality of call ticket generating devices and the time granularity. For the specific implementation method, reference is made to the aforementioned method for setting the target time according to the breakpoint of the single generation device 31, and for the sake of brevity, details are not described here again.
Further, the step of collecting the call tickets generated by each call ticket generating device in the plurality of call ticket generating devices comprises: sequentially collecting call tickets generated by a plurality of call ticket generating devices according to a time sequence; and when the ticket collection of each ticket generating device is finished, comparing the recorded deadline of the ticket with the target time, and if the recorded deadline of the ticket is earlier than the target time, continuing to collect the ticket by the ticket generating device. For the specific implementation method, reference is made to the aforementioned acquisition process of the pair of call ticket generating devices 41 and 42, and for the sake of brevity, details are not described here again.
Further, if the ticket generating device does not generate the ticket file between the starting time and the target time and the ticket is generated after the target time, the target time is used as a breakpoint when the ticket generating device performs the next ticket collection. For the specific implementation method, reference is made to the aforementioned process of collecting the ticket generating device 51, and for the sake of brevity, details are not described here again.
Fig. 4 is a schematic block diagram of a ticket collection apparatus 400 according to an embodiment of the present invention.
The ticket collection apparatus 400 includes a collection module 410, a determination module 420 and an acquisition module 430. The obtaining module 430 is configured to obtain an acquisition breakpoint, the module 420 is configured to determine a time period of this acquisition, the module 410 is configured to acquire a ticket generated by a ticket generating device, and specific steps performed by the modules 410, 420, and 430 are respectively the same as those performed by the modules 330, 320, and 310, and for the sake of brevity, are not described herein again.
Fig. 5 is a block diagram illustrating a computer device 500 according to another embodiment of the invention.
Referring to fig. 5, the apparatus 500 includes a processing component 510 that further includes one or more processors and memory resources, represented by memory 520, for storing instructions, such as applications, that are executable by the processing component 510. The application programs stored in memory 520 may include one or more modules that each correspond to a set of instructions. Further, the processing component 510 is configured to execute instructions to perform the above-described method of classifying images.
The apparatus 500 may also include a power supply component configured to perform power management of the apparatus 500, a wired or wireless network interface configured to connect the apparatus 500 to a network, and an input output (I/O) interface. The apparatus 500 may operate based on an operating system stored in the memory 520, such as a Wi-windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTMOr the like.
A non-transitory computer readable storage medium having instructions stored thereon that, when executed by a processor of the apparatus 500, enable the apparatus 500 to perform a call ticket collection method, comprising: acquiring an acquisition breakpoint of each call ticket generating device in a plurality of call ticket generating devices, wherein the acquisition breakpoint is a breakpoint of last call ticket acquisition; determining the starting time of the call ticket collection, wherein the starting time is determined by the collection breakpoints of the plurality of call ticket generating devices; determining the target time of the ticket collection according to the starting time; and before the target time, acquiring the call tickets generated by each call ticket generating device in the plurality of call ticket generating devices.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and the like that are within the spirit and principle of the present invention are included in the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program check codes, such as a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (6)
1. A method for collecting call tickets is characterized by comprising the following steps:
acquiring an acquisition breakpoint of each call ticket generating device in a plurality of call ticket generating devices, wherein the acquisition breakpoint is a breakpoint of last call ticket acquisition;
determining the target time of the call ticket collection;
collecting the call ticket generated by each call ticket generating device in the plurality of call ticket generating devices before the target time;
the acquisition breakpoint is the latest deadline recorded by a ticket file acquired by corresponding ticket generation equipment in the last ticket acquisition;
the determining of the target time of the current call ticket collection comprises the following steps:
determining a time granularity, wherein the time granularity is a period of time;
and determining the target time by adding the earliest time in the acquisition breakpoints of the plurality of call ticket generating devices and the time granularity.
2. The method of claim 1, wherein the collecting the call tickets generated by each of the plurality of call ticket generating devices comprises:
for each of the plurality of ticket generating devices, acquiring generated tickets according to a time sequence;
and when the collection of one call ticket is finished, comparing the recorded deadline of the collected call ticket with the target time, and if the deadline is earlier than the target time, continuing to collect the call ticket on the call ticket generating equipment.
3. The method of claim 1, further comprising:
and if the ticket generating equipment does not generate the ticket file before the target time and a ticket is generated after the target time, taking the target time as a breakpoint when the ticket generating equipment carries out next ticket collection.
4. A call ticket collection device is characterized by comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an acquisition breakpoint of each call ticket generation device in a plurality of call ticket generation devices, and the acquisition breakpoint is a breakpoint of last call ticket acquisition;
the determining module is used for determining the target time of the current call ticket acquisition;
the collection module is used for collecting the call ticket generated by each call ticket generating device in the plurality of call ticket generating devices before the target time;
the acquisition breakpoint is the latest deadline recorded by a ticket file acquired by corresponding ticket generation equipment in the last ticket acquisition;
the determining of the target time of the current call ticket collection comprises the following steps:
determining a time granularity, wherein the time granularity is a period of time;
and determining the target time by adding the earliest time in the acquisition breakpoints of the plurality of call ticket generating devices and the time granularity.
5. The apparatus of claim 4, wherein the collecting the tickets generated by each of the plurality of ticket generating devices comprises:
for each of the plurality of ticket generating devices, acquiring generated tickets according to a time sequence;
and when the collection of one call ticket is finished, comparing the recorded deadline of the collected call ticket with the target time, and if the deadline is earlier than the target time, continuing to collect the call ticket on the call ticket generating equipment.
6. The apparatus of claim 4, further comprising:
and the breakpoint updating module is used for updating breakpoints, and if the ticket generating equipment does not generate the ticket file before the target time and generates the ticket file after the target time, the target time is used as the breakpoint when the ticket generating equipment carries out next ticket acquisition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711145576.7A CN107943902B (en) | 2017-11-17 | 2017-11-17 | Call bill collection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711145576.7A CN107943902B (en) | 2017-11-17 | 2017-11-17 | Call bill collection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107943902A CN107943902A (en) | 2018-04-20 |
CN107943902B true CN107943902B (en) | 2021-06-29 |
Family
ID=61932809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711145576.7A Active CN107943902B (en) | 2017-11-17 | 2017-11-17 | Call bill collection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943902B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112672296B (en) * | 2020-12-25 | 2022-05-03 | 中国联合网络通信集团有限公司 | Call bill collection method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833580A (en) * | 2010-05-12 | 2010-09-15 | 中兴通讯股份有限公司 | Report inquiring system and data acquisition method and device thereof |
CN102298623A (en) * | 2011-08-15 | 2011-12-28 | 北京神州泰岳软件股份有限公司 | Method for acquiring dialog list data |
CN103179285A (en) * | 2011-12-21 | 2013-06-26 | 中国移动通信集团山西有限公司 | Ticket file collecting method and device |
US9571667B2 (en) * | 2014-11-01 | 2017-02-14 | Somos, Inc. | Predictive toll-free number search |
CN107124522A (en) * | 2017-04-18 | 2017-09-01 | 北京思特奇信息技术股份有限公司 | A kind of distributed bill record collection method and system |
-
2017
- 2017-11-17 CN CN201711145576.7A patent/CN107943902B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833580A (en) * | 2010-05-12 | 2010-09-15 | 中兴通讯股份有限公司 | Report inquiring system and data acquisition method and device thereof |
CN102298623A (en) * | 2011-08-15 | 2011-12-28 | 北京神州泰岳软件股份有限公司 | Method for acquiring dialog list data |
CN103179285A (en) * | 2011-12-21 | 2013-06-26 | 中国移动通信集团山西有限公司 | Ticket file collecting method and device |
US9571667B2 (en) * | 2014-11-01 | 2017-02-14 | Somos, Inc. | Predictive toll-free number search |
CN107124522A (en) * | 2017-04-18 | 2017-09-01 | 北京思特奇信息技术股份有限公司 | A kind of distributed bill record collection method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107943902A (en) | 2018-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580284B (en) | Traffic assignments device and method for distributing business | |
CN107886424B (en) | Settlement data processing method and device, computer equipment and storage medium | |
CN111680085A (en) | Data processing task analysis method and device, electronic equipment and readable storage medium | |
JP2012199651A (en) | Monitoring system, monitoring device and program therefor, and terminal device and program therefor | |
CN106790529A (en) | The dispatching method of computing resource, control centre and scheduling system | |
CN110162386B (en) | Task issuing method and device | |
CN110532111A (en) | High concurrent requests asynchronous processing method, device, computer equipment and storage medium | |
CN109669915A (en) | A kind of computer task management method, device and relevant device | |
CN112541841B (en) | Method, device and terminal equipment for simulating past future data | |
CN110807035A (en) | Serial number generation method, device, equipment and storage medium | |
CN109144846B (en) | Test method and device for testing server | |
CN111901405B (en) | Multi-node monitoring method and device, electronic equipment and storage medium | |
CN107943902B (en) | Call bill collection method and device | |
CN106686619B (en) | Performance evaluation method and equipment | |
CN102201922A (en) | Data charging method and relevant apparatus | |
CN109389306B (en) | User order synchronization method and device | |
CN109240802B (en) | Request processing method and device | |
CN107193749B (en) | Test method, device and equipment | |
CN109885384A (en) | Task concurrency optimization method, apparatus, computer equipment and storage medium | |
CN107729218A (en) | A kind of system and method for monitoring processing computing resource equipment | |
CN108363789B (en) | Short-term missing repairing method and device for electricity consumption meter data of industrial and commercial users | |
CN109450672B (en) | Method and device for identifying bandwidth demand burst | |
CN115643255A (en) | Video transmission method, device, equipment and storage medium | |
CN111182006A (en) | Method and device for mapping physical cluster into cloud computing resource | |
CN112256436B (en) | Resource allocation method, device, equipment and computer storage 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 |