Mobile payment and invoice management method of highway toll collection system

By establishing an invoice packet marking library and processing channels in the highway toll system, dynamically adjusting the collection frequency and task allocation strategy, the problems of low invoice processing efficiency and high-quality users in the existing system are solved, and efficient invoice issuance and priority processing of high-quality users are achieved.

CN119785445APending Publication Date: 2025-04-08GUANGZHOU SUIHUA EXPRESSWAY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411937984.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

When facing a large number of invoice issuance requests, the existing highway toll system lacks an effective task scheduling and resource allocation mechanism, which leads to users waiting for invoices for too long, affecting the user experience, and being unable to effectively distinguish and prioritize high-quality users.

Method used

By establishing a communication connection with the payment terminal of the charging system, receiving and organizing invoice issuance request information, establishing an invoice packet marking library and processing channel, automatically diversion of data packets based on the identifier, setting up a task queue and thread pool, dynamically adjusting the collection frequency and task allocation strategy, and prioritizing high-quality users.

Benefits of technology

It realizes automatic diversion of invoice processing, improves invoice issuance efficiency, reduces user waiting time, improves user experience, and improves their satisfaction and loyalty by prioritizing high-quality users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119785445A_ABST
    Figure CN119785445A_ABST
Patent Text Reader

Abstract

The invention discloses a mobile payment and invoice management method of an expressway toll collection system, belongs to the technical field of expressway toll collection, and is used for solving the problems that the existing invoice management task scheduling is disordered, high-quality users cannot be distinguished, and the invoice issuing efficiency is low. Comprising an invoice request receiving module, a detection scheduling module, a task queue information acquisition and analysis module, a database and a task distribution module, establishing connection with a payment terminal of a charging system, receiving an invoice issuing request, arranging the invoice issuing request into a data packet, setting a processing channel and a template according to an invoice type, filling and detecting key bit information, and classifying the key bit information into a task queue; setting a task thread pool for the task queue and dynamically monitoring a running state; user vehicle information is stored through a database, new and old users are distinguished, and traffic data are recorded; calculating an optimization value, and preferentially processing a high-quality user task; according to the method, the invoice issuing efficiency can be improved, the user experience is optimized, and the system stability and the intelligent management level are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of highway toll collection systems, and in particular relates to a mobile payment and invoice management method for a highway toll collection system. Background Art

[0002] In the existing invoice management, when faced with a large number of invoice issuance requests, there is a lack of effective task scheduling and resource allocation mechanism. It is impossible to flexibly allocate system resources according to actual conditions to ensure the efficient and orderly issuance of invoices, which makes users wait too long for invoices, affecting the user experience; in addition, for high-quality users who frequently use highways, there is no reasonable distinction mechanism and priority processing strategy, which makes it difficult to improve the satisfaction and loyalty of these users; at the same time, there is a lack of recording and utilization of user traffic data, and it is impossible to fully use historical data to optimize the entire invoice management process and provide strong support for subsequent service improvements. For this reason, we propose a mobile payment and invoice management method for highway toll systems. Summary of the invention

[0003] The purpose of the present invention is to provide a mobile payment and invoice management method for a highway toll collection system to solve the problems raised in the above-mentioned background technology.

[0004] To achieve the above object, the present invention provides the following technical solution: a mobile payment and invoice management method for a highway toll collection system, comprising the following steps: Step 1: Establish a communication connection with the payment terminal of the toll collection system, receive the invoice issuance request information after the vehicle user completes the payment, and organize it into an invoice data packet; at the same time, establish an invoice data packet tag library according to the invoice type, and mark the data packet with an identifier according to the invoice data packet tag library; Step 2: Set up processing channels according to the invoice issuance type, and equip each channel with a corresponding invoice issuance template; classify the invoice data packet into the corresponding channel according to the identifier, extract the invoice issuance information in the data packet to fill in the invoice issuance template, record the position corresponding to the required information in the invoice issuance template as the key position, and check the key position information filling. The qualified ones are classified into the corresponding task queue, and the unqualified ones are sent to the highway management personnel terminal for correction and then classified; Step 3: Preset a task thread pool for each task queue. The task processing threads in the task thread pool have independent computing resources. By calculating the optimal value, optimal average value, task queue load rate and evaluation value of the task processing thread, the collection frequency is dynamically set to monitor the task queue and thread running status in real time. Step 4: Store user and vehicle information in the database, distinguish between new and old users and record their traffic data; Step 5: Calculate the priority value based on the user's traffic data in the database, sort the users in the task queue in descending order according to the priority value, assign tasks to threads with high priority values ​​to process invoice issuance tasks, and give priority to high-quality users.

[0005] Preferably, the specific implementation process of step one is: Establishing a communication connection with a payment terminal in a highway toll collection system, receiving invoice issuance request information from a vehicle user after payment is completed, and arranging the vehicle's invoice issuance request information into an invoice data packet; Payment terminals include: ETC equipment and mobile payment scanning equipment; The invoice issuance request information includes: payment serial number, amount, vehicle information, user information and invoice type; invoice types include: electronic invoice, special value-added tax invoice and paper invoice; vehicle information includes: license plate number, vehicle type, vehicle entrance toll station, exit toll station, travel time, toll amount; user information includes: user name, company name, user mobile phone number; An invoice data packet tag library is established. The invoice data packet tag library matches the corresponding identifier according to the type of invoice issued in the invoice data packet. The invoice data packet is matched with the invoice data packet tag library, the corresponding identifier is output, and the invoice data packet is marked with the identifier.

[0006] Preferably, in step 2, the process of classifying the invoice issuance template into the corresponding task queue is: According to the invoice issuance type, three invoice processing channels are established, including: electronic invoice processing channel, value-added tax special invoice processing channel and paper invoice processing channel; each invoice processing channel corresponds to a corresponding invoice issuance template; The received invoice data packet is classified into the corresponding invoice processing channel according to the corresponding invoice identifier, and the invoice issuance information in the invoice data packet is extracted according to the invoice issuance template corresponding to the invoice processing channel, and filled into the corresponding position of the invoice issuance template. After the filling is completed, the filled invoice issuance template is recorded as a detection template; The positions corresponding to the required information in the invoice issuance process in the detection template are recorded as key positions, and each key position is preset with a corresponding filling specification. The key positions in the detection template are tested for information filling. If the information filling tests corresponding to all key positions in the detection template are qualified, they will be classified into the corresponding task queues according to the invoice issuance type corresponding to the detection template; the task queues include: electronic invoice task queue, value-added tax special invoice task queue; paper invoice task queue.

[0007] Preferably, the process of performing information filling detection on the detection template is: Check whether the key position has the corresponding invoice issuance information filled in and whether the filling specification of the invoice issuance information in the key position is consistent with the corresponding preset filling specification; if the key position has the corresponding invoice issuance information filled in and the filling specification is consistent with the corresponding preset filling specification, the key position is marked as qualified for information detection; if the key position has no corresponding invoice issuance information filled in or the filling specification is inconsistent with the corresponding preset filling specification, or one or both of the two, the key position is marked as unqualified for information detection; If the key bit information in the detection template fails the detection, the detection template and the corresponding invoice issuance request information will be sent to the highway toll system management terminal. The management terminal will correct the information errors of the key bits where the information detection fails according to the invoice issuance request information and the detection template. After the correction is completed, it will be classified into the corresponding task queue according to the invoice issuance type corresponding to the detection template.

[0008] Preferably, the specific process of calculating the preferred value, the optimal average value, the task queue load rate and the evaluation value of the task processing thread in step 3 is: It is preset that each task queue corresponds to a task thread pool, and each task thread pool contains several task processing threads; the task processing threads in the task thread pool will continuously take out the corresponding invoice type issuance tasks from the task queue for processing; for each task processing thread, obtain the CPU usage SL and memory occupancy ZL in the task processing thread, using the formula: , obtain the optimal value YZ of the task processing thread, where a1 and a2 are preset weight coefficients; calculate the mean of the optimal values ​​of all task processing threads in the task thread pool, recorded as the optimal mean value YJ; Get the full load length of the task queue and the sorting length of the current task queue, and get the load rate RL of the task queue by dividing the sorting length of the task queue by the full load length of the task queue; use the formula: CPZ=YJ×b1+RL×b2 to get the evaluation value CPZ of the task queue, where b1 and b2 are preset weight coefficients.

[0009] Preferably, in step 3, the specific process of dynamically setting the acquisition frequency and real-time monitoring the task queue and thread running status is as follows: The length of a day is divided into several detection periods, and each task queue is preset to correspond to three collection frequencies, namely: low collection frequency, medium collection frequency and high collection frequency; for each detection period of each task queue, the initial collection frequency is the medium collection frequency corresponding to the corresponding task queue; a two-dimensional rectangular coordinate system is established, with the ordinate being the collection and evaluation value and the abscissa being time; the collection and evaluation values ​​corresponding to each collection moment are substituted into the two-dimensional rectangular coordinate system, and connected by curves to obtain the collection and evaluation value change curve; in the rectangular coordinate system where the collection and evaluation value change curve is located, a preset collection and evaluation high threshold line and a preset collection and evaluation low threshold line are drawn respectively, and the collection and evaluation value change curve exceeding Draw a vertical line from the preset high threshold line of sampling and evaluation to the preset high threshold line of sampling and evaluation, and record the area of ​​the city surrounded by this as the rising area; draw a vertical line from the preset low threshold line of sampling and evaluation to the preset low threshold line of sampling and evaluation, and record the area of ​​the city surrounded by this as the falling area; preset the sampling frequency update interval, for each detection period, when the update time is reached, sum up all the rising areas in the detection period from the start time to the current update time and record them as the total detection product ZS, sum up all the falling areas and record them as the total detection product ZJ, and use the formula: CJ=ZS×c1-ZJ×c2 to get the sampling product CJ, where c1 and c2 are preset weight coefficients; Three sampling and evaluation accumulation intervals are preset, namely: low sampling and evaluation accumulation interval, medium sampling and evaluation accumulation interval and high sampling and evaluation accumulation interval; each sampling and evaluation accumulation interval corresponds to a sampling frequency, the sampling and evaluation accumulation of the detection period from the start time to the current update time is matched with the three sampling and evaluation accumulation intervals, and the corresponding sampling frequency is output, and this sampling frequency is used as the frequency for collecting and updating the preferred value of each processing thread in the task queue and the sampling and evaluation value of the task queue from the current collection update time to the next update time.

[0010] Preferably, in step 4, the database works as follows: When receiving the invoice issuance request information from the vehicle user, the user information and vehicle information involved will be sent to the database for storage; after receiving the user information and vehicle information, the database will match the user's license plate number with the stored license plate number information. If the match is successful, it will be marked as an old user, and if the match is unsuccessful, it will be marked as a new user; For new users, the database will create a record set with the user's license plate number as the index. The record set includes: total number of passes, total amount of passes, total distance traveled, and fare evasion records. In the record set, if there is no fare evasion in this invoice issuance request, the total number of passes will be initialized to 1, the total amount of passes and the total mileage will be the amount and distance in this invoice issuance request, and the ticket package record will be empty. If there is fare evasion, the number of passes and the amount involved will be recorded. For old users, the database locates the corresponding record set based on the user's license plate number and updates the data in the record set. Specifically, in the record set, if there is no fare evasion in this invoice issuance request; in terms of the total number of passes, add 1 to the original number of passes, and for the total amount of passes and the total distance of passes, add the amount and distance in this invoice issuance request to the original total amount of passes and the total distance of passes; for fare evasion records, keep the original records unchanged. If there is fare evasion, the number of fare evasions and the amount involved will be updated.

[0011] Preferably, the specific implementation process of step five is: For each task queue, according to the license plate number of each user in the task queue, locate the corresponding user's record set from the database, and extract the corresponding user's total number of passes, total amount of passes, total distance traveled, number of fare evasions and amount of fare evasion from the record set; for each user, the user's total number of passes TC, total amount of passes TE, total distance traveled TL, sorting waiting time DS, number of fare evasions TP and amount of fare evasion TJ are normalized and entered into the formula: , and obtain the ranking value YXZ, where d1, d2, d3, d4, d5, and d6 are preset weight coefficients; According to the priority values ​​corresponding to each user in the task queue, the users who need to perform invoice issuance tasks are sorted in descending order according to their numerical values. Whenever a new sorted user appears in the task queue, the users in the task queue are immediately re-sorted from large to small according to their priority values; When obtaining invoice issuance tasks, the task threads in the task thread pool give priority to obtaining the tasks of the users ranked first in the task queue, and assign them to the task threads with the highest preference values ​​for invoice issuance processing.

[0012] Compared with the prior art, the present invention has the following beneficial effects: (1) The mobile payment and invoice management method of a highway toll collection system establishes three processing channels and corresponding templates corresponding to the invoice types, and quickly directs the invoice data packet to the correct processing path according to the identifier of the invoice data packet, thereby realizing the automatic diversion of invoice processing, avoiding task confusion and backlog, and greatly improving the efficiency of invoice issuance; at the same time, the task queue information collection and analysis module sets the corresponding task thread pool and multiple collection frequency mechanisms for the task queue, can monitor the running status of the task queue and thread in real time and flexibly, conducts comprehensive analysis based on the load rate and thread optimal mean, dynamically adjusts the collection frequency, accurately grasps the task processing progress and resource requirements, better allocates thread resources and adjusts the task allocation strategy, ensures the continuous and efficient execution of the invoice issuance task, and improves the stability and reliability of the entire invoice processing system.

[0013] (2) The mobile payment and invoice management method for a highway toll collection system records the travel data of high-quality users through a database, and calculates the priority value in the task allocation module based on the user's total number of passes, amount, distance, and waiting time for ticket evasion, and gives priority processing rights, which helps to improve the satisfaction and loyalty of these users; at the same time, when selecting a processing thread, the processing thread with the highest priority value is selected, which can speed up the overall processing speed of the task, reduce the waiting time for invoices for all users, and optimize the user experience as a whole.

[0014] (3) The mobile payment and invoice management method of a highway toll collection system sets the corresponding positions of the required information in the invoice issuance process as key positions, sets detailed filling specifications for each key position, and performs strict information filling detection, thereby effectively avoiding invalid or illegal invoices caused by incorrect or incomplete information, thereby improving the quality and compliance of invoice issuance.

[0015] (4) This mobile payment and invoice management method for a highway toll collection system stores and updates user information and vehicle information through a database, which not only provides data support for invoice issuance, but also can classify users and optimize task allocation based on historical traffic data, giving full play to the value of data, providing strong support for subsequent service improvements, and facilitating the intelligent management and operational decision-making of the highway toll collection system. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of the present invention; Figure 2 It is a schematic diagram of the structure of the present invention. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] Embodiment 1

[0019] See also Figure 1 - Figure 2 , the present invention provides a mobile payment and invoice management method for a highway toll collection system; comprising: an invoice request receiving module, a detection scheduling module, a task queue information collection and analysis module, a database, and a task allocation module; Invoice Request Receiving Module Establishing a communication connection with a payment terminal in a highway toll collection system, receiving invoice issuance request information from a vehicle user after payment is completed, and arranging the vehicle's invoice issuance request information into an invoice data packet; Payment terminals include: ETC equipment and mobile payment scanning equipment; The invoice issuance request information includes but is not limited to: payment serial number, amount, vehicle information, user information and invoice type; invoice types include: electronic invoice, special value-added tax invoice and paper invoice; vehicle information includes: license plate number, vehicle type, vehicle entrance toll station, exit toll station, travel time, toll amount; user information includes: user name, company name, user mobile phone number; Establish an invoice data packet tag library. The invoice data packet tag library matches the corresponding invoice type in the invoice data packet with a corresponding identifier. Match the invoice data packet with the invoice data packet tag library, output the corresponding identifier, and mark the invoice data packet with the identifier. After marking, send the invoice data packet to the intelligent task scheduling module. Detection scheduling module: According to the invoice issuance type, three invoice processing channels are established, including: electronic invoice processing channel, VAT special invoice processing channel and paper invoice processing channel; each invoice processing channel corresponds to a corresponding invoice issuance template; in which: these templates specify in detail the information fields, format layout and data specifications required for each type of invoice; The received invoice data packets are classified into the corresponding invoice processing channel according to the corresponding invoice identifiers. According to the invoice issuance template corresponding to the invoice processing channel, the invoice issuance information in the invoice data packets is extracted, such as vehicle information (license plate number, vehicle model, etc.), user information (mobile phone number, user type identification, etc.) and payment serial number, and filled into the corresponding positions of the invoice issuance template. After the filling is completed, the filled invoice issuance template is recorded as a detection template; The positions corresponding to the required information in the invoice issuance process in the detection template are recorded as key positions, and each key position is preset with a corresponding filling specification. For example, the key position corresponding to the license plate number needs to be checked whether it is accurately filled in according to the prescribed character format (such as area code + alphanumeric combination, etc.), whether the character length meets the standard, and whether there are no illegal characters or unclear expressions; the key position of the vehicle model information needs to verify whether the filled content is consistent with the actual type of the vehicle, and use the unified vehicle model classification standard code or name to perform information filling detection on the key positions in the detection template. If the information filling detection corresponding to all key positions in the detection template is qualified, it will be classified into the corresponding task queue according to the invoice issuance type corresponding to the detection template; the task queues include: electronic invoice task queue, value-added tax special invoice task queue; paper invoice task queue; If the key bit information in the detection template fails the detection, the detection template and the corresponding invoice issuance request information are sent to the highway toll system management terminal. The management terminal corrects the information error of the key bit where the information detection fails according to the invoice issuance request information and the detection template. After the correction is completed, it is classified into the corresponding task queue according to the invoice issuance type corresponding to the detection template; The specific process of information filling detection is: detect whether the corresponding invoice issuance information is filled in the key position and whether the filling specification of the invoice issuance information in the key position is consistent with the corresponding preset filling specification; if the corresponding invoice issuance information is filled in the key position and the filling specification is consistent with the corresponding preset filling specification, the key position is marked as qualified for information detection; if the corresponding invoice issuance information is not filled in the key position or the filling specification is inconsistent with the corresponding preset filling specification, either of the two, the key position is marked as unqualified for information detection; It should be noted that by establishing three processing channels and corresponding templates corresponding to the invoice types, the invoice data packet can be quickly directed to the correct processing path based on the identifier, thereby realizing the automated diversion of invoice processing; the corresponding positions of the required information in the invoice issuance process are set as key positions, and detailed filling specifications are set for each key position to perform information filling detection; this enables a comprehensive screening of key information before the invoice is generated, effectively avoiding invalid or illegal invoices due to incorrect or incomplete information.

[0020] Task queue information collection and analysis module: It is preset that each task queue corresponds to a task thread pool, and each task thread pool contains several task processing threads; the task processing threads in the task thread pool will continuously take out the corresponding invoice type issuance tasks from the task queue for processing; the task processing thread is: an execution unit that can issue invoices independently, equipped with independent computing resources, including but not limited to CPU time slices, memory space, etc.; for each task processing thread, obtain the CPU usage SL and memory occupancy ZL in the task processing thread, using the formula: , get the preferred value YZ of the task processing thread, where a1 and a2 are preset weight coefficients; the larger the preferred value, the faster this thread processes the invoice issuance task; calculate the mean of the preferred values ​​of all task processing threads in the task thread pool, recorded as the optimal mean value YJ; Get the full load length of the task queue and the sorting length of the current task queue, and get the load rate RL of the task queue by dividing the sorting length of the task queue by the full load length of the task queue; use the formula: CPZ=YJ×b1+RL×b2 to get the evaluation value CPZ of the task queue, where b1 and b2 are preset weight coefficients; the larger the evaluation value of the task queue, the faster the task scheduling information in this task queue needs to be updated. For example, in actual situations, when the evaluation value is large, it indicates that the ratio of the sorting length of the current task queue to the full load length is large, that is, the task queue is already close to the full load state; in this case, in order to ensure that the invoice issuance work can be carried out efficiently and smoothly, it is necessary to update the user information of the queue sort in the task queue more quickly, so as to allocate system resources in a timely and reasonable manner and process queued tasks; The length of a day is divided into several detection periods, and each task queue is preset to correspond to three collection frequencies, namely: low collection frequency, medium collection frequency and high collection frequency; the collection interval of the low collection frequency is the longest, and the collection interval of the high collection frequency is the shortest; for each detection period of each task queue, the initial collection frequency is the medium collection frequency corresponding to the corresponding task queue, and the CPU usage rate, memory occupancy rate and sorting length of each processing thread in the task queue are collected and analyzed to obtain the collection evaluation value at each collection time; a two-dimensional rectangular coordinate system is established, with the ordinate being the collection evaluation value and the abscissa being the time; such as Figure 2 , substitute the evaluation values ​​corresponding to each collection time into the two-dimensional rectangular coordinate system, and connect them by curves to obtain the evaluation value change curve; draw a preset evaluation high threshold line and a preset evaluation low threshold line in the rectangular coordinate system where the evaluation value change curve is located, and make a perpendicular line to the preset evaluation high threshold line for the part of the evaluation value change curve that exceeds the preset evaluation high threshold line, and record the area of ​​the city surrounded by this as the rising area, and make a perpendicular line to the preset evaluation low threshold line for the part of the evaluation value change curve that is lower than the preset evaluation low threshold line, and record the area of ​​the city surrounded by this as the falling area, and preset the collection frequency update interval. For each detection period, when the update time is reached, sum up all the rising areas in the detection period from the start time to the current update time and record them as the total detection product ZS, and sum up all the falling areas and record them as the total detection product ZJ, and use the formula: CJ=ZS×c1-ZJ×c2 to obtain the evaluation product CJ, where c1 and c2 are preset weight coefficients; Three sampling and evaluation accumulation intervals are preset, namely: low sampling and evaluation accumulation interval, medium sampling and evaluation accumulation interval and high sampling and evaluation accumulation interval; each sampling and evaluation accumulation interval corresponds to a sampling frequency, namely: low sampling and evaluation accumulation interval corresponds to low sampling frequency, medium sampling and evaluation accumulation interval corresponds to medium sampling frequency and high sampling and evaluation accumulation interval corresponds to high sampling frequency; the sampling and evaluation accumulation of the detection period from the start time to the current update time is matched with the three sampling and evaluation accumulation intervals, the corresponding sampling frequency is output, and this sampling frequency is used as the frequency for collecting and updating the preferred value of each processing thread in the task queue and the sampling and evaluation value of the task queue from the current collection update time to the next update time; each collection action carried out for the preferred value of each processing thread and the sampling and evaluation value of the task queue essentially means that an update operation is implemented on the preferred value status of each processing thread and the sampling and evaluation value status of the task queue at the current time; that is, the new data obtained by the collection replaces the corresponding old data before; It should be noted that by setting the corresponding task thread pool and multiple collection frequency mechanisms for the task queue, the running status of the task queue and the thread can be monitored in real time and flexibly; a comprehensive analysis is performed based on the load rate of the task queue and the optimal mean of the task processing thread to obtain the task queue collection and evaluation value, and the collection and evaluation value is further analyzed to obtain the collection and evaluation product. The collection frequency is dynamically adjusted according to the size of the collection and evaluation product to ensure that the system can more accurately grasp the progress and resource requirements of task processing; it helps to better allocate thread resources and adjust task allocation strategies, thereby ensuring the continuous and efficient execution of invoice issuance tasks and improving the stability and reliability of the entire invoice processing system.

[0021] database: When the invoice request receiving module receives the invoice issuance request information from the vehicle user, the user information and vehicle information involved will be sent to the database for storage; after the database receives the user information and vehicle information, it matches the user's license plate number with the stored license plate number information. If the match is successful, it will be marked as an old user, and if the match is unsuccessful, it will be marked as a new user; For new users, the database will create a record set with the user's license plate number as the index. The record set includes: total number of passes, total amount of passes, total distance traveled, and fare evasion records. In the record set, if there is no fare evasion in this invoice issuance request, the total number of passes will be initialized to 1, the total amount of passes and the total mileage will be the amount and distance in this invoice issuance request, and the ticket package record will be empty. If there is fare evasion, the number of passes and the amount involved will be recorded. For old users, the database locates the corresponding record set based on the user's license plate number and updates the data in the record set. Specifically, in the record set, if there is no fare evasion in the current invoice issuance request, the original number of times will be increased by 1, and for the total amount and total distance traveled, the amount and distance in the current invoice issuance request will be added to the original total amount and total distance data; for fare evasion records, the original records will remain unchanged. If there is fare evasion, the number of times fare evasion occurred and the amount involved will be updated. Task Assignment Module For each task queue, according to the license plate number of each user in the task queue, locate the corresponding user's record set from the database, and extract the corresponding user's total number of passes, total amount of passes, total distance traveled, number of fare evasions and amount of fare evasion from the record set; for each user, the user's total number of passes TC, total amount of passes TE, total distance traveled TL, sorting waiting time DS, number of fare evasions TP and amount of fare evasion TJ are normalized and entered into the formula: , and obtain the ranking value YXZ, where d1, d2, d3, d4, d5, and d6 are preset weight coefficients; According to the priority values ​​corresponding to each user in the task queue, the users who need to perform invoice issuance tasks are sorted in descending order according to their numerical values. Whenever a new sorted user appears in the task queue, the users in the task queue are immediately re-sorted from large to small according to their priority values; When obtaining invoice issuance tasks, the task threads in the task thread pool give priority to obtaining the tasks of the users ranked first in the task queue, and assign them to the task threads with the highest preference values ​​for invoice issuance processing.

[0022] It should be noted that by giving priority to high-quality users who have made many purchases, with large amounts and no record of fare evasion, it helps to improve their satisfaction and loyalty; by assigning tasks to the thread with the highest priority value, the processing power of each thread can be fully utilized, making the processing flow of the entire task queue smoother, reducing the average time spent on task processing, and further optimizing the overall efficiency of invoice issuance.

[0023] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A mobile payment and invoice management method for a highway toll collection system, characterized in that: The following steps are involved: Step 1: Establish a communication connection with the payment terminal of the toll collection system, receive the invoice issuance request information after the vehicle user completes the payment, and organize it into an invoice data packet; at the same time, establish an invoice data packet tag library according to the invoice type, and mark the data packet with an identifier according to the invoice data packet tag library; Step 2: Set up processing channels according to the invoice issuance type, and equip each channel with a corresponding invoice issuance template; Classify the invoice data packets into corresponding channels according to the identifiers, extract the invoice issuance information in the data packets and fill in the invoice issuance template, record the positions corresponding to the required information in the invoice issuance template as key positions, check the key position information filling, classify qualified ones into corresponding task queues, and send unqualified ones to the highway management personnel terminal for correction and then classify again; Step 3: Preset a task thread pool for each task queue. The task processing threads in the task thread pool have independent computing resources. By calculating the optimal value, optimal average value, task queue load rate and evaluation value of the task processing thread, the collection frequency is dynamically set to monitor the task queue and thread running status in real time. Step 4: Store user and vehicle information in the database, distinguish between new and old users and record their traffic data; Step 5: Calculate the priority value based on the user's traffic data in the database, sort the users in the task queue in descending order according to the priority value, assign tasks to threads with high priority values ​​to process invoice issuance tasks, and give priority to high-quality users.

2. The method for mobile payment and invoice management of a highway toll collection system according to claim 1, characterized in that: The specific implementation process of step one is: Establishing a communication connection with a payment terminal in a highway toll collection system, receiving invoice issuance request information from a vehicle user after payment is completed, and arranging the vehicle's invoice issuance request information into an invoice data packet; Payment terminals include: ETC equipment and mobile payment scanning equipment; The invoice issuance request information includes: payment serial number, amount, vehicle information, user information and invoice type; invoice types include: electronic invoice, special value-added tax invoice and paper invoice; vehicle information includes: license plate number, vehicle type, vehicle entrance toll station, exit toll station, travel time, toll amount; user information includes: user name, company name, user mobile phone number; An invoice data packet tag library is established. The invoice data packet tag library matches the corresponding identifier according to the type of invoice issued in the invoice data packet. The invoice data packet is matched with the invoice data packet tag library, the corresponding identifier is output, and the invoice data packet is marked with the identifier.

3. The method for mobile payment and invoice management of a highway toll collection system according to claim 1, characterized in that: In step 2, the process of classifying the invoice issuance template into the corresponding task queue is as follows: According to the invoice issuance type, three invoice processing channels are established, including: electronic invoice processing channel, value-added tax special invoice processing channel and paper invoice processing channel; each invoice processing channel corresponds to a corresponding invoice issuance template; The received invoice data packet is classified into the corresponding invoice processing channel according to the corresponding invoice identifier, and the invoice issuance information in the invoice data packet is extracted according to the invoice issuance template corresponding to the invoice processing channel, and filled into the corresponding position of the invoice issuance template. After the filling is completed, the filled invoice issuance template is recorded as a detection template; The positions corresponding to the required information in the invoice issuance process in the detection template are recorded as key positions, and each key position is preset with a corresponding filling specification. The key positions in the detection template are tested for information filling. If the information filling tests corresponding to all key positions in the detection template are qualified, they will be classified into the corresponding task queues according to the invoice issuance type corresponding to the detection template; the task queues include: electronic invoice task queue, value-added tax special invoice task queue; paper invoice task queue.

4. The method for mobile payment and invoice management of a highway toll collection system according to claim 3, characterized in that: The process of filling information into the detection template is as follows: Check whether the key position has the corresponding invoice issuance information filled in and whether the filling specification of the invoice issuance information in the key position is consistent with the corresponding preset filling specification; if the key position has the corresponding invoice issuance information filled in and the filling specification is consistent with the corresponding preset filling specification, the key position is marked as qualified for information detection; if the key position has no corresponding invoice issuance information filled in or the filling specification is inconsistent with the corresponding preset filling specification, or one or both of the two, the key position is marked as unqualified for information detection; If the key bit information in the detection template fails the detection, the detection template and the corresponding invoice issuance request information will be sent to the highway toll system management terminal. The management terminal will correct the information errors of the key bits where the information detection fails according to the invoice issuance request information and the detection template. After the correction is completed, it will be classified into the corresponding task queue according to the invoice issuance type corresponding to the detection template.

5. The method for mobile payment and invoice management of a highway toll collection system according to claim 1, characterized in that: The specific process of calculating the optimal value, optimal average value, task queue load rate and evaluation value of the task processing thread in step 3 is as follows: It is preset that each task queue corresponds to a task thread pool, and each task thread pool contains several task processing threads; the task processing threads in the task thread pool will continuously take out the corresponding invoice type issuance tasks from the task queue for processing; for each task processing thread, obtain the CPU usage SL and memory occupancy ZL in the task processing thread, using the formula: , obtain the optimal value YZ of the task processing thread, where a1 and a2 are preset weight coefficients; calculate the mean of the optimal values ​​of all task processing threads in the task thread pool, recorded as the optimal mean value YJ; Get the full load length of the task queue and the sorting length of the current task queue, and get the load rate RL of the task queue by dividing the sorting length of the task queue by the full load length of the task queue; use the formula: CPZ=YJ×b1+RL×b2 to get the evaluation value CPZ of the task queue, where b1 and b2 are preset weight coefficients.

6. The method for mobile payment and invoice management of a highway toll collection system according to claim 5, characterized in that: In step 3, the specific process of dynamically setting the acquisition frequency and real-time monitoring of the task queue and thread running status is as follows: The length of a day is divided into several detection periods, and each task queue is preset to correspond to three collection frequencies, namely: low collection frequency, medium collection frequency and high collection frequency; for each detection period of each task queue, the initial collection frequency is the medium collection frequency corresponding to the corresponding task queue; a two-dimensional rectangular coordinate system is established, with the ordinate being the collection and evaluation value and the abscissa being time; the collection and evaluation values ​​corresponding to each collection moment are substituted into the two-dimensional rectangular coordinate system, and connected by curves to obtain the collection and evaluation value change curve; in the rectangular coordinate system where the collection and evaluation value change curve is located, a preset collection and evaluation high threshold line and a preset collection and evaluation low threshold line are drawn respectively, and the collection and evaluation value change curve exceeding Draw a vertical line from the preset high threshold line of sampling and evaluation to the preset high threshold line of sampling and evaluation, and record the area of ​​the city surrounded by this as the rising area; draw a vertical line from the preset low threshold line of sampling and evaluation to the preset low threshold line of sampling and evaluation, and record the area of ​​the city surrounded by this as the falling area; preset the sampling frequency update interval, for each detection period, when the update time is reached, sum up all the rising areas in the detection period from the start time to the current update time and record them as the total detection product ZS, sum up all the falling areas and record them as the total detection product ZJ, and use the formula: CJ=ZS×c1-ZJ×c2 to get the sampling product CJ, where c1 and c2 are preset weight coefficients; Three sampling and evaluation accumulation intervals are preset, namely: low sampling and evaluation accumulation interval, medium sampling and evaluation accumulation interval and high sampling and evaluation accumulation interval; each sampling and evaluation accumulation interval corresponds to a sampling frequency, the sampling and evaluation accumulation of the detection period from the start time to the current update time is matched with the three sampling and evaluation accumulation intervals, and the corresponding sampling frequency is output, and this sampling frequency is used as the frequency for collecting and updating the preferred value of each processing thread in the task queue and the sampling and evaluation value of the task queue from the current collection update time to the next update time.

7. The method for mobile payment and invoice management of a highway toll collection system according to claim 1, characterized in that: In step 4, the database works as follows: When receiving the invoice issuance request information from the vehicle user, the user information and vehicle information involved will be sent to the database for storage; after receiving the user information and vehicle information, the database will match the user's license plate number with the stored license plate number information. If the match is successful, it will be marked as an old user, and if the match is unsuccessful, it will be marked as a new user; For new users, the database will create a record set with the user's license plate number as the index. The record set includes: total number of passes, total amount of passes, total distance traveled, and fare evasion records. In the record set, if there is no fare evasion in this invoice issuance request, the total number of passes will be initialized to 1, the total amount of passes and the total mileage will be the amount and distance in this invoice issuance request, and the ticket package record will be empty. If there is fare evasion, the number of passes and the amount involved will be recorded. For old users, the database locates the corresponding record set based on the user's license plate number and updates the data in the record set. Specifically, in the record set, if there is no fare evasion in this invoice issuance request; in terms of the total number of passes, add 1 to the original number of passes, and for the total amount of passes and the total distance of passes, add the amount and distance in this invoice issuance request to the original total amount of passes and the total distance of passes; for fare evasion records, keep the original records unchanged. If there is fare evasion, the number of fare evasions and the amount involved will be updated.

8. The method for mobile payment and invoice management of a highway toll collection system according to claim 7, characterized in that: The specific implementation process of step five is as follows: For each task queue, locate the corresponding user's record set from the database according to the license plate number of each user in the task queue, and extract the corresponding user's total number of passes, total amount of passes, total distance traveled, and number of fare evasions and amount of fare evasion from the record set; For each user, the total number of passes TC, total amount of passes TE, total distance traveled TL, sorting waiting time DS, number of fare evasion TP and amount of fare evasion TJ are normalized and entered into the formula: , and obtain the ranking value YXZ, where d1, d2, d3, d4, d5, and d6 are preset weight coefficients; According to the priority values ​​corresponding to each user in the task queue, the users who need to perform invoice issuance tasks are sorted in descending order according to their numerical values. Whenever a new sorted user appears in the task queue, the users in the task queue are immediately re-sorted from large to small according to their priority values; When obtaining invoice issuance tasks, the task threads in the task thread pool give priority to obtaining the tasks of the users ranked first in the task queue, and assign them to the task threads with the highest preference values ​​for invoice issuance processing.

Citation Information

Patent Citations

  • User job scheduling method and device

    CN103309738A

  • Invoice batch issuing operation optimization scheduling method and system based on tax control server

    CN111210288A

  • Electronic invoice issuing task processing method, device and system

    CN115147168A

  • ETC electronic automatic settlement system

    CN116665328A

  • Message Passing with Queues and Channels

    US20110265098A1