CN-121998726-A - Method and device for generating waybill data
Abstract
The invention discloses a method and a device for generating waybill data, and relates to the technical field of computers. 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, generating article information of the reverse waybill according to configuration information and the target waybill data, and combining the transportation information to form reverse waybill data. According to the embodiment, the automatic generation of the reverse waybill data can be realized, and the efficiency and the accuracy of the reverse waybill data generation are improved.
Inventors
- GUO QINGHAI
Assignees
- 北京京东远升科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241106
Claims (11)
- 1. The method for generating the waybill data is characterized by comprising the following steps: Acquiring forward waybill data and user return information; determining target waybill data in the forward waybill data based on the user return information; determining the transportation information of a reverse waybill based on the transportation information in the target waybill data, wherein the receiving party of the reverse waybill is the same as the sending party of the forward waybill; generating article information of a reverse waybill according to preset configuration information and the target waybill data; and generating reverse waybill data corresponding to the target waybill data based on the transportation information of the reverse waybill and the article information of the reverse waybill.
- 2. The method of claim 1, wherein prior to the acquiring the forward manifest data, the method further comprises: acquiring forward waybill task data, wherein the forward waybill task data comprises waybill unit data and waybill filtering rule data; And filtering the freight cell data based on the freight bill filtering rule to obtain the forward freight bill data.
- 3. The method of claim 1, wherein the generating reverse waybill data corresponding to the target waybill data based on the shipping information of the reverse waybill and the item information of the reverse waybill comprises: And responding to the configuration information meeting preset processing conditions, and combining the transportation information of the reverse waybill and the article information of the reverse waybill to obtain reverse waybill data corresponding to the target waybill data.
- 4. A method according to claim 3, characterized in that the method further comprises: responding to the configuration information not meeting the preset processing condition, and acquiring the complement information input by the user; And generating reverse waybill data corresponding to the target waybill data based on the supplementary record information, the transportation information of the reverse waybill and the article information of the reverse waybill.
- 5. The method according to claim 1, wherein the method further comprises: establishing a reverse waybill transportation task based on the reverse waybill data; acquiring a transportation state message of the reverse waybill data through a reverse waybill transportation task; And updating the transportation state of the reverse waybill data according to a preset time period based on the transportation state message.
- 6. The method of claim 5, wherein updating the shipping status of the reverse manifest data based on the shipping status message for a preset period of time comprises: Generating an update log file according to a preset time period based on the transportation state message; and updating the transportation state of the reverse waybill data in batches based on the update log file.
- 7. The method according to any one of claims 1 to 6, further comprising: And sending the reverse waybill data corresponding to the target waybill data to a target data platform, so that the target data platform can display the reverse waybill data corresponding to the target waybill data to a user.
- 8. A waybill data generating device, comprising: The acquisition module is used for acquiring forward waybill data and user return information; the system comprises a user return information determining module, a receiving module and a receiving module, wherein the user return information determining module is used for determining target waybill data in the forward waybill data based on the user return information; The generation module is used for generating article information of the reverse waybill according to the preset configuration information and the target waybill data, and generating reverse waybill data corresponding to the target waybill data based on the transportation information of the reverse waybill and the article information of the reverse waybill.
- 9. An electronic device, comprising: One or more processors; Storage means for storing one or more programs, When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
- 10. A computer readable medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method according to any of claims 1-7.
- 11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
Description
Method and device for generating waybill data Technical Field The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating waybill data. Background At present, in the logistics transportation chain scene, for the transportation of some special articles, the delivery bill returned by the original way is often required to be added, so that the return of special packages of the articles is realized. For example, the cold chain articles transported by adopting the incubator are required to be returned to the mail after being put into charge, so as to ensure the recycling of the incubator. The existing return flow is that a customer returns a special package to mail by making an order on line, a merchant side is difficult to uniformly manage the package returned by self, the returned package cannot be traced, the difficulty of inquiring the corresponding mail waybill is high, and the management difficulty is further increased. Disclosure of Invention In view of the above, the embodiment of the invention provides a method and a device for generating waybill data, which can automatically generate reverse waybill data of an article and simultaneously store the corresponding relation between the reverse waybill data and the forward waybill data, thereby improving management efficiency. In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a method for generating waybill data, including: Acquiring forward waybill data and user return information; Determining target waybill data in the forward waybill data based on the user return information; Determining the transportation information of the reverse waybill based on the transportation information in the target waybill data, wherein the receiving party of the reverse waybill is the same as the sending party of the forward waybill; According to preset configuration information and target waybill data, generating article information of a reverse waybill; and generating reverse waybill data corresponding to the target waybill data based on the transportation information of the reverse waybill and the article information of the reverse waybill. Optionally, before the forward waybill data is acquired, the method further comprises: acquiring forward waybill task data, wherein the forward waybill task data comprises waybill unit data and waybill filtering rule data; And filtering the freight cell data based on freight bill filtering rules to obtain forward freight bill data. Optionally, generating reverse waybill data corresponding to the target waybill data based on the transportation information of the reverse waybill and the item information of the reverse waybill includes: and in response to the configuration information meeting the preset processing condition, combining the transportation information of the reverse waybill and the article information of the reverse waybill to obtain reverse waybill data corresponding to the target waybill data. Optionally, the method further comprises: Responding to the configuration information not meeting the preset processing condition, and acquiring the complement information input by the user; and generating reverse waybill data corresponding to the target waybill data based on the supplementary record information, the transportation information of the reverse waybill and the article information of the reverse waybill. Optionally, the method further comprises: Establishing a reverse waybill transportation task based on the reverse waybill data; acquiring a transportation state message of reverse bill data through a reverse bill transportation task; based on the transportation state information, the transportation state of the reverse waybill data is updated according to a preset time period. Optionally, updating the transportation state of the reverse manifest data according to the preset time period based on the transportation state message includes: Generating an update log file according to a preset time period based on the transportation state message; And updating the transportation state of the reverse waybill data in batches based on the update log file. Optionally, the method further comprises: And sending the reverse waybill data corresponding to the target waybill data to the target data platform so as to be used for displaying the reverse waybill data corresponding to the target waybill data to the user by the target data platform. According to another aspect of the embodiment of the present invention, there is provided a generation apparatus of waybill data, including: The acquisition module is used for acquiring forward waybill data and user return information; the system comprises a determining module, a receiving module and a sending module, wherein the determining module is used for determining target waybill data in forward waybill data based on user return information; the ge