Track early warning method and device, storage medium and electronic equipment

By obtaining and updating the time thresholds and actual transportation trajectories of order trajectory nodes, and generating and updating early warning task data, the problem of insufficient order trajectory monitoring in the e-commerce platform's distribution system is solved, and the order delivery rate is improved.

CN118586972APending Publication Date: 2024-09-03BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310225283.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In the distribution system of the e-commerce platform, due to the large number of carriers and unstable external interfaces, order trajectories are incomplete and trajectory mapping relationships are configured incorrectly. There is a lack of a full-process monitoring mechanism, and order trajectory problems cannot be discovered in a timely manner.

Method used

By obtaining the preset transportation trajectory node of the target order, generate early warning task data based on the order time and preconfigured time threshold, receive the actual transportation trajectory update early warning task data, generate trajectory early warning data, and notify relevant personnel via email.

Benefits of technology

It has realized the whole-process monitoring of order trajectories, discovered problems in time, and improved the order delivery rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586972A
    Figure CN118586972A
Patent Text Reader

Abstract

The invention provides a track early warning method and device, a storage medium and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: acquiring one or more order track nodes on a preset transportation track of a target order; according to the order placing time of the target order and a pre-configured time threshold value of each order trajectory node, generating early warning task data of the target order, the early warning task data of the target order including the early warning time of each order trajectory node; and generating track early warning data of the target order according to the early warning time of each order track node. According to the method, the early-warning task data of the target order is generated after the target order is successfully ordered, and then the track of the target order is subjected to full-process monitoring according to the early-warning task data to obtain the track early-warning data of the target order, so that the track of the target order can be subjected to full-process monitoring, and problems occurring in the track of the target order can be found in time; and the order investment rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a trajectory warning method, device, storage medium and electronic device. Background Art

[0002] The distribution system of the e-commerce platform is connected to the carrier. The carrier will generate the corresponding track according to the actual delivery situation of the order, and then the carrier will push the track to the distribution system of the e-commerce platform through the interface. Since there are many carriers connected to the distribution system, the external interface call is also relatively unstable, and the mapping relationship of the carrier track is complex, and problems such as incomplete order tracks and incorrect configuration of the carrier track mapping relationship often occur. In the related technology, there is no full-process monitoring mechanism for the order track, which leads to the failure to timely discover problems with the order track.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present disclosure is to provide a trajectory warning method, device, storage medium and electronic device to at least solve the problem in the related art that the order trajectory cannot be discovered in time.

[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0006] According to one aspect of the present disclosure, a trajectory warning method is provided, including: obtaining one or more order trajectory nodes on a preset transportation trajectory of a target order; generating warning task data of the target order according to the order placement time of the target order and the pre-configured time thresholds of each of the order trajectory nodes, the warning task data of the target order including the warning time of each of the order trajectory nodes; generating trajectory warning data of the target order according to the warning time of each of the order trajectory nodes.

[0007] In an optional embodiment of the present disclosure, the method further includes: receiving an actual transportation track of the target order; if it is determined that the target order has not been successfully delivered or has been rejected based on the actual transportation track of the target order, updating the early warning task data of the target order based on the actual transportation track of the target order.

[0008] In an optional embodiment of the present disclosure, updating the early warning task data of the target order according to the actual transportation trajectory of the target order includes: obtaining a target trajectory node corresponding to the actual transportation trajectory of the target order, the target trajectory node being a node among the one or more order trajectory nodes; and updating the early warning task data of the target order according to the actual arrival time of the target trajectory node.

[0009] In an optional embodiment of the present disclosure, updating the warning task data of the target order according to the actual arrival time of the target trajectory node includes: determining a node to be processed, the node to be processed being a node after the target trajectory node among the one or more order trajectory nodes; querying the time threshold of the node to be processed from the pre-configured time thresholds of each of the order trajectory nodes; and updating the warning time of the node to be processed according to the actual arrival time of the target trajectory node and the time threshold of the node to be processed.

[0010] In an optional embodiment of the present disclosure, the trajectory warning data of the target order is generated according to the warning time of each of the order trajectory nodes, including: for each of the order trajectory nodes, the warning data of the order trajectory node is generated according to the following method: from the warning task data of the target order, the warning time of the order trajectory node is queried; if the actual transportation trajectory of the order trajectory node is not received within the warning time of the order trajectory node, the warning data of the order trajectory node is generated.

[0011] In an optional embodiment of the present disclosure, the generating of trajectory warning data of the target order according to the warning time of each of the order trajectory nodes includes: for each of the order trajectory nodes, generating the warning data of the order trajectory node according to the following method: querying the warning time of the order trajectory node from the warning task data of the target order; obtaining the node after the order trajectory node from the one or more order trajectory nodes; if within the warning time of the order trajectory node, the actual transportation trajectory of the order trajectory node is not received and the actual transportation trajectory of the obtained node is received, then determining not to generate the warning data of the order trajectory node.

[0012] In an optional embodiment of the present disclosure, after generating the trajectory warning data of the target order, the method further includes: generating warning email data corresponding to the trajectory warning data of the target order, storing the generated warning email data in a cache; performing statistics on the warning email data in the cache, and then issuing a warning based on the statistical results.

[0013] In an optional embodiment of the present disclosure, the method further includes: if it is determined that the target order is successfully delivered or rejected based on the actual transportation trajectory of the target order, deleting the warning task data of the target order and the trajectory warning data of the target order.

[0014] According to another aspect of the present disclosure, a trajectory warning device is provided, including: a trajectory node acquisition module, used to acquire one or more order trajectory nodes on a preset transportation trajectory of a target order; a task generation module, used to generate warning task data of the target order according to the order placement time of the target order and the pre-configured time thresholds of each of the order trajectory nodes, the warning task data of the target order including the warning time of each of the order trajectory nodes; a warning data generation module, used to generate trajectory warning data of the target order according to the warning time of each of the order trajectory nodes.

[0015] In an optional embodiment of the present disclosure, the device also includes a task update module, which is used to: receive the actual transportation trajectory of the target order; if it is determined that the target order has not been successfully delivered or has been rejected based on the actual transportation trajectory of the target order, then update the early warning task data of the target order based on the actual transportation trajectory of the target order.

[0016] In an optional embodiment of the present disclosure, the task update module is also used to: obtain the target trajectory node corresponding to the actual transportation trajectory of the target order, and the target trajectory node is a node among the one or more order trajectory nodes; according to the actual arrival time of the target trajectory node, update the early warning task data of the target order.

[0017] In an optional embodiment of the present disclosure, the task update module is also used to: determine a node to be processed, the node to be processed being a node among the one or more order trajectory nodes that is after the target trajectory node; query the time threshold of the node to be processed from the pre-configured time thresholds of each of the order trajectory nodes; and update the warning time of the node to be processed according to the actual arrival time of the target trajectory node and the time threshold of the node to be processed.

[0018] In an optional embodiment of the present disclosure, the task generation module is also used to: for each of the order trajectory nodes, generate early warning data of the order trajectory node according to the following method: query the early warning time of the order trajectory node from the early warning task data of the target order; if the actual transportation trajectory of the order trajectory node is not received within the early warning time of the order trajectory node, generate early warning data of the order trajectory node.

[0019] In an optional embodiment of the present disclosure, the task generation module is also used to: for each of the order trajectory nodes, generate early warning data of the order trajectory node according to the following method: query the early warning time of the order trajectory node from the early warning task data of the target order; obtain the node after the order trajectory node from the one or more order trajectory nodes; if within the warning time of the order trajectory node, the actual transportation trajectory of the order trajectory node is not received and the actual transportation trajectory of the acquired node is received, then determine not to generate early warning data for the order trajectory node.

[0020] In an optional embodiment of the present disclosure, the device also includes an early warning module, which is used to: generate early warning email data corresponding to the trajectory early warning data of the target order, and store the generated early warning email data in a cache; perform statistics on the early warning email data in the cache, and then issue an early warning based on the statistical results.

[0021] In an optional embodiment of the present disclosure, the device also includes a data deletion module, which is used to: if it is determined that the target order is successfully delivered or rejected based on the actual transportation trajectory of the target order, then delete the warning task data of the target order and the trajectory warning data of the target order.

[0022] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned trajectory warning method is implemented.

[0023] According to another aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned trajectory warning method by executing the executable instructions.

[0024] The trajectory warning method provided by the embodiment of the present disclosure obtains one or more order trajectory nodes contained in the preset transportation trajectory of the target order after the target order is successfully placed, and generates warning task data of the target order according to the order placement time of the target order and the pre-configured time threshold of each order trajectory node, and the warning task data includes the warning time of each order trajectory node, and the trajectory warning data of the target order is generated using the warning time of each order trajectory node. Since the warning task data of the target order includes the warning time of each order trajectory node, the target order can be monitored throughout the entire process, and problems with the target order trajectory can be discovered in a timely manner, solving the problem of not being able to discover the order trajectory in a timely manner in the related technology, and improving the order delivery rate.

[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0027] Figure 1 is a schematic diagram of a system architecture of a trajectory warning method according to an exemplary embodiment;

[0028] Figure 2 is a flow chart of a trajectory warning method according to an exemplary embodiment;

[0029] Figure 3 is a flow chart showing updating early warning task data according to an actual transportation track of a target order according to an exemplary embodiment;

[0030] Figure 4 is a flow chart showing updating early warning task data according to the actual arrival time of the target trajectory node according to an exemplary embodiment;

[0031] Figure 5 is a schematic diagram showing that a node is not missing and no warning data is generated according to an exemplary embodiment;

[0032] Figure 6 is a schematic diagram showing that a node is not missing and warning data is generated according to an exemplary embodiment;

[0033] Figure 7 is a schematic diagram showing a node missing and no warning data generated according to an exemplary embodiment;

[0034] Figure 8 is a schematic diagram showing node loss and generation of warning data according to an exemplary embodiment;

[0035] Fig. 9 is a structural diagram of a trajectory warning system according to an exemplary embodiment;

[0036] Fig.10 is an overall workflow diagram for early warning of the trajectory of a target order according to an exemplary embodiment;

[0037] Fig.11 is a block diagram of a trajectory warning device according to an exemplary embodiment; and

[0038] Fig.12 It is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0039] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein.

[0041] The following example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0042] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0043] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0044] Figure 11 is a schematic diagram of a system architecture of a trajectory warning method according to an exemplary embodiment, and the system architecture includes a server 101, a network 102, and a client 103. The network 102 is used to provide a medium for a communication link between the client 103 and the server 101. The network 102 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0045] Among them, server 101 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some practical applications, server 101 can also be a server of a network platform, and the network platform can be, for example, a trading platform, a live broadcast platform, a social platform, or a music platform, etc., which is not limited in the embodiments of the present disclosure. Among them, the server can be a single server or a cluster formed by multiple servers, and the present disclosure does not limit the specific architecture of the server.

[0046] The client 103 may include, but is not limited to, electronic devices such as smart phones, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, AR (Augmented Reality) devices, VR (Virtual Reality) devices, and smart wearable devices, or the client 103 may also be a personal computer, such as a laptop computer and a desktop computer, etc. Optionally, the operating system running on the electronic device may include, but is not limited to, Android, IOS, Linux, Windows, etc.

[0047] In order to enable ordinary persons in the art to better understand the technical solution of the present disclosure, each step of the trajectory warning method of the embodiment of the present disclosure will be described in more detail below with reference to the accompanying drawings and embodiments.

[0048] Figure 2 is a flow chart of a trajectory warning method according to an exemplary embodiment. Figure 2 , this method is applied to Figure 1 The server shown in the figure specifically includes the following steps.

[0049] Step S201: Obtain one or more order track nodes on a preset transportation track of a target order.

[0050] In the disclosed embodiment, the target order refers to a successfully placed order, and the preset transportation track refers to a pre-set order transportation route. In the disclosed embodiment, the target order may include not only orders submitted by users on the e-commerce platform, but also local delivery orders, such as takeout orders and express delivery orders, and the preset transportation tracks are takeout transportation tracks and express delivery transportation tracks.

[0051] After the target order is successfully placed, the preset transportation track of the target order, that is, the transportation route of the target order, can be determined, and then based on the pre-configured standard track nodes, one or more order track nodes included in the transportation route of the target order can be determined. Among them, the pre-configured standard track nodes refer to the pre-configured track nodes that need to be monitored, which can be set according to actual needs.

[0052] For example, the preset transportation track of the target order is location 1-location 2-location 3-location 4, and carrier 1 is responsible for transporting the target order from location 1 to location 2, and carrier 2 is responsible for transporting from location 2 to location 4. Based on the pre-configured standard trajectory nodes, location 1 to location 2, location 2 to location 3, and location 3 to location 4 are determined as the trajectory nodes that need to be monitored, so the order trajectory nodes of the target order can be obtained in order: node A from location 1 to location 2, node B from location 2 to location 3, and node C from location 3 to location 4.

[0053] Step S202: Generate warning task data for the target order based on the order placement time of the target order and the pre-configured time thresholds of each order trajectory node, wherein the warning task data for the target order includes the warning time of each order trajectory node.

[0054] For an order trajectory node, the time threshold of the order trajectory node may refer to the transportation time threshold from the previous order trajectory node of the order trajectory node to the order trajectory node. For example, the order trajectory nodes of the target order are node A, node B, and node C, respectively. Among them, the time threshold of node A refers to the transportation time threshold from the pre-set order time to node A, such as 1 hour; the time threshold of node B refers to the transportation time threshold from node A to node B, such as 2 hours; the time threshold of node C refers to the transportation time threshold from node B to node C, such as 3 hours.

[0055] In the disclosed embodiment, the time threshold of each order trajectory node can be set according to historical data, and the time threshold of each order trajectory node can be updated according to actual operation data, so that the set time threshold of each order trajectory node is more stable, thereby being able to promptly discover problems with the target order trajectory.

[0056] In this step, the warning time of each order trajectory node can be calculated according to the order placement time of the target order and the time threshold of each order trajectory node, that is, the warning task data of the target order is generated.

[0057] For example, if the order time of the target order is 00:00, the warning time of node A is 00:00 plus 1 hour (the time threshold of node A), that is, 1:00, the warning time of node B is 1:00 plus 2 hours (the time threshold of node B), that is, 3:00, and the warning time of node C is 3:00 plus 3 hours (the time threshold of node C), that is, 6:00.

[0058] Step S203: Generate trajectory warning data of the target order according to the warning time of each order trajectory node.

[0059] In this step, the warning data of each order trajectory node can be generated according to the warning time of each order trajectory node, that is, the trajectory warning data of the target order can be obtained according to the warning data of each order trajectory node.

[0060] In an optional embodiment of the present disclosure, after generating trajectory warning data of the target order, the trajectory warning method may further include: generating warning email data corresponding to the trajectory warning data of the target order, storing the generated warning email data in a cache; performing statistics on the warning email data in the cache, and then issuing a warning based on the statistical results.

[0061] Specifically, after generating the trajectory warning data of the target order, a warning email attachment of the target order can be generated, and then the warning email attachment of the target order can be stored in the cache. In this way, the warning email attachment in the cache can be counted, and the warning email attachment of the target order can be sent to relevant personnel according to the statistical results.

[0062] In the disclosed embodiment, the number of warnings can be pre-configured, and the number of warnings is used to control the number of pushes of warning email attachments; the mailboxes of relevant personnel can also be pre-configured so that the trajectory warning data can be sent to the relevant personnel in a timely manner.

[0063] It should be noted that after the distribution system of the e-commerce system successfully sends the target order to the carrier, it is divided into two situations: one-order with only one package and one-order with multiple packages. One-order with only one package means that a target order has only one package, and one-order with multiple packages means that a target order contains multiple packages.

[0064] If a target order has only one package, the target order can be understood as the package contained in the target order. Then, analyzing the trajectory information of the target order is analyzing the trajectory information of the package, and the generated trajectory warning data of the target order is the trajectory warning data of the package.

[0065] If a target order contains multiple packages, the trajectory information of the target order is analyzed, that is, the trajectory information of multiple packages is analyzed, and the trajectory warning data of the target order generated is the trajectory warning data of multiple packages. That is, each package contained in the target order is analyzed, one or more order trajectory nodes of the package are obtained, and the warning time of each order trajectory node of the package is generated, and then the trajectory warning data of the package is generated according to the generated warning time to obtain the trajectory warning data of each package. In this way, the trajectory warning data of the target order is generated according to the trajectory warning data of each package.

[0066] The trajectory warning method provided by the embodiment of the present disclosure obtains one or more order trajectory nodes contained in the preset transportation trajectory of the target order after the target order is successfully placed, and generates warning task data of the target order according to the order placement time of the target order and the pre-configured time threshold of each order trajectory node, and the warning task data includes the warning time of each order trajectory node, and the trajectory warning data of the target order is generated using the warning time of each order trajectory node. Since the warning task data of the target order includes the warning time of each order trajectory node, the target order can be monitored throughout the entire process, and problems with the target order trajectory can be discovered in a timely manner, solving the problem of not being able to discover the order trajectory in a timely manner in the related technology, and improving the order delivery rate.

[0067] Figure 3 FIG. 1 is a flow chart showing updating early warning task data according to the actual transportation track of a target order according to an exemplary embodiment. Figure 3 As shown, the warning task data can be updated as follows.

[0068] Step S301: Receive the actual transportation track of the target order.

[0069] The actual transportation track of the target order refers to the actual transportation route of the packages included in the target order. In actual transportation, there are cases where the actual transportation tracks are repeated. In this case, the first actual transportation track received is analyzed.

[0070] For example, the preset transportation track of the target order is location 1-location 2-location 3-location 4, and the order track nodes of the target order are node A from location 1 to location 2, node B from location 2 to location 3, and node C from location 3 to location 4. Assume that the package included in the target order stays at location 2 for 2 days, and carrier 1 will push the same transportation track "the package is transported to location 2 at XXX time" many times during these 2 days. In this case, the first received transportation track "the package is transported to location 2 at XXX time" is analyzed, and other tracks that are the same as this track do not need to be analyzed.

[0071] In addition, when a skip-level trajectory node is received during actual transportation, the intermediate trajectory can be ignored. For example, after the package of the target order arrives at location 3, carrier 2 does not push the transportation trajectory. After the package of the target order arrives at location 4, carrier 2 pushes the transportation trajectory "the package is transported to location 4 at XXX time". In this case, the transportation trajectory of the package of the target order arriving at location 3 can be ignored, and the transportation trajectory "the package is transported to location 4 at XXX time" can be directly analyzed.

[0072] In the disclosed embodiment, after receiving the actual transport track of the target order, if there are identical transport tracks, the first transport track received from multiple identical transport tracks can be selected for analysis; and if there is a skip track node received, the intermediate track can be ignored. In this way, it is possible to avoid analyzing the same transport track, and directly ignore the intermediate track when receiving a skip track node, thereby improving the analysis efficiency of the track, and then the early warning task data of the target order can be updated in a timely manner.

[0073] Step S302: If it is determined that the target order has not been successfully delivered or has been rejected according to the actual transportation track of the target order, the early warning task data of the target order is updated according to the actual transportation track of the target order.

[0074] In an optional embodiment of the present disclosure, if it is determined that the target order is successfully delivered or rejected based on the actual transportation trajectory of the target order, the warning task data of the target order and the trajectory warning data of the target order are deleted.

[0075] After receiving the actual transport track of the target order, determine whether the target order has been successfully delivered or rejected based on the actual transport track. If it is determined that the target order has not been successfully delivered or rejected, the warning task data of the target order can be updated based on the actual transport track, that is, the warning time of one or more order track nodes of the target order can be updated. If it is determined that the target order has been successfully delivered or rejected, it means that the target order has been completed and there is no need to continue monitoring the track of the target order. Therefore, the warning task data of the target order and the track warning data of the target order can be deleted.

[0076] Furthermore, updating the early warning task data of the target order according to the actual transportation trajectory of the target order may include: obtaining a target trajectory node corresponding to the actual transportation trajectory of the target order, wherein the target trajectory node is a node among one or more order trajectory nodes; and updating the early warning task data of the target order according to the actual arrival time of the target trajectory node.

[0077] After receiving the actual transportation trajectory of the target order, the target trajectory node corresponding to the actual transportation trajectory can be obtained, and then the warning time of the order trajectory node included in the target order can be updated according to the actual arrival time of the target trajectory node, so as to continue to warn the trajectory of the target order using the updated warning time of the order trajectory node.

[0078] Figure 4 FIG. 1 is a flow chart showing updating early warning task data according to the actual arrival time of the target trajectory node according to an exemplary embodiment. Figure 4 As shown, the warning task data can be updated as follows.

[0079] Step S401: determine the node to be processed, where the node to be processed is a node after the target trajectory node in one or more order trajectory nodes.

[0080] After receiving the actual transportation track of the target order, the target track node corresponding to the actual transportation track can be obtained, and the node after the target track node is determined as a to-be-processed node.

[0081] For example, the preset transportation track of the target order is location 1-location 2-location 3-location 4, and the order track nodes of the target order are node A from location 1 to location 2, node B from location 2 to location 3, and node C from location 3 to location 4. Assuming that the actual transportation track received for the target order is "the package of the target order is transported to location 2 at 0:40", the target track node is determined to be node A, and the nodes to be processed are nodes B and C after node A.

[0082] Step S402: Query the time threshold of the node to be processed from the pre-configured time thresholds of each order trajectory node.

[0083] Step S403: updating the warning time of the node to be processed according to the actual arrival time of the target trajectory node and the time threshold of the node to be processed.

[0084] After determining the node to be processed, the warning time of the node to be processed can be updated. Specifically, the time threshold of the node to be processed is queried from the pre-configured time thresholds of each order trajectory; then, the time threshold of the node to be processed is added to the actual arrival time of the target trajectory node to obtain the new warning time of the node to be processed.

[0085] For example, the actual transportation track of the target order is "the package of the target order is transported to location 2 at 0:40", and the target track node is determined to be node A, and the warning time of nodes B and C needs to be updated. Among them, the time threshold of node B is 2 hours, and the time threshold of node C is 3 hours. Then the warning time of node B is updated to 0:40 plus 2 hours, that is, 2:40, and the warning time of node C is updated to 2:40 plus 3 hours, that is, 5:40.

[0086] In the disclosed embodiment, after receiving the actual transport track of the target order, the target track node of the actual transport track can be determined, and then the nodes after the target track node can be determined as the nodes to be processed, and then the warning time of the nodes to be processed can be updated, so that the updated warning time of the nodes after the target track node can be used to warn these nodes after the target track node. In this way, the track of the target order can be monitored according to the actual operation of the target order, and problems with the track of the target order can be discovered in time, thereby improving the order delivery rate.

[0087] In an optional embodiment of the present disclosure, generating the trajectory warning data of the target order according to the warning time of each order trajectory node may include generating the warning data of the order trajectory node for each order trajectory node according to the following method:

[0088] The warning time of the order trajectory node is queried from the warning task data of the target order; if the actual transportation trajectory of the order trajectory node is not received within the warning time of the order trajectory node, the warning data of the order trajectory node is generated.

[0089] The target order includes one or more order trajectory nodes, and each order trajectory node needs to be analyzed to generate the early warning data of the order trajectory node. Specifically, the early warning time of the order trajectory node is queried from the early warning task data of the target order; it is determined whether the actual transportation trajectory of the order trajectory node is received within the early warning time of the order trajectory node; if so, it is not necessary to generate the early warning data of the order trajectory node; if not, it is necessary to generate the early warning data of the order trajectory node.

[0090] In an optional embodiment of the present disclosure, according to the warning time of each order trajectory node, the trajectory warning data of the target order is generated, and the warning data of the order trajectory node may be generated according to the following method for each order trajectory node:

[0091] From the warning task data of the target order, query the warning time of the order trajectory node; from one or more order trajectory nodes, obtain the node after the order trajectory node; if within the warning time of the order trajectory node, the actual transportation trajectory of the order trajectory node is not received and the actual transportation trajectory of the obtained node is received, it is determined that the warning data of the order trajectory node will not be generated.

[0092] In the process of analyzing each order trajectory node and generating the early warning data of the order trajectory node, the node after the order trajectory node can also be obtained, and then combined with the actual transportation trajectory of the node after the order trajectory node, it is determined whether to generate the early warning data of the order trajectory node. Specifically, the early warning time of the order trajectory node is queried from the early warning task data of the target order; and the node after the order trajectory node is queried from one or more order trajectory nodes of the target order; then, it is determined whether the actual transportation trajectory of the order trajectory node is received within the early warning time of the order trajectory node; if the actual transportation trajectory of the order trajectory node is received within the early warning time of the order trajectory node, it is not necessary to generate the early warning data of the order trajectory node; if the actual transportation trajectory of the order trajectory node is not received within the early warning time of the order trajectory node, but the actual transportation trajectory of the node after the order trajectory node is received within the early warning time of the order trajectory node, it is not necessary to generate the early warning data of the order trajectory node.

[0093] For ease of understanding, Figures 5 to 8 The warning rules of the embodiment of the present disclosure are described. For example, the preset transportation track of the target order is location 1-location 2-location 3-location 4, carrier 1 is responsible for transporting the target order from location 1 to location 2, carrier 2 is responsible for transporting from location 2 to location 4, and the order track nodes of the target order are: Node A from location 1 to location 2, Node B from location 2 to location 3, and Node C from location 3 to location 4. If the order time of the target order is 00:00, the warning time of Node A is 1:00, the warning time of Node B is 3:00, and the warning time of Node C is 6:00.

[0094] Figure 5 It is a schematic diagram showing that a node is not missing and no warning data is generated according to an exemplary embodiment. Figure 5In the example, if the actual transportation track of the package of the target order arriving at node A is received at 00:40, there is no need to generate early warning data for node A. At this time, the early warning time of node B is updated to 2:40 and the early warning time of node C is updated to 5:40. Next, if the actual transportation track of the package of the target order arriving at node B is received at 2:00, there is no need to generate early warning data for node B. At this time, the early warning time of node C is updated to 5:00. Then, if the actual transportation track of the package of the target order arriving at node C is received at 4:00, there is no need to generate early warning data for node C.

[0095] Figure 6 It is a schematic diagram showing that a node is not missing and warning data is generated according to an exemplary embodiment. Figure 6 In the example, if the actual transportation track of the package of the target order arriving at node A is received at 1:40, it means that the actual transportation track arriving at node A has not been received before 1:00, and early warning data for node A needs to be generated. At this time, the early warning time of node B is updated to 3:40 and the early warning time of node C is updated to 6:40. Next, if the actual transportation track of the package of the target order arriving at node B is received at 3:50, it means that the actual transportation track arriving at node B has not been received before 3:40, and early warning data for node B needs to be generated. At this time, the early warning time of node C is updated to 6:50. Then, if the actual transportation track of the package of the target order arriving at node C is received at 7:00, it means that the actual transportation track arriving at node C has not been received before 6:50, and early warning data for node C needs to be generated.

[0096] Figure 7 It is a schematic diagram showing that a node is missing and no warning data is generated according to an exemplary embodiment. Figure 7 In the example, the actual transportation track of the package of the target order arriving at node B is received at 00:40. Since node B is not a node after node A, and the actual transportation track of node B is received within the warning time of node A at 1:00, there is no need to generate warning data for node A. At this time, the warning time of node C is updated to 3:40. Then, the actual transportation track of the package of the target order arriving at node C is received at 2:00, and there is no need to generate warning data for node C.

[0097] Figure 8 The diagram is a schematic diagram showing node loss and generation of warning data according to an exemplary embodiment. Figure 8In the example, if the actual transportation trajectory of the package of the target order arriving at node A is not received before 1:00, it is necessary to generate early warning data for node A. At this time, since the actual transportation trajectory of node A is not received, there is no need to update the early warning time of node B and the early warning time of node C, that is, the early warning time of node B is still 3:00 and the early warning time of node C is still 6:00. Next, if the actual transportation trajectory of the package of the target order arriving at node B is received at 3:00, it is not necessary to generate early warning data for node B, nor is it necessary to pay attention to whether the actual transportation trajectory of node A will be received. At this time, the early warning time of node C is updated to 6:00. Then, if the actual transportation trajectory of the package of the target order arriving at node C is not received before 6:00, but the actual transportation trajectory arriving at node C is received at 7:00, it is necessary to generate early warning data for node C.

[0098] In the disclosed embodiment, when analyzing each order trajectory node, early warning data of the order trajectory node can be generated according to the early warning time of the order trajectory node, and whether it is necessary to generate early warning data for the order trajectory node can be determined in combination with the actual transportation trajectory of the node after the order trajectory node. This takes into account various situations of the target order in the actual transportation process, and can monitor each order trajectory node of the target order, promptly discover problems with the target order trajectory, and improve the order delivery rate.

[0099] Fig. 9 FIG. 1 is a structural diagram of a trajectory warning system according to an exemplary embodiment. Fig. 9 As shown, the trajectory warning system includes warning query, scheduled tasks and data maintenance parts.

[0100] Among them, the early warning query includes order track statistics query, order track detail query and early warning history detail query. Order track statistics query is used to provide statistical query functions in the order dimension, including order status, operation time, etc.; order track detail query is used to provide detailed query functions in the package dimension; early warning history detail query is used to provide detailed query functions for early warning history records.

[0101] Scheduled tasks include early warning data capture tasks, email data capture tasks, and push early warning email tasks. Early warning data capture tasks are used to: capture early warning data according to the configured early warning rules, and place the early warning data in the early warning history detail table and early warning email task table; email data capture tasks are used to: capture early warning data that needs to be pushed emails according to the configured early warning rules, and generate email attachments; push early warning email tasks are used to: send the generated early warning files by email according to the configured early warning rules.

[0102] Data maintenance includes early warning basic information maintenance and early warning rule data maintenance. Early warning basic information maintenance can refer to early warning rule configuration in the carrier product dimension; early warning rule data maintenance can refer to early warning rule configuration in the order product dimension. Considering that in actual production, an order may be completed by multiple carriers, for example, a package to be mailed to the destination may be delivered by carrier 1 first and then by carrier 2. Therefore, when configuring early warning rules, you can consider the early warning configuration in the carrier dimension and the early warning configuration of the entire transportation route of the package.

[0103] It should be noted that the above has been Figures 5 to 8 The warning rules configured in the embodiment of the present disclosure are described and will not be repeated here.

[0104] Fig.10 FIG. 1 is a diagram showing an overall workflow for early warning of the trajectory of a target order according to an exemplary embodiment. Fig.10 As shown, the overall workflow may include:

[0105] (1) Synchronize order data through binLake (i.e., a data heterogeneous product that parses MySQL binlog logs and parses data change events through message queues). When the target order is successfully placed, the target order is added to the order track table. The target order includes one or more order track nodes.

[0106] And, according to the time threshold of each order trajectory node in the pre-configured warning rule, the warning task data of the target order is created in the warning task table. Specifically, the pre-configured time threshold of each order trajectory node of the target order is added to the order placement time of the target order to obtain the warning time of each order trajectory node.

[0107] In addition, if the order is canceled, the data in the relevant table will be deleted.

[0108] (2) When the actual transportation track of the target order is received, if it is determined that the target order is not delivered properly and is rejected, the data in the warning task table is modified according to the time threshold of each order track node in the pre-configured warning rules, that is, the warning time of each order track node of the target order in the warning task data table is modified.

[0109] If it is determined that the target order has been successfully delivered and rejected, the data in the warning task table and the warning email task table will be deleted.

[0110] In addition, it is necessary to record the operation time of the track to update the order track table, thereby providing a data source for the order track statistical query function and the order track detail query function.

[0111] (3) Scan the warning task table through scheduled tasks to generate warning data.

[0112] Specifically, for the order trajectory node of the target order, if the warning time of the order trajectory node is less than the current time, that is, the actual transportation trajectory of the order trajectory node has not been received within the warning time of the order trajectory node, then the warning data of the order trajectory node is generated, the warning data is captured, and the captured warning data is respectively placed in the warning email table and the warning history details table, and an alarm is issued to notify the relevant person in charge.

[0113] (4) Scan the warning email table through a scheduled task, collect statistics on the warning data and store them in a cache, and generate relevant email attachment files.

[0114] (5) Scan the warning attachments through a scheduled task, query the statistical results in the cache, and then send the attachments to relevant business personnel.

[0115] Fig.11 FIG. 1 is a block diagram of a trajectory warning device according to an exemplary embodiment. Fig.11 As shown, the trajectory warning device 1100 includes: a trajectory node acquisition module 1110 , a task generation module 1120 and a warning data generation module 1130 .

[0116] Among them, the trajectory node acquisition module 1110 can be used to: obtain one or more order trajectory nodes on the preset transportation trajectory of the target order; the task generation module 1120 can be used to: generate early warning task data of the target order according to the order time of the target order and the pre-configured time thresholds of each order trajectory node, wherein the early warning task data of the target order includes the early warning time of each order trajectory node; the early warning data generation module 1130 can be used to: generate trajectory early warning data of the target order according to the early warning time of each order trajectory node.

[0117] In an optional embodiment of the present disclosure, the trajectory warning device 1100 also includes a task update module 1140, which can be used to: receive the actual transportation trajectory of the target order; if it is determined that the target order has not been successfully delivered or has been rejected based on the actual transportation trajectory of the target order, then update the warning task data of the target order based on the actual transportation trajectory of the target order.

[0118] In an optional embodiment of the present disclosure, the task update module 1140 can also be used to: obtain the target trajectory node corresponding to the actual transportation trajectory of the target order, the target trajectory node is a node among one or more order trajectory nodes; and update the early warning task data of the target order according to the actual arrival time of the target trajectory node.

[0119] In an optional embodiment of the present disclosure, the task update module 1140 can also be used to: determine the node to be processed, which is a node after the target trajectory node in one or more order trajectory nodes; query the time threshold of the node to be processed from the pre-configured time thresholds of each order trajectory node; and update the warning time of the node to be processed according to the actual arrival time of the target trajectory node and the time threshold of the node to be processed.

[0120] In an optional embodiment of the present disclosure, the task generation module 1120 can also be used to: for each order trajectory node, generate early warning data of the order trajectory node according to the following method: query the early warning time of the order trajectory node from the early warning task data of the target order; if the actual transportation trajectory of the order trajectory node is not received within the early warning time of the order trajectory node, generate early warning data of the order trajectory node.

[0121] In an optional embodiment of the present disclosure, the task generation module 1120 can also be used to: for each order trajectory node, generate early warning data of the order trajectory node according to the following method: query the early warning time of the order trajectory node from the early warning task data of the target order; obtain the node after the order trajectory node from one or more order trajectory nodes; if within the warning time of the order trajectory node, the actual transportation trajectory of the order trajectory node is not received and the actual transportation trajectory of the acquired node is received, then determine not to generate early warning data for the order trajectory node.

[0122] In an optional embodiment of the present disclosure, the trajectory warning device 1100 also includes a warning module 1150, which can be used to: generate warning email data corresponding to the trajectory warning data of the target order, and store the generated warning email data in a cache; perform statistics on the warning email data in the cache, and then issue a warning based on the statistical results.

[0123] In an optional embodiment of the present disclosure, the trajectory warning device 1100 also includes a data deletion module 1160, which can be used to: if it is determined that the target order is successfully delivered or rejected based on the actual transportation trajectory of the target order, then the warning task data of the target order and the trajectory warning data of the target order are deleted.

[0124] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0125] Fig.12 is a structural block diagram of an electronic device according to an exemplary embodiment. Fig.12 1200 according to this embodiment of the present disclosure is described. Fig.12The electronic device 1200 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0126] like Fig.12 As shown, the electronic device 1200 is in the form of a general computing device. The components of the electronic device 1200 may include, but are not limited to: the at least one processing unit 1210, the at least one storage unit 1220, a bus 1230 connecting different system components (including the storage unit 1220 and the processing unit 1210), and a display unit 1240.

[0127] The storage unit stores program codes, which can be executed by the processing unit 1210, so that the processing unit 1210 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 1210 can perform the following steps: Figure 2 Follow the steps shown in .

[0128] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1221 and a cache memory unit 1222 , and may further include a read-only memory unit (ROM) 1223 .

[0129] The storage unit 1220 may also include a program / utility 1224 having a set (at least one) of program modules 1225, such program modules 1225 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0130] Bus 1230 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0131] The electronic device 1200 may also communicate with one or more external devices 1270 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1200, and may communicate with any device that enables the electronic device 1200 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1250. Furthermore, the electronic device 1200 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and public networks, such as the Internet) via a network adapter 1260. As shown, the network adapter 1260 communicates with other modules of the electronic device 1200 via a bus 1230. It should be understood that, although not shown in the figure, other hardware and software modules may be used in conjunction with the electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0132] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0133] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of the device to complete the above method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0134] In an exemplary embodiment, a computer program product is also provided, including a computer program and instructions. When the computer program and the instructions are executed by a processor, the online file processing method in the above embodiment is implemented.

[0135] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0136] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A trajectory warning method, characterized in that: include: Obtain one or more order track nodes on a preset transportation track of a target order; Generate early warning task data of the target order according to the order placement time of the target order and the pre-configured time threshold of each of the order trajectory nodes, wherein the early warning task data of the target order includes the early warning time of each of the order trajectory nodes; According to the warning time of each order trajectory node, the trajectory warning data of the target order is generated.

2. The method according to claim 1, characterized in that The method further comprises: Receiving the actual transportation track of the target order; If it is determined that the target order has not been successfully delivered or has been rejected according to the actual transportation track of the target order, the early warning task data of the target order is updated according to the actual transportation track of the target order.

3. The method according to claim 2, characterized in that The updating of the early warning task data of the target order according to the actual transportation track of the target order includes: Acquire a target trajectory node corresponding to the actual transportation trajectory of the target order, where the target trajectory node is a node among the one or more order trajectory nodes; According to the actual arrival time of the target trajectory node, the early warning task data of the target order is updated.

4. The method according to claim 3, characterized in that The updating of the warning task data of the target order according to the actual arrival time of the target trajectory node includes: Determine a node to be processed, where the node to be processed is a node after the target trajectory node among the one or more order trajectory nodes; Query the time threshold of the node to be processed from the pre-configured time thresholds of each of the order track nodes; According to the actual arrival time of the target trajectory node and the time threshold of the node to be processed, the warning time of the node to be processed is updated.

5. The method according to claim 2, characterized in that: Generating the trajectory warning data of the target order according to the warning time of each order trajectory node includes: For each of the order track nodes, the early warning data of the order track node is generated according to the following method: Query the warning time of the order trajectory node from the warning task data of the target order; If the actual transportation trajectory of the order trajectory node is not received within the warning time of the order trajectory node, warning data of the order trajectory node is generated.

6. The method according to claim 2, characterized in that Generating the trajectory warning data of the target order according to the warning time of each order trajectory node includes: For each of the order track nodes, the early warning data of the order track node is generated according to the following method: Query the warning time of the order trajectory node from the warning task data of the target order; From the one or more order track nodes, obtain a node after the order track node; If within the warning time of the order trajectory node, the actual transportation trajectory of the order trajectory node is not received and the actual transportation trajectory of the acquired node is received, it is determined that the warning data of the order trajectory node is not generated.

7. The method according to any one of claims 1 to 6, characterized in that: After generating the trajectory warning data of the target order, the method further includes: Generate early warning email data corresponding to the trajectory early warning data of the target order, and store the generated early warning email data in a cache; Statistics are collected on the warning email data in the cache, and then a warning is issued based on the statistical results.

8. The method according to claim 2, characterized in that: The method further comprises: If it is determined that the target order is successfully delivered or rejected according to the actual transportation track of the target order, the warning task data of the target order and the track warning data of the target order are deleted.

9. A trajectory warning device, characterized in that: include: A trajectory node acquisition module, used to acquire one or more order trajectory nodes of a target order; A task generation module, used to generate early warning task data of the target order according to the order placement time of the target order and the pre-configured time threshold of each of the order trajectory nodes, wherein the early warning task data of the target order includes the early warning time of each of the order trajectory nodes; The warning data generation module is used to generate the trajectory warning data of the target order according to the warning time of each order trajectory node.

10. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the trajectory warning method according to any one of claims 1 to 8.

11. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the trajectory warning method as described in any one of claims 1 to 8.