A processing method and device for lost items in logistics and electronic equipment
By building a database to calculate the preset time for express delivery items, the problem of misjudging delayed arrival of express delivery items has been solved, the accurate identification of lost items has been achieved and transportation efficiency has been improved, and the retrieval of lost items has been supported.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI SHENXUE SUPPLY CHAIN MANAGEMENT CO LTD
- Filing Date
- 2023-10-31
- Publication Date
- 2026-07-03
AI Technical Summary
Existing technology cannot distinguish between delayed arrival due to uncontrollable reasons and actual loss when determining whether a package is lost, which can easily lead to misjudgment.
By constructing a first preset database and a second preset database, the first preset time and the second preset time of the target transportation segment are calculated respectively. It is determined whether there is a delivery operation record for the express item within these time periods. If there is still no record within the second preset time period, the item is confirmed as a lost item, and the wrong transportation segment is recorded.
It reduces misjudgments of lost packages due to uncontrollable reasons, improves transportation efficiency and service quality, and can effectively recover lost items.
Smart Images

Figure CN117611042B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of logistics data processing, and in particular to a method, apparatus, and electronic device for handling lost items in logistics. Background Technology
[0002] In the logistics or express delivery industry, the loss of express items is a major pain point in the current express delivery service quality.
[0003] Nowadays, when retrieving lost packages, the main method is to check whether the package can be delivered to a pre-set designated delivery point within a specified time and whether there is a delivery operation record at the designated delivery point. If there is no delivery operation record for the package at the designated delivery point within the specified time, the package is determined to be a lost package.
[0004] However, while most express deliveries are delivered to their designated locations within the specified time, some deliveries may be delayed due to various reasons, such as weather conditions slowing down the delivery speed or road congestion causing speed limits. In these cases, the package is not lost. If the above method is still used, it may lead to a misjudgment of a lost package. Therefore, there is an urgent need for a method, device, and electronic equipment for handling lost items in logistics. Summary of the Invention
[0005] This application provides a method, apparatus, and electronic device for handling lost items in logistics, which solves the problem of misjudging lost packages due to delays in delivery to designated delivery points caused by various reasons.
[0006] The first aspect of this application provides a method for handling lost items in logistics. The method is applied to a server, and the specific steps are as follows: Obtaining multiple transport segments of the item, including a target transport segment; querying a first preset time corresponding to the target transport segment in a first preset database; the first preset database is used to store the correspondence between the target transport segment and the first preset time; determining whether there is a delivery operation record for the item in the target transport segment within the first preset time; if there is no delivery operation record for the item in the target transport segment within the first preset time, querying a second preset time corresponding to the target transport segment in a second preset database; the second preset database is used to store the correspondence between the target transport segment and the second preset time; determining whether there is a delivery operation record for the item in the target transport segment within the second preset time; if there is no delivery operation record for the item in the target transport segment within the second preset time, determining that the item is a lost item, and recording the target transport segment as the incorrect transport segment for the lost item.
[0007] By adopting the above technical solution, if the server determines that the express delivery item has not reached the destination of the target transportation route within the first preset time, that is, if there is no delivery operation record for the item at the destination of the target transportation route within the first preset time, then the server determines that the express delivery item has not been delivered to the destination of the target transportation route within the specified time. At this time, the server determines that the express delivery item may be lost, and queries the second preset database for the buffer time of the express delivery item on the target transportation route, that is, the second preset time. If the server determines that the express delivery item has not reached the destination of the target transportation route within the second preset time, that is, if there is no delivery operation record for the item at the destination of the target transportation route within the buffer time, then the server records the express delivery item as a lost item and records the target transportation route as the wrong transportation route of the lost item, thereby eliminating the possibility that the express delivery item is delayed due to other uncontrollable reasons and reducing the misjudgment of lost express delivery.
[0008] Optionally, before querying the first preset time corresponding to the target transportation segment in the first preset database, the method further includes constructing the first preset database, specifically including: obtaining the object type of the object, which includes service classification type, object value classification type, object size classification type, and object property classification type; obtaining multiple transportation speed influencing factors of the object, the segment distance of the target transportation segment, and multiple historical transportation data corresponding to the object type; calculating the first preset time based on the multiple transportation speed influencing factors, the segment distance of the target transportation segment, and the multiple historical transportation data corresponding to the object type; constructing the correspondence between the target transportation segment and the first preset time, and storing the correspondence between the target transportation segment and the first preset time in the first preset database.
[0009] By adopting the above technical solution and constructing a first preset database, the server can more effectively manage the correspondence between the target transportation segment and the first preset time. This allows the server to calculate the first preset time based on multiple factors affecting transportation speed, the distance of the target transportation segment, and multiple historical transportation data corresponding to the type of goods. This helps to better predict the first preset time of goods on the target transportation segment, thereby improving transportation efficiency and service quality.
[0010] Optionally, multiple factors affecting transportation speed include one or more of the following: transportation price, fragility, and weight of the goods; each factor affecting transportation speed corresponds to a first factor weight and a second factor weight; the first factor weight is the weight of the importance of the factor affecting transportation speed, and the second factor weight is the weight of the degree of influence of the factor affecting transportation speed on transportation speed; multiple historical transportation data include multiple historical transportation route distances and multiple historical transportation times, with one historical transportation route distance corresponding to one historical transportation time.
[0011] By using the above technical solution, and by setting multiple factors affecting transportation speed and the corresponding weights of the first and second factors for each factor, the server can calculate the first preset time based on multiple factors affecting transportation speed, the distance of the target transportation route, and multiple historical transportation data corresponding to the type of object.
[0012] Optionally, a first preset time is calculated based on the object type, the historical transportation data corresponding to the object type, and the distance of the target transportation segment. Specifically, the first preset time is calculated according to the following formula:
[0013] Where T is the first preset time, and D is the distance of the target transportation segment. i T represents the distance of the i-th historical transport segment. i For the i-th historical transport time, α j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th factor on transportation speed.
[0014] By adopting the above technical solution, the server can calculate the formula. Calculate the first preset time.
[0015] Optionally, if there is no delivery operation record for the item on the target transportation segment within the first preset time, the method further includes, before querying the second preset time corresponding to the target transportation segment in the second preset database, constructing the second preset database. Specifically, this includes: obtaining the segment type of the target transportation segment, which includes network point-to-center segments, center-to-center segments, and center-to-network point segments; setting the corresponding dwell time for the target transportation segment based on its segment type; calculating the second preset time based on the dwell time and transportation speed influencing factors; constructing a correspondence between the target transportation segment and the second preset time; and storing the correspondence between the target transportation segment and the second preset time in the second preset database.
[0016] By adopting the above technical solution, the server can pre-set the dwell time of express items on different road segments according to the actual distance of different road segments, and then calculate the buffer time corresponding to different transportation speed influencing factors based on the set dwell time and transportation speed influencing factors.
[0017] Optionally, a second preset time is calculated based on the dwell time corresponding to the target transportation segment and factors affecting transportation speed. Specifically, the second preset time is calculated according to the following formula:
[0018] Where t is the second preset time, t滞 α represents the dwell time corresponding to the target transportation segment. j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th factor on transportation speed.
[0019] Using the above technical solution, the server can calculate t based on the actual distance traveled by different road segment types. 滞 That is, the longer the actual distance of the target transportation segment, the more t 滞 The larger the value, the more important it is to consider the factors affecting transportation speed, which can then be addressed using the formula. Calculate the second preset time.
[0020] Optionally, if there is no delivery operation record for the item in the target transportation segment within the second preset time, the item is determined to be a lost item, and the target transportation segment is recorded as the wrong transportation segment for the lost item. The method further includes: obtaining detailed information about the lost item, including trajectory information, order information, and claim information; and displaying the detailed information about the lost item to the user in a preset manner, including displaying it using a message queue.
[0021] Using the above technical solution, the server can retrieve lost items. This can be achieved through an MQ list. For example, the server can use an MQ list to organize information such as logistics tracking messages, order messages, claim messages, information about lost items, and information about incorrect transportation routes, and send them to relevant staff so that the staff can retrieve the lost packages.
[0022] A second aspect of this application provides a processing device for lost items in logistics. The device is a server, which includes an acquisition module, a query module, and a judgment module.
[0023] The acquisition module is used to acquire multiple transportation segments of an object, including the target transportation segment.
[0024] The query module is used to query the first preset time corresponding to the target transportation segment in the first preset database; the first preset database is used to store the correspondence between the target transportation segment and the first preset time; and if there is no delivery operation record for the item in the target transportation segment within the first preset time, the module queries the second preset time corresponding to the target transportation segment in the second preset database; the second preset database is used to store the correspondence between the target transportation segment and the second preset time.
[0025] The judgment module is used to determine whether there is a delivery operation record for the item in the target transportation segment within a first preset time period; and to determine whether there is a delivery operation record for the item in the target transportation segment within a second preset time period; and if there is no delivery operation record for the item in the target transportation segment within the second preset time period, the item is judged to be a lost item, and the target transportation segment is recorded as the wrong transportation segment for the lost item.
[0026] Optionally, the acquisition module is used to construct the first preset database before querying the target transportation segment corresponding to the first preset time in the first preset database. Specifically, this includes: acquiring the object type of the object, which includes service classification type, object value classification type, object size classification type, and object property classification type; acquiring multiple transportation speed influencing factors of the object, the distance of the target transportation segment, and multiple historical transportation data corresponding to the object type; calculating the first preset time based on the multiple transportation speed influencing factors, the distance of the target transportation segment, and the multiple historical transportation data corresponding to the object type; constructing the correspondence between the target transportation segment and the first preset time, and storing the correspondence between the target transportation segment and the first preset time in the first preset database.
[0027] Optionally, the query module is used to calculate the first preset time based on the item type, the historical transportation data corresponding to the item type, and the distance of the target transportation segment. Specifically, it includes calculating the first preset time according to the following formula:
[0028] Where T is the first preset time, and D is the distance of the target transportation segment. i T represents the distance of the i-th historical transport segment. i For the i-th historical transport time, α j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th factor on transportation speed.
[0029] Optionally, the acquisition module is used to construct a second preset database before querying the second preset database for the target transportation segment if there is no delivery operation record for the item on the target transportation segment within a first preset time. Specifically, this includes: acquiring the segment type of the target transportation segment, which includes network point-to-center segments, center-to-center segments, and center-to-network point segments; setting the corresponding dwell time for the target transportation segment based on its segment type; calculating the second preset time based on the dwell time and transportation speed influencing factors; constructing a correspondence between the target transportation segment and the second preset time; and storing the correspondence between the target transportation segment and the second preset time in the second preset database.
[0030] Optionally, the query module is used to calculate the second preset time based on the dwell time corresponding to the target transportation segment and the factors affecting transportation speed, specifically including: calculating the second preset time according to the following formula:
[0031] Where t is the second preset time, t 滞 α represents the dwell time corresponding to the target transportation segment. j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th factor on transportation speed.
[0032] Optionally, the judgment module is used to determine that if there is no delivery operation record for the item in the target transportation segment within a second preset time, the item is a lost item, and the target transportation segment is recorded as the wrong transportation segment for the lost item. Then, the module obtains detailed information about the lost item, including trajectory information, order information, and claim information. The module then displays the detailed information about the lost item to the user in a preset manner, including displaying it using a message queue.
[0033] A third aspect of this application provides an electronic device including a processor, a memory, a user interface, and a network interface, wherein the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory to cause the electronic device to perform the method as described in any of the foregoing.
[0034] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that is executed by a processor as described in any of the preceding claims.
[0035] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:
[0036] 1. If the server determines that the package has not reached the destination of the target transportation route within the first preset time, i.e., there is no delivery operation record for the package at the destination of the target transportation route within the first preset time, then the server determines that the package has not been delivered to the destination of the target transportation route within the specified time. At this time, the server determines that the package may be lost, and queries the second preset database for the buffer time of the package on the target transportation route, i.e., the second preset time. If the server determines that the package has not reached the destination of the target transportation route within the second preset time, i.e., there is no delivery operation record for the package at the destination of the target transportation route within the buffer time, then the server records the package as a lost package and records the target transportation route as the wrong transportation route for the lost package, thereby eliminating the possibility that the package is delayed due to other uncontrollable reasons and reducing the misjudgment of lost packages.
[0037] 2. By constructing a first preset database, the server can more effectively manage the correspondence between the target transportation segment and the first preset time. This allows the server to calculate the first preset time based on multiple factors affecting transportation speed, the distance of the target transportation segment, and multiple historical transportation data corresponding to the type of goods. This helps to better predict the first preset time of goods on the target transportation segment, thereby improving transportation efficiency and service quality.
[0038] 3. The server can retrieve lost items, which can be achieved through MQ lists. For example, the server can use MQ lists to organize information such as logistics tracking messages, order messages, claim messages, information about lost items, and information about incorrect transportation routes, and send them to relevant staff so that the staff can retrieve the lost packages. Attached Figure Description
[0039] Figure 1 This is a flowchart illustrating a method for handling lost items in logistics, provided in an embodiment of this application.
[0040] Figure 2 This is a schematic diagram of a device for handling lost items in logistics, provided in an embodiment of this application.
[0041] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0042] Explanation of reference numerals in the attached diagram: 21. Acquisition module; 22. Query module; 23. Judgment module; 300. Electronic device; 301. Processor; 302. Memory; 303. User interface; 304. Network interface; 305. Communication bus. Detailed Implementation
[0043] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0044] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.
[0045] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0046] To enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.
[0047] Currently, when determining whether an error has occurred while reading data from a block in a solid-state drive (SSD), the SSD first obtains available storage blocks and performs data reading operations, simultaneously checking for errors. If an error occurs, the corresponding storage block is recorded as a faulty SSD; otherwise, the operation terminates normally. However, this method does not consider the impact of actual SSD temperature on performance. If the actual temperature significantly affects SSD performance, errors can still occur. In such cases, using only the above method can lead to misclassification of an SSD as faulty due to temperature variations. Therefore, there is an urgent need for a method, device, and electronic equipment for handling lost items in logistics that can mitigate the impact of temperature on the misclassification of faulty SSDs.
[0048] Please refer to Figure 1 The diagram illustrates a flowchart of a method for handling lost items in logistics, provided by an embodiment of the present invention. The method is applied to a server, and the flowchart mainly includes the following steps: S101 to S106.
[0049] Step S101: Obtain multiple transport segments of the object, including the target transport segment.
[0050] Specifically, when a package is being transported, the server monitors its transportation status in real time. Furthermore, since the package is transported along multiple routes, the server records the package's status on each route. For a single package, the server first obtains its transportation route. Because a package is transported along multiple routes, there is a possibility of loss on each route. Therefore, the server needs to determine whether the package has been lost on each of its corresponding transportation routes. For ease of explanation, the following embodiment will use a single transportation route corresponding to a single package, i.e., the target transportation route, for illustration.
[0051] Step S102: Query the first preset time corresponding to the target transportation segment in the first preset database; the first preset database is used to store the correspondence between the target transportation segment and the first preset time.
[0052] Specifically, when a package is transported across multiple transportation routes, the server establishes a corresponding preset time for each transportation route. For the first preset time corresponding to the target route of the package, the server calculates the first preset time required for the package's transport on the target route before transportation and establishes a correspondence between the target route and the first preset time in a preset database. When the server needs to determine whether the package has been lost or damaged on the target transportation route, it can directly obtain the first preset time corresponding to the target route through the correspondence established in the preset database.
[0053] In one possible implementation, before step S102, the method further includes constructing a first preset database, specifically including: obtaining the object type of the object, which includes service classification type, object value classification type, object size classification type, and object property classification type; obtaining multiple transportation speed influencing factors of the object, the distance of the target transportation segment, and multiple historical transportation data corresponding to the object type; calculating a first preset time based on the multiple transportation speed influencing factors, the distance of the target transportation segment, and the multiple historical transportation data corresponding to the object type; constructing a correspondence between the target transportation segment and the first preset time, and storing the correspondence between the target transportation segment and the first preset time in the first preset database.
[0054] Specifically, during the construction of the preset database, the server needs to calculate the preset transportation time for each express item on its corresponding transportation segment. The calculation method varies for different categories of express items. Item types can be classified in various ways, including but not limited to: classification by service type (domestic express, international express, same-city express, etc.); classification by item value (valuable express, cost-effective express, etc.); classification by item size (large express, medium express, small express, etc.); classification by item nature (electronic product express, furniture express, food express, etc.). A combination of the above classification methods is also possible, such as classifying by item nature based on item value classification. In this embodiment, the classification method for express items is not limited. The server first determines the type of express delivery item for which a status query is being performed by classifying the items according to their type. Then, the server obtains multiple factors affecting the item's transportation speed, the distance of the target transportation segment, and multiple historical transportation data corresponding to the item type. Based on these factors, the server can calculate the first preset time corresponding to the target transportation segment. At this point, the server establishes the correspondence between the target transportation segment and the first preset time and saves it in a preset database.
[0055] In one possible implementation, step S102 further includes: multiple factors affecting transportation speed, including one or more of transportation price factors, fragility factors, and object weight factors; each factor affecting transportation speed corresponds to a first factor weight and a second factor weight; the first factor weight is the weight of the importance of the factor affecting transportation speed, and the second factor weight is the weight of the degree of influence of the factor affecting transportation speed on transportation speed; multiple historical transportation data include multiple historical transportation route distances and multiple historical transportation times, with one historical transportation route distance corresponding to one historical transportation time.
[0056] Specifically, the multiple factors affecting the transportation speed used to calculate the first preset time include one or more of the following: transportation price factor, fragility factor, and item weight factor. The multiple factors affecting the transportation speed selected for calculating the first preset time vary depending on the item classification method. For example, if the item type is classified according to item value, the factors affecting the transportation speed can be transportation price factor or fragility factor. At this point, each of the multiple factors affecting the speed of a package has its corresponding first-factor weight and second-factor weight. The first-factor weight represents the importance of the transportation speed factor. The greater the impact of a factor on transportation speed compared to other factors, the higher its first-factor weight. For example, if the first-factor weight of the transportation price factor is α1 and the first-factor weight of the fragility factor is α2, the server determines whether the impact of the transportation price factor on the speed of the package during its transport on the target route is greater than the impact of fragility factor. If it is greater, then α1 > α2; if it is equal, then α1 = α2; if it is less, then α1 < α2. Furthermore, if there are m factors affecting the speed of a package during its transport on the target route, the sum of the first-factor weights corresponding to each of the m factors must be 1. The historical transportation data used to calculate the first preset time includes the historical transportation data of all historical express delivery items corresponding to the item type. For example, if the item type of the express delivery item is the item value classification type, the server obtains the historical transportation data of express delivery items classified as item value classification types from all historical express delivery items that have been transported. The historical transportation data includes the actual transportation distance of the historical express delivery item on each target transportation segment, i.e., the historical transportation segment distance, and the actual transportation time of the historical express delivery item on each target transportation segment, i.e., the historical transportation time.
[0057] In one possible implementation, step S102 further includes: calculating a first preset time according to the following formula:
[0058] Where T is the first preset time, and D is the distance of the target transportation segment. i T represents the distance of the i-th historical transport segment. i For the i-th historical transport time, α j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th factor on transportation speed.
[0059] Specifically, in the calculation process of the above formula, it is necessary to assume that the number of historical express delivery items included in the item type is n. In this case, the ideal average speed of the actual transportation distance of the historical express delivery items on each target transportation segment can be expressed as: There are n historical express parcels. Therefore, the number of n historical express parcels corresponds to the actual transportation distances on the n target transportation segments, D. i T represents the actual transport distance on the i-th historical transport segment. i Let be the actual historical transportation time on the i-th historical transportation segment; after obtaining the ideal average speed, the ideal average time for the express item to reach the target transportation segment can be obtained by dividing the distance by the ideal average speed. Where D is the distance of the target transportation segment, since there are m historical factors influencing the transportation of this type of item on the target transportation segment, it is also necessary to consider the impact of these m factors on the ideal average time. Therefore, through... , where α j β represents the importance weight of the j-th factor affecting transportation speed. j The first preset time T can be obtained by determining the weight of the influence of the j-th factor on the transportation speed.
[0060] Step S103: Determine whether there is a delivery operation record for the item in the target transportation section within the first preset time period.
[0061] Specifically, once a package completes its journey along the target transportation route and is delivered—that is, after being transported from the starting point to the ending point of the target route and delivered—staff will record the delivery process. This record documents the completion of the package's journey along the target route, regardless of when the package arrives at its destination or the actual transport time. Staff will record the delivery process for each package completed along the target route. During real-time server monitoring, the server needs to verify that the package is delivered within a specified timeframe and that a delivery record exists at the destination of the target route within a first preset time.
[0062] Step S104: If there is no delivery operation record for the item in the target transportation segment within the first preset time, then query the second preset time corresponding to the target transportation segment in the second preset database; the second preset database is used to store the correspondence between the target transportation segment and the second preset time.
[0063] Specifically, during real-time server monitoring, if the server determines that a package has not reached the destination of the target transportation route within the first preset time (i.e., there is no delivery record for the package at the destination of the target transportation route within the first preset time), then the server determines that the package has not reached the destination of the target transportation route within the specified time. In this case, the package may be lost, but it could also be delayed due to other uncontrollable reasons, such as reduced transportation speed due to weather conditions or speed limits on roads due to traffic congestion. In this situation, the package is not lost. The server then queries the second preset database for the package's buffer time on the target transportation route, i.e., the second preset time.
[0064] In one possible implementation, step S104 further includes: obtaining the segment type of the target transportation segment, including network point-center segment, center-center segment, and center-network point segment; setting the corresponding dwell time for the target transportation segment according to the segment type; calculating a second preset time based on the dwell time corresponding to the target transportation segment and transportation speed influencing factors; constructing a correspondence between the target transportation segment and the second preset time, and storing the correspondence between the target transportation segment and the second preset time in a second preset database.
[0065] Specifically, express parcels are transported along multiple different routes, or different route types. These route types can be categorized as point-to-center, center-to-center, and center-to-point. Point-to-center route: This refers to the route from the originating point to the logistics center or sorting center. On this route, parcels are typically collected, sorted, and prepared for further transport. Center-to-center route: This refers to the route between different logistics centers or sorting centers. These centers are typically used to transport parcels from one region to another for further distribution and delivery. Center-to-point route: This refers to the route from the logistics center or sorting center to the receiving point. On this route, parcels are typically sorted and prepared again for final delivery to the recipient. The server pre-sets the dwell time for express parcels on different route types based on the actual distance traveled. Then, based on the set dwell time and factors affecting transport speed, it calculates the buffer time corresponding to different transport speed influencing factors.
[0066] In one possible implementation, step S104 further includes: calculating a second preset time according to the following formula:
[0067] Where t is the second preset time, t 滞 α represents the dwell time corresponding to the target transportation segment. j β represents the importance weight of the j-th factor affecting transportation speed.j denoted as the weight of the influence of the j-th factor on transportation speed.
[0068] Specifically, the server can calculate t based on the actual distance traveled by different road segment types. 滞 That is, the longer the actual distance of the target transportation segment, the more t 滞 The larger the value, the more important it is to consider the factors affecting transportation speed, which can then be addressed using the formula.
[0069] Calculate the second preset time, where α j β represents the importance weight of the j-th factor affecting transportation speed. j Let be the weight of the influence of the j-th transportation speed factor on the transportation speed. It should be noted that, in the calculation, the number of transportation influencing factors and the number of transportation influencing factors here should be the same as when calculating the first preset time. For example, if there are two transportation influencing factors in the calculation of the first preset time, namely the transportation price factor and the fragility factor, then when calculating the second preset time period, the number of transportation influencing factors used for calculation should also be two, namely the transportation price factor and the fragility factor.
[0070] Step S105: Determine whether there is a delivery operation record for the item in the target transportation section within the second preset time period.
[0071] Specifically, the server determines whether the package can be delivered to the destination of the target transportation route within the buffer period, and whether there is a delivery operation record for the package at the destination of the target transportation route.
[0072] Step S106: If there is no delivery operation record for the item in the target transportation section within the second preset time, the item is determined to be a lost item, and the target transportation section is recorded as the wrong transportation section for the lost item.
[0073] Specifically, during the real-time monitoring process of the server, if the server determines that the express delivery item fails to reach the destination of the target transportation route within the second preset time, that is, there is no delivery operation record of the item at the destination of the target transportation route within the buffer time, then the express delivery item is no longer delayed due to other uncontrollable reasons, but has been lost. At this time, the server records the express delivery item as a lost item and records the target transportation route as the wrong transportation route of the lost item.
[0074] In one possible implementation, after step S106, the method further includes: obtaining detailed information about the lost item, including trajectory information, order information, and claim information; and displaying the detailed information about the lost item to the user in a preset manner, including displaying it using a message queue.
[0075] Specifically, the server can retrieve lost items, which can be achieved through MQ lists. For example, the server can use MQ lists to organize information such as logistics tracking messages, order messages, claim messages, information about lost items, and information about incorrect transportation routes, and send them to relevant staff so that the staff can retrieve the lost packages.
[0076] The beneficial effects that can be achieved by adopting the above method include at least one of the following:
[0077] 1. If the server determines that the package has not reached the destination of the target transportation route within the first preset time, i.e., there is no delivery operation record for the package at the destination of the target transportation route within the first preset time, then the server determines that the package has not been delivered to the destination of the target transportation route within the specified time. At this time, the server determines that the package may be lost, and queries the second preset database for the buffer time of the package on the target transportation route, i.e., the second preset time. If the server determines that the package has not reached the destination of the target transportation route within the second preset time, i.e., there is no delivery operation record for the package at the destination of the target transportation route within the buffer time, then the server records the package as a lost package and records the target transportation route as the wrong transportation route for the lost package, thereby eliminating the possibility that the package is delayed due to other uncontrollable reasons and reducing the misjudgment of lost packages.
[0078] 2. By constructing a first preset database, the server can more effectively manage the correspondence between the target transportation segment and the first preset time. This allows the server to calculate the first preset time based on multiple factors affecting transportation speed, the distance of the target transportation segment, and multiple historical transportation data corresponding to the type of goods. This helps to better predict the first preset time of goods on the target transportation segment, thereby improving transportation efficiency and service quality.
[0079] 3. The server can retrieve lost items, which can be achieved through MQ lists. For example, the server can use MQ lists to organize information such as logistics tracking messages, order messages, claim messages, information about lost items, and information about incorrect transportation routes, and send them to relevant staff so that the staff can retrieve the lost packages.
[0080] Please refer to Figure 2 This illustration shows an embodiment of the present invention providing a processing device for lost items in logistics. The device is a server, which includes an acquisition module, a query module, and a judgment module.
[0081] The acquisition module 21 is used to acquire multiple transportation segments of the object, including the target transportation segment.
[0082] The query module 22 is used to query the first preset time corresponding to the target transportation segment in the first preset database; the first preset database is used to store the correspondence between the target transportation segment and the first preset time; and if there is no delivery operation record for the item in the target transportation segment within the first preset time, the module queries the second preset time corresponding to the target transportation segment in the second preset database; the second preset database is used to store the correspondence between the target transportation segment and the second preset time.
[0083] The judgment module 23 is used to determine whether there is a delivery operation record for the item in the target transportation section within a first preset time period; and to determine whether there is a delivery operation record for the item in the target transportation section within a second preset time period; and if there is no delivery operation record for the item in the target transportation section within the second preset time period, the item is determined to be a lost item, and the target transportation section is recorded as the wrong transportation section for the lost item.
[0084] In one possible implementation, the acquisition module 21 is used to construct the first preset database before querying the first preset time corresponding to the target transportation segment in the first preset database. Specifically, this includes: acquiring the object type of the object, which includes service classification type, object value classification type, object size classification type, and object property classification type; acquiring multiple transportation speed influencing factors of the object, the distance of the target transportation segment, and multiple historical transportation data corresponding to the object type; calculating the first preset time based on the multiple transportation speed influencing factors, the distance of the target transportation segment, and the multiple historical transportation data corresponding to the object type; constructing the correspondence between the target transportation segment and the first preset time, and storing the correspondence between the target transportation segment and the first preset time in the first preset database.
[0085] In one possible implementation, the query module 22 is used to calculate a first preset time based on the object type, the historical transportation data corresponding to the object type, and the distance of the target transportation segment, specifically including: calculating the first preset time according to the following formula:
[0086] Where T is the first preset time, and D is the distance of the target transportation segment. i T represents the distance of the i-th historical transport segment. i For the i-th historical transport time, α j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th factor on transportation speed.
[0087] In one possible implementation, the acquisition module 21 is used to construct a second preset database before querying the second preset database for the second preset time if there is no delivery operation record for the object on the target transportation segment within a first preset time. Specifically, this includes: acquiring the segment type of the target transportation segment, which includes network point-to-center segments, center-to-center segments, and center-to-network point segments; setting the dwell time corresponding to the target transportation segment based on the segment type; calculating the second preset time based on the dwell time corresponding to the target transportation segment and transportation speed influencing factors; constructing a correspondence between the target transportation segment and the second preset time; and storing the correspondence between the target transportation segment and the second preset time in the second preset database.
[0088] In one possible implementation, the query module 22 is used to calculate a second preset time based on the dwell time corresponding to the target transportation segment and factors affecting transportation speed, specifically including: calculating the second preset time according to the following formula:
[0089] Where t is the second preset time, t 滞 α represents the dwell time corresponding to the target transportation segment. j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th factor on transportation speed.
[0090] In one possible implementation, the judgment module 23 is used to determine that the item is a lost item if there is no delivery operation record for the item in the target transportation segment within a second preset time, and to record the target transportation segment as the wrong transportation segment for the lost item. Then, it obtains detailed information about the lost item, including trajectory information, order information, and claim information. The detailed information about the lost item is then displayed to the user in a preset manner, including displaying it using a message queue.
[0091] This application also discloses an electronic device, including a processor, a memory, a user interface, and a network interface. The memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory to cause the electronic device to perform any of the methods described above.
[0092] It should be noted that the above embodiments of the apparatus are only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0093] This application also discloses an electronic device. (See reference...) Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. The electronic device 300 may include: at least one processor 301, a memory 302, a user interface 303, at least one network interface 304, and at least one communication bus 305.
[0094] The communication bus 305 is used to enable communication between these components.
[0095] The user interface 303 may include a display screen and a camera. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0096] The network interface 304 may include standard wired interfaces and wireless interfaces (such as Wi-Fi interfaces).
[0097] The processor 301 may include one or more processing cores. The processor 301 connects to various parts of the solid-state drive (SSD) using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 302, and by calling data stored in the memory 302. Optionally, the processor 301 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 301 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 301.
[0098] The memory 302 may include random access memory (RAM) or read-only memory. Optionally, the memory 302 may include a non-transitory computer-readable storage medium. The memory 302 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. The memory 302 may also be at least one storage device located remotely from the aforementioned processor 301. (Refer to...) Figure 3 The memory 302, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for handling lost items in logistics.
[0099] exist Figure 3In the illustrated electronic device 300, the user interface 303 is mainly used to provide an input interface for the user and to acquire user input data; while the processor 301 can be used to call the processing application for lost items in logistics stored in the memory 302. When executed by one or more processors 301, the electronic device 300 performs one or more of the methods described in the above embodiments. It should be noted that, for the foregoing method embodiments, for the sake of simplicity, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0100] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0101] In the various embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between apparatuses or units may be electrical or other forms.
[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0103] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, a solid-state drive, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, portable hard drives, magnetic disks, or optical disks.
[0105] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, solid-state drive, or data center to another website, computer, solid-state drive, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a solid-state drive or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0106] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0107] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for handling lost items in logistics, characterized in that, The method includes: Acquire multiple transport segments of the object, wherein the multiple transport segments include the target transport segment; The system queries the first preset database to find the target transportation segment corresponding to the first preset time; the first preset database is used to store the correspondence between the target transportation segment and the first preset time. Determine whether there is a delivery operation record for the item in the target transportation section within the first preset time period; If, within the first preset time period, there is no delivery operation record for the item on the target transportation segment, then the second preset time corresponding to the target transportation segment is queried in the second preset database; the second preset database is used to store the correspondence between the target transportation segment and the second preset time. Determine whether the delivery operation record exists for the item on the target transportation segment within the second preset time period; If, within the second preset time period, there is no delivery operation record for the item in the target transportation section, then the item is determined to be a lost item, and the target transportation section is recorded as the wrong transportation section for the lost item. The first preset time is calculated according to the following formula: Where T is the first preset time, and D is the distance of the target transportation segment. i T represents the distance of the i-th historical transport segment. i For the i-th historical transport time, α j β represents the importance weight of the j-th factor affecting transportation speed. j , where is the weight of the influence of the j-th transportation speed factor on the transportation speed, m is the total number of transportation speed influencing factors when the item is transported on the target transportation segment, and n is the number of historical express items included in the item type of the item; The second preset time is calculated according to the following formula: Where t is the second preset time, t 滞 α represents the dwell time corresponding to the target transportation segment. j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th transportation speed factor on the transportation speed, and m is the total number of transportation speed influencing factors when the object is transported on the target transportation section.
2. The method according to claim 1, characterized in that, Before querying the first preset time corresponding to the target transportation segment in the first preset database, the method further includes constructing the first preset database, specifically including: Obtain the object type of the object, which includes service classification type, object value classification type, object size classification type, and object property classification type; Obtain multiple factors affecting the transport speed of the object, the distance of the target transport route, and multiple historical transport data corresponding to the object type; The first preset time is calculated based on multiple factors affecting transportation speed, the distance of the target transportation route, and multiple historical transportation data corresponding to the type of object. Construct a correspondence between the target transportation segment and the first preset time, and save the correspondence between the target transportation segment and the first preset time in the first preset database.
3. The method according to claim 2, characterized in that, in, The multiple factors affecting transportation speed include one or more of transportation price factors, fragileity factors, and object weight factors; each of the transportation speed factors corresponds to a first factor weight and a second factor weight; the first factor weight is the importance weight of the transportation speed factor, and the second factor weight is the influence weight of the transportation speed factor on the transportation speed. The historical transportation data includes multiple historical transportation segment distances and multiple historical transportation times, with one historical transportation segment distance corresponding to one historical transportation time.
4. The method according to claim 3, characterized in that, If, within the first preset time period, the item does not have a delivery operation record on the target transportation segment, before querying the second preset database for the second preset time period corresponding to the target transportation segment, the method further includes constructing the second preset database, specifically including: Obtain the segment type of the target transportation segment, which includes network point-center segment, center-center segment, and center-network point segment; Based on the road segment type of the target transportation segment, set the corresponding stop time for the target transportation segment; The second preset time is calculated based on the dwell time corresponding to the target transportation segment and the factors affecting transportation speed; Construct a correspondence between the target transportation segment and the second preset time, and save the correspondence between the target transportation segment and the second preset time in the second preset database.
5. The method according to claim 1, characterized in that, After determining that the item is a lost item and recording the target transportation segment as an incorrect transportation segment if the item does not have a delivery operation record in the target transportation segment within the second preset time period, the method further includes: Obtain detailed information about the lost item, including tracking information, order information, and claim information; The detailed information of the lost item is displayed to the user in a preset manner, including displaying it using a message queue.
6. A device for handling lost items in logistics, characterized in that, The device is a server, which includes an acquisition module (21), a query module (22), and a judgment module (23), wherein, The acquisition module (21) is used to acquire multiple transportation segments of the object, including a target transportation segment; The query module (22) is used to query the first preset time corresponding to the target transportation segment in the first preset database; the first preset database is used to store the correspondence between the target transportation segment and the first preset time; and, if there is no delivery operation record for the item in the target transportation segment within the first preset time, then the second preset time corresponding to the target transportation segment is queried in the second preset database; the second preset database is used to store the correspondence between the target transportation segment and the second preset time. The judgment module (23) is used to determine whether the delivery operation record exists in the target transportation section of the object within the first preset time period; and to determine whether the delivery operation record exists in the target transportation section of the object within the second preset time period; and if the delivery operation record does not exist in the target transportation section of the object within the second preset time period, the object is determined to be a lost object, and the target transportation section is recorded as the wrong transportation section of the lost object. The first preset time is calculated according to the following formula: Where T is the first preset time, and D is the distance of the target transportation segment. i T represents the distance of the i-th historical transport segment. i For the i-th historical transport time, α j β represents the importance weight of the j-th factor affecting transportation speed. j , where is the weight of the influence of the j-th transportation speed factor on the transportation speed, m is the total number of transportation speed influencing factors when the item is transported on the target transportation segment, and n is the number of historical express items included in the item type of the item; The second preset time is calculated according to the following formula: Where t is the second preset time, t 滞 α represents the dwell time corresponding to the target transportation segment. j β represents the importance weight of the j-th factor affecting transportation speed. j denoted as the weight of the influence of the j-th transportation speed factor on the transportation speed, and m is the total number of transportation speed influencing factors when the object is transported on the target transportation section.
7. An electronic device, characterized in that, The device includes a processor (301), a memory (302), a user interface (303), a network interface (304), and a communication bus (305). The memory (302) is used to store instructions. The user interface (303) and the network interface (304) are used to communicate with other devices. The processor (301) is used to execute the instructions stored in the memory (302) to cause the electronic device (300) to perform the method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, perform the method as described in any one of claims 1 to 5.