Automatic service card dispatching method and device and storage medium
By automatically detecting time and configuration information, generating and distributing service card work orders is solved, and the high cost problems caused by manual screening and manual operations are achieved, and efficient and accurate automatic distributing of service card is achieved.
Patent Information
- Application Number
- CN202411516073.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art requires manual screening and manual operation during the service card assignment process, resulting in large workload and high time costs.
By checking that the current time meets the scheduled dispatch task, the configuration information of the service card to be dispatched will be automatically obtained, and the order will be generated and assigned will be determined, and the execution engineer will be determined, and the number of service card usage will be deducted after the work order is completed, so as to achieve no manual intervention. automatic order assignment.
It improves the efficiency and accuracy of order distribution, reduces manual judgment and operation, and realizes the automatic generation and distribution of service card work orders based on configuration information.
Smart Images

Figure CN119027070A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device and storage medium for automatically dispatching service cards. Background Art
[0002] A service card usually represents a series of predefined service items or preferential benefits. After purchasing, customers can enjoy the corresponding services within a specified period of time. In service card dispatch, it refers to the process of assigning specific service requirements (i.e. work orders) to appropriate service executors to complete the service.
[0003] Currently, when dispatching service cards, it is usually necessary to manually screen out the work orders that need to be dispatched, and then automatically trigger the dispatch process by setting a fixed time node or cycle to dispatch the screened work orders. Manually screening the work orders that can be dispatched brings a large workload and time cost.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a method, device and storage medium for automatic dispatching of service cards, aiming to solve the technical problem of how to automatically dispatch service cards without human intervention.
[0006] To achieve the above purpose, the present application proposes a method for automatically dispatching service cards, the method comprising: When it is detected that the current time matches the dispatch time in the scheduled dispatch task, determining the service card to be dispatched in the scheduled dispatch task; Obtaining configuration information of the service card to be dispatched, and generating a work order to be dispatched according to the configuration information; Dispatching the work order to be dispatched and determining the engineer to execute the work order to be dispatched; When the work order completion information is obtained, the number of times the service card to be dispatched is used is deducted according to the number of times the work order completion information is obtained.
[0007] In one embodiment, when it is detected that the current time matches the dispatch time in the scheduled dispatch task, the step of determining the service card to be dispatched in the scheduled dispatch task includes: Determining the usage count of the to-be-dispatched service card; If the number of times used is not zero, determining whether the service card to be dispatched is dispatched for the first time; If it is the first time to dispatch the order, the dispatch time is determined based on the service card payment time of the service card to be dispatched; If it is not the first order dispatch, the dispatch time is determined based on the completion time of the service card work order of the service card to be dispatched.
[0008] In one embodiment, before the step of obtaining the configuration information of the service card to be dispatched and generating the work order to be dispatched according to the configuration information, the step further includes: Determining the configuration information of the service card to be dispatched; Verify whether the configuration information is correct. If correct, generate the work order to be dispatched according to the configuration information.
[0009] In one embodiment, the method further comprises: When the work order completion information is not obtained, the work order to be dispatched is re-dispatched until the work order completion information is obtained.
[0010] In one embodiment, the method further comprises: Obtain target preferential service cards and target preferential service card information that meet preferential conditions; Generate a preferential work order according to the target preferential service card information; After obtaining the customer's confirmation information on the preferential work order, the preferential work order is dispatched.
[0011] In one embodiment, the step of obtaining a target preferential service card that meets the preferential conditions includes: Obtain multiple first-rate preferential service cards based on the most recently unused algorithm; The first preferential service cards are selected in descending order of unused time and in a preset quantity to obtain the target preferential service card.
[0012] In one embodiment, before the step of obtaining the configuration information of the service card to be dispatched and generating the work order to be dispatched according to the configuration information, the step further includes: Monitoring the number of service cards to be dispatched; If the number of the service cards to be dispatched reaches a preset warning threshold, the average generation time of the work orders to be dispatched is obtained; If the average generation time of the work orders to be dispatched exceeds a preset time threshold, a first alarm message is generated; If the number of the service cards to be dispatched reaches a preset danger threshold, the first alarm information is directly generated.
[0013] In one embodiment, after the step of obtaining the configuration information of the service card to be dispatched and generating the work order to be dispatched according to the configuration information, the step further includes: When the generation failure information of the work order to be dispatched is obtained, the step of regenerating the work order to be dispatched is performed again according to the preset retry interval; When the number of times of regenerating the work order to be dispatched reaches a preset maximum number of retries, a second alarm message is generated.
[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a service card automatic dispatching device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the service card automatic dispatching method as described above.
[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the service card automatic dispatching method as described above are implemented.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: The present application provides a solution, when it is detected that the current time meets the dispatch time in the scheduled dispatch task, the service card to be dispatched in the scheduled dispatch task is determined; by presetting the dispatch time, the service card information corresponding to the dispatch time is automatically triggered by the scheduled task at the dispatch time. The configuration information of the service card to be dispatched is obtained, and a work order to be dispatched is generated according to the configuration information; the configuration information includes dispatch rules generated based on different service card types, and the work order to be dispatched directly generated by the configuration information in the service card information can ensure that it meets the requirements and standards of the corresponding service card type, thereby ensuring the correctness and rationality of the work order. The work order to be dispatched is dispatched, and the engineer to execute the work order to be dispatched is determined; when the work order completion information is obtained, the number of uses of the service card to be dispatched is deducted according to the number of work order completion information; the automatically generated work order is dispatched to determine the engineer to execute the work order to be dispatched, and after the engineer completes the work order to be dispatched and sends the completion information, the number of uses of the service card is deducted. In the whole process, no manual intervention is required, and the service card work order is automatically generated and dispatched according to the configuration information. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A flow chart of the first embodiment of the automatic dispatching method for the application service card; Figure 2 A detailed flow chart of the first embodiment of the automatic dispatching method for application service card; Figure 3 This is a configuration information page diagram provided in Example 1 of the automatic dispatching method for application service card; Figure 4 A flow chart of the second embodiment of the automatic dispatching method for the application service card; Figure 5 A flowchart of the fourth embodiment of the automatic dispatching method for the application service card is provided; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the service card automatic dispatching method in the embodiment of the present application.
[0020] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0023] The main solution of the embodiment of the present application is: when it is detected that the current time meets the dispatch time in the scheduled dispatch task, determine the service card to be dispatched in the scheduled dispatch task; obtain the configuration information of the service card to be dispatched, and generate a work order to be dispatched according to the configuration information; dispatch the work order to be dispatched, and determine the engineer who executes the work order to be dispatched; when the work order completion information is obtained, deduct the number of times the service card to be dispatched is used according to the number of times the work order completion information is obtained.
[0024] At present, when dispatching service cards, it is usually necessary to manually screen out the work orders that need to be dispatched, and then automatically trigger the dispatch process by setting a fixed time node or cycle to dispatch the screened work orders. Manually screening the work orders that can be dispatched brings a large workload and time cost.
[0025] The present application provides a solution, when it is detected that the current time meets the dispatch time in the scheduled dispatch task, the service card to be dispatched in the scheduled dispatch task is determined; by presetting the dispatch time, the service card information corresponding to the dispatch time is automatically triggered by the scheduled task at the dispatch time. The configuration information of the service card to be dispatched is obtained, and a work order to be dispatched is generated according to the configuration information; the configuration information includes dispatch rules generated based on different service card types, and the work order to be dispatched directly generated by the configuration information in the service card information can ensure that it meets the requirements and standards of the corresponding service card type, thereby ensuring the correctness and rationality of the work order. The work order to be dispatched is dispatched, and the engineer who executes the work order to be dispatched is determined; when the work order completion information is obtained, the number of uses of the service card to be dispatched is deducted according to the number of work order completion information; the automatically generated work order is dispatched to determine the engineer who executes the work order to be dispatched, and the number of uses of the service card is deducted after the engineer completes the work order to be dispatched and sends the completion information. No manual intervention is required in the whole process, and the service card work order is automatically generated and dispatched according to the configuration information.
[0026] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a program process abnormality monitoring device, etc. The following takes the service card automatic dispatching device as an example to illustrate this embodiment and the following embodiments.
[0027] Based on this, the embodiment of the present application provides a method for automatically dispatching a service card, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the automatic dispatching method for the service card of this application.
[0028] In this embodiment, the service card automatic dispatching method includes steps S10 to S40: Step S10, when it is detected that the current time matches the dispatch time in the scheduled dispatch task, determining the service card to be dispatched in the scheduled dispatch task; In this embodiment, a periodic check is performed to determine whether there is a matching preset dispatch time at the current time. If there is a matching preset dispatch time, all service cards to be dispatched that need to be dispatched at the dispatch time and the corresponding service card information to be dispatched are obtained.
[0029] For example, the preset dispatch time is 12:59:59 on a certain day. Use Python and Quartz Scheduler to create a scheduled task, set a periodic task, and check the time every second. When the current time reaches 12:59:59 on a certain day, obtain all service cards and corresponding service card information that need to be dispatched at the dispatch time.
[0030] Optionally, in a Node.js environment, you can use the node-schedule library to implement scheduled tasks; on a Linux server, you can use Cron jobs to implement scheduled tasks.
[0031] Please refer to Figure 2 In a feasible implementation manner, step S10 may include steps S11 to S14: Step S11, determining the usage count of the service card to be dispatched; Step S12, if the number of times used is not zero, determining whether the service card to be dispatched is dispatched for the first time; Step S13, if it is the first time to dispatch the order, determining the dispatch time based on the service card payment time of the service card to be dispatched; Step S14: If it is not the first dispatch, the dispatch time is determined based on the completion time of the service card work order of the service card to be dispatched.
[0032] In this embodiment, the usage count information in the relevant information of the service card is obtained from the database or cache by querying from the database through SQL, or accessing the cached data. After obtaining the usage count information, it is determined whether the usage count is zero. If the usage count is not equal to 0, the dispatch operation is performed, and the corresponding order and work order are generated according to the configuration information; if the usage count is equal to 0, the dispatch operation is not required. At this time, a prompt message can be returned to indicate that the service card has no usage count. By automatically checking the number of service card usage and deciding whether to dispatch the order accordingly, the dispatch failure caused by insufficient service times can be avoided. In addition, the steps of manually judging whether the service card is available are reduced, making the dispatch process more automated and efficient.
[0033] In this implementation, different dispatch triggering rules are set for the first dispatch and non-first dispatch. And the dispatch time is determined according to the corresponding dispatch triggering rules. When the service card is dispatching for the first time, the dispatch is triggered according to the service card payment time; when the service card is not dispatching for the first time, the dispatch is triggered according to the service card work order completion time. By distinguishing between the first dispatch and the remaining dispatch, the system can customize the dispatch logic according to different scenarios and needs, thereby improving the flexibility and adaptability of the system. By setting different dispatch triggering rules for the first dispatch and non-first dispatch, it is possible to provide services at a more reasonable time, customize the dispatch logic according to different scenarios and needs, and improve the flexibility and adaptability of automatic dispatch.
[0034] Exemplarily, when determining whether it is the first time for a service card to dispatch an order, the service card's history record can be determined from the service card information. If the dispatch history record is empty, it means that this is the first time for the service card to dispatch an order. It is also possible to set an identifier for the service card that dispatches an order for the first time, and determine whether it is the first time for the service card to dispatch an order by checking whether the service card has a clear "first dispatch" identifier or field. It is also possible to determine whether it is the first time for a service card to dispatch an order by comparing the current number of uses with the total number of uses of the service card. If the number of uses is equal to the total number of uses of the service card, it means that this is the first time the service card has been used, and the triggering rule for the first dispatch needs to be executed.
[0035] For example, please refer to Figure 3 When configuring the triggering rules for the first dispatch, the default triggering rule is: trigger the dispatch on the 1st of the month following the month to which the service card payment time belongs. When configuring the triggering rules for the remaining dispatches that are not the first dispatch, the default triggering rule is: trigger the dispatch on the 1st of the third month of the month to which the last service card work order was completed. The user clicks to pull up the calendar selection pop-up window and can modify the specific month and date. The month and date in the above trigger logic are variables and can be modified according to specific needs. The latest dispatch triggering rules need to be read each time this logic is executed.
[0036] In this embodiment, the dispatch time set in the scheduled dispatch task is used to trigger the acquisition of the service card that needs to be dispatched, avoiding the use of manual methods to determine the service card that needs to be dispatched at a certain time point, thereby improving the efficiency and accuracy of dispatching.
[0037] Step S20, obtaining the configuration information of the service card to be dispatched, and generating a work order to be dispatched according to the configuration information; In this embodiment, please refer to Figure 3 , the configuration information may include: dispatch mode (manual dispatch or automatic dispatch), dispatch item, service type and dispatch rule. Optionally, the configuration information may also include information such as the department and level of the engineer who executes the work order. Generate corresponding orders and work orders to be dispatched according to the configuration information; the order may include order number, order type, order date, customer name or code, etc. The work order may include work order number, work order type, creation date, associated order number, service address, specific task description, required materials or tools, estimated working hours, task start time, safety precautions, quality standard requirements, special instructions, etc.
[0038] By configuring different dispatching rules according to different service types, and the orders and work orders generated according to the configuration information are more in line with the requirements and standards of the corresponding service card types, the correctness and rationality of the work orders are guaranteed.
[0039] Step S30, dispatching the work order to be dispatched, and determining an engineer to execute the work order to be dispatched; In this embodiment, after a dispatchable work order is generated, the work order is sent to an engineer to grab the order. In the engineer grabbing order stage, the work order service address and engineer conditions (such as engineer level, engineer department, engineer work order, etc.) can be screened, and engineers who meet the dispatch requirements can be selected to notify them to grab the order.
[0040] In this embodiment, work orders to be dispatched are automatically allocated according to the availability and skills of engineers, thereby optimizing the utilization of human resources. Through the re-dispatching mechanism, idle resources and waste caused by engineers being unable to complete tasks are reduced.
[0041] Step S40, when the work order completion information is obtained, the number of times the service card to be dispatched is used is deducted according to the number of times the work order completion information is obtained; Step S50, when the work order completion information is not obtained, the work order to be dispatched is re-dispatched until the work order completion information is obtained.
[0042] In this embodiment, after the engineer confirms the work order, he completes the work order task within the specified time range. After the order is confirmed, the work order completion information is sent to complete the deduction of the number of times the service card is used. If the engineer cancels the work order or fails to complete the work order, the generated order is reassigned.
[0043] For example, a task queue (such as RabbitMQ or Kafka) can be used to process the assignment and status change of work orders. First, define queues and switches. The work order assignment queue is used to store work order tasks to be assigned, and the work order status change queue is used to store messages of work order status changes, such as work order completion, cancellation, etc. The switch is used to route messages to the corresponding queues by message type or routing key. Define a clear message format, including work order ID, operation type (such as assignment, completion, cancellation), and operation data (such as engineer ID, completion time, etc.). Secondly, the engineer's client or server application continuously monitors the work order assignment queue. When there is a new work order to be assigned, the system sends the work order message to the assignment queue through the switch. After the engineer receives the work order message from the assignment queue, he performs a confirmation operation. After the engineer confirms, the system updates the work order status to "processing". Finally, after the engineer completes the work order task within the specified time, he submits the work order completion information through the system, and the system sends the work order completion message to the work order status change queue. If the engineer cancels the work order or the system detects that the work order is not completed within the specified time, the system generates a re-dispatch message and sends the re-dispatch message to the work order allocation queue or a dedicated re-dispatch queue.
[0044] Optionally, you can also set up monitoring and error handling mechanisms to monitor and track queue load, message processing time, and any potential errors. When an error is encountered during message processing, implement a retry mechanism or send the message to a dead letter queue for further processing. According to business needs, set thresholds for monitoring indicators, such as queue length, message accumulation speed, etc., and trigger an alarm when the processing time exceeds the preset threshold.
[0045] The present application provides a solution, when it is detected that the current time meets the dispatch time in the scheduled dispatch task, the service card to be dispatched in the scheduled dispatch task is determined; by presetting the dispatch time, the service card information corresponding to the dispatch time is automatically triggered by the scheduled task at the dispatch time. The configuration information of the service card to be dispatched is obtained, and a work order to be dispatched is generated according to the configuration information; the configuration information includes dispatch rules generated based on different service card types, and the work order to be dispatched directly generated by the configuration information in the service card information can ensure that it meets the requirements and standards of the corresponding service card type, thereby ensuring the correctness and rationality of the work order. The work order to be dispatched is dispatched, and the engineer to execute the work order to be dispatched is determined; when the work order completion information is obtained, the number of uses of the service card to be dispatched is deducted according to the number of work order completion information; the automatically generated work order is dispatched to determine the engineer to execute the work order to be dispatched, and after the engineer completes the work order to be dispatched and sends the completion information, the number of uses of the service card is deducted. In the whole process, no manual intervention is required, and the service card work order is automatically generated and dispatched according to the configuration information.
[0046] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 Before step S30, the service card automatic dispatching method further includes steps A10 to A20: Step A10, determining the configuration information of the service card to be dispatched; Step A20, verifying whether the configuration information is correct, and if correct, generating the work order to be dispatched according to the configuration information.
[0047] In this embodiment, before generating corresponding orders and work orders according to the configuration information, the configuration information is verified to ensure that the generated orders and work orders are accurate. During the verification process, verification can be performed from the following aspects: verify whether all required fields are filled in; verify whether the fields conform to the expected data type (such as numbers, dates, strings, etc.); perform format checks on specific fields (such as dates, amounts); verify whether the logical relationship between the configuration information is correct (such as whether the dispatch time is after the current time); dependency verification, the values of certain fields may depend on the values of other fields (such as whether the billing rules are consistent with the service type). Specific verification rules can be added, modified, or deleted according to specific business needs.
[0048] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above introduction, and will not be described in detail later. The automatic dispatching method of the service card also includes: The revenue amount of the order and the expenditure amount of the work order are calculated according to the preset billing rules.
[0049] In this embodiment, the billing rules for the revenue amount of the order and the expenditure amount of the work order can be pre-configured in the configuration information. For example, the expenditure amount of the work order can be a fixed amount set according to the service type. The revenue amount of the order can be charged according to the number of services, and a charge is made after a service is completed.
[0050] In this embodiment, the calculation method of the income and expenditure amounts is pre-configured by the service type of the service card, so that the income amount of the corresponding order and the expenditure amount of the work order can be directly generated according to the configuration information of the service card. There is no need for manual calculation after each service is completed, which improves the efficiency and accuracy of calculating the income and expenditure amounts.
[0051] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 5 The service card automatic dispatching method further includes steps B10 to B30: Step B10, obtaining a target preferential service card and target preferential service card information that meets preferential conditions; Step B20, generating a preferential order and a preferential work order according to the target preferential service card information; Step B30, after obtaining the customer's confirmation information on the preferential work order, dispatch the preferential work order.
[0052] In this implementation, business personnel can choose whether to enable the intelligent preferential strategy for dispatching orders based on customer demands. The preferential work order generated by the target preferential service card needs to be confirmed by the customer. If the customer chooses to use this preferential work order for service within the specified time, the preferential work order will be dispatched to the engineer for grabbing the order; if the customer does not confirm within the specified time, the income and expenditure amount will be calculated according to the normal service automatic dispatching mode.
[0053] Dispatching orders based on preferential strategies can be done by giving certain preferential strategies, such as reducing the amount of revenue required for a single service to stimulate customers to increase the frequency of using service cards, thereby increasing card consumption.
[0054] Please refer to Figure 5 In a feasible implementation manner, step B10 may include steps B11 to B12: Step B11, obtaining a plurality of first preferential service cards according to the longest unused algorithm; Step B12, selecting the first preferential service cards in order of unused time from longest to shortest and in accordance with a preset number, to obtain the target preferential service cards.
[0055] It should be noted that the Least Recently Used (LRU) algorithm is a commonly used page replacement algorithm. Its core idea is: if a piece of data has not been accessed in the recent period of time, then the possibility of it being accessed in the future is also very small.
[0056] In this embodiment, a data structure combining a hash table (HashMap) and a doubly linked list (Doubly Linked List) can be selected. The hash table is used to quickly locate data. The key of the hash table is the unique identifier of the service card (such as: service card ID), and the value is a pointer to the corresponding node in the doubly linked list; the doubly linked list is used to record the access order of data. Exemplarily, first create a hash table and a doubly linked list. The head of the doubly linked list represents the most recently accessed service card, and the tail represents the service card that has not been accessed for the longest time. Secondly, traverse multiple nodes of the doubly linked list from the tail forward. Optionally, the number of nodes can be 5, and the target preferential service cards are the 5 service cards that have not been used for the longest time. Finally, obtain the service card corresponding to the node through the hash table to obtain the target preferential service card.
[0057] In this implementation, the most recently unused algorithm is used to search for the top five service cards that have not been used the longest, and the target preferential service card that meets the preferential conditions is determined, thereby improving the accuracy and efficiency of the search.
[0058] Based on the first embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Before step S20, the following steps are also included: Monitoring the number of service cards to be dispatched; If the number of the service cards to be dispatched reaches a preset warning threshold, the average generation time of the work orders to be dispatched is obtained; If the average generation time of the work orders to be dispatched exceeds a preset time threshold, a first alarm message is generated; If the number of the service cards to be dispatched reaches a preset danger threshold, the first alarm information is directly generated.
[0059] In this embodiment, the number of service cards to be dispatched in the database or cache is queried in real time or periodically and stored. A warning threshold and a danger threshold are set, and the threshold can be adjusted according to actual business needs and system capacity. When the number of service cards to be dispatched reaches the warning threshold, the generation time of all work orders to be dispatched in the recent period is queried, and the average generation time of these work orders is calculated. If the number of service cards to be dispatched reaches the warning threshold, and the average generation time exceeds the preset time threshold, a first alarm message is generated. If the number of service cards to be dispatched directly reaches the danger threshold, the first alarm message is directly generated regardless of whether the average generation time exceeds the preset time threshold. After the alarm message is generated, the alarm message is sent to the relevant person in charge or team.
[0060] For example, the warning threshold is 70, the danger threshold is 100, and the time threshold is 10s. When the number of service cards to be dispatched reaches 70, the generation time of all work orders to be dispatched in the last hour is queried, and the average generation time of these work orders is calculated.
[0061] In this embodiment, by setting the warning threshold and the danger threshold, an early warning can be issued before the backlog of service cards to be dispatched reaches a certain level, thus preventing the problem from further deteriorating. After the alarm information is generated, the relevant personnel can respond and handle it quickly. By analyzing the average generation time of the work orders to be dispatched and the number of service cards to be dispatched, resources can be allocated more reasonably, such as adjusting the allocation of manpower and optimizing the dispatch algorithm.
[0062] Based on the first embodiment of the present application, in the sixth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above introduction, and will not be described in detail later. After step S20, the following steps are also included: When the generation failure information of the work order to be dispatched is obtained, the step of regenerating the work order to be dispatched is performed again according to the preset retry interval; When the number of times of regenerating the work order to be dispatched reaches a preset maximum number of retries, a second alarm message is generated.
[0063] In this embodiment, in the process of generating the work order to be dispatched, the generation status of the work order is monitored in real time. If the work order generation fails, the failure information is captured and the retry mechanism is triggered. The retry interval and the maximum number of retries are set. The retry interval indicates how long to wait before trying again after each work order generation failure.
[0064] The maximum number of retries means that if the generation still fails after reaching this number, the retry will stop.
[0065] When the generation failure information of the work order to be dispatched is obtained, a timer is started and the countdown is performed according to the preset retry interval. After the countdown ends, the steps of generating the work order to be dispatched are re-executed. If the work order is successfully generated, the retry mechanism ends; if it still fails, the countdown continues according to the retry interval until the maximum number of retries is reached. When the number of automatic retries reaches the preset maximum number of retries, it means that the problem of work order generation may be serious. At this time, a second alarm message is generated and sent to the relevant person in charge or team. The alarm message can contain detailed information on the failure to generate the work order, the number of retries, the time of the last attempt, etc., so that relevant personnel can analyze and handle it.
[0066] In this embodiment, the retry mechanism can solve the problem of work order generation failure due to temporary failures or network problems, thereby improving the robustness and stability of the system. In addition, the retry mechanism can automatically solve the problem of work order generation failure, reduce the need for manual intervention, and improve work efficiency. By setting the maximum number of retries, infinite retries can be prevented from consuming resources. Setting the retry interval according to the error type and business needs can avoid the pressure on the system caused by frequent retries. The retry mechanism and the alarm mechanism can ensure that the work orders to be dispatched can be generated in a timely and accurate manner, thereby improving user experience and service quality.
[0067] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the automatic dispatching method of the service card of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0068] The present application provides a service card automatic dispatching device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the service card automatic dispatching method in the above-mentioned embodiment one.
[0069] Reference below Figure 6, which shows a schematic diagram of the structure of a service card automatic dispatching device suitable for implementing the embodiment of the present application. The service card automatic dispatching device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The service card automatic dispatching device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0070] like Figure 6 As shown, the service card automatic dispatching device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the service card automatic dispatching device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the service card automatic dispatching device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a service card automatic dispatching device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0071] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0072] The service card automatic dispatching device provided by the present application adopts the service card automatic dispatching method in the above embodiment, which can solve the technical problem of how to realize automatic dispatching of service cards without manual participation. Compared with the prior art, the beneficial effects of the service card automatic dispatching device provided by the present application are the same as the beneficial effects of the service card automatic dispatching method provided by the above embodiment, and other technical features in the service card automatic dispatching device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0073] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0074] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0075] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the automatic dispatching method for service cards in the above-mentioned embodiment.
[0076] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0077] The computer-readable storage medium may be included in the service card automatic dispatching device; or it may exist independently without being assembled into the service card automatic dispatching device.
[0078] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the service card automatic dispatching device, the service card automatic dispatching device: when it is detected that the current time matches the dispatching time in the scheduled dispatching task, determines the service card to be dispatched in the scheduled dispatching task; obtains the configuration information of the service card to be dispatched, and generates a work order to be dispatched according to the configuration information; dispatches the work order to be dispatched, and determines the engineer who executes the work order to be dispatched; when the work order completion information is obtained, deducts the number of times the service card to be dispatched is used according to the number of times the work order completion information is obtained.
[0079] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0080] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0081] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0082] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned service card automatic dispatching method, and can solve the technical problem of how to realize automatic dispatching of service cards without manual intervention. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the service card automatic dispatching method provided in the above-mentioned embodiment, and will not be repeated here.
[0083] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned service card automatic dispatching method.
[0084] The computer program product provided by the present application can solve the technical problem of how to automatically dispatch service cards without human intervention. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the automatic dispatching method for service cards provided by the above embodiment, and will not be described in detail here.
[0085] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for automatically dispatching service cards, characterized in that: The method includes: When it is detected that the current time matches the dispatch time in the scheduled dispatch task, determining the service card to be dispatched in the scheduled dispatch task; Obtaining configuration information of the service card to be dispatched, and generating a work order to be dispatched according to the configuration information; Dispatching the work order to be dispatched and determining the engineer to execute the work order to be dispatched; When the work order completion information is obtained, the number of times the service card to be dispatched is used is deducted according to the number of times the work order completion information is obtained.
2. The method according to claim 1, characterized in that When it is detected that the current time matches the dispatching time in the scheduled dispatching task, the step of determining the service card to be dispatched in the scheduled dispatching task includes: Determining the usage count of the to-be-dispatched service card; If the number of times used is not zero, determining whether the service card to be dispatched is dispatched for the first time; If it is the first time to dispatch the order, the dispatch time is determined based on the service card payment time of the service card to be dispatched; If it is not the first order dispatch, the dispatch time is determined based on the completion time of the service card work order of the service card to be dispatched.
3. The method according to claim 1, characterized in that Before the step of obtaining the configuration information of the service card to be dispatched and generating the work order to be dispatched according to the configuration information, the method further includes: Determining the configuration information of the service card to be dispatched; Verify whether the configuration information is correct. If correct, generate the work order to be dispatched according to the configuration information.
4. The method according to claim 1, characterized in that The method further comprises: When the work order completion information is not obtained, the work order to be dispatched is re-dispatched until the work order completion information is obtained.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Obtain target preferential service cards and target preferential service card information that meet preferential conditions; Generate a preferential work order according to the target preferential service card information; After obtaining the customer's confirmation information on the preferential work order, the preferential work order is dispatched.
6. The method according to claim 5, characterized in that The step of obtaining a target preferential service card that meets the preferential conditions includes: Obtain multiple first-rate preferential service cards based on the most recently unused algorithm; The first preferential service cards are selected in descending order of unused time and in a preset quantity to obtain the target preferential service card.
7. The method according to claim 1, characterized in that Before the step of obtaining the configuration information of the service card to be dispatched and generating the work order to be dispatched according to the configuration information, the method further includes: Monitoring the number of service cards to be dispatched; If the number of the service cards to be dispatched reaches a preset warning threshold, the average generation time of the work orders to be dispatched is obtained; If the average generation time of the work orders to be dispatched exceeds a preset time threshold, a first alarm message is generated; If the number of the service cards to be dispatched reaches a preset danger threshold, the first alarm information is directly generated.
8. The method according to claim 1, characterized in that After the step of obtaining the configuration information of the service card to be dispatched and generating the work order to be dispatched according to the configuration information, the method further includes: When the generation failure information of the work order to be dispatched is obtained, the step of regenerating the work order to be dispatched is performed again according to the preset retry interval; When the number of times of regenerating the work order to be dispatched reaches a preset maximum number of retries, a second alarm message is generated.
9. A service card automatic dispatching device, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the service card automatic dispatching method as described in any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the service card automatic dispatching method as described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method and system for processing timing task, electronic equipment and computer readable medium
CN108874513A
Service distribution processing method and device, storage medium and electronic equipment
CN118171880A
Gas service dynamic order dispatching method and related equipment
CN118195270A
Method and apparatus for managing tasks of worker
KR102688300B1
Cited By
Intelligent dispatching method for energy storage power station
CN121146411A
