Waybill data generation method and device

By automatically generating reverse waybill data, the problem of managing return waybills for special items in the logistics transportation chain has been solved, achieving efficient generation and manageability of reverse waybill data and reducing the complexity of manual operation.

CN121998726APending Publication Date: 2026-05-08BEIJING JINGDONG YUANSHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING JINGDONG YUANSHENG TECH CO LTD
Filing Date
2024-11-06
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In the context of logistics and transportation chains, the management of return waybills for special items is difficult to unify and trace, resulting in significant management challenges.

Method used

Automatically generate reverse waybill data, store the correspondence between reverse waybills and forward waybills, and generate transportation and item information for reverse waybills through streaming computing and preset configuration information, thereby realizing the automatic generation and traceability processing of reverse waybill data.

Benefits of technology

It improves the efficiency of generating and managing reverse waybill data, reduces the complexity of manual operations, and achieves manageability and traceability of reverse waybill data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121998726A_ABST
    Figure CN121998726A_ABST
Patent Text Reader

Abstract

The invention discloses a waybill data generation method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of determining target waybill data in forward waybill data based on user return information, determining transportation information of a reverse waybill according to the transportation information in the target waybill data, and generating article information of the reverse waybill according to configuration information and the target waybill data, and forming reverse waybill data in combination with the transportation information. According to the embodiment, automatic generation of the reverse waybill data can be realized, and the efficiency and accuracy of reverse waybill data generation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for generating waybill data. Background Technology

[0002] Currently, in logistics and transportation scenarios, the transportation of certain special items often requires additional return delivery orders to facilitate the return of items with their special packaging. For example, for cold chain goods transported in insulated boxes, the boxes need to be returned for mailing after the cold chain goods have been successfully delivered, ensuring the recycling and reuse of the boxes.

[0003] The existing return process involves customers placing orders offline and mailing the special packaging back themselves. Merchants find it difficult to manage these self-returned packages in a unified manner, and it is impossible to trace the origin of the returned packages. Checking the corresponding shipping labels is also difficult, further increasing the management complexity. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a method and apparatus for generating waybill data, which can automatically generate reverse waybill data for goods and store the correspondence between reverse waybill data and forward waybill data, thereby improving management efficiency.

[0005] To achieve the above objectives, according to one aspect of the present invention, a method for generating waybill data is provided, comprising:

[0006] Obtain positive waybill data and user return information;

[0007] Determine the target waybill data in the positive waybill data based on user return information;

[0008] Based on the transportation information in the target waybill data, determine the transportation information of the reverse waybill. The recipient of the reverse waybill is the same as the sender of the forward waybill.

[0009] Based on the preset configuration information and the target waybill data, generate the item information for the reverse waybill;

[0010] The reverse waybill data corresponding to the target waybill data is generated based on the transportation information and item information of the reverse waybill.

[0011] Optionally, before obtaining the forward waybill data, the method further includes:

[0012] Obtain forward waybill task data, which includes waybill data and waybill filtering rule data;

[0013] The waybill data is filtered based on the waybill filtering rules to obtain positive waybill data.

[0014] Optionally, reverse waybill data corresponding to the target waybill data is generated based on the transportation information and item information of the reverse waybill, including:

[0015] In response to the configuration information meeting the preset processing conditions, the transportation information and item information of the reverse waybill are combined to obtain the reverse waybill data corresponding to the target waybill data.

[0016] Optionally, the method further includes:

[0017] In response to the configuration information not meeting the preset processing conditions, obtain the supplementary information entered by the user;

[0018] Based on the supplementary information, the transportation information of the reverse waybill, and the item information of the reverse waybill, the reverse waybill data corresponding to the target waybill data is generated.

[0019] Optionally, the method further includes:

[0020] Establish reverse waybill transportation tasks based on reverse waybill data;

[0021] By using reverse waybill transportation tasks, obtain the transportation status messages of reverse waybill data;

[0022] Based on the transportation status messages, the transportation status of the reverse waybill data is updated according to a preset time period.

[0023] Optionally, based on the transportation status message, the transportation status of the reverse waybill data is updated according to a preset time period, including:

[0024] Based on transportation status messages, update log files are generated according to a preset time period.

[0025] The transportation status of reverse waybill data is updated in batches based on the update log file.

[0026] Optionally, the method further includes:

[0027] Send the reverse waybill data corresponding to the target waybill data to the target data platform so that the target data platform can display the reverse waybill data corresponding to the target waybill data to the user.

[0028] According to another aspect of the present invention, an apparatus for generating waybill data is provided, comprising:

[0029] The acquisition module is used to acquire forward waybill data and user return information;

[0030] The determination module is used to determine the target waybill data in the forward waybill data based on the user's return information; and to determine the transportation information of the reverse waybill based on the transportation information in the target waybill data, wherein the recipient of the reverse waybill is the same as the sender of the forward waybill.

[0031] The generation module is used to generate the item information of the reverse waybill based on the preset configuration information and the target waybill data; and to generate the reverse waybill data corresponding to the target waybill data based on the transportation information and item information of the reverse waybill.

[0032] Optionally, the device further includes: an acquisition module for acquiring forward waybill task data, the forward waybill task data including waybill unit data and waybill filtering rule data; and a processing module for filtering the waybill unit data based on the waybill filtering rules to obtain forward waybill data.

[0033] Optionally, the generation module is used to generate reverse waybill data corresponding to the target waybill data based on the transportation information and the item information of the reverse waybill. It includes: a combination module, used to combine the transportation information and the item information of the reverse waybill in response to the configuration information meeting the preset processing conditions to obtain the reverse waybill data corresponding to the target waybill data.

[0034] Optionally, the device further includes: an acquisition module, used to acquire supplementary information input by the user in response to the configuration information not meeting the preset processing conditions; and a generation module, used to generate reverse waybill data corresponding to the target waybill data based on the supplementary information, the transportation information of the reverse waybill, and the item information of the reverse waybill.

[0035] Optionally, the device further includes: an establishment module for establishing a reverse waybill transportation task based on the reverse waybill data; an acquisition module for acquiring transportation status messages of the reverse waybill data through the reverse waybill transportation task; and an update module for updating the transportation status of the reverse waybill data according to a preset time period based on the transportation status messages.

[0036] Optionally, the update module is used to update the transportation status of reverse waybill data according to a preset time period based on transportation status messages, including: a generation module, used to generate update log files according to a preset time period based on transportation status messages; and an update module, used to batch update the transportation status of reverse waybill data based on the update log files.

[0037] Optionally, the device further includes: a sending module, used to send reverse waybill data corresponding to the target waybill data to the target data platform, so that the target data platform can display the reverse waybill data corresponding to the target waybill data to the user.

[0038] According to another aspect of the present invention, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the waybill data generation method provided in the embodiments of the present invention.

[0039] According to another aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method for generating waybill data provided in the embodiments of the present invention.

[0040] According to another aspect of the present invention, a computer program product is provided, including a computer program that, when executed by a processor, implements the method for generating waybill data provided in the embodiments of the present invention.

[0041] One embodiment of the above invention has the following advantages or beneficial effects: it can determine the target waybill data to be returned based on forward waybill data and user return information, and automatically generate the transportation information and item information of the reverse waybill according to preset configuration information, thereby obtaining the reverse waybill data. This realizes the automatic generation of reverse waybill data. Furthermore, the method of generating reverse waybill data from forward waybill data facilitates the traceability processing of reverse waybill data and improves data manageability. In addition, automatically generating reverse waybill data through streaming computing can further improve the generation efficiency of reverse waybills.

[0042] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description

[0043] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:

[0044] Figure 1 This is a schematic diagram of the main steps of the method for generating waybill data according to an embodiment of the present invention;

[0045] Figure 2 This is a flowchart for processing reverse waybills;

[0046] Figure 3 This is a schematic diagram of the main modules of the waybill data generation device according to an embodiment of the present invention;

[0047] Figure 4 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;

[0048] Figure 5 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0049] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0050] It should be noted that the technical solutions disclosed in this invention, regarding the collection, updating, analysis, processing, use, transmission, and storage of user personal information, all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken to prevent unauthorized access to user personal information data and to safeguard user personal information security, network security, and national security.

[0051] It should be noted that the collection, use, storage, sharing and transfer of user personal information involved in the technical solution of the present invention all comply with the provisions of relevant laws and regulations, and require notification to users and obtaining their consent or authorization. When applicable, user personal information is subjected to de-identification and / or anonymization and / or encryption technical processing.

[0052] Figure 1 This is a schematic diagram illustrating the main steps of a method for generating waybill data according to an embodiment of the present invention, as shown below. Figure 1 As shown, the method for generating waybill data in this embodiment of the invention mainly includes the following steps S101 to S105.

[0053] Step S101: Obtain forward waybill data and user return information.

[0054] The system uses a Remote Procedure Call (RPC) interface to retrieve data on successfully delivered forward shipments and user-selected return information. "Forward" refers to the logistics direction from the merchant to the customer. User return information is selected by the user after receiving the delivered shipment, based on whether a return is necessary. This information can be entered by the user through a target interface, such as clicking the "Return" icon. Other input methods are also possible and not limited to these. Returns may involve returning all items or only some items. For example, items with special packaging (such as insulated boxes for transporting medicine) can be returned, maximizing the utilization of the special packaging.

[0055] Step S102: Determine the target waybill data in the forward waybill data based on the user return information.

[0056] Based on user return information, the system filters the forward waybill data to identify target waybill data that requires return processing. Specifically, it determines whether forward waybill data needs to be returned based on whether the user has entered return information, and identifies the waybill data that requires return processing as target waybill data.

[0057] Optionally, based on the real-time user-inputted return information, the target waybill data requiring return can be obtained from the forward waybill data.

[0058] Step S103: Based on the transportation information in the target waybill data, determine the transportation information of the reverse waybill. The recipient of the reverse waybill is the same as the sender of the forward waybill.

[0059] Based on the target waybill data, determine the transportation information, specifically including receipt and shipment information, consignment information, and waybill information. Use the shipment information of the target waybill as the receipt information for the reverse waybill; the consignment information and waybill information of the reverse waybill are identical to those of the target waybill. Here, "reverse" refers to the transportation direction opposite to the forward direction, i.e., the transportation direction from the customer to the merchant.

[0060] Optionally, the receiving information of the target waybill can be used as the shipping information of the reverse waybill, or the shipping information entered by the user through the target interface can be used as the shipping information of the reverse waybill.

[0061] Step S104: Generate the item information for the reverse waybill based on the preset configuration information and the target waybill data.

[0062] Retrieve preset configuration information, including information about the transported items to be statistically analyzed, such as the name, weight, and volume of the items. Populate the configuration information with data based on the filtered target waybill data to obtain the assembled transported item information, i.e., the item information for the reverse waybill. Specifically, if all items are returned, the transported item information is the information of the package consisting of all items; if only some items are returned, such as only specially packaged items, the transported item information is the information of the specially packaged items.

[0063] Step S105: Generate reverse waybill data corresponding to the target waybill data based on the transportation information and item information of the reverse waybill.

[0064] The transportation information and item information of the confirmed reverse waybill are combined to generate complete reverse waybill data.

[0065] The waybill data generation method provided by the present invention can determine the target waybill data to be returned based on forward waybill data and user return information, and automatically generate the transportation information and item information of the reverse waybill based on preset configuration information, and combine them to obtain reverse waybill data, thereby realizing the automatic generation of reverse waybill data. At the same time, the method of generating reverse waybill data based on forward waybill data can retain the correspondence between forward and reverse waybill data, which facilitates the subsequent traceability processing of reverse waybill data and improves the manageability of data.

[0066] Optionally, before obtaining the forward waybill data, the method further includes: obtaining forward waybill task data, which includes waybill unit data and waybill filtering rule data; and filtering the waybill unit data based on the waybill filtering rules to obtain the forward waybill data.

[0067] Forward waybill data is obtained through a Flink (distributed computing framework) task. Specifically, the Flink task is started according to preset configuration parameters, including waybill unit data and waybill filtering rule data. The waybill unit data is then populated based on received waybill delivery message queue (MQ) messages. The waybill unit data is the full waybill MQ data, including: reverse waybill number, operation site, operator, operation time, operation status, user ID, waybill identifier (waybillsign), and product code. The reverse waybill number is generated based on the forward waybill number. The waybill filtering rules are configured by the rule engine and include rules for waybill item type, waybill identifier, and custom three-dimensional dimensions. Custom rules can be set by the merchant according to the application scenario. After obtaining the forward waybill task data, waybill filtering is performed based on the waybill filtering rules. Specifically, filtering is performed based on the item type dimension: the waybill type is filtered according to the waybill item identifier in the waybill delivery MQ message, for example, waybills with the identifier "non-medical" are filtered; the waybill identifier is also filtered, based on whether the waybill label "waybillsign" is within the preset range of reversible returnable waybills. Specifically, the format of the waybill label field value is "100001234000F...", and judgment is made based on different combinations of label values.

[0068] Optionally, the preset configuration parameters also include task parameters, specifically, Flink task parameters, Remote Dictionary Server (Redis) configuration parameters, and MySQL (relational database management system) configuration parameters. Starting a Flink task based on these task parameters includes configuring the necessary information for Flink task execution; configuring the Redis database for storing waybill data; and configuring the MySQL database for storing waybill status.

[0069] Optionally, forward waybill data can be obtained directly from the system database, and the obtained forward waybill data can be filtered and processed using preset filtering rules.

[0070] The waybill data generation method provided by this embodiment of the invention can determine the target waybill data to be returned based on forward waybill data and user return information, and automatically generate the transportation information and item information of the reverse waybill according to preset configuration information, thereby obtaining the reverse waybill data. This realizes the automatic generation of reverse waybill data. Furthermore, the method of generating reverse waybill data from forward waybill data facilitates the traceability processing of reverse waybill data and improves data manageability. In addition, automatically generating reverse waybill data through streaming computation of Flink tasks can further improve the generation efficiency of reverse waybills.

[0071] Optionally, generating reverse waybill data corresponding to the target waybill data based on the transportation information and item information of the reverse waybill includes: in response to the configuration information meeting preset processing conditions, combining the transportation information and item information of the reverse waybill to obtain the reverse waybill data corresponding to the target waybill data. Determining whether manual processing is required based on the filled configuration information; for example, determining whether the filled configuration information is a default value; if not, confirming that the waybill information is fully filled and no manual processing is needed. Combining the obtained transportation information and item information of the reverse waybill to obtain complete reverse waybill data.

[0072] Optionally, based on the waybill number, the transportation information and item information of reverse waybills with the same waybill number can be combined to obtain reverse waybill data corresponding to the target waybill data.

[0073] Optionally, the method further includes: in response to the configuration information not meeting preset processing conditions, obtaining supplementary information input by the user; generating reverse waybill data corresponding to the target waybill data based on the supplementary information, the transportation information of the reverse waybill, and the item information of the reverse waybill. Determining whether manual processing is required based on the filled configuration information, for example, determining whether the filled configuration information is a default value; if it is, it is determined that the waybill information is insufficient and requires manual processing. Obtaining the supplementary information input by the user through the target interface can specifically be information obtained by the operator from querying waybill information in the system based on a received message supplementary notification, and then supplementing it. The received message can be a real-time message sent by the system to the operator's terminal in different ways, such as SMS or email. Reverse waybill data is obtained by combining the transportation information, item information, and supplementary information of the reverse waybill.

[0074] The waybill data generation method provided by the present invention can determine whether information supplementation is needed for reverse waybills based on configuration information, ensuring the accuracy of reverse waybill data generation and reducing the generation of erroneous waybills through manual information supplementation.

[0075] Optionally, the method further includes: establishing a reverse waybill transportation task based on reverse waybill data; obtaining transportation status messages of the reverse waybill data through the reverse waybill transportation task; and updating the transportation status of the reverse waybill data according to a preset time period based on the transportation status messages. For reverse waybills requiring status monitoring, specifically, a reverse waybill transportation Flink task is established based on the reverse waybill data to receive transportation status MQ messages for the entire reverse waybill process, stored in Redis. First, the reverse waybill data is filtered according to the waybill number rule, i.e., filtering out successfully delivered reverse waybill data and only retrieving undelivered reverse waybill data. Specifically, after the Flink task starts, it batch-pulls undelivered reverse waybill data from the database and initializes it in the Flink task's state (state cache). The Flink state is updated by monitoring Redis message events, i.e., updating the transportation status of each reverse waybill. The update process specifically includes: designing a local asynchronous processing queue based on a time wheel algorithm to update the transportation status of the reverse waybill according to a preset time period. The preset time period can be 5 seconds, and the maximum number of data entries to be processed in a batch is 1000. The specific values ​​can be set according to the actual situation and are not limited.

[0076] Optionally, based on transportation status messages, the transportation status of reverse waybill data is updated according to a preset time period, including: generating an update log file based on the transportation status messages at a preset time; and updating the transportation status of the reverse waybill data based on the update log file. When updating the transportation status, a write-ahead logging (WAL) mechanism can be introduced to ensure the accuracy of data updates. Specifically, before processing batch data updates, an undo.log log file based on the batch data is first written, and then the batch data is updated and saved. If the data saving is successful, the log file is asynchronously deleted; if it fails, a rollback is performed, and data consistency is restored based on the log file.

[0077] The waybill data generation method provided by the present invention can realize real-time updates of reverse waybill data by monitoring Redis events in stages through Flink tasks, which facilitates real-time monitoring of reverse waybills by users. In addition, the use of WAL mechanism can ensure the accuracy of data during batch data updates and ensure the normal updating of data.

[0078] Optionally, the method further includes: sending reverse waybill data corresponding to the target waybill data to the target data platform, so that the target data platform can display the reverse waybill data corresponding to the target waybill data to the user; and sending the reverse waybill data to the target data platform so that the platform can generate a monitoring view table based on the reverse waybill data, and then display it to the user through the user terminal.

[0079] Optionally, data can be displayed through the online data display function of the target data platform, such as online Excel data display.

[0080] Optionally, both forward and reverse waybill data Flink tasks use Bloom filters for filtering. Specifically, based on the storage characteristics of Flink's state, the waybill number corresponding to the filtered waybill is used as the Bloom filter value. Since Redis is prone to hot keys and timeouts under large data volumes, leading to Flink task failures, Flink's mapstate (helper function cache) is chosen instead for data filtering. Metadata in Flink tasks is stored in Redis; if the metadata changes, hot updates can be achieved through Redis change events, without needing to restart or redeploy the Flink task.

[0081] Optionally, when the business expands or a field is missing, multiple MQ messages may need to be integrated. This can be achieved by merging and joining based on Flink's stream join function and the waybill number. For example, multiple MQ messages with the same waybill number can be merged.

[0082] The waybill data generation method provided by this embodiment of the invention can determine the target waybill data to be returned based on forward waybill data and user return information, and automatically generate the transportation information and item information of the reverse waybill according to preset configuration information, combining them to obtain reverse waybill data. This achieves automatic generation of reverse waybill data, reducing the complexity of manual operation. Furthermore, the method of generating reverse waybill data from forward waybill data enables traceability processing of reverse waybill data, improving data manageability. Simultaneously, by using streaming computing for the generation and status monitoring of reverse waybill data, the processing efficiency of reverse waybill data can be greatly improved, and the visualization monitoring and traceability of the entire reverse waybill data process can be ensured, which is helpful for the management of reverse waybill data.

[0083] like Figure 2 The diagram shows the processing flow for reverse waybills. After a forward waybill is successfully delivered, an MQ message is sent. The created forward waybill, Flink Task 1, receives the MQ message and performs Bloom filtering. For the waybill data in Flink Task 1, it determines whether reverse processing is needed. If not, the process ends. If needed, it queries the forward waybill information and creates a reverse waybill based on it. The reverse waybill information is pushed based on preset configuration information, and the created reverse waybill is stored in a MySQL table. Based on the pushed reverse waybill information, it checks if the data was successfully entered. If not, the waybill information is manually completed before being sent to the waybill system service. If successful, the reverse waybill information is directly sent to the waybill system service. The waybill system service generates a full-process MQ message for the waybill. Flink Task 2, created based on the reverse waybill data, performs Bloom filtering on the full-process MQ message for the waybill and updates the reverse waybill status, storing the updated data in a MySQL table. User terminals can query data in MySQL through the visualization processing of the target data platform.

[0084] Figure 3 This is a schematic diagram of a waybill data generation device 300 provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the data allocation device 300 of this embodiment mainly includes: an acquisition module 301, a determination module 302, and a generation module 303.

[0085] Module 301 is used to acquire forward waybill data and user return information;

[0086] The determination module 302 is used to determine the target waybill data in the forward waybill data based on the user's return information; and to determine the transportation information of the reverse waybill based on the transportation information in the target waybill data, wherein the recipient of the reverse waybill is the same as the sender of the forward waybill.

[0087] The generation module 303 is used to generate the item information of the reverse waybill based on the preset configuration information and the target waybill data; and to generate the reverse waybill data corresponding to the target waybill data based on the transportation information and item information of the reverse waybill.

[0088] The waybill data generation device provided in this embodiment of the invention can determine the target waybill data to be returned based on forward waybill data and user return information, and automatically generate the transportation information and item information of the reverse waybill according to preset configuration information, and combine them to obtain reverse waybill data, thereby realizing the automatic generation of reverse waybill data. At the same time, the method of generating reverse waybill data based on forward waybill data can retain the correspondence between forward and reverse waybill data, which facilitates the subsequent traceability processing of reverse waybill data and improves the manageability of data.

[0089] Optionally, the device further includes: an acquisition module 301, used to acquire forward waybill task data, the forward waybill task data including waybill unit data and waybill filtering rule data; and a processing module 304, used to filter the waybill unit data based on the waybill filtering rules to obtain forward waybill data.

[0090] Optionally, the generation module 303 is used to generate reverse waybill data corresponding to the target waybill data based on the transportation information and the item information of the reverse waybill. It includes: a combination module 305, which is used to combine the transportation information and the item information of the reverse waybill in response to the configuration information meeting the preset processing conditions to obtain the reverse waybill data corresponding to the target waybill data.

[0091] Optionally, the device further includes: an acquisition module 301, used to acquire supplementary information input by the user in response to the configuration information not meeting the preset processing conditions; and a generation module 303, used to generate reverse waybill data corresponding to the target waybill data based on the supplementary information, the transportation information of the reverse waybill, and the item information of the reverse waybill.

[0092] Optionally, the device further includes: a creation module 306, used to create a reverse waybill transportation task based on the reverse waybill data; an acquisition module 301, used to acquire the transportation status message of the reverse waybill data through the reverse waybill transportation task; and an update module 307, used to update the transportation status of the reverse waybill data according to a preset time period based on the transportation status message.

[0093] Optionally, the update module 307 is used to update the transportation status of reverse waybill data according to a preset time period based on the transportation status message, including: a generation module 303, used to generate an update log file according to a preset time period based on the transportation status message; and an update module 307, used to update the transportation status of reverse waybill data in batches based on the update log file.

[0094] Optionally, the device further includes: a sending module 308, used to send the reverse waybill data corresponding to the target waybill data to the target data platform, so that the target data platform can display the reverse waybill data corresponding to the target waybill data to the user.

[0095] The waybill data generation device provided in this embodiment of the invention can determine the target waybill data to be returned based on forward waybill data and user return information, and automatically generate the transportation information and item information of the reverse waybill according to preset configuration information, combining them to obtain reverse waybill data. This realizes the automatic generation of reverse waybill data, reducing the complexity of manual operation. Furthermore, the method of generating reverse waybill data from forward waybill data enables traceability processing of reverse waybill data, improving data manageability. Simultaneously, by using streaming computing for the generation and status monitoring of reverse waybill data, the processing efficiency of reverse waybill data can be greatly improved, and the visualization monitoring and traceability of the entire reverse waybill data process can be ensured, which is helpful for the management of reverse waybill data.

[0096] Figure 4 An exemplary system architecture 400 is shown, to which the method or apparatus for generating waybill data according to embodiments of the present invention can be applied.

[0097] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, and 403, a network 404, and a server 405. Network 404 serves as the medium for providing communication links between terminal devices 401, 402, and 403 and server 405. Network 404 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0098] Users can use terminal devices 401, 402, and 403 to interact with server 405 via network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, and 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0099] Terminal devices 401, 402, and 403 can be various electronic devices with displays that support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0100] Server 405 can be a server that provides various services, such as a backend management server that supports shopping websites browsed by users using terminal devices 401, 402, and 403 (for example only). The backend management server can analyze and process received data such as generation requests, and feed back the processing results (such as reverse waybill data - for example only) to the terminal device.

[0101] It should be noted that the method for generating waybill data provided in this embodiment of the invention is generally executed by server 405, and correspondingly, the waybill data generation device is generally located in server 405.

[0102] It should be understood that Figure 4 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0103] The following is for reference. Figure 5 It shows a schematic diagram of the structure of a computer system 500 suitable for implementing terminal devices or servers of the present invention. Figure 5 The terminal device or server shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0104] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 502 or programs loaded from storage section 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the system 500. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0105] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed.

[0106] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs the functions defined above in the system of this invention.

[0107] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0108] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0109] The units or modules described in the embodiments of the present invention can be implemented in software or hardware. The described units or modules can also be housed in a processor; for example, a processor can be described as including an acquisition module, a determination module, and a generation module. The names of these units or modules do not necessarily limit the specific unit or module itself; for example, the acquisition module can also be described as a "module for acquiring forward waybill data and user return information."

[0110] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include:

[0111] Obtain positive waybill data and user return information;

[0112] Determine the target waybill data in the positive waybill data based on user return information;

[0113] Based on the transportation information in the target waybill data, determine the transportation information of the reverse waybill. The recipient of the reverse waybill is the same as the sender of the forward waybill.

[0114] Based on the preset configuration information and the target waybill data, generate the item information for the reverse waybill;

[0115] The reverse waybill data corresponding to the target waybill data is generated based on the transportation information and item information of the reverse waybill.

[0116] According to the technical solution of the present invention, the target waybill data to be returned is determined based on the forward waybill data and the user return information, and the transportation information and item information of the reverse waybill are automatically generated according to the preset configuration information. The reverse waybill data is then combined to obtain the reverse waybill data, thereby realizing the automatic generation of reverse waybill data. At the same time, the method of generating reverse waybill data based on the forward waybill data can retain the correspondence between the forward and reverse waybill data, which facilitates the subsequent traceability processing of the reverse waybill data and improves the manageability of the data.

[0117] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for generating waybill data, characterized in that, include: Obtain positive waybill data and user return information; The target waybill data in the positive waybill data is determined based on the user return information; Based on the transportation information in the target waybill data, the transportation information of the reverse waybill is determined, and the recipient of the reverse waybill is the same as the sender of the forward waybill. Based on the preset configuration information and the target waybill data, generate the item information for the reverse waybill; Based on the transportation information and the item information of the reverse waybill, the reverse waybill data corresponding to the target waybill data is generated.

2. The method according to claim 1, characterized in that, Before obtaining the forward waybill data, the method further includes: Obtain forward waybill task data, which includes waybill data and waybill filtering rule data; The waybill data is filtered based on the waybill filtering rules to obtain the forward waybill data.

3. The method according to claim 1, characterized in that, The step of generating the reverse waybill data corresponding to the target waybill data based on the transportation information and the item information of the reverse waybill includes: In response to the configuration information meeting preset processing conditions, the transportation information of the reverse waybill and the item information of the reverse waybill are combined to obtain the reverse waybill data corresponding to the target waybill data.

4. The method according to claim 3, characterized in that, The method further includes: In response to the configuration information not meeting the preset processing conditions, the user inputs supplementary information; Based on the supplementary information, the transportation information of the reverse waybill, and the item information of the reverse waybill, the reverse waybill data corresponding to the target waybill data is generated.

5. The method according to claim 1, characterized in that, The method further includes: A reverse waybill transportation task is established based on the aforementioned reverse waybill data; The transportation status message of the reverse waybill data is obtained through the reverse waybill transportation task; Based on the transportation status message, the transportation status of the reverse waybill data is updated according to a preset time period.

6. The method according to claim 5, characterized in that, The step of updating the transportation status of the reverse waybill data according to a preset time period based on the transportation status message includes: Based on the transportation status message, an update log file is generated according to a preset time period; The transportation status of the reverse waybill data is updated in batches based on the update log file.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: Send the reverse waybill data corresponding to the target waybill data to the target data platform so that the target data platform can display the reverse waybill data corresponding to the target waybill data to the user.

8. A device for generating waybill data, characterized in that, include: The acquisition module is used to acquire forward waybill data and user return information; The determination module is used to determine the target waybill data in the forward waybill data based on the user return information; Based on the transportation information in the target waybill data, the transportation information of the reverse waybill is determined, and the recipient of the reverse waybill is the same as the sender of the forward waybill. The generation module is used to generate the item information of the reverse waybill based on the preset configuration information and the target waybill data; and to generate the reverse waybill data corresponding to the target waybill data based on the transportation information and the item information of the reverse waybill.

9. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7.