Method and device for generating return task

By using the after-sales warehouse address pre-set by the merchant in the return task generation, the problems of long transportation distance, high cost and damaged goods in the return task are solved, and more efficient and higher-quality return processing is achieved, and the merchant’s service level is improved.

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

Patent Information

Application Number
CN202410154957.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

When generating a return task in the prior art, the goods need to be returned to the origin or designated location, resulting in long transportation distances, high costs, poor timeliness and easy to breakage, affecting the revenue and customer experience of merchants and logistics companies.

Method used

Use multiple after-sales warehouses within the full delivery range pre-set by the merchant as centralized return addresses, and obtain the return type and address information through the waybill cancel message, generate return tasks, avoid returning to the origin or designated location, and sending them directly to the nearest warehouse for processing.

Benefits of technology

It shortens transportation distance, avoids cargo damage, reduces transportation costs, improves return time, and improves merchants' after-sales experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120430718A_ABST
    Figure CN120430718A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for generating a return task, and relates to the technical field of electronic commerce. A specific embodiment of the method comprises the steps that in response to a monitored waybill cancelling message, waybill information of a cancelling waybill is acquired, and the waybill information comprises cancelling address information and a waybill number; querying a return type of a main body to which the waybill belongs according to the waybill number; and when the goods return type is centralized goods return, obtaining a corresponding centralized goods return address according to the cancelling address information and the main body identifier of the main body to which the waybill belongs, and generating a goods return task according to the centralized goods return address, the centralized goods return address being an address corresponding to the regional warehouse to which the cancelling address information belongs. According to the implementation mode, the goods can be prevented from being returned to a starting place or a designated place, so that the transportation distance is shortened, and goods damage caused by multiple loading, unloading and carrying operations in the transportation process is avoided. The technical problems of high transportation cost, poor transportation time efficiency, cargo damage, income loss of transportation enterprises and the like in the return business are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of e-commerce, and in particular, to a method and device for generating a return task. Background Art

[0002] Currently, after a shipping order is cancelled or intercepted or the customer refuses to accept it, the system will consume the message of successful cancellation of the shipping order, and query the return address configuration to obtain the return address issued when placing the forward shipping order, or the sender address of the forward shipping order, or the unified return address maintained by the merchant customer in the system as the return address of the reverse shipping order, and issue a return task to generate a reverse shipping order for the return of goods.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] When generating a return task in the prior art, it mostly depends on the return address issued when placing the forward shipping order, the sender address of the forward shipping order, or the unified return address maintained by the merchant customer in the system, and returns the goods to the origin or a designated location. Therefore, there are problems of long transportation distance and high transportation cost. Moreover, during the return journey, the goods will pass through multiple transfer stations, resulting in poor return timeliness and property losses such as damaged goods. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a method and device for generating a return task, which can avoid returning the goods to the origin or a designated location, thereby shortening the transportation distance and avoiding damage to the goods caused by multiple loading and unloading operations during transportation. It solves the technical problems such as high transportation cost, poor transportation timeliness, damaged goods, and loss of income of transportation enterprises in the return business. At the same time, it can also improve the after-sales experience of merchants and provide better services for merchants.

[0006] To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method for generating a return task, including:

[0007] In response to monitoring a shipping order cancellation message, obtain the shipping order information of the cancelled shipping order, where the shipping order information includes cancellation address information and a shipping order number;

[0008] Query the return type of the subject to which the shipping order belongs according to the shipping order number;

[0009] In the case where the return type is centralized return, obtain the corresponding centralized return address according to the cancellation address information and the subject identifier of the subject to which the shipping order belongs, and generate a return task according to the centralized return address, where the centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs.

[0010] Optionally, the method further includes: when the corresponding centralized return address cannot be obtained according to the cancellation address information and the entity identifier of the entity to which the waybill belongs, obtaining the corresponding unified return address according to the entity identifier of the entity to which the waybill belongs, and generating a return task according to the unified return address, where the unified return address is a return address pre-configured by the entity to which the waybill belongs.

[0011] Optionally, the method further includes: when the corresponding unified return address cannot be obtained according to the entity identifier of the entity to which the waybill belongs, obtaining the sender address of the cancelled waybill according to the waybill number, using the sender address as the return address, and generating a return task according to the return address.

[0012] Optionally, before querying the return type of the entity to which the waybill belongs according to the waybill number, the method further includes: performing a service verification on the waybill information, adding the waybill cancellation message to a message queue after the verification passes, and adding an anti-concurrency lock to the message queue.

[0013] According to another aspect of the embodiments of the present invention, there is provided a device for generating a return task, including:

[0014] A waybill information acquisition module, configured to obtain the waybill information of the cancelled waybill in response to monitoring a waybill cancellation message, where the waybill information includes cancellation address information and a waybill number;

[0015] A return type query module, configured to query the return type of the entity to which the waybill belongs according to the waybill number;

[0016] A first return processing module, configured to, when the return type is centralized return, obtain the corresponding centralized return address according to the cancellation address information and the entity identifier of the entity to which the waybill belongs, and generate a return task according to the centralized return address, where the centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs.

[0017] Optionally, the device further includes a second return processing module, configured to: when the corresponding centralized return address cannot be obtained according to the cancellation address information and the entity identifier of the entity to which the waybill belongs, obtain the corresponding unified return address according to the entity identifier of the entity to which the waybill belongs, and generate a return task according to the unified return address, where the unified return address is a return address pre-configured by the entity to which the waybill belongs.

[0018] Optionally, the device further includes a third return processing module, configured to: when the corresponding unified return address cannot be obtained according to the entity identifier of the entity to which the waybill belongs, obtain the sender address of the cancelled waybill according to the waybill number, use the sender address as the return address, and generate a return task according to the return address.

[0019] Optionally, the device further includes a message processing module, configured to: before querying the return type of the entity to which the waybill belongs according to the waybill number, perform business verification on the waybill information, and after the verification passes, add the waybill cancellation message to the message queue, and add an anti-concurrency lock to the message queue.

[0020] According to another aspect of the embodiments of the present invention, an electronic device is provided. A device includes: one or more processors; a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method for generating a return task provided by the embodiments of the present invention.

[0021] According to still another aspect of the embodiments of the present invention, a computer-readable medium is provided. A computer-readable medium has a computer program stored thereon, and when the program is executed by a processor, it implements the method for generating a return task provided by the embodiments of the present invention.

[0022] One embodiment of the above invention has the following advantages or beneficial effects: By responding to the monitored waybill cancellation message, obtaining the waybill information of the cancelled waybill, where the waybill information includes cancellation address information and the waybill number; querying the return type of the entity to which the waybill belongs according to the waybill number; in the case where the return type is centralized return, obtaining the corresponding centralized return address according to the cancellation address information and the entity identifier of the entity to which the waybill belongs, and generating a return task according to the centralized return address, and the centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs. The technical solution of introducing the return type and the return address information corresponding to the return type, and finding the corresponding return address according to the cancellation address information of the cancelled waybill and the entity identifier of the entity to which the waybill belongs, can use multiple after-sales warehouses within the full delivery range preset by the merchant as the centralized return address, so that after the waybill cancellation interception is successful or the customer refuses to accept, the returned goods can be sent to the nearest warehouse for return processing. This can avoid returning the goods to the origin or the designated location, thereby shortening the transportation distance and avoiding damage to the goods caused by multiple loading and unloading operations during transportation. It solves the technical problems such as high transportation costs, poor transportation timeliness, damage to goods, and loss of income of transportation enterprises in the return business. At the same time, it can also improve the after-sales experience of the merchant and provide better services for the merchant.

[0023] The further effects of the above non-conventional optional methods will be described in conjunction with specific embodiments below. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings are used to better understand the present invention and do not constitute an improper limitation to the present invention. Among them:

[0025] Figure 1 Schematic diagram of the main steps of the method for generating a return task according to an embodiment of the present invention;

[0026] Figure 2 Schematic diagram of the return task generation process according to an embodiment of the present invention;

[0027] Figure 3 Schematic diagram of the main modules of the device for generating a return task according to an embodiment of the present invention;

[0028] Figure 4 Exemplary system architecture diagram to which the embodiment of the present invention can be applied;

[0029] Figure 5 Schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing the embodiment of the present invention. Detailed implementation manners

[0030] The following makes an explanation of the exemplary embodiments of the present invention with reference to the accompanying drawings. Various details of the embodiments of the present invention are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, the description below omits the description of well-known functions and structures.

[0031] When generating a return task in the prior art, it depends on the return address issued when placing an order for a forward waybill, the sender address of the forward waybill, or the unified return address maintained by the merchant in the system. For small items, the return frequency is high and the total quantity is large, resulting in an increase in transportation costs. For large items, due to their large volume and high weight, the transportation costs are also relatively high. In addition, if the return needs to be sent back to the initial shipping address or the designated return distance is long, it will further increase the transportation costs, and passing through multiple transfer stations will result in a slower return timeliness. Due to the long transportation distance, the goods need to be loaded, unloaded, and transported multiple times during the transportation process, which is likely to cause damage to the goods. This will not only lead to income losses for logistics enterprises but also have an adverse impact on the customer experience.

[0032] To solve the technical problems existing in the prior art, the present invention provides a method for generating a return task, which can use multiple after-sales warehouses within the entire delivery range pre-set by merchants as centralized return addresses, so that after the order cancellation interception is successful or the customer rejects the goods, the returned goods can be sent to the nearest warehouse for return processing. This can avoid returning the goods to the origin or designated location, thereby shortening the transportation distance and avoiding damage to the goods caused by multiple loading and unloading operations during transportation. It solves the technical problems such as high transportation costs, poor transportation timeliness, damage to goods, and loss of income of transportation enterprises in the return business. At the same time, it can also improve the after-sales experience of merchants and provide better services for merchants.

[0033] The return address of the present invention can be flexibly set. Merchants can modify the after-sales warehouse corresponding to the current return location within the entire delivery range according to business needs, which solves the technical problem of how to achieve flexible configuration and dynamic update of the return address within the entire delivery range.

[0034] Figure 1 It is a schematic diagram of the main steps of the method for generating a return task according to an embodiment of the present invention. As Figure 1 shown, the method for generating a return task according to an embodiment of the present invention mainly includes the following steps S101 to step S103.

[0035] Step S101: In response to monitoring an order cancellation message, obtain the order information of the cancelled order. The order information includes cancellation address information and order number. When the order system monitors an order cancellation message, it will obtain the order information according to the message content of the order cancellation message. Among them, the main fields included in the order cancellation message are as follows: order number waybillNo, message source source, order cancellation result resultStatus (including cancellation success and cancellation failure), merchant order number orderNo, associated order number associateSoNo when the merchant places an order, province identification ID (provinceNo), city identification ID (cityNo), and so on. Among them, the cancellation address information includes relevant address information such as province identification ID (provinceNo) and city identification ID (cityNo).

[0036] Step S102: Query the return type of the order subject according to the order number. According to an embodiment of the present invention, after extracting the order information, the subject information belonging to it can be queried from the order file according to the order number. Here, the order subject is the merchant. Each merchant can pre-configure its corresponding return information such as return type in the return address configuration center.

[0037] In an embodiment of the present invention, a new configuration item can be added in the return address configuration center: return type, which mainly includes centralized return, unified return, return to the sender's address, etc. Among them, centralized return refers to the return method of returning the goods to the regional warehouse corresponding to a region, and the size of this region can also be set, such as including administrative addresses at different levels such as a province, a city or a district, etc.; unified return refers to the return method of returning the goods to the unified return address pre-configured by the merchant or other entities; return to the sender's address refers to the return method of returning the goods to the sender's address corresponding to the cancelled waybill. The return methods here are not limited to those listed above and can be flexibly configured according to the needs of the business scenario. For each return type, the merchant can configure the corresponding return address. In the subsequent embodiment introduction of the present invention, the return address is not limited to a detailed address, but also includes relevant information such as the name of the contact person and the contact person's phone number.

[0038] In an embodiment of the present invention, a batch add return address interface is provided in the return address configuration center. The data to be written needs to include: customerCode (merchant ID), provinceNo (province ID), cityNo (city ID), backAddress (detailed return address corresponding to the province and city), contractName (name of the returner), contractMobile (mobile phone number), contractPhone (contact person's landline), etc. And when adding a return address, it is also necessary to perform duplicate prevention processing according to the subject identifier (for example: merchant ID) + return address information (for example: city ID), that is, two return address information cannot be maintained for the same merchant ID and the same city ID. And when it is necessary to modify the return address information, batch query, batch modification, and batch deletion of the return address can be performed according to the subject identifier (for example: merchant ID) + return address information (for example: city ID). In addition, when querying the return address, all return addresses configured by the merchant can also be queried only according to the subject identifier (for example: merchant ID).

[0039] In an embodiment of the present invention, before querying the return type of the waybill subject according to the waybill number, it may further include: performing business verification on the waybill information, adding the waybill cancellation message to the message queue after the verification passes, and adding an anti-concurrency lock to the message queue. Specifically, after listening to the waybill cancellation message, the waybill cancellation message can be parsed to obtain the waybill information of the cancelled waybill, and then the waybill information is subjected to business verification, such as: verifying whether the waybill cancellation result is successful, whether the source of the waybill cancellation message is a specified system, etc. After the business verification passes, the waybill cancellation message can be added to the message queue, and an anti-concurrency lock is added to the message queue to ensure that the messages in the message queue are in order and there is no out-of-order situation.

[0040] Step S103: When the return type is centralized return, obtain the corresponding centralized return address according to the cancellation address information and the entity identifier of the main body to which the waybill belongs, and generate a return task according to the centralized return address. The centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs.

[0041] According to an embodiment of the present invention, the method may further include: when the corresponding centralized return address cannot be obtained according to the cancellation address information and the entity identifier of the main body to which the waybill belongs, obtain the corresponding unified return address according to the entity identifier of the main body to which the waybill belongs, and generate a return task according to the unified return address. The unified return address is the return address pre-configured by the main body to which the waybill belongs.

[0042] According to another embodiment of the present invention, the method may further include: when the corresponding unified return address cannot be obtained according to the entity identifier of the main body to which the waybill belongs, obtain the sender address of the cancelled waybill according to the waybill number, use the sender address as the return address, and generate a return task according to the return address.

[0043] According to an embodiment of the present invention, when the return type is centralized return, the return address book query interface of the centralized return type will be called according to the cancellation address information (e.g., city ID) and the entity identifier of the main body to which the waybill belongs (e.g., merchant) (e.g., merchant ID) to query whether there is a corresponding centralized return address in the return address book of the centralized return type. If there is, return the centralized return address and use the centralized return address as the return address corresponding to the to-be-generated return waybill; if not, it means that the main body to which the waybill belongs (e.g., merchant) does not have a corresponding centralized return address in the area to which the cancellation address information (e.g., city ID) belongs. At this time, the return address book query interface of the unified return type will be further called according to the entity identifier of the main body to which the waybill belongs (e.g., merchant) (e.g., merchant ID) to query whether there is a corresponding unified return address in the return address book of the unified return type. If there is, return the unified return address and use the unified return address as the return address corresponding to the to-be-generated return waybill; if not, it means that the main body to which the waybill belongs (e.g., merchant) has not set the corresponding unified return address. At this time, the sender address of the cancelled waybill will be further obtained according to the waybill number, and the sender address (e.g., including: contact person's name, contact person's landline, contact person's mobile phone, sender's detailed address, etc.) will be used as the return address corresponding to the to-be-generated return waybill, and a return task will be generated according to the return address. Finally, after obtaining the return address, call the order placement interface to generate a return waybill.

[0044] According to the above steps S101 to S103, the return type and the return address information corresponding to the return type are introduced, and the corresponding return address is found according to the cancellation address information of the cancelled shipping order and the entity identifier of the entity to which the shipping order belongs. Multiple after-sales warehouses within the full delivery range pre-set by the merchant can be used as centralized return addresses, so that after the cancellation of the shipping order is intercepted successfully or the customer rejects the goods, the returned goods can be sent to the nearest warehouse for return processing. This can avoid returning the goods to the origin or the designated location, thereby shortening the transportation distance and avoiding damage to the goods caused by multiple loading and unloading operations during transportation. It solves the technical problems such as high transportation costs, poor transportation timeliness, damage to goods, and loss of income of transportation enterprises in the return business. At the same time, it can also improve the after-sales experience of the merchant and provide better services for the merchant.

[0045] Figure 2 It is a schematic diagram of the return task generation process of an embodiment of the present invention. As Figure 2 shown, in the embodiment of the present invention, after receiving the shipping order cancellation message, the shipping order information of the cancelled shipping order (including the cancellation address information and the shipping order number) is obtained, and business verification is performed according to the shipping order information. After the verification passes, the entity identifier of the entity to which the shipping order belongs is queried according to the shipping order number of the cancelled shipping order, and the return type of the entity to which the shipping order belongs is queried according to the entity identifier.

[0046] If the return type is centralized return, the centralized return address is obtained according to the cancellation address information and the entity identifier. Then, it is judged whether the centralized return address has been obtained. If so, the centralized return address is used as the return address of the to-be-generated return shipping order; otherwise, the unified return address is obtained according to the entity identifier. Then, it is judged whether the unified return address has been obtained. If so, the unified return address is used as the return address of the to-be-generated return shipping order; otherwise, the sender address of the cancelled shipping order is obtained according to the shipping order number, and the sender address is used as the return address of the to-be-generated return shipping order.

[0047] If the return type is not centralized return, the set return address is directly obtained according to the entity identifier.

[0048] After that, a return task is generated according to the return address. Finally, the order placement interface is called to generate a return shipping order according to the return address.

[0049] Figure 3 It is a schematic diagram of the main modules of the return task generation device according to an embodiment of the present invention. As Figure 3 shown, the return task generation device 300 of the embodiment of the present invention mainly includes a shipping order information acquisition module 301, a return type query module 302, and a first return processing module 303.

[0050] The waybill information acquisition module 301 is configured to obtain the waybill information of the cancelled waybill in response to monitoring a waybill cancellation message, where the waybill information includes cancellation address information and a waybill number;

[0051] The return type query module 302 is configured to query the return type of the subject to which the waybill belongs according to the waybill number;

[0052] The first return processing module 303 is configured to, when the return type is centralized return, obtain a corresponding centralized return address according to the cancellation address information and the subject identifier of the subject to which the waybill belongs, and generate a return task according to the centralized return address, where the centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs.

[0053] According to an embodiment of the present invention, the return task generation device 300 may further include a second return processing module (not shown in the figure), configured to: when a corresponding centralized return address cannot be obtained according to the cancellation address information and the subject identifier of the subject to which the waybill belongs, obtain a corresponding unified return address according to the subject identifier of the subject to which the waybill belongs, and generate a return task according to the unified return address, where the unified return address is a return address pre-configured for the subject to which the waybill belongs.

[0054] According to another embodiment of the present invention, the return task generation device 300 may further include a third return processing module (not shown in the figure), configured to: when a corresponding unified return address cannot be obtained according to the subject identifier of the subject to which the waybill belongs, obtain the sender address of the cancelled waybill according to the waybill number, use the sender address as the return address, and generate a return task according to the return address.

[0055] According to yet another embodiment of the present invention, the return task generation device 300 may further include a message processing module (not shown in the figure), configured to: before querying the return type of the subject to which the waybill belongs according to the waybill number, perform business verification on the waybill information, add the waybill cancellation message to the message queue after the verification passes, and add an anti-concurrency lock to the message queue.

[0056] According to the technical solution of the embodiment of the present invention, by responding to the monitored order cancellation message, the order information of the cancelled order is obtained, and the order information includes the cancellation address information and the order number; the return type of the subject to which the order belongs is queried according to the order number; in the case where the return type is centralized return, the corresponding centralized return address is obtained according to the cancellation address information and the subject identifier of the subject to which the order belongs, and a return task is generated according to the centralized return address, and the centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs. The technical solution introduces the return type and the return address information corresponding to the return type, and looks up the corresponding return address according to the cancellation address information of the cancelled order and the subject identifier of the subject to which the order belongs, and can use multiple after-sales warehouses within the full distribution range preset by the merchant as the centralized return address, so that after the order cancellation interception is successful or the customer refuses to accept, the returned goods are sent to the nearest warehouse for return processing. This can avoid returning the goods to the origin or the designated location, thereby shortening the transportation distance and avoiding the damage of the goods caused by multiple loading and unloading operations during the transportation process. It solves the technical problems such as high transportation cost, poor transportation timeliness, goods damage and loss of income of transportation enterprises in the return business. At the same time, it can also improve the after-sales experience of the merchant and provide better services for the merchant.

[0057] Figure 4 FIG. 400 shows an exemplary system architecture to which the method for generating a return task or the device for generating a return task according to an embodiment of the present invention can be applied.

[0058] As Figure 4 shown, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 is used to provide a medium for communication links between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0059] Users can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages, etc. Various communication client applications may be installed on the terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0060] The terminal devices 401, 402, 403 may be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.

[0061] The server 405 may be a server that provides various services. For example, it can be a background management server (only for example) that supports shopping websites browsed by users using terminal devices 401, 402, and 403. The background management server can respond to data such as requests for generating return tasks received, obtain the waybill information of the cancelled waybill upon detecting a waybill cancellation message. The waybill information includes cancellation address information and waybill number; query the return type of the subject to which the waybill belongs according to the waybill number; in the case where the return type is centralized return, obtain the corresponding centralized return address according to the cancellation address information and the subject identifier of the subject to which the waybill belongs, and generate a return task according to the centralized return address. The centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs, etc., and feedback the processing result (such as the generated return task or return waybill - only for example) to the terminal device.

[0062] It should be noted that the method for generating the return task provided in the embodiments of the present invention is generally executed by the server 405. Correspondingly, the device for generating the return task is generally set in the server 405.

[0063] It should be understood that Figure 4 the numbers of the terminal devices, networks, and servers in

[0064] are merely illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, and servers. Figure 5 is a schematic structural diagram of a computer system 500 suitable for use in implementing the terminal device or server of the embodiments of the present invention. Figure 5 The terminal device or server shown is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.

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

[0066] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, 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, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as required. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as required so that a computer program read therefrom is installed into the storage section 508 as required.

[0067] Specifically, according to an embodiment disclosed by the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment disclosed by the present invention includes a computer program product which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from the removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, the above-described functions defined in the system of the present invention are executed.

[0068] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. 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 of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0069] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0070] The units or modules involved in the embodiments of the present invention can be implemented in software or in hardware. The described units or modules can also be provided in a processor. For example, it can be described as: a processor includes a waybill information acquisition module, a return type query module, and a first return processing module. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves in some cases. For example, the waybill information acquisition module can also be described as "a module for obtaining the waybill information of the cancelled waybill in response to monitoring a waybill cancellation message, where the waybill information includes cancellation address information and waybill number".

[0071] As another aspect, the present invention also provides a computer-readable medium, which can be included in the device described in the above embodiments; or can exist alone without being assembled into the device. The above computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the device includes: obtaining the waybill information of the cancelled waybill in response to monitoring a waybill cancellation message, where the waybill information includes cancellation address information and waybill number; querying the return type of the subject to which the waybill belongs according to the waybill number; in the case where the return type is centralized return, obtaining the corresponding centralized return address according to the cancellation address information and the subject identifier of the subject to which the waybill belongs, and generating a return task according to the centralized return address, where the centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs.

[0072] According to the technical solution of the embodiments of the present invention, by obtaining the waybill information of the cancelled waybill in response to monitoring a waybill cancellation message, where the waybill information includes cancellation address information and waybill number; querying the return type of the subject to which the waybill belongs according to the waybill number; in the case where the return type is centralized return, obtaining the corresponding centralized return address according to the cancellation address information and the subject identifier of the subject to which the waybill belongs, and generating a return task according to the centralized return address, where the centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs, the return type and the return address information corresponding to the return type are introduced, and the corresponding return address is found according to the cancellation address information of the cancelled waybill and the subject identifier of the subject to which the waybill belongs. Multiple after-sales warehouses within the full delivery range pre-set by the merchant can be used as the centralized return address, so that after the waybill cancellation is intercepted successfully or the customer refuses to accept the goods, the returned goods can be sent to the nearest warehouse for return processing. This can avoid returning the goods to the origin or the designated location, thereby shortening the transportation distance and avoiding the damage of the goods caused by multiple loading and unloading operations during transportation. It solves the technical problems such as high transportation cost, poor transportation timeliness, goods damage, and income loss of transportation enterprises in the return business. At the same time, it can also improve the after-sales experience of the merchant and provide better services for the merchant.

[0073] The above specific embodiments do not constitute a limitation on the protection scope of the present 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 principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for generating a return task, characterized in that: include: In response to monitoring a waybill cancellation message, obtaining waybill information of the canceled waybill, the waybill information including cancellation address information and waybill number; Query the return type of the entity to which the waybill belongs based on the waybill number; In the case where the return type is a centralized return, the corresponding centralized return address is obtained based on the cancellation address information and the entity identification of the entity to which the waybill belongs, and a return task is generated based on the centralized return address. The centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs.

2. The method according to claim 1, characterized in that The method further comprises: If the corresponding centralized return address cannot be obtained based on the cancellation address information and the subject identification of the entity to which the waybill belongs, the corresponding unified return address is obtained based on the subject identification of the entity to which the waybill belongs, and a return task is generated based on the unified return address. The unified return address is the return address pre-configured by the entity to which the waybill belongs.

3. The method according to claim 2, characterized in that The method further comprises: If the corresponding unified return address cannot be obtained based on the subject identification of the entity to which the waybill belongs, the shipping address of the canceled waybill is obtained based on the waybill number, and the shipping address is used as the return address, and a return task is generated based on the return address.

4. The method according to claim 1, wherein Before querying the return type of the entity to which the waybill belongs based on the waybill number, it also includes: Perform business verification on the waybill information, and add the waybill cancellation message to the message queue after the verification is passed, and add an anti-concurrency lock to the message queue.

5. A device for generating a return task, characterized in that: include: A waybill information acquisition module is configured to acquire the waybill information of the canceled waybill in response to monitoring a waybill cancellation message, wherein the waybill information includes cancellation address information and a waybill number; A return type query module is used to query the return type of the entity to which the waybill belongs based on the waybill number; The first return processing module is used to obtain the corresponding centralized return address according to the cancellation address information and the entity identification of the entity to which the waybill belongs when the return type is a centralized return, and generate a return task according to the centralized return address. The centralized return address is the address corresponding to the regional warehouse to which the cancellation address information belongs.

6. The device according to claim 5, characterized in that The device further includes a second return processing module, configured to: If the corresponding centralized return address cannot be obtained based on the cancellation address information and the subject identification of the entity to which the waybill belongs, the corresponding unified return address is obtained based on the subject identification of the entity to which the waybill belongs, and a return task is generated based on the unified return address. The unified return address is the return address pre-configured by the entity to which the waybill belongs.

7. The device according to claim 6, characterized in that The device further includes a third return processing module, configured to: If the corresponding unified return address cannot be obtained based on the subject identification of the entity to which the waybill belongs, the shipping address of the canceled waybill is obtained based on the waybill number, and the shipping address is used as the return address, and a return task is generated based on the return address.

8. The device according to claim 5, characterized in that The device further includes a message processing module, configured to: Before querying the return type of the entity to which the waybill belongs based on the waybill number, the waybill information is subjected to business verification, and after the verification is passed, the waybill cancellation message is added to the message queue, and an anti-concurrency lock is added to the message queue.

9. An electronic device, characterized in that: include: 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 one or more processors implement the method according to any one of claims 1 to 4.

10. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.