CN111882257B - Method and device for modifying delivery address - Google Patents

Method and device for modifying delivery address Download PDF

Info

Publication number
CN111882257B
CN111882257B CN201910942935.4A CN201910942935A CN111882257B CN 111882257 B CN111882257 B CN 111882257B CN 201910942935 A CN201910942935 A CN 201910942935A CN 111882257 B CN111882257 B CN 111882257B
Authority
CN
China
Prior art keywords
route
address
order
new
receiving address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910942935.4A
Other languages
Chinese (zh)
Other versions
CN111882257A (en
Inventor
王凯斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910942935.4A priority Critical patent/CN111882257B/en
Publication of CN111882257A publication Critical patent/CN111882257A/en
Application granted granted Critical
Publication of CN111882257B publication Critical patent/CN111882257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0835Relationships between shipper or supplier and carriers
    • G06Q10/08355Routing methods

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Warehouses Or Storage Devices (AREA)

Abstract

The embodiment of the invention provides a method and a device for modifying a receiving address, wherein the method comprises the following steps: acquiring an order receiving address, a new receiving address and a warehouse address; generating a first route according to the new receiving address and the warehouse address, and generating a second route according to the order receiving address and the warehouse address, wherein the first route and the second route comprise a plurality of position nodes; acquiring a route interval of the shipped goods on a second route, wherein the route interval is an interval formed by two adjacent position nodes; judging whether the order receiving address can be modified into a new receiving address or not according to the route interval, the first route and the second route; if yes, the order receiving address is changed into a new receiving address. The problem that the address cannot be modified after the goods are sent out from the warehouse and only the user can reject the goods and place the order again is solved, the logistics cost loss is avoided, and meanwhile the user experience is improved.

Description

Method and device for modifying delivery address
Technical Field
The invention relates to the field of supply chains, in particular to a method and a device for modifying a receiving address.
Background
With the continuous development of the internet and electronic commerce, online shopping becomes a very important shopping mode in daily life of people, and a goods receiving address is required to be filled by a user when online shopping is carried out, and then the goods are distributed to the user according to the goods receiving address.
However, the user may want to modify the shipping address after placing an order, and the prior art may complete the function of modifying the shipping address when the order is not delivered, and the shipping address cannot be modified after the order is delivered.
When the receiving address cannot be modified, the user can only reject the goods and place the order again after the goods are delivered to the receiving address filled by the user, so that the shopping can be completed, the logistics cost is wasted, and the user experience is influenced due to too long receiving time.
Disclosure of Invention
The embodiment of the invention provides a receiving address modification method and device, which are used for solving the problem that a receiving address cannot be modified after goods purchased by a user through online shopping are sent out from a warehouse.
In a first aspect, an embodiment of the present invention provides a method for modifying a shipping address, including:
acquiring an order receiving address, a new receiving address and a warehouse address;
generating a first route according to the new goods receiving address and the warehouse address, and generating a second route according to the order goods receiving address and the warehouse address, wherein the first route and the second route comprise a plurality of position nodes;
acquiring a route interval of the shipped goods on the second route, wherein the route interval is an interval formed by two adjacent position nodes;
judging whether the order receiving address can be modified into the new receiving address or not according to the route interval, the first route and the second route;
and if so, modifying the order delivery address into the new delivery address.
In one possible design, the determining whether the order shipping address can be modified to the new shipping address according to the route section, the first route, and the second route includes:
judging whether the route section belongs to the first route or not;
if so, obtaining a first transportation cost of a third route according to the first route and the route interval, and obtaining a second transportation cost of a fourth route according to the second route and the route interval; the starting points of the third route and the fourth route are the end points of the route sections, the third route is one section of the first route, and the end point of the third route is the end point of the first route, and the fourth route is one section of the second route, and the end point of the fourth route is the end point of the second route;
and judging whether the order receiving address can be modified into the new receiving address according to the first transportation cost and the second transportation cost.
In one possible design, the determining whether the order shipping address can be modified to the new shipping address based on the first shipping cost and the second shipping cost includes:
judging whether the first transportation cost is smaller than the second transportation cost;
if yes, modifying the order receiving address into the new receiving address;
if not, judging whether the order delivery address can be modified into the new delivery address according to the grade of the user corresponding to the goods, the goods information, the second route and the route interval.
In a possible design, the determining whether the order shipping address can be modified to the new shipping address according to the user's level corresponding to the goods, the goods information, the second route, and the route section includes:
determining the profit of the order according to the goods information, wherein the goods information comprises the bargaining price of each commodity in the order corresponding to the goods, the bin quoted price of each commodity in the order and the quantity of each commodity in the order;
obtaining a cost optimization value according to the grade of the user;
and judging whether the order delivery address can be modified into the new delivery address or not according to the order profit, the cost optimization value, the third transportation cost of the first route and the fourth transportation cost of the second route.
In one possible design, the determining whether the order shipping address can be modified to the new shipping address based on the order profit, the cost optimized value, the third shipping cost for the first route, and the fourth shipping cost for the second route includes:
acquiring a forward and reverse total cost according to a fourth transportation cost of the second route;
determining a new address total cost according to the third transportation cost of the first route and the cost optimization value;
determining whether the new address total cost is less than the forward and reverse total costs and less than the order profit;
and if so, modifying the order delivery address into the new delivery address.
In one possible design, the determining a new address total cost based on the third transportation cost for the first route and the cost optimization value includes:
determining a new address total cost based on a difference between a third transportation cost of the first route and the cost optimization value.
In one possible design, the generating a first route from the new shipping address and the warehouse address and generating a second route from the order shipping address and the warehouse address includes:
obtaining a delivery station of a new receiving address according to the new receiving address, and obtaining a delivery station of an order receiving address according to the order receiving address;
and generating a first route according to the warehouse address and the delivery station of the new receiving address, and generating a second route according to the warehouse address and the delivery station of the order receiving address.
In a second aspect, an embodiment of the present invention provides a receiving address modification apparatus, including:
the acquisition module is used for acquiring an order receiving address, a new receiving address and a warehouse address;
a generating module, configured to generate a first route according to the new receiving address and the warehouse address, and generate a second route according to the order receiving address and the warehouse address, where the first route and the second route include multiple location nodes;
the obtaining module is further configured to obtain a route interval of the shipped goods on the second route, where the route interval is an interval formed by two adjacent position nodes;
the judging module is used for judging whether the order receiving address can be modified into the new receiving address or not according to the route interval, the first route and the second route;
and if so, modifying the order delivery address into the new delivery address.
In one possible design, the determining module is specifically configured to:
judging whether the route section belongs to the first route or not;
if so, obtaining a first transportation cost of a third route according to the first route and the route interval, and obtaining a second transportation cost of a fourth route according to the second route and the route interval; the starting points of the third route and the fourth route are the end points of the route sections, the third route is one section of the first route, and the end point of the third route is the end point of the first route, and the fourth route is one section of the second route, and the end point of the fourth route is the end point of the second route;
and judging whether the order receiving address can be modified into the new receiving address according to the first transportation cost and the second transportation cost.
In a possible design, the determining module is further specifically configured to:
judging whether the first transportation cost is smaller than the second transportation cost;
if yes, modifying the order receiving address into the new receiving address;
if not, judging whether the order delivery address can be modified into the new delivery address according to the grade of the user corresponding to the goods, the goods information, the second route and the route interval.
In a possible design, the determining module is further specifically configured to:
determining the profit of the order according to the goods information, wherein the goods information comprises the bargaining price of each commodity in the order corresponding to the goods, the bin quoted price of each commodity in the order and the quantity of each commodity in the order;
obtaining a cost optimization value according to the grade of the user;
and judging whether the order delivery address can be modified into the new delivery address or not according to the order profit, the cost optimization value, the third transportation cost of the first route and the fourth transportation cost of the second route.
In a possible design, the determining module is further specifically configured to:
acquiring a forward and reverse total cost according to a fourth transportation cost of the second route;
determining a new address total cost according to the third transportation cost of the first route and the cost optimization value;
determining whether the new address total cost is less than the forward and reverse total costs and less than the order profit;
and if so, modifying the order delivery address into the new delivery address.
In a possible design, the determining module is further specifically configured to:
determining a new total cost of the address based on a difference between the third transportation cost of the first route and the cost optimization value.
In one possible design, the generating module is specifically configured to:
obtaining a delivery station of a new receiving address according to the new receiving address, and obtaining a delivery station of an order receiving address according to the order receiving address;
and generating a first route according to the warehouse address and the delivery station of the new receiving address, and generating a second route according to the warehouse address and the delivery station of the order receiving address.
In a third aspect, an embodiment of the present invention provides a receiving address modification apparatus, including:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being adapted to perform the method as described above in the first aspect and any one of the various possible designs of the first aspect when the program is executed.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to perform the method as described above in the first aspect and any one of various possible designs of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a block diagram of a system for modifying a shipping address according to an embodiment of the present invention;
FIG. 2 is a first flowchart of a method for modifying a shipping address according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a delivery route according to an embodiment of the present invention;
FIG. 4 is a second flowchart of a method for modifying a shipping address according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a receiving address modification apparatus according to an embodiment of the present invention;
fig. 6 is a schematic hardware structure diagram of a shipping address modification apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are examples of some routes, but not all embodiments, of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a block diagram of a system for modifying a shipping address according to an embodiment of the present invention, and referring to fig. 1, the system includes a server 101 and a terminal 102.
When a user purchases online, firstly, the terminal 102 places an order, a receiving address is filled in the terminal 102, after the order is placed and the order is generated, the server 101 selects a proper warehouse for delivery according to the receiving address of the order filled by the user, wherein the selected condition can be, for example, the residual quantity of the commodity purchased by the user in the warehouse and the distance between the address of the warehouse and the receiving address of the order filled by the user, after the server selects the proper warehouse, the logistics worker extracts the goods from the selected warehouse and delivers the goods, and the destination of the delivery is the receiving address of the order filled by the user.
When the goods are sent from the warehouse, if the user wants to modify the receiving address, the user fills the address to be modified in the new receiving address of the terminal 102 shown in fig. 1, after the server 101 obtains the new receiving address, the server determines according to the new receiving address, the order receiving address and the warehouse address, determines whether the order receiving address can be modified into the new receiving address at present, and displays an interface on the terminal to prompt the user to wait.
If the server 102 determines that the address modification is possible, the order receiving address is modified to a new receiving address, and the goods are delivered to the new receiving address.
With respect to the system for modifying a shipping address provided in fig. 1, an embodiment of the present invention provides a method for modifying a shipping address, which can still modify the shipping address after the goods have been delivered from the warehouse, and the following describes in detail the method for modifying a shipping address provided in an embodiment of the present invention with reference to fig. 2.
Fig. 2 is a first flowchart of a method for modifying a shipping address according to an embodiment of the present invention. As shown in fig. 2, the method includes:
s201, acquiring an order receiving address, a new receiving address and a warehouse address.
The order receiving address refers to an address filled when a user places an order to purchase goods, the new receiving address refers to a new receiving address filled when the user wants to modify the receiving address, the warehouse address refers to an address of a warehouse for extracting goods when the user delivers the goods, specifically, after the user fills the order receiving address and completes placing the order, the server selects a proper warehouse to deliver the goods for the client, wherein the selected condition can be, for example, the distance between the address of the warehouse and the order receiving address, and can also be, for example, the remaining quantity of the goods in the warehouse.
First, an order harvesting address, a new receiving address and a warehouse address are obtained from the relevant information of the order.
S202, generating a first route according to the new receiving address and the warehouse address, and generating a second route according to the order receiving address and the warehouse address, wherein the first route and the second route comprise a plurality of position nodes.
After the new receiving address and the warehouse address are obtained, a first route is generated according to the new receiving address and the warehouse address, wherein the first route refers to a delivery route when goods purchased by a user are sent from the warehouse address to the new receiving address, the first route can be generated in real time according to the new receiving address and the warehouse address, or the first route can be generated according to historical order information of the user, whether an order identical to the new receiving address and the warehouse address of the current order is included or not can be judged, and the first route is generated according to information of the obtained order.
After the order receiving address and the warehouse address are obtained, a second route is generated according to the order receiving address and the new receiving address, wherein the second route refers to a delivery route when goods purchased by a user are sent from the warehouse address to the order receiving address, the generation mode of the second route is similar to that of the first route, and details are not repeated here.
In the process of transporting goods, the goods may pass through a plurality of transfer stations or distribution stations, so the first route and the second route include a plurality of location nodes, the first route and the second route are described in detail below with reference to fig. 3, fig. 3 is a schematic diagram of a transportation route provided in an embodiment of the present invention, as shown in fig. 3, a circle shown in the diagram is a location node, the diagram includes a plurality of location nodes, where the location node 1 is a warehouse address, the location node 8 is an order receiving address, the location node 9 is a new receiving address, a route from the location node 1 to the location node 8 is a first route, and a route from the location node 1 to the location node 9 is a second route.
S203, obtaining a route interval of the shipped goods on a second route, wherein the route interval is an interval formed by two adjacent position nodes.
The goods are sent from the warehouse and then pass through a plurality of transfer stations or distribution stations, the state of the goods is correspondingly updated when the goods are sent from one distribution station or the transfer stations, for example, the state of the goods can be the way from one distribution station to the next distribution station, in the embodiment of the invention, the goods are distributed according to the order receiving address when the receiving address is not modified, so that the goods are positioned on the second route when the receiving address is not modified, the state of the goods is the way from one position node to the next position node, and the route interval of the goods which are sent on the second route is obtained according to the state of the goods, wherein the route interval is an interval formed by two adjacent position nodes, and the route interval is a sub-interval between the starting point and the ending point of the second route.
Taking the route shown in fig. 3 as an example, assuming that the cargo leaves the location node 2 and is sent to the location node 3 at this time, the state of the cargo may be updated to leave the location node 2, i.e., to arrive at the location node 3, for example. And acquiring a route interval of the delivered goods on a second route according to the state of the goods, wherein the route interval is an interval formed by the position node 2 and the position node 3, and the position node 2 and the position node 3 are adjacent position nodes.
S204, judging whether the order receiving address can be modified into a new receiving address or not according to the route interval, the first route and the second route, if so, executing S205, and if not, executing S206.
After the route interval, the first route and the second route are obtained, whether the order receiving address can be modified into the new receiving address or not is judged according to the route interval, the first route and the second route, wherein the judging mode can be, for example, calculating the transportation cost of goods on the first route according to the route interval and the first route, calculating the transportation cost of the goods on the second route according to the route interval and the second route, judging whether the order receiving address can be modified into the new receiving address or not at present by comparing the transportation cost on the first route and the transportation cost on the second route, and judging whether the order receiving address can be modified into the new receiving address or not.
S205, the order receiving address is changed into a new receiving address.
If the judgment result is yes, the order receiving address is modified into a new receiving address, and after modification, goods are delivered to the user according to the first route, and then the modification of the receiving address is completed.
S206, the order receiving address is refused to be changed into a new address.
If the judgment result is no, the receiving address is judged to be not modifiable at this time, so that the order receiving address is refused to be modified into a new receiving address.
The method for modifying the receiving address provided by the embodiment of the invention comprises the following steps: acquiring an order receiving address, a new receiving address and a warehouse address; generating a first route according to the new goods receiving address and the warehouse address, and generating a second route according to the order goods receiving address and the warehouse address, wherein the first route and the second route comprise a plurality of position nodes; acquiring a route interval of the shipped goods on a second route, wherein the route interval is an interval formed by two adjacent position nodes; judging whether the order receiving address can be modified into a new receiving address or not according to the route interval, the first route and the second route; if yes, the order receiving address is changed into a new receiving address. The order receiving address is modified into the new receiving address when the receiving address can be modified according to the route interval, the first route and the second route where the delivered goods are located, so that the function that the receiving address can still be modified after the goods are sent out from the warehouse is achieved, the problem that the address cannot be modified after the goods are sent out from the warehouse and only a user refuses to place an order again is solved, the logistics cost loss is avoided, and meanwhile the user experience is improved.
Based on the above embodiment, when it is determined that the shipping address can be modified through the first route, the second route and the route interval, the order shipping address can be modified into a new shipping address, which is described in further detail below with reference to fig. 3 and 4, where fig. 4 is a second flowchart of the shipping address modification method provided in the embodiment of the present invention. As shown in fig. 4, the method includes:
s401, acquiring an order receiving address, a new receiving address and a warehouse address.
Specifically, the implementation and principle of S401 are similar to those of S201, and are not described herein again.
S402, generating a first route according to the new receiving address and the warehouse address, and generating a second route according to the order receiving address and the warehouse address, wherein the first route and the second route comprise a plurality of position nodes.
Specifically, the implementation and principle of S402 are similar to S202, and are not described here again.
And S403, acquiring a route interval of the shipped goods on a second route, wherein the route interval is an interval formed by two adjacent position nodes.
And after a first route is generated according to the new receiving address and the warehouse address, and a second route is generated according to the order receiving address and the warehouse address, a route interval of the shipped goods on the second route is obtained.
S404, judging whether the route section belongs to the first route, if so, executing S405, and if not, executing S414.
Specifically, the above embodiment introduces the route section as a section formed by two adjacent position nodes on the second route, and at this time, it is determined whether the route section belongs to the first route, and if the route section belongs to the first route, the route section is a sub-section of both the first route and the second route, and the route section reflects the current cargo state, so that it is possible to preliminarily determine whether the delivery address can be modified by determining whether the route section belongs to the first route.
If the route section does not belong to the first route, the route section is not a sub-section of the first route, the end point of the route section only belongs to the second route but not to the first route, and if the receiving address is modified at this time, the delivery route needs to be re-planned or goods need to be returned to the previous position node for delivery, which causes waste of logistics cost, so that the receiving address cannot be modified at this time. Through the judging step, the condition that the receiving address cannot be modified can be simply determined, and the waste of computing resources is avoided.
Taking fig. 3 as an example, assuming that the route section where the cargo is located at this time is from the position node 3 to the position node 5, it is determined whether the route section formed from the position node 3 to the position node 5 belongs to the first route, and when it is determined that the route section formed from the position node 3 to the position node 5 does not belong to the first route, it is determined that the cargo receiving address cannot be modified.
S405, obtaining a first transportation cost of a third route according to the first route and the route interval, and obtaining a second transportation cost of a fourth route according to the second route and the route interval; the starting points of the third route and the fourth route are the end points of the route sections, the third route is one section of the first route, the end point is the end point of the first route, and the fourth route is one section of the second route, and the end point is the end point of the second route.
If the route section is determined to belong to the first route through judgment, the end point of the route section belongs to the first route and also belongs to the second route, and whether the order delivery address can be modified into a new delivery address or not can be determined through further judgment.
Specifically, the first transportation cost of the third route is obtained according to the first route and the route section, where a starting point of the third route is an end point of the route section, an end point of the third route is an end point of the first route, the third route is one of the sections of the first route, the third route is substantially a route from a next position node where the goods arrive to the end point of the first route on the first route, and the first transportation cost of the third route is calculated, where there are various ways to calculate the first transportation cost, and the way to calculate the transportation cost is the prior art, and details are not described here.
Further, a second transportation cost of a fourth route is obtained according to the second route and the route interval, wherein a starting point of the fourth route is an end point of the route interval, an end point of the fourth route is an end point of the second route, the fourth route is one of the sections of the first route, the fourth route is substantially a route from a next position node where the goods arrive to an end point of the second route on the second route, and the second transportation cost of the fourth route is calculated.
In the following description with reference to fig. 3, it is assumed that the route section at this time is from the location node 2 to the location node 3, that is, the cargo is sent to the location node 3 from the location node 2, the location section formed from the location node 2 to the location node 3 belongs to the first route, the next node where the cargo arrives is the location node 3, and the location node 3 belongs to both the first route and the second route, so that it is determined that there is a possibility that the order receiving address can be modified to a new address, and it is further determined whether the order receiving address can be modified.
Specifically, a first transportation cost of a third route, namely, a route formed by the position node 3 to the position node 9, is obtained according to the first route and the route section, and a second transportation cost of a fourth route, namely, a route formed by the position node 3 to the position node 9, is obtained according to the second route and the route section.
S406, judging whether the first transportation cost is smaller than the second transportation cost, if so, executing S407, and if not, executing S408.
After the first transportation cost and the second transportation cost are obtained, whether the first transportation cost is smaller than the second transportation cost is judged, the first transportation cost is the transportation cost of the third route, and the second transportation cost is the transportation cost of the fourth route.
S407, the order receiving address is changed into a new receiving address.
If the first transportation cost is smaller than the second transportation cost, it can be determined that if the transportation cost consumed for delivering the goods according to the third route is smaller than the transportation cost consumed for delivering the goods according to the fourth route, it can be obtained at this time that if the order receiving address is modified into the new receiving address, the goods are delivered according to the first route corresponding to the new receiving address, and the consumed logistics cost is smaller, the order receiving address is modified into the new receiving address, the goods are delivered to the new receiving address, and the function of modifying the receiving address after the order is sent from the warehouse is achieved.
S408, determining the profit of the order according to the goods information, wherein the goods information comprises the bargaining price of each commodity in the order corresponding to the goods, the bin quote of each commodity in the order and the quantity of each commodity in the order.
If the first transportation cost is judged to be not less than the second transportation cost, it can be determined that the transportation cost consumed for delivering the goods according to the fourth route is relatively low based on the current judgment, so that the order receiving address cannot be modified into a new receiving address at this time, and whether modification can be performed needs to be further judged.
Specifically, the profit of the order is determined according to the goods information, where the goods information includes the bargaining price of each goods in the order corresponding to the goods, the warehouse price of each goods in the order, and the quantity of each goods in the order, and one order may include multiple goods or only one goods, and at this time, the bargaining price of each goods is obtained, where the bargaining price refers to the price paid by the user for the goods when the order is traded, and then the warehouse price of each goods is obtained, where the warehouse price refers to the cost price of the goods including the warehouse storage cost, and the quantity of each goods needs to be obtained, and for one goods, the user may purchase a large number of goods.
After the goods information is obtained, the profit of each goods is obtained by calculation according to the bargaining price, the warehouse quote and the quantity of each goods, the sum of the profits of each goods is the profit of the order, and the calculation mode can be, for example, the cost price minus the warehouse quote and then multiplied by the quantity of the goods.
And S409, obtaining a cost optimization value according to the grade of the user.
The method comprises the steps of firstly obtaining the grade of a user according to order information corresponding to goods, and secondly obtaining a cost optimization value according to the grade of the user, wherein the cost optimization value is in direct proportion to the grade of the user, and the higher the grade of the user is, the higher the corresponding cost optimization value is, the embodiment of the invention does not specially limit the specific relation between the grade of the user and the cost optimization value, and the cost optimization value refers to certain cost optimization according to the grade of the user.
And S410, acquiring the forward and reverse total cost according to the fourth transportation cost of the second route.
And secondly, calculating a forward and reverse total cost according to the first transportation cost of the second route, wherein the forward and reverse total costs are the sum of the forward cost and the reverse cost, the forward cost refers to the transportation cost for transporting the goods from the starting point to the end point, and the reverse cost refers to the transportation cost for transporting the goods from the end point to the starting point, preferably, the values of the forward cost and the reverse cost are not very different, the sum of the forward cost and the reverse cost can be used as the forward and reverse total cost when calculating the forward and reverse total cost, and only one possible implementation manner for calculating the forward and reverse total cost is described herein.
And S411, determining the total cost of the new address according to the third transportation cost of the first route and the cost optimization value.
Taking fig. 3 as an example, the third transportation cost of the first route is a transportation cost consumed by transporting the goods from the warehouse address to the new shipping address, that is, the transportation cost consumed by the first route through which the goods are transported from the location node 1 to the location node 9, after the third transportation cost of the first route is determined, the new address total cost is determined according to the third transportation cost of the first route and the cost optimization value, where the new address total cost is a transportation cost after the cost optimization for transporting the goods from the warehouse address to the new shipping address, preferably, the new address total cost is determined in a manner of subtracting the cost optimization value from the third transportation cost of the first route, and the manner of determining the new address total cost is not particularly limited in the embodiment of the present invention.
And S412, judging whether the total cost of the new address is less than the positive and reverse total cost and less than the profit of the order, if so, executing S413, and if not, executing S414.
After obtaining the total cost of the new address and the total forward and reverse costs, judging whether the total cost of the new address is less than the total forward and reverse costs, because two conditions exist for modifying the receiving address, if the order receiving address can be modified into the new receiving address, the goods are delivered according to the first route, certain cost optimization is carried out for the modified receiving address, the transportation cost is the total cost of the new address, and the other condition is that the order receiving address cannot be modified into the new receiving address, the goods can be transported back to the warehouse again only after being transported to the order receiving address, the goods can be rejected by a user under the condition that the user rejects, and the consumed logistics cost is the total forward and reverse costs.
Further, it is also necessary to determine whether the total cost of the new address is less than the profit of the order, if the total cost of the new address is greater than the profit of the order, the delivery of the goods according to the new delivery address is loss, so the delivery address cannot be modified at this time, and if the total cost of the new address is less than the profit of the order, the delivery of the goods according to the new delivery address is loss-free, and it is determined that the delivery address can be modified.
Therefore, at this time, it is necessary to determine whether the total cost of the new address is less than the forward and reverse total cost, determine whether the total cost is less than the profit of the order, and perform the next operation according to the determination result.
And S413, modifying the order delivery address into a new delivery address.
And if the total cost of the new address is judged to be less than the forward and reverse total cost and less than the profit of the order, determining that the operation of modifying the receiving address can be carried out, modifying the receiving address of the order into the new receiving address at the moment, carrying out delivery of the goods according to the first route from the end point of the route interval, and delivering the goods to the new receiving address provided by the user, thereby avoiding the logistics loss and the reduction of user experience caused by refusing and placing orders again by the user.
And S414, refusing to modify the order delivery address into a new delivery address.
If the total cost of the new address is judged to be greater than the positive reverse total cost or greater than the profit of the order, the operation of modifying the receiving address is judged to cause loss at the moment, and therefore, the order receiving address is refused to be modified into the new receiving address.
The method for modifying the receiving address provided by the embodiment of the invention comprises the following steps on the basis of the embodiment: judging whether the route section belongs to a first route or not; if so, obtaining a first transportation cost of a third route according to the first route and the route interval, and obtaining a second transportation cost of a fourth route according to the second route and the route interval; the starting points of the third route and the fourth route are the end points of route sections, the third route is one section of the first route, the end point is the end point of the first route, and the fourth route is one section of the second route, and the end point is the end point of the second route; judging whether the first transportation cost is less than the second transportation cost; if yes, the order receiving address is modified into a new receiving address; if not, determining the profit of the order according to the goods information, wherein the goods information comprises the bargaining price of each commodity in the order corresponding to the goods, the bin quoted price of each commodity in the order and the quantity of each commodity in the order; obtaining a cost optimization value according to the grade of a user; acquiring a forward and reverse total cost according to a fourth transportation cost of the second route; determining a new address total cost according to the third transportation cost and the cost optimization value of the first route; judging whether the total cost of the new address is less than the positive and reverse total cost and less than the profit of the order; if yes, the order receiving address is changed into a new receiving address. Through judging logic many times, judge whether can receive the goods address with the order and revise as new delivery address, when judging can not revise, can avoid unnecessary loss, when judging can revise, can realize revising the function of receiving the goods address after the goods is sent from the warehouse, avoided the commodity circulation cost loss and the user experience decline that the address can't be revised and cause after the goods is sent from the warehouse.
On the basis of the above embodiment, the determining of the total cost of the new address is preferably performed by determining the total cost of the new address based on a difference between the third transportation cost of the first route and the cost optimization value. By calculating the cost optimization value, certain cost optimization can be performed according to the user level, and part of logistics loss caused by modifying the receiving address is offset.
Further, on the basis of the above embodiment, the manner of generating the first route and the second route in the embodiment of the present invention may be a distribution station that obtains a new shipping address according to the new shipping address, and a distribution station that obtains an order shipping address according to the order shipping address;
and generating a first route according to the delivery stations of the warehouse address and the new receiving address, and generating a second route according to the delivery stations of the warehouse address and the order receiving address.
Preferably, a Point of Interest (POI) of the warehouse address, a POI of the order shipping address, and a POI of the new shipping address may be generated on a map according to the warehouse address, the order shipping address, and the new shipping address, respectively, where one of the POIs may be a house, a shop, a mailbox, a bus station, and the like, and each POI includes four-aspect information, a name, a category, coordinates, and a classification.
And matching the distribution station of the appropriate order receiving address according to the POI of the order receiving address, wherein the matched condition can be, for example, the distance between the distribution station and the POI of the order receiving address, and can also be, for example, the score of the distribution station.
Generating a first route according to the POI of the warehouse address and the POI of the delivery station of the new shipping address, and generating a second route according to the POI of the warehouse address and the POI of the delivery station of the order shipping address, wherein generating the first route and the second route according to the POI is only one possible implementation manner, and for example, may also be generated according to specific location information, which is similar to the implementation manner, and is not described herein again.
The first route and the second route are generated between the corresponding delivery station and the warehouse address by firstly matching the corresponding appropriate delivery station, so that the generation of the routes can be efficiently and conveniently realized, and the reduction of user experience caused by overlong user waiting time is avoided.
Fig. 5 is a schematic structural diagram of a receiving address modification apparatus according to an embodiment of the present invention. As shown in fig. 5, the delivery address modification apparatus 50 includes: an acquisition module 501, a generation module 502, a judgment module 503 and a modification module 504.
An obtaining module 501, configured to obtain an order receiving address, a new receiving address, and a warehouse address;
a generating module 502, configured to generate a first route according to the new receiving address and the warehouse address, and generate a second route according to the order receiving address and the warehouse address, where the first route and the second route include multiple location nodes;
the obtaining module 501 is further configured to obtain a route interval of the shipped goods on the second route, where the route interval is an interval formed by two adjacent position nodes;
the judging module 503 judges whether the order receiving address can be modified into a new receiving address according to the route section, the first route and the second route;
and a modification module 504, which modifies the order delivery address into a new delivery address if the order delivery address is modified.
Optionally, the determining module 503 is specifically configured to:
judging whether the route section belongs to a first route or not;
if so, obtaining a first transportation cost of a third route according to the first route and the route interval, and obtaining a second transportation cost of a fourth route according to the second route and the route interval; the starting points of the third route and the fourth route are the end points of route sections, the third route is one section of the first route, the end point is the end point of the first route, and the fourth route is one section of the second route, and the end point is the end point of the second route;
and judging whether the order receiving address can be modified into a new receiving address according to the first transportation cost and the second transportation cost.
Optionally, the determining module 503 is further specifically configured to:
judging whether the first transportation cost is less than the second transportation cost;
if yes, the order receiving address is modified into a new receiving address;
if not, whether the order receiving address can be modified into a new receiving address or not is judged according to the grade of the user corresponding to the goods, the goods information, the second route and the route interval.
Optionally, the determining module 503 is further specifically configured to:
determining the profit of the order according to the goods information, wherein the goods information comprises the bargaining price of each commodity in the order corresponding to the goods, the bin quoted price of each commodity in the order and the quantity of each commodity in the order;
obtaining a cost optimization value according to the grade of a user;
and judging whether the order receiving address can be modified into a new receiving address or not according to the order profit, the cost optimization value, the third transportation cost of the first route and the fourth transportation cost of the second route.
Optionally, the determining module 503 is further specifically configured to:
acquiring a forward and reverse total cost according to a fourth transportation cost of the second route;
determining a new address total cost according to the third transportation cost and the cost optimization value of the first route;
judging whether the total cost of the new address is less than the positive and reverse total cost and less than the profit of the order;
if yes, the order receiving address is changed into a new receiving address.
Optionally, the determining module 503 is further specifically configured to:
determining a new total cost of the address based on a difference between the third transportation cost of the first route and the cost optimization value.
Optionally, the generating module 502 is specifically configured to:
obtaining a delivery station of the new receiving address according to the new receiving address, and obtaining a delivery station of the order receiving address according to the order receiving address;
and generating a first route according to the delivery stations of the warehouse address and the new receiving address, and generating a second route according to the delivery stations of the warehouse address and the order receiving address.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 6 is a schematic diagram of a hardware structure of a receiving address modification apparatus according to an embodiment of the present invention, and as shown in fig. 6, a receiving address modification apparatus 60 according to the embodiment includes: a processor 601 and a memory 602; wherein
A memory 602 for storing computer-executable instructions;
the processor 601 is configured to execute the computer-executable instructions stored in the memory to implement the steps performed by the receiving address modification apparatus in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 602 may be separate or integrated with the processor 601.
When the memory 602 is provided separately, the shipping address modification apparatus further includes a bus 603 for connecting the memory 602 and the processor 601.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the method for modifying a shipping address executed by the first terminal is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for modifying a shipping address, comprising:
acquiring an order receiving address, a new receiving address and a warehouse address;
generating a first route according to the new goods receiving address and the warehouse address, and generating a second route according to the order goods receiving address and the warehouse address, wherein the first route and the second route comprise a plurality of position nodes;
acquiring a route interval of the shipped goods on the second route, wherein the route interval is an interval formed by two adjacent position nodes;
judging whether the route section belongs to the first route or not;
if so, obtaining a first transportation cost of a third route according to the first route and the route interval, and obtaining a second transportation cost of a fourth route according to the second route and the route interval; the starting points of the third route and the fourth route are the end points of the route sections, the third route is one section of the first route, and the end point of the third route is the end point of the first route, and the fourth route is one section of the second route, and the end point of the fourth route is the end point of the second route;
judging whether the first transportation cost is smaller than the second transportation cost;
if yes, modifying the order receiving address into the new receiving address;
if not, determining the profit of the order according to goods information, wherein the goods information comprises the bargaining price of each commodity in the order corresponding to the goods, the bin quoted price of each commodity in the order and the quantity of each commodity in the order;
obtaining a cost optimization value according to the grade of the user, wherein the cost optimization value is in direct proportion to the grade of the user;
acquiring a forward and reverse total cost according to a fourth transportation cost of the second route;
determining a new address total cost according to a difference between a third transportation cost of the first route and the cost optimization value;
determining whether the new address total cost is less than the forward and reverse total costs and less than the order profit;
and if so, modifying the order delivery address into the new delivery address.
2. The method of claim 1, wherein generating a first route based on the new shipping address and the warehouse address and a second route based on the order shipping address and the warehouse address comprises:
obtaining a delivery station of a new receiving address according to the new receiving address, and obtaining a delivery station of an order receiving address according to the order receiving address;
and generating a first route according to the warehouse address and the delivery station of the new receiving address, and generating a second route according to the warehouse address and the delivery station of the order receiving address.
3. A shipping address modification apparatus, comprising:
the acquisition module is used for acquiring an order receiving address, a new receiving address and a warehouse address;
a generating module, configured to generate a first route according to the new receiving address and the warehouse address, and generate a second route according to the order receiving address and the warehouse address, where the first route and the second route include multiple location nodes;
the obtaining module is further configured to obtain a route interval of the shipped goods on the second route, where the route interval is an interval formed by two adjacent position nodes;
the judging module is used for judging whether the route section belongs to the first route or not; if so, obtaining a first transportation cost of a third route according to the first route and the route interval, and obtaining a second transportation cost of a fourth route according to the second route and the route interval; the starting points of the third route and the fourth route are the end points of the route sections, the third route is one section of the first route, and the end point of the third route is the end point of the first route, and the fourth route is one section of the second route, and the end point of the fourth route is the end point of the second route; judging whether the first transportation cost is smaller than the second transportation cost; if yes, modifying the order receiving address into the new receiving address; if not, determining the profit of the order according to goods information, wherein the goods information comprises the bargaining price of each commodity in the order corresponding to the goods, the bin quoted price of each commodity in the order and the quantity of each commodity in the order; obtaining a cost optimization value according to the grade of the user, wherein the cost optimization value is in direct proportion to the grade of the user; acquiring a forward and reverse total cost according to a fourth transportation cost of the second route; determining a new address total cost according to a difference between a third transportation cost of the first route and the cost optimization value; determining whether the new address total cost is less than the forward and reverse total costs and less than the order profit;
and if so, modifying the order delivery address into the new delivery address.
4. A shipping address modification apparatus, comprising:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being configured to perform the method of claim 1 or 2 when the program is executed.
5. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of claim 1 or 2.
CN201910942935.4A 2019-09-30 2019-09-30 Method and device for modifying delivery address Active CN111882257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910942935.4A CN111882257B (en) 2019-09-30 2019-09-30 Method and device for modifying delivery address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910942935.4A CN111882257B (en) 2019-09-30 2019-09-30 Method and device for modifying delivery address

Publications (2)

Publication Number Publication Date
CN111882257A CN111882257A (en) 2020-11-03
CN111882257B true CN111882257B (en) 2022-08-09

Family

ID=73153958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910942935.4A Active CN111882257B (en) 2019-09-30 2019-09-30 Method and device for modifying delivery address

Country Status (1)

Country Link
CN (1) CN111882257B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116228078A (en) * 2023-05-08 2023-06-06 合肥新鸟科技有限公司 Logistics distribution vehicle dispatching method and system
CN117314132B (en) * 2023-11-30 2024-03-15 乾健科技有限公司 Scheduling method and system based on big data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025531B (en) * 2016-01-29 2021-06-29 菜鸟智能物流控股有限公司 Address modification information processing method and device
CN106845901A (en) * 2017-01-22 2017-06-13 杭州纳戒科技有限公司 Logistics address substitution method and system
US10430756B2 (en) * 2017-01-26 2019-10-01 Software Developers, LLC Multi-level inventory management system and associated methods
CN108269042B (en) * 2018-01-25 2021-07-20 牡丹江师范学院 Logistics supply chain management system and method
CN109816312A (en) * 2019-01-31 2019-05-28 潘果 A kind of logistics route planing method, medium, equipment and device

Also Published As

Publication number Publication date
CN111882257A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN112183852B (en) Logistics distribution route screening and freight accounting method, system, terminal and medium
JP2023523530A (en) Order information processing method, apparatus, computer equipment and medium
CN106709774B (en) Commodity object transaction information processing method and device
CN111882257B (en) Method and device for modifying delivery address
KR101980689B1 (en) Delivery fee calculation method for delivery brokerage service based on reverse auction
CN110060013B (en) Method and device for processing orders to be distributed
CN107330626A (en) A kind of method, device and server for splitting order
CN106960266B (en) Logistics control method and device for pre-selling articles
CN112308681B (en) Inventory processing method and device, electronic equipment and storage medium
CN113191713A (en) Warehouse out-of-stock transferring method, device, equipment and storage medium
US20220292561A1 (en) Commodity exchange system, commodity exchange method, and commodity exchange program
CN116029803B (en) Intelligent bidding method and system
CN114239977A (en) Method, device, equipment and storage medium for determining estimated delivery time length
CN112070423A (en) Stock pre-occupation method and device, electronic equipment and storage medium
CN108090721A (en) A kind of logistics order processing method, apparatus, server and storage medium
CN107203917A (en) A kind of method for processing business, apparatus and system
CN109493178A (en) A kind of cloud retail order decomposition method and system
CN116362847B (en) Cross-border electronic commerce digital purse net based transaction method and system
CN110163402B (en) Method and device for determining stock quantity units in order
CN106157054A (en) A kind of transaction data processing method and device
CN112017002A (en) User order supplementing method, device, equipment and storage medium
CN116090934A (en) Method, device, equipment and storage medium for rapidly delivering pre-sold articles
CN115713200A (en) Method and device for processing inventory allocation, order processing and scheduling data
CN112308266A (en) Warehouse site selection method, device, equipment and readable storage medium
CN116523425A (en) Method and equipment for implementing cross-border logistics order

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant