Full link track determination method, device, equipment and storage medium
1. A method for determining a full link trajectory, comprising:
when a track determining event is monitored, acquiring a track node corresponding to the track determining event, and determining a target single number where the track node is located;
determining a target link relation in which the target single number is stored from each pre-constructed logistics link relation, and determining an article acquisition task corresponding to the target link relation, wherein each logistics single number of the article acquisition task is stored in the target link relation, and the target single number is derived from each logistics single number;
and acquiring a full link track of the object acquisition task, which is determined before the track determination event is monitored, connecting the track nodes to the full link track, and updating the full link track according to a connection result.
2. The method of claim 1, further comprising:
and acquiring each logistics single number obtained after the generated article acquisition task is pre-sorted, and constructing the target link relation based on each logistics single number.
3. The method of claim 1, wherein the determining the target single number where the track node is located comprises:
if the track node is determined to be required to be displayed in the full-link track according to the node type of the track node, determining a target single number where the track node is located; and/or the presence of a gas in the gas,
the connecting the track node into the full link track comprises:
and if the link nodes with the same type as the node do not exist in the link nodes in the full-link track and/or the track nodes are determined to be required to be displayed in the full-link track according to the node type, connecting the track nodes to the full-link track.
4. The method of claim 1, further comprising:
determining a logistics carrier where the track node is located, and acquiring a pre-constructed first node mapping relation corresponding to the logistics carrier, wherein the mapping relation between the track node and a standard node corresponding to the track node is stored in the first node mapping relation, the track node and the standard node have different description modes, and the description modes comprise description languages and/or description contents;
and mapping the track node into the standard node based on the first node mapping relation, and updating the track node according to the standard node.
5. The method of claim 4, wherein said updating said track node according to said standard node comprises:
if a pre-constructed second node mapping relation corresponding to the track subscriber of the full-link track exists, mapping the standard node into an individualized node based on the second node mapping relation, and updating the track node according to the individualized node;
the second node mapping relation stores the mapping relation between the standard node and the personalized node, and the standard node and the personalized node have different description modes.
6. The method of claim 1, further comprising:
obtaining a logistics track comprising each link node with the same node information according to the node information of each link node in the full link track, wherein the node information comprises at least one of a logistics carrier where the link node is located, the logistics list number and a logistics type, and the logistics type comprises at least one of a local, a cross-border trunk and a last kilometer;
determining track information of the logistics track according to the node information of each link node in the logistics track, and displaying the track information of each logistics track in the full link track on the corresponding logistics track when the full link track is displayed.
7. The method of claim 1, further comprising:
acquiring the full link track of each article acquisition task;
for each full link track, determining a task state of the item acquisition task corresponding to the full link track according to the last type of the last node in each link node in the full link track, wherein the task state comprises at least one of pulled, on-the-way, paid and rejected;
and classifying and displaying all the full link tracks according to all the task states.
8. The method of claim 1, further comprising:
when a track query event is received, determining a track subscriber of the full-link track corresponding to the track query event, and determining whether the full-link track is displayed according to a track query condition configured in advance for the track subscriber, wherein the track query condition comprises that the queried number of the track does not exceed a preset number threshold and/or has a track query right; and/or the presence of a gas in the gas,
broadcasting the full-link track based on a preset application program interface so that the track subscriber accessing the application program interface receives the full-link track.
9. A full link trajectory determination device, comprising:
the target single number determining module is used for acquiring a track node corresponding to a track determining event when the track determining event is monitored, and determining a target single number where the track node is located;
an article acquisition task determining module, configured to determine, from each pre-constructed logistics link relationship, a target link relationship in which the target sheet number is stored, and determine an article acquisition task corresponding to the target link relationship, where each logistics sheet number of the article acquisition task is stored in the target link relationship, and the target sheet number is derived from each logistics sheet number;
and the full-link track determining module is used for acquiring a determined full-link track of the object acquisition task before the track determining event is monitored, connecting the track node to the full-link track, and updating the full-link track according to a connecting result.
10. A full link trajectory determination device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the full link trajectory determination method as recited in any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a full link trajectory determination method according to any one of claims 1 to 8.
Background
With the advancement and development of internationalization, more and more overseas logistics enterprises choose to cooperate with Chinese logistics enterprises, and the development market and the expansion business of China are sought. Thus, cross-border logistics ensues.
Cross-border logistics typically involves at least two logistics carriers and thus includes logistics tracks from different logistics carriers in cross-border logistics.
In the process of implementing the invention, the inventor finds that the following technical problems exist in the prior art: the distribution of each section of logistics track is scattered, the whole link track is difficult to be completely determined at present, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for determining a full link track, so as to achieve the effect of completely determining the full link track.
In a first aspect, an embodiment of the present invention provides a method for determining a full link trajectory, where the method may include:
when a track determining event is monitored, obtaining a track node corresponding to the track determining event, and determining a target single number where the track node is located;
determining a target link relation in which a target single number is stored from all pre-constructed logistics link relations, and determining an article acquisition task corresponding to the target link relation, wherein all logistics single numbers of the article acquisition task are stored in the target link relation, and the target single number is derived from all logistics single numbers;
and acquiring a full link track determined before the track determination event of the object acquisition task is monitored, connecting track nodes into the full link track, and updating the full link track according to the connection result.
In a second aspect, an embodiment of the present invention further provides a full link trajectory determining apparatus, which may include:
the target single number determining module is used for acquiring a track node corresponding to the track determining event and determining a target single number where the track node is located when the track determining event is monitored;
the object acquisition task determining module is used for determining a target link relation in which a target single number is stored from all pre-constructed logistics link relations and determining an object acquisition task corresponding to the target link relation, wherein all logistics single numbers of the object acquisition task are stored in the target link relation, and the target single number is derived from all logistics single numbers;
and the full link track determining module is used for acquiring a full link track determined before the track determining event of the object acquisition task is monitored, connecting track nodes to the full link track, and updating the full link track according to the connecting result.
In a third aspect, an embodiment of the present invention further provides a full link trajectory determining device, where the full link trajectory determining device may include:
one or more processors;
a memory for storing one or more programs;
when executed by one or more processors, cause the one or more processors to implement the full link trajectory determination method provided by any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the full link trajectory determination method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the target single number where the track node is located can be determined by acquiring the track node corresponding to the monitored track determination event, wherein the essential meaning of the target single number is a logistics single number; each logistics single number related to the article acquisition task corresponding to the logistics link relationship can be stored in the pre-constructed logistics link relationship, so that a target link relationship in which a target single number is stored can be determined from each logistics link relationship, and then the article acquisition task corresponding to the target link relationship is determined, wherein each logistics single number of the article acquisition task can be stored in the target link relationship, and the target single number is derived from each logistics single number; the determined full-link track exists before the track determining event is monitored in the object obtaining task, and the full-link track can be a track obtained according to the track determining event monitored previously, so that after the object obtaining task is determined, the full-link track of the object obtaining task can be obtained, the newly obtained track node is connected to the full-link track, and the full-link track is updated according to the connection result, so that the full-link track of the object obtaining task at the current moment is obtained. According to the technical scheme, the previously determined full-link track of the article acquisition task and the newly acquired track node are associated through the target link relation, and the full-link track of the article acquisition task including all the track nodes which are already appeared is obtained, so that the problem that the full-link track is difficult to be completely determined due to scattered distribution of all sections of logistics tracks (namely all the track nodes) is solved, and a user can directly inquire the full-link track in the full-link track determination device and does not need to respectively inquire in different logistics systems, so that the user experience is improved. Particularly, in an application scenario of cross-border logistics, the technical scheme can uniformly manage logistics tracks of the same object acquisition task in different logistics systems, so that the effects of the same integration and centralized management of the logistics tracks of a local area, a cross-border main line and a last kilometer and the effective tracking of the whole logistics track are realized.
Drawings
Fig. 1 is a flowchart of a full link trajectory determination method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a full link trajectory in a full link trajectory determination method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating digital analysis management in a full link trajectory determination method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of upstream and downstream coordination in a full link trajectory determination method according to an embodiment of the present invention;
fig. 5 is a flowchart of a full link trajectory determination method in the second embodiment of the present invention;
fig. 6 is a flowchart of an alternative example of a full link trajectory determination method in the second embodiment of the present invention;
fig. 7 is a block diagram of a full link trajectory determination apparatus according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a full link trajectory determination device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before the embodiment of the present invention is described, an application scenario of the embodiment of the present invention is exemplarily described: cross-border logistics has the characteristics of long delivery time, difficulty in tracking opacity and difficulty in after-sales service, and it should be noted that, since different logistics carriers may have their own logistics systems, querying a full link trajectory (i.e., a full segment of a logistics trajectory) for an item acquisition task may require accessing a plurality of different logistics systems, such as a home, a cross-border trunk and a last mile system. Each section of logistics track is arrayed independently and can not be unified, so that the missing of the full link track influences the operation cost control of an object attribution party of the object to be obtained in the object obtaining task and also concerns the quality of user experience.
Example one
Fig. 1 is a flowchart of a full link trajectory determination method according to a first embodiment of the present invention. The embodiment can be applied to the case of completely determining the full link track, and is particularly applicable to the case of connecting the logistics tracks based on the logistics link relationship to obtain the full link track. The method can be executed by the full-link trajectory determination apparatus provided by the embodiment of the present invention, the apparatus can be implemented by software and/or hardware, the apparatus can be integrated on a full-link trajectory determination device, and the device can be various user terminals or servers.
Referring to fig. 1, the method of the embodiment of the present invention specifically includes the following steps:
s110, when a track determining event is monitored, obtaining a track node corresponding to the track determining event, and determining a target single number where the track node is located.
The track determination event may be an event for determining a full link track of a certain object acquisition task, and may be triggered when receiving a track node sent by an upstream logistics system, actively captured from the upstream logistics system, or uploaded by a full link track determination device, or may be triggered at other times, which is not specifically limited herein. The item acquisition task may be a task for acquiring an item (i.e., an item to be acquired), and taking the e-commerce platform as an example, the item acquisition task may be an order, and the item may be a commodity; the full link track may be a track that an item acquisition task has occurred (i.e., the item has walked), and may include at least one track node, where each track node may represent a node where a transportation status of the item changes during execution of the item acquisition task, such as a pulled-in, a sent-out, a transported to XX location, a committed, and so on. Therefore, when a trajectory determination event is monitored, a trajectory node corresponding to the trajectory determination event may be acquired. It should be noted that, as time goes by, the item may be continuously moved from the item attribution party, which may be a party currently owning the item, such as the seller in the above example, to the item acquirer, which may be a buyer in the above example, and the track nodes are increased, and the full link track may be continuously updated as the track nodes are increased.
As described above, the track node is newly added because the transportation state of the article is changed during the execution of the article acquisition task, and the change of the transportation state indicates that the article is in the carrying stage in charge of a certain logistics carrier, so that a certain logistics list number corresponding to the track node exists at this time, and here, in order to distinguish the logistics list number corresponding to the track node from the rest logistics list numbers involved in the full-link track, the logistics list number corresponding to the track node may be referred to as a target list number. The implementation manner of determining the target single number of the track node is various, for example, after the track node is acquired through an upstream logistics system, the target single number of the track node can be acquired at the same time; for example, the target order number of the track node can be determined according to the node identifier of the track node, and the node identifier can indicate that the track node is from which logistics carrying task which is responsible for by which logistics carrying party, and each logistics carrying task has a respective logistics order number; etc., and are not specifically limited herein.
S120, determining a target link relation in which a target single number is stored from the pre-constructed logistics link relations, and determining an article acquisition task corresponding to the target link relation, wherein the target link relation stores the logistics single numbers of the article acquisition task, and the target single number is derived from the logistics single numbers.
In practical application, the number of the article acquisition tasks existing at the same time may be one, two or more, and each article acquisition task corresponds to a respective logistics link relationship. It should be noted that the meaning of the setting of the logistics link relationship is that at least two logistics carriers may be required to sequentially cooperate with each other to complete a certain article acquisition task, that is, the same article acquisition task may have different logistics list numbers in the logistics system where different logistics carriers are located, each logistics list number related to the article acquisition task may be stored in the order link relationship corresponding to the certain article acquisition task, and in addition, a task list number of the article acquisition task when being generated may also be stored, that is, the task list number may show a one-to-one correspondence relationship between the logistics list numbers or between each logistics list number and a task list number. Therefore, after a certain logistics list number is obtained, which article acquisition task the logistics list number belongs to can be determined according to the relationship of each logistics link, and which logistics list numbers also exist in the article acquisition task. For example, assuming that the task order number of a certain article acquisition task is X and three physical distribution order numbers of ABC are involved in turn, the physical distribution link relationship may be X-A-B-C, which is a link. For another example, in an actual application scenario incorporated into the e-commerce platform, the logistics link relationship of a certain order may be a one-to-one correspondence relationship between the order number of the order and each logistics order number.
As can be seen from the above, a certain logistics single number only exists in a certain logistics link relationship, so that a target link relationship in which a target single number is stored can be determined from each logistics link relationship constructed in advance, and the target single number is one of the logistics single numbers stored in the target link relationship. And further determining an article acquisition task corresponding to the target link relationship. On this basis, optionally, the target link relationship may be obtained by constructing in advance through the following steps: and acquiring each logistics single number obtained after pre-sorting is executed aiming at the generated article acquisition task, and constructing a target link relation based on each logistics single number. The pre-sorting may be that after the item acquisition task is generated, the task generation event of the item acquisition task is sent to each logistics carrier that needs to carry the item acquisition task. Therefore, the logistics system where each logistics carrier is located can generate a corresponding logistics list number and feed back the generated logistics list number, and the full link determination equipment can acquire each logistics list number associated with the item acquisition task. For example, by continuing to combine with the practical application scenario of the e-commerce platform, after a certain user places an order on the e-commerce platform, the pre-sorting system of the e-commerce platform can pre-sort the order, that is, place an order for each logistics carrier that needs to carry the order, and further obtain the logistics order number fed back by each logistics carrier, and then construct the logistics link relationship of the order based on the logistics order numbers.
S130, obtaining a full link track which is determined before the track determining event of the object obtaining task is monitored, connecting track nodes to the full link track, and updating the full link track according to a connecting result.
As described above, as the trace nodes increase with time, the full link trace is updated continuously with the increase of the trace nodes. In other words, before the track determination event of this time is monitored, the determined full link track of the object acquisition task already exists, and of course, the full link track at this time is a track that has not been updated according to the newly acquired track node, and the number of the included link nodes may be one, two, or more. It should be noted that the essence of the link node is the track node, and at this time, the track node added to the full link track is referred to as the link node only for distinguishing whether a certain track node is added to the full link track.
Therefore, when the full-link track determined before the track determination event of the object acquisition task is monitored is acquired, the newly acquired track node may be connected to the full-link track, to be precise, to the last node of the full-link track, where the last node may be the link node that is connected to the full-link track in the full-link track last, that is, the link node with the latest occurrence time, and then the full-link track may be updated according to the connection result, that is, the updated full-link track may be the logistics track including the full segment that has occurred at this time in the object acquisition task. For example, a schematic diagram of a full-link track is shown in fig. 2, which is a schematic diagram of a full-link track after an item acquisition task is completed, where the last node in the full-link track may have signed in.
According to the technical scheme of the embodiment of the invention, the target single number where the track node is located can be determined by acquiring the track node corresponding to the monitored track determination event, wherein the essential meaning of the target single number is a logistics single number; each logistics single number related to the article acquisition task corresponding to the logistics link relationship can be stored in the pre-constructed logistics link relationship, so that a target link relationship in which a target single number is stored can be determined from each logistics link relationship, and then the article acquisition task corresponding to the target link relationship is determined, wherein each logistics single number of the article acquisition task can be stored in the target link relationship, and the target single number is derived from each logistics single number; the determined full-link track exists before the track determining event is monitored in the object obtaining task, and the full-link track can be a track obtained according to the track determining event monitored previously, so that after the object obtaining task is determined, the full-link track of the object obtaining task can be obtained, the newly obtained track node is connected to the full-link track, and the full-link track is updated according to the connection result, so that the full-link track of the object obtaining task at the current moment is obtained. According to the technical scheme, the previously determined full-link track of the article acquisition task and the newly acquired track node are associated through the target link relation, and the full-link track of the article acquisition task including all the track nodes which are already appeared is obtained, so that the problem that the full-link track is difficult to be completely determined due to scattered distribution of all sections of logistics tracks (namely all the track nodes) is solved, and a user can directly inquire the full-link track in the full-link track determination device and does not need to respectively inquire in different logistics systems, so that the user experience is improved. Particularly, in an application scenario of cross-border logistics, the technical scheme can uniformly manage logistics tracks of the same object acquisition task in different logistics systems, so that the effects of the same integration and centralized management of the logistics tracks of a local area, a cross-border main line and a last kilometer and the effective tracking of the whole logistics track are realized.
In practical application, optionally, determining the target single number where the track node is located may include: and if the track node is determined to be required to be displayed in the full-link track according to the node type of the track node, determining the target single number of the track node. Considering that some track nodes do not need to be known by users, such as those with the same function, for example, after receiving the same object acquisition task, different logistics carriers have the track nodes which are already picked up, but the users only need to know the track node where the object is picked up for the first time, and the track nodes which are already picked up for the remaining times are redundant information for the users, so that the track nodes which are already picked up can be aggregated, and only the track nodes which are already picked up and appear for the first time are reserved; as for the track nodes automatically triggered by the logistics system, for example, a certain e-commerce platform will simultaneously give a certain object acquisition task to a plurality of logistics carriers which are successively responsible for transportation, that is, the logistics carriers responsible for transportation at a later stage automatically trigger the received track nodes (that is, the tasks are received) when not really receiving the corresponding objects, and if the track nodes are also added to the full-link track in chronological order, the confusion is easily brought to the user; etc., and are not specifically limited herein. These trajectory nodes that need not be known to the user are trajectory nodes that need not be exposed in the full link trajectory. It should be noted that different logistics carriers may be from different regions, different enterprises in the same region, etc., and thus for track nodes with the same meaning, there may be differences in the description of the track nodes by each logistics carrier, which may include description language, description content, etc., taking track nodes with the same meaning as pulled, the logistics carrier in country a may use the description in language a and the logistics carrier in country B may use the description in language B, one logistics carrier in country a may use the description of "article pulled" and another logistics carrier in country a may use the description of "article pulled". Therefore, in order to accurately obtain the essential meaning of each track node, the essential meaning of the track node can be represented by the node type. On this basis, as can be seen by combining the above examples, whether a track node is a track node that needs to be displayed in a full-link track can be determined according to the node type of the track node, for example, the node type is that the received track node does not need to be displayed in the full-link track; furthermore, whether the track node needs to be displayed in the full link track can be determined by combining the occurrence frequency of the track node under a certain node type, for example, the track node with the node type being collected and the occurrence frequency being at least two times does not need to be displayed in the full link track. Therefore, when the target single number where the track node is located is determined, only the target single number where the track node is located needs to be displayed in the full-link track can be determined, the target single number is matched with the follow-up steps, the important track node can be visually displayed in the full-link track (namely, the user needs to know), and therefore user experience is improved.
Optionally, connecting the track node to the full link track may include: and if no link node with the same type as the node exists in all the link nodes in the full link track, and/or the track node is determined to be required to be displayed in the full link track according to the node type, connecting the track node into the full link track. For a certain node type, at least two track nodes having the node type may exist in the whole item acquisition task, such as the acquisition in the above example, but the track nodes only need to notify the user once, so that link nodes having the same node type as the track nodes exist in each link node in the determined full link track, and such track nodes do not need to be connected to the determined full link track, which can be understood as aggregating the track nodes having the same node type. In other words, only the track nodes which need to be known by the user need to be connected to the determined full link track, so that the important track nodes can be visually displayed in the full link track, and the user experience is improved.
An optional technical solution, where the full-link trajectory determination device further includes: obtaining a logistics track comprising each link node with the same node information according to the node information of each link node in the full link track, wherein the node information comprises at least one of a logistics carrier, a logistics single number and a logistics type where the link node is located, and the logistics type comprises at least one of a local, a cross-border trunk and a last kilometer; and determining track information of the logistics track according to the node information of each link node in the logistics track, and displaying the track information of each logistics track in the full link track on the corresponding logistics track when the full link track is displayed. Wherein, the same object acquisition task may involve different logistics carriers, the node information of each track node belonging to the same logistics carrier is the same, or the node information of each link node in the logistics track from the same logistics carrier in the full link track is the same, therefore, the logistics track comprising each link node with the same node information can be obtained according to the node information of each link node in the full link track, the node information may include at least one of a logistics carrier where the link node is located, a logistics order number, and a logistics type, the logistics type may include at least one of a homeland, a cross-border trunk, and a last kilometer, the local area can be the logistics type of the logistics track transported in a certain country, the cross-border trunk can be the logistics type of the logistics track transported between at least two countries, and the last kilometer can be the logistics type of the logistics track to be sent to the logistics acquirer. Furthermore, the track information of the logistics track may be determined according to the node information of each link node in the logistics track, and the track information may be the same as the node information of any link node in the logistics track, or may be information obtained by processing the node information, which is not specifically limited herein. Therefore, when the full link track is displayed, the track information of each logistics track in the full link track can be displayed on the corresponding logistics track, and thus relevant personnel such as operation personnel can inquire the full link track and can obtain the track information of each logistics track in the full link track.
An optional technical solution, where the full-link trajectory determination device further includes: acquiring a full link track of each article acquisition task; determining the task state of an article acquisition task corresponding to each full link track according to the last type of the last node in each link node in the full link track aiming at each full link track, wherein the task state comprises at least one of the pulled-in, on-the-way, paid-in and rejected; and classifying and displaying all the full link tracks according to the task states. As described above, in practical applications, the number of the article acquisition tasks existing at the same time may be one, two, or more, and each article acquisition task corresponds to a respective logistics link relationship, so that a full link trajectory of each article acquisition task can be obtained. Furthermore, for each full link trace, the last type of the last node in each link node may be determined, and it should be noted that the last type is a node type of the last node, and is named differently only for distinguishing from the node type of the trace node in the foregoing, so that the node type is a node type of the trace node acquired last time, and the last type is a node type of the last node. Further, determining the task state of the article acquisition task corresponding to the full link track according to the last type, wherein the task state can be collected, on the way, appropriate delivery, rejected and the like; therefore, all the full-link tracks can be classified and displayed according to the task state of each item acquisition task, for example, the full-link tracks of each item acquisition task with the same task state are integrated and displayed, so that the function of digital analysis management is realized, as shown in fig. 3 for example.
An optional technical solution is that the full-link trajectory determining device may further include: when a track query event is received, determining a track subscriber of a full-link track corresponding to the track query event, and determining whether the full-link track is displayed according to a track query condition configured in advance for the track subscriber, wherein the track query condition comprises that the queried number of the track does not exceed a preset number threshold and/or the track query condition has a track query right; and/or broadcasting the full-link track based on the preset application program interface so that a track subscriber accessing the application program interface receives the full-link track. The track query event may be an event triggered by a track subscriber for querying a full-link track of an object acquisition task, and the track subscriber may be a party subscribed to the full-link track. For each track subscriber, a track query condition of the track subscriber may be configured in advance, where the track query condition may indicate under what condition the track subscriber may query the full-link track subscribed by the track subscriber, for example, when the number of times that the track subscriber queries the full-link track does not exceed a preset number threshold, the track subscriber may continue to query the full-link track, and if the track subscriber has a track query authority for the full-link track at the current time, the track subscriber is not specifically limited herein. Thus, whether to display a full link track may be determined according to pre-configured track query conditions for the track subscriber. In addition, optionally, in addition to the track subscriber actively querying the full-link track, the full-link track may be broadcasted based on a preset Application Programming Interface (API) when the full-link track is updated each time, so that the track subscriber accessing the API can automatically receive the full-link track after each change without actively querying, where the API may be HTTP, JSF, JMQ, a client, or the like, and is not specifically limited herein. According to the technical scheme, the full-link track determining system (also called a full-range tracking system) integrated in the full-link track determining equipment can be in butt joint with other logistics systems through an API (application programming interface), so that data collection, query and subscription are realized; meanwhile, the number of queries and the like may also be controlled according to account traffic (e.g., by determining whether a full link trace can be provided at this time according to a contract pre-signed with a trace subscriber). For example, referring to fig. 4, the order mapping may be understood as a logistics link relationship, the track standardization may be understood as a node standardization, the track mapping may be understood as a full link track, and the track personalization may be understood as a node personalization; in addition, the track subscribing system can be a system where the track subscriber is located, wherein the logistics system can be considered as an upstream system of the global tracking system, and the global tracking system can be considered as an upstream system of the track subscribing system.
Example two
Fig. 5 is a flowchart of a full link trajectory determination method provided in the second embodiment of the present invention. The present embodiment is optimized based on the above technical solutions. In this embodiment, optionally, the full link trajectory determining device may further include: determining a logistics carrier where the track node is located, and acquiring a pre-constructed first node mapping relation corresponding to the logistics carrier, wherein the first node mapping relation stores a mapping relation between the track node and a standard node corresponding to the track node, the track node and the standard node have different description modes, and the description modes comprise description languages and/or description contents; and mapping the track node into a standard node based on the first node mapping relation, and updating the track node according to the standard node. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
Referring to fig. 5, the method of this embodiment may specifically include the following steps:
s210, when a track determining event is monitored, obtaining a track node corresponding to the track determining event, and determining a target single number where the track node is located.
S220, determining a logistics carrier where the track node is located, and acquiring a pre-constructed first node mapping relation corresponding to the logistics carrier, wherein the mapping relation between the track node and a standard node corresponding to the track node is stored in the first node mapping relation, the track node and the standard node are different in description mode, and the description mode comprises a description language and/or description content.
One article acquisition task may involve one, two or more logistics carriers, and different logistics carriers may use different description manners when recording respective track nodes, where the description manners may be description languages such as chinese, english, japanese, korean, and the like, description contents such as XX, YY, ZZ, and the like for track node descriptions that have been retrieved, or other description-related objects, and are not specifically limited herein. In order to unify the link nodes (i.e., trace nodes) in the full-link trace, the latest acquired trace node may be mapped to a standard node, where the standard node may be a node that is described based on a preset description mode. Therefore, a first node mapping relationship between each logistics carrier and the global tracking system can be respectively constructed in advance, and the first node mapping relationship can store a one-to-one correspondence relationship between the track nodes recorded by the logistics carriers and the standard nodes in the global tracking system.
And S230, mapping the track node into a standard node based on the first node mapping relation, and updating the track node according to the standard node.
The track nodes are mapped into standard nodes based on a first node mapping relation corresponding to the logistics carriers where the track nodes are located, and then the track nodes are updated according to the standard nodes. Therefore, after the track nodes are connected to the determined full link track and the full link track is updated, the description mode of each link node in the obtained full link track is the same, and therefore user experience is improved.
S240, determining a target link relation in which a target single number is stored from the pre-constructed logistics link relations, and determining an article acquisition task corresponding to the target link relation, wherein the target link relation stores the logistics single numbers of the article acquisition task, and the target single number is derived from the logistics single numbers.
And S250, acquiring the determined full-link track of the object acquisition task before the track determination event is monitored, connecting the track node to the full-link track, and updating the full-link track according to the connection result.
It should be noted that, the embodiment of the present invention is described by taking an example of performing node normalization before connecting a track node to a full-link track, and in practical applications, a track node may be connected to a full-link track first, and then a newly connected track node in the full-link track is normalized, which is not specifically limited herein.
According to the technical scheme of the embodiment of the invention, the track nodes are mapped into the standard nodes through the acquired pre-constructed first node mapping relation corresponding to the logistics carrier where the track nodes are located, and the track nodes are updated by the standard nodes, so that the description mode of each track node in the subsequently acquired full-link track is the same, and the user experience is improved.
On this basis, an optional technical solution, updating the track node according to the standard node, may include: if a pre-constructed second node mapping relation corresponding to the track subscriber of the full link track exists, mapping the standard node into an individualized node based on the second node mapping relation, and updating the track node according to the individualized node; the second node mapping relation stores the mapping relation between the standard node and the personalized node, and the standard node and the personalized node are different in description mode. Some track subscribers have their own personalized requirements for the description mode of each track node in the full-link track subscribed by themselves, for example, some track subscribers want to go to a lovely style, for example, they want to describe "put in good" as "owner has got a good for a lady", and accordingly, the standard node can be mapped to the personalized node meeting the personalized requirements of the track subscribers, that is, the standard node is packaged, and then the track node is updated based on the personalized node obtained after the packaging. The specific implementation manner of the mapping process may be: whether a pre-constructed second node mapping relation corresponding to the track subscriber exists or not is determined, if yes, the standard node can be mapped into the personalized node based on the second node mapping relation, the mapping relation between the standard node and the personalized node is stored in the second node mapping relation, and the standard node and the personalized node are different in description mode. Therefore, the track node updated based on the personalized node is connected to the determined full-link track, and after the full-link track is updated, the description mode of each link node in the obtained full-link track meets the personalized requirements of a track subscriber, so that the user experience is improved. For example, as shown in fig. 6, it is taken as an example that a standard node/personalized node obtained by broadcasting the latest acquisition is broadcasted, and in an actual application, a full link trajectory may also be broadcasted directly, which is not specifically limited herein.
EXAMPLE III
Fig. 7 is a block diagram of a full link trajectory determination apparatus according to a third embodiment of the present invention, where the apparatus is configured to execute a full link trajectory determination method according to any of the above embodiments. The device and the full link trajectory determination method of each embodiment belong to the same inventive concept, and details that are not described in detail in the embodiment of the full link trajectory determination device may refer to the embodiment of the full link trajectory determination method. Referring to fig. 7, the apparatus may specifically include: a target order number determination module 310, an item acquisition task determination module 320, and a full link trajectory determination module 330. Wherein the content of the first and second substances,
the target single number determining module 310 is configured to, when a track determination event is monitored, obtain a track node corresponding to the track determination event, and determine a target single number where the track node is located;
an article acquisition task determining module 320, configured to determine, from the pre-established logistics link relationships, a target link relationship in which a target single number is stored, and determine an article acquisition task corresponding to the target link relationship, where the target link relationship stores the logistics single numbers of the article acquisition task, and the target single number is derived from each logistics single number;
the full link trajectory determining module 330 is configured to obtain a full link trajectory determined before the trajectory determining event of the object obtaining task is monitored, connect a trajectory node to the full link trajectory, and update the full link trajectory according to a connection result.
Optionally, the apparatus for determining a full link trajectory may further include:
and the target link relation construction module is used for acquiring each logistics single number obtained after the generated article acquisition task is pre-sorted, and constructing a target link relation based on each logistics single number.
Optionally, the target single number determining module 310 may include:
the target single number determining unit is used for determining the target single number of the track node if the track node is determined to be required to be displayed in the full-link track according to the node type of the track node; and/or the presence of a gas in the gas,
the full link trajectory determination module 330 may include:
and the track node connecting unit is used for connecting the track node to the full link track if the link node with the same type as the node does not exist in each link node in the full link track and/or the track node is determined to be required to be displayed in the full link track according to the type of the node.
Optionally, the apparatus for determining a full link trajectory may further include:
the system comprises a first node mapping relation acquisition module, a second node mapping relation acquisition module and a third node mapping relation acquisition module, wherein the first node mapping relation acquisition module is used for determining a logistics carrier where a track node is located and acquiring a pre-constructed first node mapping relation corresponding to the logistics carrier, the first node mapping relation is stored with a mapping relation between the track node and a standard node corresponding to the track node, the track node and the standard node are different in description modes, and the description modes comprise description languages and/or description contents;
and the track node standardization module is used for mapping the track nodes into standard nodes based on the first node mapping relation and updating the track nodes according to the standard nodes.
On this basis, optionally, the trajectory node normalization module may include:
the standard node individuation unit is used for mapping the standard node into an individuation node based on a second node mapping relation if the second node mapping relation which is constructed in advance and corresponds to the track subscriber of the full-link track exists, and updating the track node according to the individuation node; the second node mapping relation stores the mapping relation between the standard node and the personalized node, and the standard node and the personalized node are different in description mode.
Optionally, the apparatus for determining a full link trajectory may further include:
the logistics track obtaining module is used for obtaining the logistics track comprising the link nodes with the same node information according to the node information of the link nodes in the full link track, wherein the node information comprises at least one of a logistics carrier where the link nodes are located, a logistics single number and a logistics type, and the logistics type comprises at least one of a local, a cross-border trunk and a last kilometer;
and the track information display module is used for determining the track information of the logistics track according to the node information of each link node in the logistics track, and displaying the track information of each logistics track in the full link track on the corresponding logistics track when the full link track is displayed.
Optionally, the apparatus for determining a full link trajectory may further include:
the full-link track acquisition module is used for acquiring a full-link track of each article acquisition task;
the task state determining module is used for determining the task state of an article acquisition task corresponding to the full link track according to the last type of the last node in each link node in the full link track aiming at each full link track, wherein the task state comprises at least one of the collected, on-the-way, paid and rejected;
and the full link track display module is used for carrying out classified display on all full link tracks according to the task states.
In the full-link track determining device provided by the third embodiment of the present invention, the target single number determining module may determine the target single number where the track node is located according to the obtained track node corresponding to the monitored track determining event, where the essential meaning of the target single number is the logistics single number; each logistics single number related to the article acquisition task corresponding to the logistics link relationship can be stored in the pre-constructed logistics link relationship, so that the object link relationship in which the object single number is stored can be determined from each logistics link relationship through the article acquisition task determining module, and then the article acquisition task corresponding to the object link relationship is determined, wherein each logistics single number of the article acquisition task can be stored in the object link relationship, and the object single number is derived from each logistics single number; the determined full-link track exists before the track determining event is monitored in the object obtaining task, and the full-link track can be a track obtained according to the previously monitored track determining event, so that after the object obtaining task is determined, the full-link track of the object obtaining task can be obtained through the full-link track determining module, a newly obtained track node is connected to the full-link track, and the full-link track is updated according to a connection result, so that the full-link track of the object obtaining task at the current moment is obtained. According to the device, the previously determined full-link track of the article acquisition task and the newly acquired track node are associated through the target link relation, and the full-link track of the article acquisition task including all the track nodes which are already appeared is obtained, so that the problem that the full-link track is difficult to be completely determined due to scattered distribution of all sections of logistics tracks (namely all the track nodes) is solved, a user can directly inquire the full-link track in full-link track determination equipment, and does not need to respectively inquire in different logistics systems, and therefore user experience is improved. Particularly, in an application scenario of cross-border logistics, the device can uniformly manage logistics tracks of the same object acquisition task in different logistics systems, so that the effects of the same integration and centralized management of the logistics tracks of a local area, a cross-border main line and a last kilometer and the effective tracking of the whole logistics track are achieved.
The full link track determining device provided by the embodiment of the invention can execute the full link track determining method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method.
It should be noted that, in the embodiment of the full link trajectory determining apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 8 is a schematic structural diagram of a full link trajectory determining apparatus according to a fourth embodiment of the present invention, as shown in fig. 8, the apparatus includes a memory 410, a processor 420, an input device 430, and an output device 440. The number of processors 420 in the device may be one or more, and one processor 420 is taken as an example in fig. 8; the memory 410, processor 420, input device 430, and output device 440 of the apparatus may be connected by a bus or other means, such as by bus 450 in fig. 8.
The memory 410 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the full-link trajectory determination method in the embodiment of the present invention (for example, the target sheet number determination module 310, the item acquisition task determination module 320, and the full-link trajectory determination module 330 in the full-link trajectory determination device). The processor 420 executes software programs, instructions and modules stored in the memory 410 to perform various functional applications of the device and data processing, i.e., to implement the full link trajectory determination method described above.
The memory 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 410 may further include memory located remotely from processor 420, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the device. The output device 440 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for full link trajectory determination, the method comprising:
when a track determining event is monitored, obtaining a track node corresponding to the track determining event, and determining a target single number where the track node is located;
determining a target link relation in which a target single number is stored from all pre-constructed logistics link relations, and determining an article acquisition task corresponding to the target link relation, wherein all logistics single numbers of the article acquisition task are stored in the target link relation, and the target single number is derived from all logistics single numbers;
and acquiring a full link track determined before the track determination event of the object acquisition task is monitored, connecting track nodes into the full link track, and updating the full link track according to the connection result.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the full link trajectory determination method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. With this understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种物流智能分配与管理方法