Delivery bar code generation method and device, electronic equipment and storage medium

By automating the generation of shipping barcodes, the problems of low efficiency and difficulty in traceability in existing technologies for splitting shipments are solved, achieving efficient and accurate shipment management and cargo traceability.

CN119294944APending Publication Date: 2025-01-10ZHONGKE XUNLIAN SMART NETWORK TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411432137.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

Existing barcode generation methods require manual operation in split shipment scenarios, which is inefficient, prone to errors, and cannot achieve traceability of goods, thus hindering shipment management.

Method used

By acquiring the cargo data information of the goods to be shipped, the target shipping mode is determined according to the preset cargo identifier-reference quantity relationship, and barcode numbers are generated based on the cargo data information to realize the automatic generation of shipping barcodes. It supports overall shipping or split shipping, splitting by cargo quantity or by cargo source, and ensures that each barcode number corresponds one-to-one with cargo source information.

Benefits of technology

It improves the accuracy and efficiency of barcode generation, reduces human error, and enables the traceability of goods. It allows for the tracking and management of goods of different dates, types, or sources during the logistics process, thereby improving delivery efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119294944A_ABST
    Figure CN119294944A_ABST
Patent Text Reader

Abstract

The invention provides a delivery bar code generation method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining goods data information, including to-be-delivered goods identifiers, to-be-delivered goods total amount, delivery dates and to-be-delivered goods source information, determining a target reference quantity corresponding to the to-be-delivered goods identifiers according to a goods identifier-reference quantity corresponding relation, and sending the target reference quantity to the to-be-delivered goods; comparing the total quantity of the to-be-delivered goods with a target reference quantity, determining a target delivery mode, if the target delivery mode is split delivery, determining a target splitting mode according to the quantity of the to-be-delivered goods source information, and if the target splitting mode is split according to goods sources, determining a target delivery mode according to the quantity of the to-be-delivered goods source information; generating a bar code number based on the to-be-delivered goods identifier, the delivery date and the to-be-delivered goods source information until the number of the bar code numbers is consistent with the number of the to-be-delivered goods source information, so as to generate a delivery bar code according to each bar code number; according to the invention, automatic generation of the delivery bar code can be realized, the accuracy and efficiency of bar code generation are improved, human errors are reduced, and the traceability of goods information is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of barcode technology, and in particular to a method, device, electronic device and storage medium for generating a shipping barcode. Background Art

[0002] In the logistics industry, barcode technology is an important means of tracking and managing goods. For example, by using barcodes, shippers can easily classify, sort and load large quantities of goods. Workers only need to scan the barcodes on the logistics boxes or pallets to correctly transport the goods to the corresponding consignees, which greatly reduces human errors and improves work efficiency.

[0003] At present, most barcode generation methods require manual operation when processing split shipments, which is inefficient and prone to errors. In addition, the goods cannot be traced, which is not conducive to shipment management. Summary of the invention

[0004] In view of the shortcomings of the prior art mentioned above, the present application provides a shipping barcode generation method, device, electronic device and storage medium to solve the technical problems that the above-mentioned existing barcode generation method requires manual operation in the split shipping scenario, is inefficient and prone to errors, and cannot achieve traceability of goods, which is not conducive to shipping management.

[0005] The present application provides a method for generating a shipping barcode, the method comprising: obtaining cargo data information of goods to be shipped, the cargo data information comprising a cargo identification to be shipped, a total amount of the cargo to be shipped, a shipping date and at least one source of goods information of the cargo to be shipped; determining a target reference quantity corresponding to the cargo identification to be shipped according to a preset correspondence relationship between the cargo identification and the reference quantity, so as to compare the total amount of the cargo to be shipped with the target reference quantity, and determine a target shipping mode of the cargo to be shipped, the target shipping mode comprising overall shipping or split shipping; if the target shipping mode is split shipping, determining a target splitting mode of the cargo to be shipped according to the number of source of goods information of the cargo to be shipped in the cargo data information, the target splitting mode comprising splitting by cargo quantity or splitting by source of goods; if the target splitting mode is splitting by source of goods, generating a barcode number based on the cargo identification to be shipped, the shipping date and a source of goods information to be shipped, until the number of barcode numbers is consistent with the number of source of goods information of the cargo to be shipped, so as to generate a shipping barcode according to each barcode number.

[0006] In one embodiment of the present application, the total amount of goods to be shipped and the target reference amount are compared to determine the target shipment mode of the goods to be shipped, including: comparing the total amount of goods to be shipped with each preset unit load in the target reference amount to obtain a first comparison result; if the first comparison result satisfies a first preset condition, it is determined that the target shipment mode is overall shipment; if the first comparison result does not meet the first preset condition, it is determined that the target shipment mode is split shipment, wherein the first preset condition includes that the total amount of goods to be shipped is less than or equal to a preset unit load, and the difference between the total amount of goods to be shipped and the preset unit load is less than the minimum preset unit load in the target reference amount.

[0007] In one embodiment of the present application, the target splitting method of the goods to be shipped is determined according to the number of source information of the goods to be shipped in the goods data information, including: if there is only one source information of the goods to be shipped in the goods data information, the target splitting method is determined to be splitting by quantity; if there are at least two source information of the goods to be shipped in the goods data information, the target splitting method is determined to be splitting by source.

[0008] In one embodiment of the present application, if the target splitting method is splitting by source of goods, the method further includes: if there are at least three source information of goods to be shipped in the cargo data information, determining the maximum cargo quantity from the cargo quantities corresponding to the at least three source information of goods to be shipped, and the cargo data information also includes the cargo quantity corresponding to each source information of goods to be shipped; using the source information of goods to be shipped corresponding to the maximum cargo quantity as the single source information of goods to be shipped, using each source information of goods to be shipped except the single source information of goods to be shipped as the combined source information of goods to be shipped, and calculating the combined cargo quantity according to the cargo quantities corresponding to all the combined source information of goods to be shipped; determining the single source cargo quantity of the logistics box required to load the goods to be shipped according to the maximum cargo quantity and the target reference quantity. The number of flow boxes, and determine the number of combined source logistics boxes for loading the logistics boxes to be shipped according to the combined cargo quantity and the target reference quantity; generate a single barcode number based on the identification of the to-be-shipped cargo, the shipping date, the single source information of the to-be-shipped cargo and a self-incrementing serial number of the logistics box, until the number of single barcode numbers is consistent with the number of logistics boxes from the single source; generate a sub-barcode number based on the identification of the to-be-shipped cargo, the shipping date and the self-incrementing serial number of the logistics box and each combined source information of the to-be-shipped cargo, and obtain a combined barcode number according to the generated sub-barcode number, until the number of combined barcode numbers is consistent with the number of logistics boxes from the combined source; use each single barcode number and each combined barcode number as a barcode number to generate a shipping barcode according to each barcode number.

[0009] In one embodiment of the present application, if the target splitting method is to split by cargo quantity, the method includes: determining the number of logistics boxes required to load the cargo to be shipped based on the total amount of cargo to be shipped and the target reference quantity; generating a barcode number based on the cargo identification to be shipped, the shipping date, the source information of the cargo to be shipped and a self-incrementing serial number of the logistics box until the number of barcode numbers is consistent with the number of logistics boxes; and generating a shipping barcode according to each barcode number.

[0010] In one embodiment of the present application, the number of logistics boxes required to load the goods to be shipped is determined according to the total amount of goods to be shipped and the target reference amount, including: setting the number of logistics boxes to 1, and taking the difference between the total amount of goods to be shipped and the target unit loading amount as the current remaining amount of goods to be shipped, so as to compare the current remaining amount of goods to be shipped with each preset unit loading amount to obtain a second comparison result, wherein the target reference amount includes different preset unit loading amounts, and the target unit loading amount is the maximum value of the preset unit loading amounts that is less than the total amount of goods to be shipped; if the second comparison result meets the second preset condition, then the number of logistics boxes is increased by 1 to complete the determination of the number of logistics boxes, wherein the second preset condition includes that the remaining amount of goods to be shipped is less than or equal to a preset unit loading amount, and the difference between the remaining amount of goods to be shipped and the preset unit loading amount is less than the minimum preset unit load in the target reference quantity; if the second comparison result does not meet the second preset condition, the number of logistics boxes is increased by 1, and the difference between the current remaining amount of goods to be shipped and the new target unit load is used to update the current remaining amount of goods to be shipped, and the new target unit load is the maximum value among the preset unit loads that is smaller than the current remaining amount of goods to be shipped; repeatedly compare the current remaining amount of goods to be shipped with each preset unit load to obtain a second comparison result, if the second comparison result does not meet the second preset condition, the number of logistics boxes is increased by 1, and the difference between the current remaining amount of goods to be shipped and the new target unit load is used to update the current remaining amount of goods to be shipped, until the second comparison result meets the second preset condition, the number of logistics boxes is increased by 1, and the determination of the number of logistics boxes is completed.

[0011] In one embodiment of the present application, if the target delivery mode is overall delivery, the method includes: generating a batch number according to the identification of the goods to be shipped, the delivery date and the source information of the goods to be shipped; generating a barcode number according to the identification of the goods to be shipped and the batch number, so as to generate a shipping barcode according to the barcode number.

[0012] In one embodiment of the present application, a device for generating a shipping barcode is further provided, the device comprising: a data acquisition module, for acquiring cargo data information of goods to be shipped, the cargo data information comprising a cargo identification to be shipped, a total amount of cargo to be shipped, a shipping date, and at least one source of goods to be shipped; a shipping mode determination module, for determining a target reference amount corresponding to the cargo identification to be shipped according to a preset corresponding relationship between the cargo identification and the reference amount, so as to compare the total amount of cargo to be shipped with the target reference amount, and determine a target shipping mode of the cargo to be shipped, the target shipping mode comprising overall shipping or split shipping; a splitting mode determination module, for determining a target splitting mode of the cargo to be shipped according to the number of source of goods to be shipped in the cargo data information if the target shipping mode is split shipping, the target splitting mode comprising splitting by cargo quantity or splitting by source of goods; a barcode generation module, for generating a barcode number based on the cargo identification to be shipped, the shipping date, and a source of goods to be shipped if the target splitting mode is splitting by source of goods, until the number of barcode numbers is consistent with the number of source of goods to be shipped, so as to generate a shipping barcode according to each barcode number.

[0013] In one embodiment of the present application, an electronic device is also provided, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the shipping barcode generation method as described above.

[0014] In one embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the shipping barcode generation method as described above.

[0015] Beneficial effects of the present invention: The present invention provides a method, device, electronic device and storage medium for generating a shipping barcode. The method obtains the cargo data information of the goods to be shipped, determines the target reference quantity according to the identification of the goods to be shipped in the cargo data information, compares the total amount of the goods to be shipped with the target reference quantity, determines the target shipping mode of the goods to be shipped, and can reasonably plan logistics to avoid waste of logistics boxes; if the target shipping mode is split shipment, the target splitting method of the goods to be shipped is determined according to the quantity of the source information of the goods to be shipped, and generates the shipping barcode according to the target splitting method, which can realize the automatic generation of the shipping barcode, improve the accuracy and efficiency of barcode generation, reduce human errors and omissions, and thus improve the shipping efficiency and shipping accuracy. At the same time, when it is necessary to split the shipment, by splitting by source, the shipping barcode is generated based on the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped, so that each shipping barcode corresponds to each source information of the goods to be shipped, and the traceability of the information of the goods to be shipped is realized, which can track and manage goods of different dates, different types or different sources in the logistics process, and also facilitate the tracing of different sources of the same goods.

[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flow chart of a method for generating a shipping barcode shown in an exemplary embodiment of the present application;

[0018] Figure 2 is a flowchart of generating a shipping barcode according to a specific exemplary embodiment of the present application;

[0019] Figure 3 is a block diagram of a device for generating a shipping barcode as shown in an exemplary embodiment of the present application;

[0020] Figure 4 It is a structural schematic diagram of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0021] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0022] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0023] It should be noted that in this application, "first", "second", etc. are only used to distinguish similar objects, and are not used to limit the order or precedence of similar objects. The variations of "including", "having", etc. described above indicate that the scope covered by the subject of the word is not exclusive except for the examples shown by the word.

[0024] It is understood that the various numbers, step numbers, and other reference numerals recorded in this application are distinguished for the convenience of description and are not intended to limit the scope of this application. The size of the reference numerals in this application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic.

[0025] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0026] The embodiments of the present application respectively propose a shipping barcode generation method, a shipping barcode generation device, an electronic device, a computer-readable storage medium, and a computer program product, which will be described in detail below.

[0027] The present embodiment provides a method for generating a shipping barcode, including: obtaining cargo data information of goods to be shipped, the cargo data information including a cargo identification to be shipped, the total amount of goods to be shipped, a shipping date and at least one source of goods to be shipped; determining the target reference amount corresponding to the cargo identification to be shipped according to the preset cargo identification-reference amount correspondence relationship, so as to compare the total amount of goods to be shipped with the target reference amount, and determine the target shipping mode of the goods to be shipped, the target shipping mode including overall shipping or split shipping; if the target shipping mode is split shipping, according to the number of source of goods to be shipped in the cargo data information, determine the target splitting method of the goods to be shipped, the target splitting method including splitting by quantity or splitting by source; if the target splitting method is splitting by source, based on the cargo identification to be shipped, the shipping date and a source of goods to be shipped, generate a barcode number until the number of barcode numbers is consistent with the number of source of goods to be shipped, so as to generate a shipping barcode according to each barcode number. It can be seen that the technical solution of the embodiment of the present application can realize the automatic generation of shipping barcodes, improve the accuracy and efficiency of barcode generation, reduce human errors and omissions, and thus improve shipping efficiency and shipping accuracy. At the same time, when it is necessary to split the shipment, by splitting it by source, a shipping barcode is generated based on the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped, so that each shipping barcode corresponds to each source information of the goods to be shipped, thereby achieving the traceability of the information of the goods to be shipped, which can not only track and manage goods of different dates, types or sources in the logistics process, but also facilitate the traceability of different sources of the same goods.

[0028] See also Figure 1 , Figure 1 FIG. 1 is a flowchart of a method for generating a shipping barcode according to an exemplary embodiment of the present application. Figure 1 As shown, in an exemplary embodiment, the method for generating a shipping barcode includes at least steps S110 to S140, which are described in detail as follows:

[0029] Step S110, obtaining cargo data information of cargo to be shipped.

[0030] In one embodiment of the present application, the cargo data information of the goods to be shipped can be obtained by manual entry, or the cargo data information of the goods to be shipped sent by the distribution front end can be received, or the cargo data information of the goods to be shipped can be queried and obtained through the information system of the shipper, which is not limited here. The cargo data information includes the identification of the goods to be shipped, the total amount of the goods to be shipped, the shipping date and at least one source of the goods to be shipped. Among them, the identification of the goods to be shipped refers to the code or identifier used to uniquely identify the goods to be shipped, and can be composed of at least one of numbers, letters and symbols. The source information of the goods to be shipped represents the source information of the goods to be shipped, including at least one of the supplier information of the goods to be shipped, the batch information of the supplier of the goods to be shipped, etc. The number of the source information of the goods to be shipped in the cargo data information can be one or more. When the number of the source information of the goods to be shipped in the cargo data information is one, it means that the goods to be shipped belong to the same source, that is, the same supplier or the same supplier batch. When the number of the source information of the goods to be shipped in the cargo data information is multiple, it means that the goods to be shipped belong to different sources, that is, different suppliers or different supplier batches.

[0031] Step S120, determining the target reference quantity corresponding to the identification of the goods to be shipped according to the preset correspondence relationship between the identification of the goods to be shipped and the reference quantity, so as to compare the total amount of the goods to be shipped with the target reference quantity and determine the target delivery mode of the goods to be shipped.

[0032] In one embodiment of the present application, the target reference quantity may be the unit loading quantity corresponding to the goods to be shipped, that is, how much cargo can be loaded when a logistics box is loaded with the goods to be shipped. Different goods have different sizes, shapes, etc., and the unit loading quantity of the logistics box for different goods is also different; the target reference quantity may also be a standard for measuring the amount of goods to be shipped, which is not limited here. Therefore, the corresponding reference quantity can be set in advance for different goods according to actual needs to establish a corresponding relationship between the cargo identification and the reference quantity. The identification of the goods to be shipped is matched with the corresponding relationship between the preset cargo identification and the reference quantity to obtain the target reference quantity corresponding to the identification of the goods to be shipped. The total amount of the goods to be shipped can be compared with the target reference quantity or the difference comparison, and then the target delivery mode of the goods to be shipped can be determined according to the comparison result between the total amount of the goods to be shipped and the target reference quantity, wherein the target delivery mode includes overall delivery or split delivery. For example, when the total amount of the goods to be shipped is less than or equal to the target reference quantity, the target delivery mode can be determined as overall delivery, and when the total amount of the goods to be shipped is greater than the target reference quantity, the target delivery mode can be determined as split delivery.

[0033] In one embodiment of the present application, the total amount of goods to be shipped is compared with the target reference amount to determine the target delivery mode of the goods to be shipped, including: comparing the total amount of goods to be shipped with each preset unit load in the target reference amount to obtain a first comparison result; if the first comparison result satisfies a first preset condition, determining that the target delivery mode is overall delivery; if the first comparison result does not satisfy the first preset condition, determining that the target delivery mode is split delivery, wherein the first preset condition includes,

[0034] The total amount of goods to be shipped is less than or equal to a preset unit load, and the difference between the total amount of goods to be shipped and the preset unit load is less than the minimum preset unit load in the target reference amount.

[0035] In this embodiment, the target reference quantity includes at least one preset unit load, and at least one specification of logistics box can be allocated to each type of goods in advance, and the unit load of the corresponding goods loaded in each specification of logistics box is tested as a preset unit load, thereby obtaining at least one preset unit load corresponding to each type of goods as the reference quantity corresponding to the goods identification of the goods. It should be understood that for a certain type of goods, if at least two specifications of logistics boxes are allocated to the goods, due to the different specifications of the logistics boxes, the preset unit loads in the corresponding reference quantity are also different.

[0036] The total amount of goods to be shipped is compared with the target reference amount in size and difference, and the size comparison result and the difference comparison result are both used as the first comparison result. If the total amount of goods to be shipped is less than or equal to any preset unit load in the target reference amount, and the difference between the total amount of goods to be shipped and the preset unit load is less than the preset unit load with the smallest value in the target reference amount, that is, the minimum preset unit load, the first comparison result satisfies the first preset condition, and the target delivery mode is determined to be overall delivery. Otherwise, if the first preset condition is not met, the target delivery mode is determined to be split delivery.

[0037] Step S130: If the target delivery mode is split delivery, determine the target splitting method of the goods to be shipped according to the quantity of the source information of the goods to be shipped in the goods data information.

[0038] In one embodiment of the present application, the target splitting method includes splitting by quantity or by source. Since the goods to be shipped may belong to different sources, two different splitting methods can be set to facilitate the traceability management of goods.

[0039] In one embodiment of the present application, the target splitting method of the goods to be shipped is determined according to the quantity of the source information of the goods to be shipped in the cargo data information, including: if there is only one source information of the goods to be shipped in the cargo data information, the target splitting method is determined to be splitting by quantity; if there are at least two source information of the goods to be shipped in the cargo data information, the target splitting method is determined to be splitting by source.

[0040] In this embodiment, if there is only one source of goods to be shipped in the cargo data information, the system will split it according to the quantity of goods. If there are multiple sources of goods to be shipped, the system will split it according to the source. Through preset rules, the system can quickly determine the target splitting method, improve processing speed, avoid the tedious process of manual judgment and decision-making, and reduce the possibility of manual errors.

[0041] Step S140, if the target splitting method is splitting by source of goods, a barcode number is generated based on the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped, until the number of barcode numbers is consistent with the number of source information of the goods to be shipped, so as to generate a shipping barcode according to each barcode number.

[0042] In one embodiment of the present application, if the target splitting method is determined to be splitting by source of goods, the number of logistics boxes is consistent with the number of source information of goods to be shipped. Since each logistics box loaded with goods to be shipped needs to be affixed with a shipping barcode, and the shipping barcode is generated based on the barcode number, the number of barcode numbers required is the same as the number of logistics boxes, and further, the number of barcode numbers required is the same as the number of source information of goods to be shipped. At least one barcode number is generated based on the identification of the goods to be shipped, the shipping date, and the source information of the goods to be shipped, so that each source information of the goods to be shipped corresponds to a unique barcode number, which ensures the uniqueness and accuracy of the barcode of each logistics box, which is convenient for tracing and querying the source information, helps to improve the traceability of the supply chain, and can also achieve tracking and management of the entire logistics process.

[0043] In addition, in the split shipment scenario, when generating a barcode number, you can also add a self-incremental serial number of the logistics box, that is, based on the identification of the goods to be shipped, the shipping date, the source information of the goods to be shipped, and the self-incremental serial number of the logistics box, generate a barcode number until the number of barcode numbers is consistent with the number of source information of the goods to be shipped. Indicatively, a batch number can be generated according to the identification of the goods to be shipped, the shipping date, and the source information of the goods to be shipped to obtain multiple batch numbers, wherein each batch number corresponds to each source information of the goods to be shipped one by one; a barcode number is generated according to the identification of the goods to be shipped, the self-incremental serial number of the logistics box, and the batch number corresponding to the source information of the goods to be shipped; the next barcode number is generated according to the identification of the goods to be shipped, the self-incremental serial number of the next logistics box, and the batch number corresponding to the source information of the next goods to be shipped, until the number of barcode numbers is consistent with the number of source information of the goods to be shipped, and the generation of the barcode number is completed, so as to convert each barcode number into a shipping barcode and print it, so as to be subsequently pasted on the logistics box loaded with the shipped goods. The number of self-incrementing serial numbers of logistics boxes is determined by the number of logistics boxes, and the self-incrementing serial numbers of logistics boxes can be four-digit self-incrementing serial numbers, five-digit self-incrementing serial numbers, or other digit self-incrementing serial numbers, which are not limited here. For example: if the number of the source information of the goods to be shipped is 4, then the number of logistics boxes required under the splitting method of splitting by source is 4, and accordingly, the number of self-incrementing serial numbers of logistics boxes is also 4, and the self-incrementing serial numbers of logistics boxes can be 0001, 0002, 0003 and 0004 respectively.

[0044] For example, if the source information of the goods to be shipped is A, B, and C, batch number a is generated based on the identification of the goods to be shipped, the shipping date, and the source information A of the goods to be shipped. Batch number b is generated based on the identification of the goods to be shipped, the shipping date, and the source information B of the goods to be shipped. Batch number c is generated based on the identification of the goods to be shipped, the shipping date, and the source information C of the goods to be shipped. Then, the first barcode number is generated based on the identification of the goods to be shipped, the self-incremental serial number 0001 of the logistics box, and the batch number a. The second barcode number is generated based on the identification of the goods to be shipped, the self-incremental serial number 0002 of the logistics box, and the batch number b. The third barcode number is generated based on the identification of the goods to be shipped, the self-incremental serial number 0003 of the logistics box, and the batch number c.

[0045] In another embodiment of the present application, if the target splitting method is splitting by source of goods, the method further includes: if there are at least three source information of goods to be shipped in the cargo data information, determining the maximum cargo quantity from the cargo quantities corresponding to the at least three source information of goods to be shipped, and the cargo data information also includes the cargo quantity corresponding to each source information of goods to be shipped; using the source information of goods to be shipped corresponding to the maximum cargo quantity as a single source information of goods to be shipped, using each source information of goods to be shipped except the single source information of goods to be shipped as a combined source information of goods to be shipped, and calculating the combined cargo quantity according to the cargo quantities corresponding to all the combined source information of goods to be shipped; determining a single logistics box required to load the goods to be shipped according to the maximum cargo quantity and the target reference quantity. The number of source logistics boxes, and the number of combined source logistics boxes required to load the waiting goods is determined according to the combined cargo volume and the target reference volume; based on the identification of the waiting goods, the shipping date, the single source information of the waiting goods and the self-incremental serial number of a logistics box, a single barcode number is generated until the number of single barcode numbers is consistent with the number of single source logistics boxes; based on the identification of the waiting goods, the shipping date and the self-incremental serial number of a logistics box and each combined source information of the waiting goods, a sub-barcode number is generated, and a combined barcode number is obtained according to the generated sub-barcode number, until the number of combined barcode numbers is consistent with the number of combined source logistics boxes; each single barcode number and each combined barcode number are used as barcode numbers to generate a shipping barcode according to each barcode number.

[0046] For example, the cargo data information includes three cargo source information to be shipped (hereinafter referred to as cargo source information), namely cargo source information A, cargo source information B and cargo source information C. The cargo quantity corresponding to cargo source information A is m. A , the quantity of goods corresponding to the source information B is m B , the quantity of goods corresponding to the source information C is m C , for m A 、m B and m C Sort by size to sort m A 、m B and m C The largest one among them is taken as the maximum cargo quantity. If m A Maximum, then m A As the maximum cargo volume, then the maximum cargo volume is m A The corresponding source information A is used as the single source information of goods to be shipped, and m B Corresponding source information B and m C The corresponding source information C is used as the combined source information of goods to be shipped, and the sum of the goods quantities corresponding to all the combined source information of goods to be shipped is used as the combined quantity of goods. Then the number of logistics boxes of single source and the number of logistics boxes of combined source are calculated, and the sum of the number of logistics boxes of single source and the number of logistics boxes of combined source is the number of logistics boxes.

[0047] Based on the identification of the goods to be shipped, the shipping date, the single source information of the goods to be shipped, and the self-incrementing serial number of a logistics box, a single bar code number is generated until the number of the single bar code number is consistent with the number of logistics boxes from a single source. Specifically, the batch number corresponding to the single source information of the goods to be shipped can be generated according to the identification of the goods to be shipped, the shipping date, and the single source information of the goods to be shipped. According to the identification of the goods to be shipped, the self-incrementing serial number of a logistics box, and the batch number corresponding to the single source information of the goods to be shipped, a bar code number is generated as a single bar code number, and it is determined whether the number of the single bar code number is consistent with the number of logistics boxes from a single source. If they are consistent, the generation of the single bar code number is completed. Otherwise, according to the identification of the goods to be shipped, the self-incrementing serial number of the next logistics box, and the batch number corresponding to the single source information of the goods to be shipped, the next bar code number is generated as the next single bar code number, until the number of the single bar code number is consistent with the number of logistics boxes from a single source, and the generation of the single bar code number is completed.

[0048] Based on the identification of the goods to be shipped, the shipping date and the self-incrementing serial number of a logistics box and the source information of each combination of goods to be shipped, a sub-barcode number is generated, and a combined barcode number is obtained based on the generated sub-barcode number until the number of combined barcode numbers is consistent with the number of combined source logistics boxes. Specifically, the batch number corresponding to each combination of the source information of the goods to be shipped can be generated according to the identification of the goods to be shipped and the delivery date, respectively, and the batch number corresponding to each combination of the source information of the goods to be shipped, and a sub-barcode number can be generated according to the identification of the goods to be shipped and the self-incremental serial number of a logistics box, respectively, and the batch number corresponding to each combination of the source information of the goods to be shipped, and a barcode number can be obtained according to the generated sub-barcode number as a combination barcode number, and it is judged whether the number of the combination barcode number is consistent with the number of the combined source logistics boxes. If they are consistent, the generation of the combination barcode number is completed, otherwise, according to the identification of the goods to be shipped and the self-incremental serial number of the next logistics box, respectively, and the batch number corresponding to each combination of the source information of the goods to be shipped, a sub-barcode number is generated, and the next barcode number is obtained according to the generated sub-barcode number as the next combination barcode number, until the number of the combination barcode number is consistent with the number of the combined source logistics boxes, and the generation of the combination barcode number is completed. For example: according to the identification of the goods to be shipped, the delivery date and the source information B, the batch number corresponding to the source information B of the goods is generated, and according to the identification of the goods to be shipped, the delivery date and the source information B, the batch number corresponding to the source information B of the goods is generated. If the number of combined source logistics boxes is 2, based on the identification of the goods to be shipped, the self-incrementing serial number of a logistics box and the batch number corresponding to the source information B, a sub-barcode number corresponding to the source information B is generated; based on the identification of the goods to be shipped, the self-incrementing serial number of the logistics box and the batch number corresponding to the source information C, a sub-barcode number corresponding to the source information C is generated, and according to the generated sub-barcode number corresponding to the source information B and the sub-barcode number corresponding to the source information C, a barcode number is obtained as a combined barcode number; based on the identification of the goods to be shipped, the self-incrementing serial number of the next logistics box and the batch number corresponding to the source information C, a sub-barcode number corresponding to the source information B is generated. The serial number and the batch number corresponding to the source information B generate the next sub-barcode number corresponding to the source information B. Based on the identification of the goods to be shipped, the self-increment serial number of the next logistics box and the batch number corresponding to the source information C, the next sub-barcode number corresponding to the source information C is generated, and according to the next sub-barcode number corresponding to the generated source information B and the next sub-barcode number corresponding to the source information C, the next barcode number is obtained as the next combined barcode number. At this time, the number of combined barcode numbers is 2, which is consistent with the number of combined source logistics boxes, and the generation of the combined barcode number is completed.

[0049] It should be noted that both the single barcode number and the combined barcode number are barcode numbers, but the combined barcode number includes multiple sub-barcode numbers, and for the same batch of goods to be shipped, the self-incrementing serial numbers of the logistics boxes used to generate the single barcode number and the combined barcode number are continuous. For example: if the number of logistics boxes from a single source of goods is 1, and the number of logistics boxes from combined sources of goods is 2, the self-incrementing serial numbers of the logistics boxes used to generate the single barcode number and the combined barcode number can be 0001, 0002 and 0003 respectively.

[0050] In one embodiment of the present application, if the target splitting method is to split by cargo quantity, the method includes: determining the number of logistics boxes required to load the cargo to be shipped based on the total amount of cargo to be shipped and the target reference quantity; generating a barcode number based on the cargo identification, shipping date, source information of the cargo to be shipped and a self-incrementing serial number of a logistics box until the number of barcode numbers is consistent with the number of logistics boxes; generating a shipping barcode according to each barcode number.

[0051] In this embodiment, if the target reference quantity includes only one preset unit load, the total amount of goods to be shipped can be divided by the preset unit load, and the result can be rounded up to obtain the number of logistics boxes; if the target reference quantity includes multiple preset unit loads, a preset unit load can be selected from the multiple preset unit loads, and the total amount of goods to be shipped can be divided by the selected preset unit load, and the result can be rounded up to obtain the number of logistics boxes. Of course, the number of logistics boxes can also be determined based on the total amount of goods to be shipped and the target reference quantity and other calculation methods, which are not limited here. The number of barcode numbers generated is determined by the number of logistics boxes. A batch number can be generated based on the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped; a barcode number can be generated based on the identification of the goods to be shipped, the self-incrementing serial number of a logistics box and the batch number, and it is determined whether the number of barcode numbers is consistent with the number of logistics boxes. If they are consistent, the generation of the barcode number is completed; otherwise, the next barcode number is generated based on the identification of the goods to be shipped, the self-incrementing serial number of the next logistics box and the batch number as the next barcode number, until the number of barcode numbers is consistent with the number of logistics boxes, and the generation of the barcode number is completed.

[0052] In one embodiment of the present application, the number of logistics boxes required to load the goods to be shipped is determined based on the total amount of goods to be shipped and the target reference amount, including: setting the number of logistics boxes to 1, and taking the difference between the total amount of goods to be shipped and the target unit loading amount as the current remaining amount of goods to be shipped, so as to compare the current remaining amount of goods to be shipped with each preset unit loading amount to obtain a second comparison result, the target reference amount includes different preset unit loading amounts, and the target unit loading amount is the maximum value of the preset unit loading amounts that is less than the total amount of goods to be shipped; if the second comparison result meets the second preset condition, then the number of logistics boxes is increased by 1 to complete the determination of the number of logistics boxes, wherein the second preset condition includes that the remaining amount of goods to be shipped is less than or equal to a preset unit loading amount, and the difference between the remaining amount of goods to be shipped and a preset unit loading amount The value is less than the minimum preset unit load in the target reference quantity; if the second comparison result does not meet the second preset condition, the number of logistics boxes is increased by 1, and the difference between the current remaining amount of goods to be shipped and the new target unit load is used to update the current remaining amount of goods to be shipped, and the new target unit load is the maximum value of the preset unit loads that is less than the current remaining amount of goods to be shipped; repeat the step of comparing the current remaining amount of goods to be shipped with each preset unit load to obtain the second comparison result. If the second comparison result does not meet the second preset condition, the number of logistics boxes is increased by 1, and the difference between the current remaining amount of goods to be shipped and the new target unit load is used to update the current remaining amount of goods to be shipped, until the second comparison result meets the second preset condition, the number of logistics boxes is increased by 1, and the determination of the number of logistics boxes is completed.

[0053] In this embodiment, the target unit load is first determined, and the preset unit loads in the target reference quantity that are less than the total amount of goods to be shipped are sorted, so that the maximum value among them is used as a target unit load, and the logistics box corresponding to the target unit load is used as a target logistics box for loading the goods to be shipped. At this time, the number of logistics boxes is counted as 1. Then the difference between the total amount of goods to be shipped and the target unit load is calculated as the current remaining amount of goods to be shipped, and the current remaining amount of goods to be shipped is compared with each preset unit load to obtain a second comparison result. If the second comparison result satisfies the second preset condition, it means that there is a logistics box corresponding to the preset unit load in the target reference quantity that can load the current remaining amount of goods to be shipped, and the difference between the remaining amount of goods to be shipped and the preset unit load also satisfies the minimum preset unit load. At this time, the number of logistics boxes is increased by 1 to complete the determination of the number of logistics boxes.

[0054] If the second comparison result does not meet the second preset condition, a new target unit load is determined, and the preset unit loads in the target reference quantity that are smaller than the current remaining quantity of goods to be shipped are sorted, so that the maximum value among them is used as another target unit load, and the logistics box corresponding to the other target unit load is used as another target logistics box for loading the goods to be shipped, and at this time, the number of logistics boxes is increased by 1. Then, the difference between the current remaining quantity of goods to be shipped and the other target unit load is calculated to update the current remaining quantity of goods to be shipped, that is, the difference is used as the updated current remaining quantity of goods to be shipped, and the updated current remaining quantity of goods to be shipped is compared with each preset unit load to obtain another second comparison result. If the other second comparison result meets the second preset condition, it means that there is a logistics box corresponding to the preset unit load in the target reference quantity that can load the updated current remaining quantity of goods to be shipped, and the difference between the updated remaining quantity of goods to be shipped and the preset unit load also meets the minimum preset unit load, and at this time, the number of logistics boxes is increased by 1 to complete the determination of the number of logistics boxes.

[0055] If the second comparison result does not meet the second preset condition, the steps of determining a new target unit load, adding 1 to the number of logistics boxes, updating the current remaining quantity of goods to be shipped, and comparing the current remaining quantity of goods to be shipped with each preset unit load are repeated until the second comparison result meets the second preset condition, adding 1 to the number of logistics boxes, and completing the determination of the number of logistics boxes. The technical solution of this embodiment can ensure that the load of the goods to be shipped in each logistics box is as close as possible to the preset unit load corresponding to the logistics box, thereby reducing waste or surplus space, and reducing the number of boxes to a certain extent, saving costs.

[0056] In one embodiment of the present application, if the target delivery mode is overall delivery, the method includes: generating a batch number based on the identification of the goods to be shipped, the delivery date, and the source information of the goods to be shipped; generating a barcode number based on the identification of the goods to be shipped and the batch number, and generating a shipping barcode according to the barcode number.

[0057] In this embodiment, if the target delivery mode is overall delivery, it means that the goods to be shipped can be shipped in full boxes, that is, only one logistics box is needed to load all the goods to be shipped, so only one barcode number needs to be generated. According to the identification of the goods to be shipped, the delivery date and the source information of the goods to be shipped, the batch number is generated, and the barcode number is generated according to the identification of the goods to be shipped and the batch number, so that specific goods can be quickly found and sorted, which improves the efficiency of logistics operations, and identifies the source information of each item to be shipped, so that the goods can be tracked and identified more conveniently during the logistics process, and the transparency of the supply chain is enhanced.

[0058] In one embodiment of the present application, after determining the number of logistics boxes, the method also includes: if the number of logistics boxes is greater than a preset threshold, querying the unit load capacity of the pallet, and determining the number of pallets required to load the goods to be shipped based on the number of logistics boxes and the unit load capacity of the pallet; generating a pallet barcode number based on the identification of the goods to be shipped, the shipping date and a self-incrementing serial number of a pallet, until the number of pallet barcode numbers is consistent with the number of pallets; generating a pallet barcode according to each pallet barcode number.

[0059] In this embodiment, if the number of logistics boxes is greater than a preset threshold, in order to facilitate the management of goods during the logistics process, pallets can also be used to load logistics boxes for logistics transportation. Therefore, in addition to the need to affix a shipping barcode to each logistics box loaded with goods to be shipped, each pallet loaded with a logistics box packed with goods to be shipped also needs to affix a pallet barcode. The pallet barcode is generated based on the pallet barcode number. Therefore, the number of pallet barcode numbers is the same as the number of pallets. First, the number of pallets needs to be determined. The unit load of the pallet can be queried, and the number of logistics boxes can be divided by the unit load of the pallet. The result is rounded up to get the number of pallets. The pallet self-incrementing sequence number can be a four-digit self-incrementing sequence number, a five-digit self-incrementing sequence number, or a self-incrementing sequence number of other digits, which is not limited here. For example: If the number of pallets is 3, the pallet self-incrementing sequence numbers can be 00001, 00002, and 00003, respectively. A pallet barcode number can be generated based on the identification of the goods to be shipped, the shipping date, and the self-incrementing serial number of a pallet, and the number of pallet barcode numbers can be judged to be consistent with the number of pallets. If they are consistent, the pallet barcode number generation is completed. Otherwise, the next pallet barcode number is generated based on the identification of the goods to be shipped, the shipping date, and the self-incrementing serial number of the next pallet, until the number of pallet barcode numbers is consistent with the number of pallets, and the pallet barcode number generation is completed. It can ensure that each pallet has a unique pallet barcode number, which helps to improve logistics management and operational efficiency.

[0060] In one embodiment of the present application, after the barcode number is generated, the method includes: generating a barcode number review request information based on all the generated barcode numbers, and sending the barcode number review request information to the receiving end to prompt the receiving user at the receiving end to review all the barcode numbers based on the barcode number review request information; receiving the request confirmation information of the barcode number review request information from the receiving end, if the request confirmation information is an agreement, generating a shipping barcode according to each barcode number; if the request confirmation information is a rejection, adding at least one rejected source of goods to be shipped in the request confirmation information to the blacklist corresponding to the receiving user.

[0061] In this implementation, if the request confirmation information is a rejection, the cargo data information of the goods to be shipped can be re-acquired to regenerate a new barcode number based on the cargo data information and in the above manner until the new request confirmation information is an approval, and a shipping barcode is generated according to the new barcode number. By sending the barcode number review request information to the receiving end, so that the receiving user at the receiving end can review the barcode number, the receiving user can understand the source information of the goods to be shipped before shipping, which enhances the transparency of the supply chain, improves the satisfaction of the receiving user, and can effectively avoid the situation where the receiving user returns the goods due to dissatisfaction with the source information of the received goods, resulting in transportation losses.

[0062] In one embodiment of the present application, before determining the target reference quantity corresponding to the identification of the goods to be shipped according to the preset correspondence between the identification of the goods to be shipped and the reference quantity, the method includes: matching each source information of the goods to be shipped in the goods data information with the blacklist corresponding to the receiving user; if all the source information of the goods to be shipped in the goods data information are not in the blacklist corresponding to the receiving user, then determining the target reference quantity corresponding to the identification of the goods to be shipped according to the preset correspondence between the identification of the goods to be shipped and the reference quantity; if any source information of the goods to be shipped in the goods data information is in the blacklist corresponding to the receiving user, then generating an error prompt message and sending it to the distribution front end, triggering the distribution front end to regenerate the goods data information of the goods to be shipped, so as to re-acquire the goods data information of the goods to be shipped. It is possible to perform self-checking through the source information of the goods to be shipped, reduce the error rate of the barcode number before the user reviews the barcode number, improve the experience and satisfaction of the receiving user in reviewing the barcode number, and request confirmation information as the agreed passing volume.

[0063] See also Figure 2 , Figure 2 FIG. 1 is a flowchart of a shipping barcode generation process shown in a specific exemplary embodiment of the present application. Figure 2 As shown, the process of generating a shipping barcode is as follows:

[0064] 1. Obtain the cargo data information generated by the distribution front end, including the cargo identification, total cargo quantity, delivery date and at least one cargo source information of the cargo to be shipped, wherein the cargo source information includes the cargo supplier information and the cargo supplier batch information;

[0065] 2. Perform the first supply review on the supply information of the goods to be shipped in the goods data information according to the blacklist corresponding to the receiving user. If the supply information of the goods to be shipped in the goods data information is not in the blacklist, it is determined that the first supply review has passed. Otherwise, it is determined that the first supply review has failed.

[0066] 3. If the review fails, an error message is generated and sent to the distribution front end, triggering the distribution front end to regenerate the cargo data information of the goods to be shipped, so as to re-acquire the cargo data information of the goods to be shipped; if the review passes, the target reference quantity corresponding to the identification of the goods to be shipped is determined, and the target shipping mode of the goods to be shipped is determined by comparing the total amount of the goods to be shipped with the target reference quantity;

[0067] 4. Determine whether the target delivery mode is split delivery. If not, generate a delivery barcode based on the identification of the goods to be shipped, the delivery date, and the source information of the goods to be shipped. If it is split delivery, determine the target splitting method of the goods to be shipped based on the quantity of the source information of the goods to be shipped in the cargo data information.

[0068] 5. Determine whether the target splitting method is splitting by source of goods. If it is splitting by source of goods, generate multiple barcode numbers according to the quantity of the source of goods, that is, generate multiple barcode numbers based on the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped, until the number of barcode numbers is consistent with the number of the source information of the goods to be shipped; if it is not splitting by source of goods, generate multiple barcode numbers according to the quantity of goods, that is, determine the number of logistics boxes according to the total amount of goods to be shipped and the target reference quantity, and generate multiple barcode numbers based on the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped, until the number of barcode numbers is consistent with the number of logistics boxes;

[0069] 6. Generate a barcode number review request message based on the generated barcode number and send it to the receiving end, so that the receiving user at the receiving end can conduct a second supply review on the barcode number and return a request confirmation message. If the returned request confirmation message is a rejection, it means that the second supply review has failed, and at least one rejected supply information of the goods to be shipped in the request confirmation message is added to the blacklist corresponding to the receiving user to update the blacklist, and generate an error prompt message and send it to the distribution front end, triggering the distribution front end to regenerate the goods data information of the goods to be shipped, so as to re-acquire the goods data information of the goods to be shipped; if the returned request confirmation message is an agreement, it means that the second supply review has passed, and the shipping barcode is generated and printed according to the barcode number.

[0070] Figure 2For the detailed process in the flow, please refer to the records in the above embodiments, which will not be described here. The technical solution of this embodiment generates different barcodes through different delivery modes and different splitting methods, realizes the automatic generation of delivery barcodes, improves the efficiency and accuracy of generation, and facilitates subsequent delivery management. At the same time, generating barcode numbers based on the identification of goods to be shipped and the source information of goods to be shipped can improve the traceability of goods and facilitate the tracing of goods. In addition, before the barcode number is converted into a barcode, the first source of goods review at the shipping end before the barcode number is generated can be used for self-inspection through the source of goods information of the goods to be shipped, thereby reducing the error rate of the barcode number before the user reviews the barcode number, and improving the experience and satisfaction of the receiving user in reviewing the barcode number, as well as the number of requests for confirmation that the information is agreed. The second source of goods review at the receiving end after the barcode number is generated can, on the one hand, further improve the accuracy of barcode generation and avoid shipping errors caused by barcode number errors. On the other hand, it can also allow the receiving user to understand the source of goods information of the goods to be shipped before shipment, thereby enhancing the transparency of the supply chain, improving the satisfaction of the receiving user, and effectively avoiding the situation where the receiving user returns the goods due to dissatisfaction with the source of goods information of the received goods, resulting in transportation losses.

[0071] See also Figure 3 , Figure 3 FIG. 1 is a block diagram of a device for generating a shipping barcode according to an exemplary embodiment of the present application. Figure 3 As shown, the exemplary shipping barcode generating device includes:

[0072] The data acquisition module 310 is configured to acquire cargo data information of goods to be shipped, the cargo data information includes a cargo identification to be shipped, a total amount of cargo to be shipped, a shipping date and at least one source of goods to be shipped; the shipping mode determination module 320 is configured to determine a target reference quantity corresponding to the cargo identification to be shipped according to a preset correspondence relationship between the cargo identification and the reference quantity, so as to compare the total amount of cargo to be shipped with the target reference quantity and determine a target shipping mode of the cargo to be shipped, the target shipping mode including overall shipping or split shipping; the splitting method determination module 330 is configured to determine a target splitting method of the cargo to be shipped according to the number of source of goods to be shipped in the cargo data information if the target shipping mode is split shipping, the target splitting method including splitting by quantity or splitting by source of goods; the barcode generation module 340 is configured to generate a barcode number based on the cargo identification to be shipped, the shipping date and a source of goods to be shipped if the target splitting method is splitting by source of goods, until the number of barcode numbers is consistent with the number of source of goods to be shipped, so as to generate a shipping barcode according to each barcode number.

[0073] It should be noted that the shipping barcode generation device provided in the above embodiment and the shipping barcode generation method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the shipping barcode generation device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0074] This embodiment also provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the shipping barcode generation method provided in the above-mentioned embodiments.

[0075] See also Figure 4 , Figure 4 is a structural diagram of an electronic device shown in an exemplary embodiment of the present application. It should be noted that: Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0076] like Figure 4 As shown, the electronic device 400 includes a processor 401, a memory 402 and a communication bus 403; the communication bus 403 is used to connect the processor 401 and the memory 402; the processor 401 is used to execute the computer program stored in the memory 402 to implement one or more methods in the above embodiments.

[0077] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the method for generating a shipping barcode as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0078] This embodiment also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the shipping barcode generation method provided in each of the above embodiments.

[0079] The electronic device provided in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program so that the electronic device executes each step of the above method.

[0080] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0081] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0082] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the execution includes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM (read-only memory), RAM (random access memory), magnetic disk or optical disk and other media that can store program codes.

[0083] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for generating a shipping barcode, characterized in that: The method comprises: Acquire cargo data information of goods to be shipped, wherein the cargo data information includes an identification of the goods to be shipped, a total amount of the goods to be shipped, a shipping date, and at least one source of goods to be shipped; Determine the target reference quantity corresponding to the identification of the goods to be shipped according to the preset correspondence relationship between the identification of the goods to be shipped and the reference quantity, compare the total amount of the goods to be shipped with the target reference quantity, and determine the target delivery mode of the goods to be shipped, wherein the target delivery mode includes overall delivery or split delivery; If the target delivery mode is split delivery, determine the target splitting method of the goods to be shipped according to the quantity of the source information of the goods to be shipped in the goods data information, and the target splitting method includes splitting by quantity or by source; If the target splitting method is splitting by source of goods, a barcode number is generated based on the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped, until the number of barcode numbers is consistent with the number of the source information of the goods to be shipped, so as to generate a shipping barcode according to each barcode number.

2. The method for generating a shipping barcode according to claim 1, characterized in that: Comparing the total amount of goods to be shipped with the target reference amount to determine the target shipping mode of the goods to be shipped, including: Comparing the total amount of goods to be shipped with each preset unit load amount in the target reference amount to obtain a first comparison result; If the first comparison result meets the first preset condition, the target delivery mode is determined to be whole delivery; if the first comparison result does not meet the first preset condition, the target delivery mode is determined to be split delivery, wherein the first preset condition includes: The total amount of goods to be shipped is less than or equal to a preset unit load, and the difference between the total amount of goods to be shipped and the preset unit load is less than the minimum preset unit load in the target reference amount.

3. The method for generating a shipping barcode according to claim 1, characterized in that: Determining a target splitting method of the goods to be shipped according to the quantity of the source information of the goods to be shipped in the goods data information includes: If there is only one source of goods to be shipped in the goods data information, it is determined that the target splitting method is splitting by quantity; If there are at least two sources of goods to be shipped in the goods data information, it is determined that the target splitting method is splitting by source of goods.

4. The method for generating a shipping barcode according to claim 3, characterized in that: If the target splitting method is splitting by source of goods, the method further includes: If there are at least three sources of goods to be shipped in the goods data information, determine the maximum quantity of goods from the goods quantities corresponding to the at least three sources of goods to be shipped, and the goods data information also includes the quantity of goods corresponding to each source of goods to be shipped; The source information of the goods to be shipped corresponding to the maximum quantity of goods is used as the single source information of the goods to be shipped, and each source information of the goods to be shipped except the single source information of the goods to be shipped is used as the combined source information of the goods to be shipped, and the combined quantity of goods is calculated according to the quantity of goods corresponding to all the combined source information of the goods to be shipped; Determine the number of single-source logistics boxes required to load the goods to be shipped according to the maximum cargo quantity and the target reference quantity, and determine the number of combined-source logistics boxes required to load the goods to be shipped according to the combined cargo quantity and the target reference quantity; Based on the identification of the goods to be shipped, the shipping date, the source information of the single goods to be shipped and a self-incrementing serial number of a logistics box, a single barcode number is generated until the number of the single barcode number is consistent with the number of logistics boxes of the single source; Based on the identification of the goods to be shipped, the shipping date and a self-incrementing serial number of a logistics box and the source information of each combination of goods to be shipped, a sub-barcode number is generated, and a combined barcode number is obtained according to the generated sub-barcode number until the number of combined barcode numbers is consistent with the number of logistics boxes of the combined source of goods; Each single barcode number and each combined barcode number are used as barcode numbers to generate a shipping barcode according to each barcode number.

5. The method for generating a shipping barcode according to claim 3, characterized in that: If the target splitting method is splitting by cargo volume, the method includes: Determine the number of logistics boxes required to load the goods to be shipped according to the total amount of goods to be shipped and the target reference amount; Based on the identification of the goods to be shipped, the shipping date, the source information of the goods to be shipped and a self-incrementing serial number of a logistics box, a barcode number is generated until the number of barcode numbers is consistent with the number of logistics boxes; Generate a shipping barcode according to each barcode number.

6. The method for generating a shipping barcode according to claim 5, characterized in that: Determining the number of logistics boxes required to load the goods to be shipped according to the total amount of goods to be shipped and the target reference amount includes: The number of logistics boxes is set to 1, and the difference between the total amount of goods to be shipped and the target unit load is used as the current remaining amount of goods to be shipped, so as to compare the current remaining amount of goods to be shipped with each preset unit load to obtain a second comparison result, wherein the target reference amount includes different preset unit loads, and the target unit load is the maximum value of the preset unit loads that are less than the total amount of goods to be shipped; If the second comparison result satisfies the second preset condition, the number of logistics boxes is increased by 1 to complete the determination of the number of logistics boxes, wherein the second preset condition includes that the remaining quantity of the goods to be shipped is less than or equal to a preset unit load quantity, and the difference between the remaining quantity of the goods to be shipped and the preset unit load quantity is less than the minimum preset unit load quantity in the target reference quantity; If the second comparison result does not meet the second preset condition, the number of logistics boxes is increased by 1, and the current remaining quantity of goods to be shipped is updated by the difference between the current remaining quantity of goods to be shipped and the new target unit loading quantity, and the new target unit loading quantity is the maximum value of the preset unit loading quantities that is less than the current remaining quantity of goods to be shipped; Repeat the step of comparing the current remaining quantity of goods to be shipped with each preset unit load to obtain a second comparison result. If the second comparison result does not meet the second preset condition, increase the number of logistics boxes by 1, and update the current remaining quantity of goods to be shipped by the difference between the current remaining quantity of goods to be shipped and the new target unit load, until the second comparison result meets the second preset condition, increase the number of logistics boxes by 1, and complete the determination of the number of logistics boxes.

7. The method for generating a shipping barcode according to any one of claims 1 to 6, characterized in that: If the target delivery mode is overall delivery, the method includes: Generate a batch number according to the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped; A barcode number is generated according to the identification of the goods to be shipped and the batch number, so as to generate a shipping barcode according to the barcode number.

8. A device for generating a shipping barcode, characterized in that: The device comprises: A data acquisition module, used to acquire cargo data information of goods to be shipped, wherein the cargo data information includes an identification of the goods to be shipped, a total amount of the goods to be shipped, a shipping date and at least one source of goods to be shipped; A delivery mode determination module, used to determine the target reference quantity corresponding to the identification of the goods to be shipped according to the preset correspondence relationship between the identification of the goods to be shipped and the reference quantity, so as to compare the total amount of the goods to be shipped with the target reference quantity and determine the target delivery mode of the goods to be shipped, wherein the target delivery mode includes overall delivery or split delivery; A splitting method determining module is used to determine the target splitting method of the goods to be shipped according to the quantity of the source information of the goods to be shipped in the goods data information if the target shipping mode is split shipping, and the target splitting method includes splitting by quantity or by source; The barcode generation module is used to generate a barcode number based on the identification of the goods to be shipped, the shipping date and the source information of the goods to be shipped if the target splitting method is splitting by source of goods, until the number of barcode numbers is consistent with the number of the source information of the goods to be shipped, so as to generate a shipping barcode according to each barcode number.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the shipping barcode generation method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method for generating a shipping barcode as described in any one of claims 1 to 7.