Express item sorting method and device, electronic equipment and storage medium
By dynamically adjusting the grid distribution, the return problem caused by insufficient grid in express delivery parts sorting is solved, the manual processing volume is reduced, and the grid utilization rate is improved.
Patent Information
- Application Number
- CN202311873601.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-30
- Publication Date
- 2025-07-01
AI Technical Summary
In the sorting of express delivery parts, in the prior art, the reflow phenomenon is serious due to inappropriate distribution of grids, which increases the amount of manual processing and wastes manpower.
Check whether the grid occupied by the destination position is sufficient every preset period. If it is insufficient, the idle dynamic grid will be allocated. The target grid will be filtered based on the distance between the grid and the upper table, and the grid allocation will be dynamically adjusted to reduce reflux.
It effectively reduces reflux, reduces manual processing, improves grid utilization, and solves the reflux problem caused by insufficient grid.
Smart Images

Figure CN120228049A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of logistics technology, and particularly to a method and device for sorting express parcels, an electronic device, and a storage medium. Background Art
[0002] Consumers' shopping forms are increasingly tending towards online shopping. The increase in online shopping directly brings a large increase in express parcels. In the sorting and transfer yard of express parcels, a large number of express parcels are sorted by a sorting machine. Before sorting the express parcels, the sorting machine needs to be configured with a sorting plan, that is, to set the fixed corresponding relationship between each grid of the sorting machine and the destination location. In the related art, based on the historical total number of parcels flowing to each destination location, an appropriate number of grids are allocated to each destination location, and the express parcels flowing to the corresponding destination location are carried by the allocated grids. However, if the express parcels flowing to a certain destination location are relatively concentrated, the grids allocated based on the historical total number of parcels will be unable to handle them in a short time, resulting in a large number of backflows, which makes the manual processing volume surge and wastes a lot of manpower. Therefore, when the number of allocated grids is inappropriate, how to reduce a large number of backflows and reduce the manual processing volume has become an urgent technical problem to be solved. Summary of the Invention
[0003] The main purpose of the embodiments of this application is to propose a method and device for sorting express parcels, an electronic device, and a storage medium, aiming to reduce a large number of backflows and manual processing volume when the number of allocated grids is inappropriate.
[0004] To achieve the above purpose, a first aspect of the embodiments of this application proposes a method for sorting express parcels, and the method includes:
[0005] Obtain the number of express parcels flowing to a preset destination location according to a preset period to obtain a first parcel volume;
[0006] Perform status detection according to the first parcel volume to obtain a parcel flow status; wherein, the parcel flow status is used to indicate whether the current grids occupied by the preset destination location are sufficient;
[0007] If the parcel flow status indicates that the current grids occupied by the preset destination location are insufficient grids, obtain idle dynamic grids in an idle state from a preset plurality of dynamic grids, and obtain one of the idle dynamic grids to obtain a candidate dynamic grid;
[0008] Allocate the candidate dynamic grid to the preset destination location, and modify the idle state of the candidate dynamic grid to a busy state;
[0009] Obtain the distance between each of the current grids and a preset loading station to obtain a first distance, and obtain the distance between the candidate dynamic grid and the loading station to obtain a second distance;
[0010] Select a target grid opening from at least one of the current grid openings and the candidate dynamic grid openings according to the first distance and the second distance;
[0011] Allocate the target grid opening to the target express item.
[0012] In some embodiments, if the express item flow status indicates that the current grid opening occupied by the preset destination location is insufficient in grid openings and no candidate dynamic grid opening can be obtained from a plurality of preset dynamic grid openings, the method further includes:
[0013] Obtain the identification information of the preset destination location, and store the identification information in a preset queuing queue;
[0014] When it is detected that there is an idle dynamic grid opening in a plurality of preset dynamic grid openings, mark the idle dynamic grid opening as the current dynamic grid opening;
[0015] Obtain the identification information that is the first in the queuing queue to obtain the current identification information;
[0016] Allocate the current dynamic grid opening to the preset destination location corresponding to the current identification information, and modify the idle state of the current dynamic grid opening to a busy state;
[0017] Obtain the distance between each current grid opening and the loading station to obtain a third distance, and obtain the distance between the current dynamic grid opening and the loading station to obtain a fourth distance;
[0018] Select a selected grid opening from at least one of the current grid openings and the current dynamic grid opening according to the third distance and the fourth distance;
[0019] Allocate the selected grid opening to the target express item.
[0020] In some embodiments, after allocating the candidate dynamic grid opening to the preset destination location and modifying the idle state of the candidate dynamic grid opening to a busy state, the method further includes:
[0021] Obtain the number of express items flowing to the preset destination location according to a preset period to obtain a second express item quantity;
[0022] Obtain the number of express items flowing to the preset destination location per preset period on average for the historical corresponding production shift according to historical sorting data to obtain an average express item quantity;
[0023] If the second express item quantity is not greater than a preset multiple of the average express item quantity for a preset number of consecutive times, cancel the allocation relationship between the preset destination location and the candidate dynamic grid opening, and modify the busy state of the candidate dynamic grid opening to an idle state.
[0024] In some embodiments, the method further includes:
[0025] According to historical sorting data, obtain the total historical quantity of pieces flowing to each of the preset destination locations in the corresponding historical production shift;
[0026] Select the preset destination locations where the total historical quantity is lower than a preset quantity to obtain target preset destination locations;
[0027] Obtain idle dynamic compartments in an idle state from a plurality of preset dynamic compartments, and obtain one of the idle dynamic compartments to obtain a planned dynamic compartment;
[0028] Allocate the planned dynamic compartment to the target preset destination location, and modify the idle state of the planned dynamic compartment to a busy state;
[0029] Cause the express parcels flowing to the target preset destination location to fall into the planned dynamic compartment.
[0030] In some embodiments, after selecting the preset destination locations where the total historical quantity is lower than a preset quantity to obtain target preset destination locations, if the planned dynamic compartment cannot be obtained from a plurality of preset dynamic compartments, the method further includes:
[0031] Do not allocate a compartment to the target preset destination location; wherein, when not allocating a compartment to the target preset destination location, the express parcels flowing to the target preset destination location circle on the conveying component;
[0032] Obtain the number of times the express parcels flowing to the target preset destination location circle, and determine whether the number of times the express parcels circle is greater than a threshold;
[0033] If the number of times the express parcels circle is not greater than the threshold, detect whether there is an idle dynamic compartment. If there is an idle dynamic compartment, allocate the idle dynamic compartment to the target preset destination location. If there is no idle dynamic compartment, the express parcels flowing to the target preset destination location continue to circle;
[0034] Until the number of times the express parcels circle is greater than the threshold and no idle dynamic compartment is detected, allocate a preset abnormal compartment to the target preset destination location.
[0035] In some embodiments, after allocating the planned dynamic compartment to the target preset destination location and modifying the idle state of the planned dynamic compartment to a busy state, the method further includes:
[0036] Detect whether there are express parcels falling into the planned dynamic compartment within a preset time;
[0037] If no express item is placed in the planned dynamic grid within the preset time, cancel the allocation relationship between the target preset destination location and the planned dynamic grid, allocate the preset abnormal grid to the target preset destination location, and modify the busy status of the planned dynamic grid to the idle status.
[0038] In some embodiments, before obtaining the first express volume by obtaining the number of express items flowing to the preset destination location according to the preset period, the method further includes:
[0039] Obtain the original sorting plan;
[0040] According to the original sorting plan, obtain the grid allocated to the target preset destination location to obtain the original grid;
[0041] Set the original grid as the dynamic grid.
[0042] To achieve the above object, a second aspect of the embodiments of the present application proposes an express item sorting device, the device includes:
[0043] The first acquisition module is used to obtain the number of express items flowing to the preset destination location according to the preset period to obtain the first express volume;
[0044] The detection module is used to perform status detection according to the first express volume to obtain the express flow status; wherein, the express flow status is used to characterize whether the current grid occupied by the preset destination location is sufficient;
[0045] The second acquisition module is used to, if the express flow status indicates that the current grid occupied by the preset destination location is insufficient in grid, obtain an idle dynamic grid in an idle state from a plurality of preset dynamic grids, and obtain one of the idle dynamic grids to obtain a candidate dynamic grid;
[0046] The first allocation module is used to allocate the candidate dynamic grid to the preset destination location and modify the idle status of the candidate dynamic grid to the busy status;
[0047] The third acquisition module is used to obtain the distance between each of the current grids and the preset loading station to obtain the first distance, and obtain the distance between the candidate dynamic grid and the loading station to obtain the second distance;
[0048] The screening module is used to screen out the target grid from at least one of the current grids and the candidate dynamic grid according to the first distance and the second distance;
[0049] The second allocation module is used to allocate the target grid to the target express item.
[0050] To achieve the above object, a third aspect of the embodiments of the present application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect above is implemented.
[0051] To achieve the above object, a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.
[0052] The express delivery sorting method, device, electronic device and storage medium proposed in the present application obtain the number of express deliveries flowing to a preset destination location according to a preset period to obtain the first express delivery volume; perform status detection according to the first express delivery volume to obtain the express delivery flow status; if the express delivery flow status indicates that the current grid occupied by the preset destination location is insufficient, obtain one of the idle dynamic grids to obtain a candidate dynamic grid; allocate the candidate dynamic grid to the preset destination location; obtain the distance between each current grid and the preset loading station to obtain the first distance, and obtain the distance between the candidate dynamic grid and the loading station to obtain the second distance; according to the first distance and the second distance, screen out the target grid from at least one current grid and the candidate dynamic grid; allocate the target grid to the target express delivery. That is, by obtaining the number of express deliveries flowing to a preset destination location every preset period to detect whether the current grid occupied by the preset destination location is sufficient, if it is determined that the current grid is insufficient, an idle dynamic grid is allocated to the preset destination location, solving the problem that when the incoming volume suddenly increases, the grid is insufficient, resulting in a large number of returns and a sharp increase in manual processing volume. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is an optional flowchart of the express delivery sorting method provided by the embodiments of the present application;
[0054] Figure 2 is a flowchart of the express delivery sorting method provided by another embodiment of the present application;
[0055] Figure 3 is a flowchart of the express delivery sorting method provided by the third embodiment of the present application;
[0056] Figure 4 is a flowchart of the express delivery sorting method provided by the fourth embodiment of the present application;
[0057] Figure 5 is a flowchart of the express delivery sorting method provided by the fifth embodiment of the present application;
[0058] Figure 6 is a flowchart of the express delivery sorting method provided by the sixth embodiment of the present application;
[0059] Figure 7 It is a flowchart of the express item sorting method provided by the seventh embodiment of the present application;
[0060] Figure 8 It is a schematic structural diagram of the express item sorting device provided by the embodiment of the present application;
[0061] Figure 9 It is a schematic hardware structure diagram of the electronic device provided by the embodiment of the present application. Detailed implementation manners
[0062] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] It should be noted that although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different module division in the device or a different order in the flowchart. Terms such as "first" and "second" in the specification, claims and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.
[0064] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0065] First, several nouns involved in the present application are analyzed:
[0066] Sorting machine: It is an automated logistics device widely used in industries such as express delivery and logistics. Its main function is to quickly distribute the goods entering the device to the corresponding compartments according to a series of discriminant factors such as destination and weight through an automated method.
[0067] Backflow: Each compartment has a corresponding packing bag. The express items flowing to the compartment will flow into the corresponding packing bag. When the packing bag is full, the staff will lock the compartment. The express items flowing to this compartment will first circle on the conveying component. When the packing is completed and a new packing bag is put on, the compartment will be released, and the express items flowing to this compartment will continue to flow into the corresponding packing bag. However, if there are too many express items flowing to this compartment before the compartment is released, the express items will flow into the abnormal compartment, which is called backflow. The staff will classify and pack the express items in the abnormal compartment. Therefore, when there is a large amount of backflow, the manual processing volume will increase sharply.
[0068] In a sorting and transfer station for express packages, a large number of express packages are sorted by a sorting machine. Before sorting the express packages, the sorting machine needs to configure a sorting plan, that is, set the fixed corresponding relationship between each grid opening of the sorting machine and the destination location. In the related art, based on the historical total number of packages flowing to each destination location, an appropriate number of grid openings are allocated to each destination location, and the express packages flowing to the corresponding destination location are carried by the allocated grid openings. However, if the express packages flowing to a certain destination location are relatively concentrated, the grid openings allocated based on the historical total number of packages will be unable to handle them in a short time, resulting in a large number of returns, which increases the manual processing volume and is a great waste of manpower.
[0069] Based on this, the embodiments of the present application provide a method and device for sorting express packages, an electronic device, and a storage medium, aiming to set dynamic grid openings, detect whether the grid openings occupied by each preset destination location are sufficient every preset period, and when the occupied grid openings are insufficient, allocate candidate dynamic grid openings to the preset destination locations with insufficient grid openings, solving the problem that when the incoming package volume suddenly increases, the grid openings are insufficient, resulting in a large number of returns and a sharp increase in the manual processing volume.
[0070] The method and device for sorting express packages, the electronic device, and the storage medium provided by the embodiments of the present application are specifically described through the following embodiments. First, the method for sorting express packages in the embodiments of the present application is described.
[0071] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is to use a digital computer or a machine controlled by a digital computer to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results of theory, method, technology, and application system.
[0072] Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technologies mainly include several major directions such as computer vision technology, robotics, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0073] The express parcel sorting method provided by the embodiments of the present application can be applied to a terminal, or to a server side, or can also be software running on a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can also be configured as a cloud server providing 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, and big data and artificial intelligence platforms; the software can be an application that implements the express parcel sorting method, etc., but is not limited to the above forms.
[0074] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet-type devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment, where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0075] Please refer to Figure 1 , Figure 1 FIG. is an optional flowchart of the express parcel sorting method provided by the embodiments of the present application. The express parcel sorting method is applied to a sorting machine. Figure 1 The method in may include but is not limited to steps S101 to S107.
[0076] Step S101, obtaining the number of express parcels flowing to a preset destination location according to a preset period to obtain a first express parcel quantity;
[0077] Step S102, performing a status detection according to the first express parcel quantity to obtain an express parcel flow status; wherein, the express parcel flow status is used to characterize whether the current grid occupied by the preset destination location is sufficient;
[0078] Step S103, if the express parcel flow status characterizes that the current grid occupied by the preset destination location is a grid shortage, obtaining an idle dynamic grid in an idle state from a preset plurality of dynamic grids, and obtaining one of the idle dynamic grids to obtain a candidate dynamic grid;
[0079] Step S104: Assign the candidate dynamic grid opening to the preset destination position and change the idle state of the candidate dynamic grid opening to a busy state;
[0080] Step S105: Obtain the distance between each current grid opening and the preset loading table to get the first distance, and obtain the distance between the candidate dynamic grid opening and the loading table to get the second distance;
[0081] Step S106: Screen out the target grid opening from at least one current grid opening and the candidate dynamic grid opening according to the first distance and the second distance;
[0082] Step S107: Assign the target grid opening to the target express item.
[0083] In step S101 of some embodiments, the preset destination position refers to the destination of the express item transportation. The flow of the express item to the preset destination position is the flow to the grid opening assigned to the preset destination position. The number of grid openings assigned to the preset destination position is determined by the total quantity of express items flowing to the preset destination position in the corresponding historical production shift. Therefore, when there is a sudden increase in the incoming volume, the number of grid openings assigned based on the total quantity will be insufficient. To determine whether there is a sudden increase in the incoming volume, it is necessary to know the number of express items flowing to the preset destination position in each preset cycle. To be able to detect whether there is a sudden increase in the incoming volume in a timely manner, the preset cycle should be set as small as possible. For example, the preset cycle is two minutes, and the number of express items flowing to the preset destination position is obtained every two minutes to get the first express volume.
[0084] In step S102 of some embodiments, the express delivery flow status includes a normal incoming volume status and a sudden increase in incoming volume status. The normal incoming volume status indicates that the current compartments occupied by the preset destination location are sufficient, and the sudden increase in incoming volume status indicates that the current compartments occupied by the preset destination location are insufficient. By detecting the status of the first express delivery volume, it is possible to determine whether there is a sudden increase in the incoming volume. There are multiple ways to determine whether the current compartments occupied by the preset destination location are sufficient. The first method is to judge according to the number of express deliveries within the preset cycle of the current production shift. For example, the number of express deliveries flowing to the preset destination location in the first preset cycle is 200, 180 in the second preset cycle, and 220 in the third preset cycle. The express delivery flow status in the first three preset cycles is the normal incoming volume status. If it is 601 in the fourth preset cycle, then the number of express deliveries in the fourth preset cycle is greater than the sum of the averages of the previous three preset cycles multiplied by 3, indicating that the express delivery flow status in the fourth preset cycle is a sudden increase in incoming volume status. The second method is to judge according to the average number of express deliveries in each preset cycle of the corresponding historical production shift. For example, the current production shift is the second production shift, and the average number of express deliveries in each preset cycle of the second production shift the previous day is 200. If the number of express deliveries in a certain preset cycle of the current production shift is greater than the average multiplied by a preset multiple, it indicates that the express delivery flow status in this preset cycle is a sudden increase in incoming volume status, otherwise it is a normal incoming volume status. It is also possible to judge according to the average number of express deliveries in each preset cycle of the production shift corresponding to the historical preset number of days. As long as it can be determined whether there is a sudden increase in the incoming volume, the specific judgment method is not limited.
[0085] In steps S103 to S104 of some embodiments, a dynamic compartment refers to a compartment that can be allocated to different preset destination locations during a production shift. When there is a sudden increase in the incoming volume at a certain preset destination location, a dynamic compartment is allocated to this preset destination location. When the sudden increase in incoming volume status changes to the normal incoming volume status, the allocation relationship between the dynamic compartment and the preset destination location is cancelled. When there is a sudden increase in the incoming volume at another preset destination location, a dynamic compartment is allocated to the other preset destination location. When the current compartments occupied by the preset destination location are insufficient, an additional compartment needs to be allocated to the preset destination location to prevent the current compartments from being unable to handle a large number of express deliveries and causing backflow. Since the sudden increase in the incoming volume is within a short period of time, the allocated compartment is a dynamic compartment. The status of the dynamic compartment includes an idle status and a busy status. The idle status indicates that the dynamic compartment is not allocated to a preset destination location, and the busy status indicates that the dynamic compartment has been allocated to a preset destination location. A dynamic compartment in the busy status cannot be allocated to other preset destination locations.
[0086] In steps S105 to S107 of some embodiments, the express items flow from the loading table to the preset destination position through the conveying component. After the candidate dynamic grid opening is assigned to the preset destination position, the express items flowing to the preset destination position are arranged in the nearest grid falling manner and first flow into the current grid opening assigned to the preset destination position and the grid opening closest to the loading table among the candidate dynamic grid openings. After the grid opening is full, the grid opening is locked, and the express items flow into the next grid opening. Therefore, it is necessary to first obtain the distance between each current grid opening and the loading table to obtain the first distance, obtain the distance between the candidate dynamic grid opening and the loading table to obtain the second distance, and screen out the grid opening with the shortest distance from at least one current grid opening and the candidate dynamic grid opening as the target grid opening, and flow the target express items flowing to the preset destination position into the target grid opening.
[0087] In steps S101 to S107 illustrated in the embodiments of the present application, the number of express items flowing to the preset destination position is obtained according to a preset period to obtain the first express item quantity; status detection is performed according to the first express item quantity to obtain the express item flow direction status; if the express item flow direction status indicates that the current grid opening occupied by the preset destination position is insufficient in grid openings, one of the idle dynamic grid openings is obtained to obtain the candidate dynamic grid opening; the candidate dynamic grid opening is assigned to the preset destination position; the distance between each current grid opening and the preset loading table is obtained to obtain the first distance, and the distance between the candidate dynamic grid opening and the loading table is obtained to obtain the second distance; according to the first distance and the second distance, a target grid opening is screened out from at least one current grid opening and the candidate dynamic grid opening; the target grid opening is assigned to the target express item. That is, by obtaining the number of express items flowing to the preset destination position every preset period to detect whether the current grid opening occupied by the preset destination position is sufficient, if it is determined that the current grid opening is insufficient, an idle dynamic grid opening is assigned to the preset destination position, solving the problem that when the incoming item quantity suddenly increases, the grid opening is insufficient, resulting in a large number of backflows and a sharp increase in the manual processing quantity.
[0088] Please refer to Figure 2 , in some embodiments, if the express item flow direction status indicates that the current grid opening occupied by the preset destination position is insufficient in grid openings and the candidate dynamic grid opening cannot be obtained from the preset multiple dynamic grid openings, the express item sorting method may further include but is not limited to steps S201 to S207:
[0089] Step S201, obtain the identification information of the preset destination position and store the identification information in the preset queue;
[0090] Step S202, when it is detected that there is an idle dynamic grid opening in the preset multiple dynamic grid openings, mark the idle dynamic grid opening as the current dynamic grid opening;
[0091] Step S203, obtain the identification information at the first position in the queue to obtain the current identification information;
[0092] Step S204, assign the current dynamic cell to the preset destination corresponding to the current identification information, and change the idle state of the current dynamic cell to a busy state;
[0093] Step S205, obtain the distance between each current cell and the loading table to get a third distance, and obtain the distance between the current dynamic cell and the loading table to get a fourth distance;
[0094] Step S206, screen out the selected cells from at least one current cell and the current dynamic cell according to the third distance and the fourth distance;
[0095] Step S207, assign the selected cells to the target express item.
[0096] In steps S201 to S204 of some embodiments, when the current cells occupied by the preset destination are insufficient and there is no idle dynamic cell to be assigned to the preset destination for the time being, first record the identification information of the preset destination, and wait until an idle dynamic cell is detected before making the assignment. When the current cells occupied by multiple preset destinations are insufficient and there is no idle dynamic cell for assignment, first store the corresponding identification information of each into the queue. When an idle dynamic cell is detected, the idle dynamic cells are assigned to the preset destinations with insufficient cells in sequence.
[0097] In steps S205 to S207 of some embodiments, after the current dynamic cell is assigned to the preset destination, the cells occupied by the preset destination include at least one current cell and the current dynamic cell, and it is necessary to reassign the order in which the target express item flows into each cell. Therefore, obtain the distance between each current cell and the loading table to get a third distance, obtain the distance between the current dynamic cell and the loading table to get a fourth distance, and screen out the cell with the shortest distance from at least one current cell and the current dynamic cell as the selected cell, and let the target express item flowing to the preset destination flow into the selected cell. When the selected cell is full, the target express item flows into the next cell with the shortest distance.
[0098] In steps S201 to S207 illustrated in this embodiment, when it is detected that the cells occupied by the preset destination are insufficient and there is no idle dynamic cell for assignment, first store the identification information corresponding to the preset destination with insufficient cells into the queue. When an idle dynamic cell is detected, then assign the idle dynamic cells to the preset destinations corresponding to the identification information in the queue in sequence. When the cells occupied by the preset destination are insufficient and there is no idle dynamic cell for assignment, it can quickly detect whether there is an idle dynamic cell, and when an idle dynamic cell is detected, it can be efficiently assigned.
[0099] Please refer to Figure 3 , in some embodiments, after step S104, the express item sorting method may further include but is not limited to steps S301 to S303:
[0100] Step S301, obtain the number of express items flowing to a preset destination location according to a preset period to obtain a second express item quantity;
[0101] Step S302, obtain the average number of express items flowing to a preset destination location in each preset period of the corresponding historical production shift according to historical sorting data to obtain an average express item quantity;
[0102] Step S303, if the second express item quantity is not greater than a preset multiple of the average express item quantity for a preset number of consecutive times, cancel the allocation relationship between the preset destination location and the candidate dynamic grid opening, and modify the busy state of the candidate dynamic grid opening to an idle state.
[0103] In step S301 of some embodiments, when the preset destination location is in a state of sudden increase in the incoming volume, allocate the candidate dynamic grid opening to the preset destination location. When the preset destination location returns to the normal incoming volume state, cancel the allocation relationship between the preset destination location and the candidate dynamic grid opening. Therefore, after allocating the candidate dynamic grid opening to the preset destination location, continue to obtain the number of express items flowing to the preset destination location according to the preset period to obtain a second express item quantity, and determine whether it returns to the normal incoming volume state through the second express item quantity.
[0104] In steps S302 to S303 of some embodiments, according to historical sorting data, obtain the average value of the number of express items in each preset period of the corresponding historical production shift to obtain an average express item quantity. If the average express item quantity is 200, the preset number is 3, the preset multiple is 3 times, the number of express items flowing to the preset destination location in the first preset period of the current production shift is 200, 180 in the second preset period, 220 in the third preset period, and 601 in the fourth preset period. In the fourth preset period, allocate the candidate dynamic grid opening to the preset destination location, and continue to obtain the number of express items flowing to the preset destination location in each preset period. Then it is 650 in the fifth preset period, 500 in the sixth preset period, 450 in the seventh preset period, and 400 in the eighth preset period, indicating that the second express item quantity is not greater than 3 times the average express item quantity for 3 consecutive times. Cancel the allocation relationship between the preset destination location and the candidate dynamic grid opening, and modify the busy state of the candidate dynamic grid opening to an idle state. At this time, the express items flowing to the preset destination location only flow into the current grid opening.
[0105] In steps S301 to S303 illustrated in this embodiment, when the preset destination position is in a state of sudden increase in the incoming volume, dynamic compartments are allocated to the preset destination position. When the preset destination position returns from the state of sudden increase in the incoming volume to the normal state of the incoming volume, the dynamic compartments and the preset destination position are cancelled. Through this embodiment, not only the problem of a large number of returns is solved, but also each dynamic compartment can be effectively utilized, improving the utilization rate of the dynamic compartments.
[0106] Please refer to Figure 4 , in some embodiments, the express parcel sorting method may further include but is not limited to steps S401 to S405:
[0107] Step S401: Obtain the historical total volume of parcels flowing to each preset destination position in the corresponding production shift according to the historical sorting data;
[0108] Step S402: Select the preset destination positions with the historical total volume of parcels lower than the preset quantity to obtain the target preset destination positions;
[0109] Step S403: Obtain the idle dynamic compartments in the preset multiple dynamic compartments, and obtain one of the idle dynamic compartments to get the planned dynamic compartment;
[0110] Step S404: Allocate the planned dynamic compartment to the target preset destination position and modify the idle state of the planned dynamic compartment to the busy state;
[0111] Step S405: Make the express parcels flowing to the target preset destination position fall into the planned dynamic compartment.
[0112] In steps S401 to S402 of some embodiments, if the current production shift is the second production shift, then according to the historical sorting data, obtain the historical total volume of parcels flowing to each preset destination position in the second production shift of the previous day. When the historical total volume of parcels is small, it means that there are no express parcels falling into the compartments for most of the time, resulting in a very low utilization rate of the compartments. Therefore, first select the preset destination positions with the historical total volume of parcels lower than the preset quantity to obtain the target preset destination positions.
[0113] In steps S403 to S405 of some embodiments, obtain one idle dynamic compartment to get the planned dynamic compartment, allocate the planned dynamic compartment to the target preset destination position, and modify the idle state of the planned dynamic compartment to the busy state. At this time, the target preset destination position only occupies one planned dynamic compartment. Therefore, the express parcels flowing to the target preset destination position fall into the planned dynamic compartment.
[0114] In steps S401 to S405 illustrated in this embodiment, when the historical total quantity of items at a preset destination location is small, only one dynamic compartment is allocated to the target preset destination location. When canceling the allocation relationship between the dynamic compartment and the target preset destination location, other preset destination locations can utilize this dynamic compartment, improving the utilization rate of the compartments.
[0115] Please refer to Figure 5 , in some embodiments, when a preset destination location with a historical total quantity of items lower than a preset quantity is selected to obtain a target preset destination location and no planned dynamic compartment can be obtained from multiple preset dynamic compartments, the express item sorting method further includes but is not limited to steps S501 to S504:
[0116] Step S501: Do not allocate a compartment to the target preset destination location. When not allocating a compartment to the target preset destination location, the express items flowing to the target preset destination location circle on the conveying component.
[0117] Step S502: Obtain the number of times the express items flowing to the target preset destination location circle, and determine whether the number of times the express items circle is greater than a threshold value.
[0118] Step S503: If the number of times the express items circle is not greater than the threshold value, detect whether there is an idle dynamic compartment. If there is an idle dynamic compartment, allocate the idle dynamic compartment to the target preset destination location. If there is no idle dynamic compartment, the express items flowing to the target preset destination location continue to circle.
[0119] Step S504: Until the number of times the express items circle is greater than the threshold value and no idle dynamic compartment is detected, allocate the preset abnormal compartment to the target preset destination location.
[0120] In step S501 of some embodiments, when it is necessary to allocate an idle dynamic compartment to the target preset destination location but there is no dynamic compartment in an idle state at present, do not allocate a compartment to the target preset destination location temporarily. When there is no occupied compartment at the target preset destination location, the express items flowing to the target preset destination location will circle on the conveying component.
[0121] In steps S502 to S504 of some embodiments, the number of times the express item flowing to the target preset destination location circles is obtained, and it is determined whether the number of times the express item circles is greater than a threshold. If the number of times the express item circles is not greater than the threshold, it is detected whether there is an idle dynamic grid opening. If there is an idle dynamic grid opening, the idle dynamic grid opening is assigned to the target preset destination location. If there is no idle dynamic grid opening, the express item flowing to the target preset destination location continues to circle, and the number of times the express item flowing to the target preset destination location circles is continuously obtained until the number of times the express item circles is greater than the threshold and no idle dynamic grid opening is detected, then the preset abnormal grid opening is assigned to the target preset destination location, where the abnormal grid opening is the grid opening processed by the staff through classification and packing, and the threshold can be modified according to the situation.
[0122] In steps S501 to S504 illustrated in this embodiment, when the target preset destination location is obtained but there is no idle dynamic grid opening for assignment, first, the express item flowing to the target preset destination location is circled on the conveying component, and at the same time, it is detected whether there is an idle dynamic grid opening. When the number of times the express item circles is not greater than the threshold and an idle dynamic grid opening is detected, the idle dynamic grid opening is assigned to the target preset destination location. When the number of times the express item circles is greater than the threshold and no idle dynamic grid opening is detected yet, the abnormal grid opening is assigned to the target preset destination location. Since the number of express items at the target preset destination location is small, when flowing into the abnormal grid opening, the manual processing volume will not be too much, and the utilization rate of the grid opening can also be improved.
[0123] Please refer to Figure 6 , in some embodiments, after step S404, the express item sorting method may further include but is not limited to steps S601 to S602:
[0124] Step S601, detecting whether there is an express item falling into the planned dynamic grid opening within a preset time;
[0125] Step S602, if there is no express item falling into the planned dynamic grid opening within the preset time, cancel the assignment relationship between the target preset destination location and the planned dynamic grid opening, assign the preset abnormal grid opening to the target preset destination location, and modify the busy state of the planned dynamic grid opening to the idle state.
[0126] In steps S601 to S602 of some embodiments, after the planned dynamic grid opening is assigned to the target preset destination location, if there is no express item falling into the planned dynamic grid opening within the preset time, it means that there is temporarily no express item flowing to the target preset destination location, then the assignment relationship between the target preset destination location and the planned dynamic grid opening can be cancelled, and the abnormal grid opening is assigned to the target preset destination location. Modify the busy state of the planned dynamic grid opening to the idle state, so that the planned dynamic grid opening can be re-assigned to the preset destination location that needs a dynamic grid opening.
[0127] Specifically, after allocating the abnormal grid opening to the target preset destination location, it is also necessary to obtain the number of express parcels flowing to the target preset destination location every preset period, and then judge the express parcel flow status of the target preset destination location. When the target preset destination location is in a state of sudden increase in the incoming parcel volume, a dynamic grid opening is allocated to the target preset destination location.
[0128] In steps S601 to S602 shown in this embodiment, by detecting that there are no express parcels falling into the planned dynamic grid opening within the preset time, the allocation relationship between the target preset destination location and the planned dynamic grid opening is cancelled. This enables the planned dynamic grid opening to be reallocated to the preset destination locations that require dynamic grid openings, improving the utilization rate of the grid openings.
[0129] Please refer to Figure 7 , in some embodiments, before step S101, the express parcel sorting method may further include, but is not limited to, steps S701 to S703:
[0130] Step S701, obtaining the original sorting plan;
[0131] Step S702, according to the original sorting plan, obtaining the grid openings allocated to the target preset destination location to obtain the original grid openings;
[0132] Step S703, setting the original grid openings as dynamic grid openings.
[0133] In step S701 of some embodiments, the sorting plan is the allocation relationship between each grid opening and each preset destination location. The number of grid openings occupied by each preset destination location in each production shift is different. Generally, based on historical sorting data, the number of grid openings for each preset destination location in each production shift is obtained, and then the original sorting plan is obtained.
[0134] In steps S702 to S703 of some embodiments, in the original sorting plan, the historical total volume of parcels at the target preset destination location is small, but a grid opening must be allocated. However, most of the time, no parcels fall into these grid openings, so the utilization rate of these grid openings is very low. Therefore, the grid openings allocated to the target preset destination location in the original sorting plan are obtained to get the original grid openings, and the original grid openings are set as dynamic grid openings, so that the dynamic grid openings can carry the grid openings of different preset destination locations at different times, improving the utilization rate of the grid openings.
[0135] Please refer to Figure 8 , this application embodiment also provides an express parcel sorting device, which can implement the above express parcel sorting method. The device includes:
[0136] The first acquisition module 801 is used to obtain the number of express parcels flowing to the preset destination location according to the preset period to obtain the first parcel volume;
[0137] A detection module 802 is configured to perform status detection based on the first express volume to obtain the express flow status, where the express flow status is used to indicate whether the current grid occupied by the preset destination location is sufficient.
[0138] A second acquisition module 803 is configured to, if the express flow status indicates that the current grid occupied by the preset destination location is insufficient, acquire an idle dynamic grid in an idle state from a plurality of preset dynamic grids, and acquire one of the idle dynamic grids to obtain a candidate dynamic grid.
[0139] A first allocation module 804 is configured to allocate the candidate dynamic grid to the preset destination location and modify the idle state of the candidate dynamic grid to a busy state.
[0140] A third acquisition module 805 is configured to acquire the distance between each current grid and a preset loading station to obtain a first distance, and acquire the distance between the candidate dynamic grid and the loading station to obtain a second distance.
[0141] A screening module is configured to screen out a target grid from at least one current grid and the candidate dynamic grid according to the first distance and the second distance.
[0142] A second allocation module 806 is configured to allocate the target grid to the target express item.
[0143] The specific implementation manner of the express item sorting device is basically the same as the specific embodiment of the above-mentioned express item sorting method, and will not be elaborated here.
[0144] An embodiment of the present application further provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the above-mentioned express item sorting method is implemented. The electronic device can be any intelligent terminal including a tablet computer, an in-vehicle computer, etc.
[0145] Please refer to Figure 9 , Figure 9 which schematically shows the hardware structure of an electronic device in another embodiment. The electronic device includes:
[0146] A processor 901, which can be implemented in a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is configured to execute relevant programs to implement the technical solution provided by the embodiment of the present application.
[0147] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 902 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 902 and are called by the processor 901 to execute the entity matching method of the embodiments of this application;
[0148] The input / output interface 903 is used to implement information input and output;
[0149] The communication interface 904 is used to implement communication interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.);
[0150] The bus 905 transmits information between various components of the device (such as the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0151] Among them, the processor 901, the memory 902, the input / output interface 903, and the communication interface 904 are communicatively connected to each other inside the device through the bus 905.
[0152] The embodiments of this application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the above-mentioned express delivery sorting method.
[0153] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory can include high-speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes a memory remotely disposed relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0154] The embodiments described in the embodiments of this application are for more clearly explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are equally applicable to similar technical problems.
[0155] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figures, or combine certain steps, or different steps.
[0156] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and their appropriate combinations.
[0158] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above figures are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0159] It should be understood that in the present application, "at least one (item)" means one or more, and "multiple" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" may mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expression refers to any combination of these items, including any combination of single item (one) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0160] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.
[0161] The units described above as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0162] In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0163] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present 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 storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store programs.
[0164] The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings. However, this does not limit the scope of the rights of the embodiments of the present application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of the rights of the embodiments of the present application.
Claims
1. A method for sorting express parcels, characterized in that, Applied to a sorting machine, the method includes: Obtaining the number of express items flowing to a preset destination position according to a preset period to obtain a first express item quantity; Performing a status detection according to the first express item quantity to obtain an express item flow status; wherein, the express item flow status is used to characterize whether the current grid occupied by the preset destination position is sufficient; If the express item flow status characterizes that the current grid occupied by the preset destination position is insufficient in grid, obtaining an idle dynamic grid in an idle state from a preset plurality of dynamic grids, and obtaining one of the idle dynamic grids to obtain a candidate dynamic grid; Allocating the candidate dynamic grid to the preset destination position and modifying the idle state of the candidate dynamic grid to a busy state; Obtaining the distance between each of the current grids and a preset loading station to obtain a first distance, and obtaining the distance between the candidate dynamic grid and the loading station to obtain a second distance; Screening out a target grid from at least one of the current grids and the candidate dynamic grid according to the first distance and the second distance; Allocating the target grid to a target express item.
2. The method according to claim 1, characterized in that, If the express item flow status characterizes that the current grid occupied by the preset destination position is insufficient in grid and the candidate dynamic grid cannot be obtained from a preset plurality of dynamic grids, the method further includes: Obtaining the identification information of the preset destination position and storing the identification information in a preset queuing queue; When it is detected that there is an idle dynamic grid in an idle state among a preset plurality of dynamic grids, marking the idle dynamic grid as the current dynamic grid; Obtaining the identification information located at the first position in the queuing queue to obtain current identification information; Allocating the current dynamic grid to the preset destination position corresponding to the current identification information and modifying the idle state of the current dynamic grid to a busy state; Obtaining the distance between each of the current grids and the loading station to obtain a third distance, and obtaining the distance between the current dynamic grid and the loading station to obtain a fourth distance; Screening out a selected grid from at least one of the current grids and the current dynamic grid according to the third distance and the fourth distance; Allocating the selected grid to a target express item.
3. The method according to claim 1, characterized in that, After allocating the candidate dynamic grid to the preset destination position and modifying the idle state of the candidate dynamic grid to a busy state, the method further includes: Obtaining the number of express items flowing to the preset destination position according to a preset period to obtain a second express item quantity; Obtaining the average number of express items flowing to the preset destination position in each preset period of the corresponding historical production shift according to historical sorting data to obtain an average express item quantity; If the second express item quantity is not greater than a preset multiple of the average express item quantity for a preset number of consecutive times, canceling the allocation relationship between the preset destination position and the candidate dynamic grid and modifying the busy state of the candidate dynamic grid to an idle state.
4. The method according to claim 1, characterized in that The method further includes: Obtaining the total historical quantity of items flowing to each preset destination position in the corresponding historical production shift according to historical sorting data; Select a preset destination location with the historical total quantity less than a preset quantity to obtain a target preset destination location; Obtain an idle dynamic grid opening in an idle state from a plurality of preset dynamic grid openings, and obtain one of the idle dynamic grid openings to obtain a planned dynamic grid opening; Allocate the planned dynamic grid opening to the target preset destination location, and modify the idle state of the planned dynamic grid opening to a busy state; Cause the express items flowing to the target preset destination location to fall into the planned dynamic grid opening.
5. The method according to claim 4, characterized in that, After selecting a preset destination location with the historical total quantity less than a preset quantity to obtain a target preset destination location, if the planned dynamic grid opening cannot be obtained from a plurality of preset dynamic grid openings, the method further includes: Do not allocate a grid opening to the target preset destination location; wherein, when not allocating a grid opening to the target preset destination location, the express items flowing to the target preset destination location circle on the conveying component; Obtain the number of times the express items flowing to the target preset destination location circle, and determine whether the number of times the express items circle is greater than a threshold; If the number of times the express items circle is not greater than the threshold, detect whether there is an idle dynamic grid opening. If there is an idle dynamic grid opening, allocate the idle dynamic grid opening to the target preset destination location. If there is no idle dynamic grid opening, the express items flowing to the target preset destination location continue to circle; Until the number of times the express items circle is greater than the threshold and no idle dynamic grid opening is detected, allocate a preset abnormal grid opening to the target preset destination location.
6. The method according to claim 4, wherein After allocating the planned dynamic grid opening to the target preset destination location and modifying the idle state of the planned dynamic grid opening to a busy state, the method further includes: Detect whether there are express items falling into the planned dynamic grid opening within a preset time; If there are no express items falling into the planned dynamic grid opening within the preset time, cancel the allocation relationship between the target preset destination location and the planned dynamic grid opening, allocate a preset abnormal grid opening to the target preset destination location, and modify the busy state of the planned dynamic grid opening to an idle state.
7. The method according to claim 4, wherein Before obtaining the number of express items flowing to a preset destination location according to a preset period to obtain a first express quantity, the method further includes: Obtain an original sorting plan; According to the original sorting plan, obtain the grid opening allocated to the target preset destination location to obtain an original grid opening; Set the original grid opening as the dynamic grid opening.
8. An express parcel sorting device, characterized in that, The device includes: A first obtaining module, configured to obtain the number of express items flowing to a preset destination location according to a preset period to obtain a first express quantity; A detection module, configured to perform status detection according to the first express quantity to obtain an express item flow status; wherein, the express item flow status is used to characterize whether the currently occupied grid opening of the preset destination location is sufficient; A second obtaining module, configured to, if the express item flow status characterizes that the currently occupied grid opening of the preset destination location is insufficient in grid openings, obtain an idle dynamic grid opening in an idle state from a plurality of preset dynamic grid openings, and obtain one of the idle dynamic grid openings to obtain a candidate dynamic grid opening; A first allocation module, configured to allocate the candidate dynamic compartments to the preset destination positions and modify the idle status of the candidate dynamic compartments to a busy status; A third acquisition module, configured to acquire the distance between each of the current compartments and a preset loading station to obtain a first distance, and acquire the distance between the candidate dynamic compartment and the loading station to obtain a second distance; A screening module, configured to screen out target compartments from at least one of the current compartments and the candidate dynamic compartments according to the first distance and the second distance; A second allocation module, configured to allocate the target compartments to target express items.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the sorting method for express items according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the sorting method for express items according to any one of claims 1 to 7 is implemented.