Logistics information collection method, device, electronic device and computer readable medium
By acquiring logistics information sets, generating logistics identifications, clustering and storing them to a specific database, the problems of slow reading speed of logistics information and invalid information storage are solved, and efficient logistics information management and storage are achieved.
Patent Information
- Application Number
- CN202111192018.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2041-10-13
AI Technical Summary
In the prior art, all logistics information is stored in a preset server, which results in a reduced reading speed of logistics information when there is a lot of stored logistics information, and the stored logistics information is not checked, resulting in a large amount of invalid logistics information being stored and a waste of storage resources.
By responsive to the current time as the target time, a logistics information set is obtained from the target server, and the logistics identification is generated by performing correlation processing, the logistics information is clustered based on the logistics identification, and the clustered logistics information group is stored in a preset database group, and specifically to the corresponding database.
It improves the reading speed of logistics information, reduces the storage of invalid logistics information, and avoids the waste of storage resources.
Smart Images

Figure CN113986959B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and specifically to a logistics information collection method, device, electronic device, and computer-readable medium. Background Art
[0002] At present, in order to facilitate the acquisition of logistics test data (logistics information), various logistics information in the system are usually stored in a preset server to facilitate developers to acquire the logistics information.
[0003] However, storing all logistics information in a preset server often leads to the following problems:
[0004] First, all logistics information is stored in a preset server, which reduces the speed of reading logistics information when there is a lot of stored logistics information;
[0005] Second, the stored logistics information is not verified, resulting in the storage of a large amount of invalid logistics information, causing a waste of storage resources. Summary of the invention
[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0007] Some embodiments of the present disclosure propose logistics information collection methods, devices, electronic devices and computer-readable media to solve one or more of the technical problems mentioned in the above background technology section.
[0008] In a first aspect, some embodiments of the present disclosure provide a logistics information collection method, the method comprising: in response to the current time being the target time, obtaining a logistics information set from a target server, wherein the logistics information in the above logistics information set includes a logistics type and a logistics status; performing association processing on each logistics information in the above logistics information set including the logistics type and the logistics status to generate association information as a logistics identification of the above logistics information, and obtaining a logistics identification set; based on the above logistics identification set, performing clustering processing on the above logistics information set to obtain a logistics information group set; storing each logistics information group in the above logistics information group set in a database corresponding to the above logistics information group in a preset database group.
[0009] In a second aspect, some embodiments of the present disclosure provide a logistics information collection device, the device comprising: an acquisition unit, configured to acquire a logistics information set from a target server in response to the current time being a target time, wherein the logistics information in the above logistics information set includes a logistics type and a logistics status; an association unit, configured to perform association processing on each logistics information in the above logistics information set including the logistics type and the logistics status to generate association information as a logistics identification of the above logistics information, and obtain a logistics identification set; a clustering unit, configured to perform clustering processing on the above logistics information set based on the above logistics identification set, and obtain a logistics information group set; a storage unit, configured to store each logistics information group in the above logistics information group set in a database corresponding to the above logistics information group in a preset database group.
[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the logistics information collection method of some embodiments of the present disclosure, the reading speed of logistics information is improved. Specifically, the reason for reducing the reading speed of logistics information is that each logistics information is stored in a preset server, resulting in a reduction in the reading speed of logistics information when there is a lot of stored logistics information. Based on this, the logistics information collection method of some embodiments of the present disclosure, first, in response to the current time being the target time, obtains a logistics information set from the target server. Among them, the logistics information in the above logistics information set includes logistics type and logistics status. Thus, it is convenient to classify and store the logistics information in the logistics information set in the subsequent process. Then, each logistics information in the above logistics information set, including the logistics type and logistics status, is associated to generate associated information as the logistics identification of the above logistics information, and a logistics identification set is obtained. Thus, it is convenient to classify and store different types of logistics information in the subsequent process, and it is convenient to read logistics information with different identifications in the subsequent process. Then, based on the above logistics identification set, the above logistics information set is clustered to obtain a logistics information group set. Finally, each logistics information group in the above logistics information group set is stored in the database corresponding to the above logistics information group in the preset database group. Thus, different types of logistics information can be stored in different databases. Also, because each database only stores one type of logistics information, it is convenient for the execution subject to query the logistics information, thereby improving the reading speed of the logistics information. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0014] Figure 1 is a schematic diagram of an application scenario of the logistics information collection method according to some embodiments of the present disclosure;
[0015] Figure 2 is a flow chart of some embodiments of the logistics information collection method according to the present disclosure;
[0016] Figure 3 are flow charts of some further embodiments of the logistics information collection method according to the present disclosure;
[0017] Figure 4 It is a schematic diagram of the structure of some embodiments of the logistics information collection device according to the present disclosure;
[0018] Figure 5 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0025] Figure 1 It is a schematic diagram of an application scenario of the logistics information collection method according to some embodiments of the present disclosure.
[0026] exist Figure 1 In the application scenario, first, the computing device 101 can obtain the logistics information set 102 from the target server in response to the current time being the target time. The logistics information in the above logistics information set 102 includes the logistics type and the logistics status. Next, the computing device 101 can perform association processing on each logistics information in the above logistics information set 102, including the logistics type and the logistics status, to generate association information as the logistics identification of the above logistics information, and obtain the logistics identification set 103. Then, the computing device 101 can perform clustering processing on the above logistics information set 102 based on the above logistics identification set 103 to obtain the logistics information group set 104. Finally, the computing device 101 can store each logistics information group in the above logistics information group set 104 in the database corresponding to the above logistics information group in the preset database group.
[0027] It should be noted that the computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.
[0028] It should be understood that Figure 1 The number of computing devices in the embodiment is only illustrative. Any number of computing devices may be provided according to implementation requirements.
[0029] Continue to refer Figure 2 , shows a process 200 of some embodiments of the logistics information collection method according to the present disclosure. The method can be Figure 1 The logistics information collection method includes the following steps:
[0030] Step 201, in response to the current time being the target time, obtaining a logistics information set from a target server.
[0031] In some embodiments, in response to the current time being the target time, the execution subject of the logistics information collection method (for example, Figure 1 The computing device 101 shown) can obtain a logistics information set from a target server through a wired connection or a wireless connection. Here, the logistics information in the logistics information set may refer to the transportation information of a transport package. Among them, the logistics information in the above logistics information set includes a logistics type and a logistics status. Here, the logistics type may be a characterization of the mode of transportation. For example, the logistics type may be less-than-truckload transportation or full-truckload transportation. Here, the logistics status may characterize the current transportation status. For example, the logistics status may be an in-transit status (characterizing that it is in transit) or a completed status (characterizing that the transportation has been completed). Here, the target server may refer to a server that includes the transportation information of each transport package. Here, the target server may also be a local server. Here, the target time may be a preset time for collecting logistics information. Here, the logistics information in the logistics information set may also include, but is not limited to, at least one of the following: package identification, destination. For example, the target time may be 12 noon every day. In practice, the above execution subject may obtain a logistics information set from the target server in response to the current time being the target time.
[0032] Step 202, performing association processing on each piece of logistics information in the above logistics information set including the logistics type and logistics status to generate association information as the logistics identification of the above logistics information, and obtaining a logistics identification set.
[0033] In some embodiments, the above-mentioned execution entity may perform association processing on each piece of logistics information in the above-mentioned logistics information set, including the logistics type and logistics status, to generate association information as the logistics identification of the above-mentioned logistics information, and obtain a logistics identification set. Here, the association processing may be a splicing processing. For example, the logistics information may be "A package, less-than-truckload transport, in-transit status, No. 65, SS Street, ZZ District, VV City, XX Province". The above-mentioned execution entity may perform splicing processing on the "less-than-truckload transport" and "in-transit status" included in the logistics information to generate association information "less-than-truckload transport-in-transit status" as the logistics identification of the above-mentioned logistics information.
[0034] Step 203: Based on the logistics identification set, cluster the logistics information set to obtain a logistics information group set.
[0035] In some embodiments, the execution subject may cluster the logistics information set based on the logistics identification set to obtain a logistics information group set. In practice, the execution subject may cluster the logistics information with the same corresponding logistics identification in the logistics information set into one category to generate a logistics information group. Thus, a logistics information group set is obtained.
[0036] For example, the logistics information set may be: [A package, LTL transport, in transit, No. 65, SS Street, ZZ District, VV City, XX Province], [B package, LTL transport, in transit, No. 25, SS Street, ZZ District, VV City, XX Province], [C package, full truckload transport, completed, No. 1, SS Street, ZZ District, SS City, XX Province]. The logistics identifier corresponding to the logistics information [A package, LTL transport, in transit, No. 65, SS Street, ZZ District, VV City, XX Province] is "LTL transport-in transit". The logistics identifier corresponding to the logistics information [B package, LTL transport, in transit, No. 25, SS Street, ZZ District, VV City, XX Province] is "LTL transport-in transit". The logistics identifier corresponding to the logistics information [C package, full truckload transport, completed, No. 1, SS Street, ZZ District, SS City, XX Province] is "full truckload transport-completed". The logistics information [A package, LTL transport, in transit, No. 65, SS Street, ZZ District, VV City, XX Province] and the logistics information [B package, LTL transport, in transit, No. 25, SS Street, ZZ District, VV City, XX Province] have the same logistics identifier. Therefore, the logistics information [A package, LTL transport, in transit, No. 65, SS Street, ZZ District, VV City, XX Province] and the logistics information [B package, LTL transport, in transit, No. 25, SS Street, ZZ District, VV City, XX Province] can be grouped into one category. Thus, the logistics information set can be obtained:
[0037] {[Package A, LTL transport, in transit, No. 65, SS Street, ZZ District, VV City, XX Province], [Package B, LTL transport, in transit, No. 25, SS Street, ZZ District, VV City, XX Province]};
[0038] {[Package C, full truckload, completed status, No. 1, SS Street, ZZ District, SS City, XX Province]}.
[0039] Step 204, storing each logistics information group in the above logistics information group set into a database corresponding to the above logistics information group in a preset database group.
[0040] In some embodiments, the above-mentioned execution entity may store each logistics information group in the above-mentioned logistics information group set into a database corresponding to the above-mentioned logistics information group in a preset database group. Here, the database in the preset database group has a corresponding pre-set storage type. Here, the storage type of each database is the same as a logistics identifier. For example, the storage type of database A may be "full vehicle transportation-completed status". That is, the storage type of database A is the same as the logistics identifier "full vehicle transportation-completed status". In practice, the above-mentioned execution entity may store each logistics information group in the above-mentioned logistics information group set into a database corresponding to the above-mentioned logistics information group in a preset database group. Here, the storage type of the database corresponding to the above-mentioned logistics information group is the same as the logistics identifier corresponding to the above-mentioned logistics information group.
[0041] Optionally, in response to receiving a logistics information collection request submitted by a user terminal, collection request information corresponding to the above logistics information collection request is obtained.
[0042] In some embodiments, the above-mentioned execution entity may obtain collection request information corresponding to the above-mentioned logistics information collection request from the user terminal through a wired connection or a wireless connection in response to receiving a logistics information collection request submitted by the user terminal. Among them, the above-mentioned collection request information includes a logistics node identifier. Here, the logistics information collection request may be a request instruction to download logistics information. Here, the collection request information may refer to the logistics node identifier and time period of the logistics information to be downloaded. Here, the logistics node identifier may refer to the identifier (logistics identifier) of the logistics information to be downloaded.
[0043] Optionally, a database corresponding to the logistics node identifier included in the above-mentioned collection request information is selected from the above-mentioned database group as the target database.
[0044] In some embodiments, the execution subject may select a database corresponding to the logistics node identifier included in the acquisition request information from the database group as the target database. Here, the storage type corresponding to the target database is the same as the logistics node identifier included in the acquisition request information.
[0045] Optionally, each logistics information corresponding to the above-mentioned collection request information is read from the logistics information group stored in the above-mentioned target database as the target logistics information group.
[0046] In some embodiments, the execution subject may read the logistics information corresponding to the collection request information from the logistics information group stored in the target database as the target logistics information group by wired connection or wireless connection. Here, the logistics identifier corresponding to the target logistics information in the target logistics information group is the same as the logistics node identifier included in the collection request information.
[0047] Optionally, the target logistics information group is sent to the user terminal.
[0048] In some embodiments, the execution entity may send the target logistics information group to the user terminal.
[0049] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the logistics information collection method of some embodiments of the present disclosure, the reading speed of logistics information is improved. Specifically, the reason for reducing the reading speed of logistics information is that each logistics information is stored in a preset server, resulting in a reduction in the reading speed of logistics information when there is a lot of stored logistics information. Based on this, the logistics information collection method of some embodiments of the present disclosure, first, in response to the current time being the target time, obtains a logistics information set from the target server. Among them, the logistics information in the above logistics information set includes logistics type and logistics status. Thus, it is convenient to classify and store the logistics information in the logistics information set in the subsequent process. Then, each logistics information in the above logistics information set, including the logistics type and logistics status, is associated to generate associated information as the logistics identification of the above logistics information, and a logistics identification set is obtained. Thus, it is convenient to classify and store different types of logistics information in the subsequent process, and it is convenient to read logistics information with different identifications in the subsequent process. Then, based on the above logistics identification set, the above logistics information set is clustered to obtain a logistics information group set. Finally, each logistics information group in the above logistics information group set is stored in the database corresponding to the above logistics information group in the preset database group. Thus, different types of logistics information can be stored in different databases. Also, because each database only stores one type of logistics information, it is convenient for the execution subject to query the logistics information, thereby improving the execution subject's reading speed of the logistics information.
[0050] Further references Figure 3 , shows a process 300 of another embodiment of the logistics information collection method according to the present disclosure. The logistics information collection method includes the following steps:
[0051] Step 301, obtaining a set of transportation information within a preset time.
[0052] In some embodiments, the execution entity of the logistics information collection method (for example, Figure 1 The computing device 101 shown in the figure can obtain a set of transportation information within a preset time from a terminal device by means of a wired connection or a wireless connection. Here, the transportation information in the transportation information set may refer to the transportation information of an item package. Among them, the transportation information in the above-mentioned transportation information set includes a transportation identification. Here, the transportation identification may represent the carrier that specifically transports a certain item package. For example, the transportation identification may be "A package-001 carrier". Here, the terminal device may refer to a terminal initially used to monitor the transportation information of each item package. Here, the above-mentioned transportation information includes a transportation attribute name group and a transportation attribute value group. The transportation attribute name in the above-mentioned transportation attribute name group corresponds to the transportation attribute value in the above-mentioned transportation attribute value group. Here, the transportation attribute name group may include but is not limited to at least one of the following: package identification, destination. Here, the representation form of the transportation attribute value in the transportation attribute value group may include but is not limited to at least one of the following: numbers, characters, English, Chinese, etc. For example, the transportation attribute name may be "package identification". The transportation attribute value corresponding to the transportation attribute name "package identification" may be "AAC".
[0053] Step 302: receiving each carrier transportation information sent by each carrier service end as a carrier transportation information group, and obtaining a carrier transportation information group set.
[0054] In some embodiments, the execution subject may receive the carrier transportation information sent by each carrier service end in each carrier service end as a carrier transportation information group through a wired connection or a wireless connection to obtain a carrier transportation information group set. Here, the carrier service end may be a service terminal of a certain carrier. Here, the carrier transportation information in the carrier transportation information group may refer to the transportation information of the item package monitored in real time by the carrier service end. Among them, the carrier transportation information in the above-mentioned carrier transportation information group includes a carrier identification. Here, the carrier identification may represent the carrier that specifically transports a certain item package. Here, the above-mentioned target carrier transportation information includes a carrier attribute name group and a carrier attribute value group. The carrier attribute name in the above-mentioned carrier attribute name group corresponds to the carrier attribute value in the above-mentioned carrier attribute value group. Here, the carrier attribute name group may include but is not limited to at least one of the following: package identification, destination. Here, the representation form of the carrier attribute value in the carrier attribute value group may include but is not limited to at least one of the following: numbers, characters, English, Chinese, etc.
[0055] Step 303: for each piece of transport information in the transport information set, perform the following processing steps:
[0056] Step 3031, determining whether there is carrier transportation information in the above-mentioned carrier transportation information group set including a carrier identification corresponding to the transportation identification included in the above-mentioned transportation information.
[0057] In some embodiments, the execution entity may determine whether there is any carrier transportation information in the carrier transportation information group set whose carrier identification is the same as the transportation identification included in the transportation information.
[0058] Step 3032, in response to the determination of existence, determining the carrier transportation information corresponding to the transportation information in the carrier transportation information set as the target carrier transportation information.
[0059] In some embodiments, in response to determining existence, the execution entity may determine the carrier transportation information whose carrier identification included in the carrier transportation information set is the same as the transportation identification included in the transportation information as the target carrier transportation information.
[0060] Step 3033, generate logistics information based on the above transportation information and the above target carrier transportation information.
[0061] In some embodiments, based on the above transportation information and the above target carrier transportation information, the above execution entity may generate logistics information through the following steps:
[0062] The first step is to determine the first information similarity between the transportation information and the target carrier transportation information based on the transportation attribute name group and the carrier attribute name group.
[0063] In practice, the first step above includes the following sub-steps:
[0064] In the first sub-step, the transport attribute name included in the transport attribute name group that is the same as the carrier attribute name included in the carrier attribute name group is determined as the target transport attribute name to obtain the target transport attribute name group. That is, the transport attribute name included in the transport attribute name group that is the same as any carrier attribute name in the carrier attribute name group is determined as the target transport attribute name to obtain the target transport attribute name group.
[0065] The second sub-step is to determine the number of target transportation attribute names included in the target transportation attribute name group as a first number.
[0066] The third sub-step is to determine the sum of the number of transport attribute names included in the transport attribute name group and the number of carrier attribute names included in the carrier attribute name group as the second number.
[0067] The fourth sub-step is to determine the difference between the second quantity and the first quantity as the third quantity.
[0068] A fifth sub-step is to determine the ratio of the first quantity to the third quantity as the first information similarity between the transportation information and the target carrier transportation information.
[0069] In the second step, in response to the first information similarity satisfying the first preset condition, the second information similarity between the transportation information and the target carrier transportation information is determined according to the transportation attribute value group and the carrier attribute value group. Among them, the first preset condition is that the first information similarity is 1. In practice, in response to the first information similarity satisfying the first preset condition, first, the execution subject can determine the transportation attribute value that is the same as the carrier attribute value included in the carrier attribute value group among the various transportation attribute values included in the transportation attribute value group as the target transportation attribute value, and obtain the target transportation attribute value group. Secondly, the number of target transportation attribute values included in the target transportation attribute value group is determined as the fourth number. Then, the sum of the number of transportation attribute values included in the transportation attribute value group and the number of carrier attribute values included in the carrier attribute value group is determined as the fifth number. Then, the difference between the fifth number and the fourth number is determined as the sixth number. Finally, the ratio of the fourth number to the sixth number can be determined as the second information similarity between the transportation information and the target carrier transportation information.
[0070] In the third step, in response to the second information similarity satisfying a second preset condition, the transportation information is determined as logistics information. The second preset condition is that the second information similarity is 1.
[0071] Optionally, in response to the above-mentioned first information similarity not satisfying the above-mentioned first preset condition, and the number of transportation attribute names included in the above-mentioned transportation attribute name group is greater than the number of carrier attribute names included in the above-mentioned carrier attribute name group, the target carrier transportation information corresponding to the above-mentioned carrier attribute name group is determined as the first abnormal carrier transportation information.
[0072] In some embodiments, the above-mentioned execution entity may determine the target carrier transportation information corresponding to the above-mentioned carrier attribute name group as the first abnormal carrier transportation information in response to the above-mentioned first information similarity not satisfying the above-mentioned first preset condition and the number of transportation attribute names included in the above-mentioned transportation attribute name group is greater than the number of carrier attribute names included in the above-mentioned carrier attribute name group.
[0073] Optionally, the first abnormal carrier transportation information is sent to a corresponding carrier service end.
[0074] In some embodiments, the execution entity may send the first abnormal carrier transportation information to a carrier service end corresponding to the first abnormal carrier transportation information.
[0075] Optionally, in response to receiving first carrier feedback information indicating an abnormal state sent by the carrier service end, the transportation information is deleted.
[0076] In some embodiments, the execution subject may delete the transportation information in response to receiving the first carrier feedback information indicating an abnormal state sent by the carrier service end. The first carrier feedback information is used to indicate the abnormal state or normal state of the carrier attribute name group included in the first abnormal carrier transportation information. Here, the first carrier feedback information may be feedback information sent by the carrier service end for the first abnormal carrier transportation information, which may indicate whether the carrier attribute name group included in the first abnormal carrier transportation information is abnormal.
[0077] Optionally, in response to the fact that the second information similarity does not satisfy the second preset condition, and the number of transport attribute values included in the transport attribute value group is greater than the number of carrier attribute values included in the carrier attribute value group, the target carrier transportation information corresponding to the carrier attribute value group is determined as the second abnormal carrier transportation information.
[0078] In some embodiments, the above-mentioned execution entity may determine the target carrier transportation information corresponding to the above-mentioned carrier attribute value group as the second abnormal carrier transportation information in response to the above-mentioned second information similarity not satisfying the above-mentioned second preset condition and the number of transportation attribute values included in the above-mentioned transportation attribute value group is greater than the number of carrier attribute values included in the above-mentioned carrier attribute value group.
[0079] Optionally, the second abnormal carrier transportation information is sent to a corresponding carrier service end.
[0080] In some embodiments, the execution entity may send the second abnormal carrier transportation information to a carrier service terminal corresponding to the second abnormal carrier transportation information.
[0081] Optionally, in response to receiving second carrier feedback information indicating an abnormal state sent by the carrier service end, the transportation information is deleted.
[0082] In some embodiments, the execution subject may delete the transportation information in response to receiving the second carrier feedback information indicating the abnormal state sent by the carrier service end. The second carrier feedback information is used to indicate the abnormal state or normal state of the carrier attribute value group included in the second abnormal carrier transportation information. Here, the second carrier feedback information may be feedback information sent by the carrier service end for the second abnormal carrier transportation information, which may indicate whether the carrier attribute name group included in the second abnormal carrier transportation information is abnormal.
[0083] The relevant content in step 303 is an inventive point of the present disclosure, thereby solving the second technical problem mentioned in the background technology, "Failure to verify each stored logistics information results in the storage of a large amount of invalid logistics information, resulting in a waste of storage resources". The factors that cause the waste of storage resources are often as follows: Failure to verify each stored logistics information results in the storage of a large amount of invalid logistics information, resulting in a waste of storage resources. If the above factors are solved, the effect of reducing the waste of storage resources can be achieved. In order to achieve this effect, the present disclosure first determines whether there is a carrier transportation information group set including a carrier identification and a carrier transportation information corresponding to the transportation identification included in the above transportation information. Thus, it can be preliminarily determined whether the transportation information is valid transportation information through the transportation identification. Then, in response to the determination of existence, the carrier transportation information corresponding to the above transportation information in the above carrier transportation information group set is determined as the target carrier transportation information. Thus, the transportation information can be preliminarily determined as valid transportation information (target carrier transportation information). Then, based on the transportation attribute name group and the carrier attribute name group, the first information similarity between the above transportation information and the above target carrier transportation information is determined. Thus, it can be preliminarily determined whether the transport attribute name in the transport information is abnormal. Finally, in response to the first information similarity satisfying the first preset condition, the second information similarity between the transport information and the target carrier transport information is determined based on the transport attribute value group and the carrier attribute value group. Thus, it can be determined whether the transport attribute value in the transport information is abnormal. Thus, when an abnormal transport attribute name or transport attribute value is detected in the transport information, the transport information can be deleted (for example, in response to receiving the first carrier feedback information representing the abnormal state sent by the carrier service end, the transport information can be deleted). Furthermore, the storage of invalid logistics information is reduced, and the waste of storage resources is reduced.
[0084] Step 304, storing the generated logistics information in the above-mentioned target server.
[0085] In some embodiments, the above-mentioned execution entity can store the generated logistics information in the above-mentioned target server.
[0086] Step 305, in response to the current time being the target time, obtaining a logistics information set from the target server.
[0087] Step 306, performing association processing on each piece of logistics information in the above logistics information set including the logistics type and logistics status to generate association information as the logistics identification of the above logistics information, and obtaining a logistics identification set.
[0088] Step 307: Based on the logistics identification set, cluster the logistics information set to obtain a logistics information group set.
[0089] Step 308: Store each logistics information group in the logistics information group set into a database corresponding to the logistics information group in a preset database group.
[0090] In some embodiments, the specific implementation of steps 305-308 and the technical effects brought about can be referred to Figure 2 The corresponding steps 201-204 in the embodiments are not described in detail here.
[0091] from Figure 3 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 3 In some corresponding embodiments, the process 300 of the logistics information collection method can delete the transportation information when an abnormal transportation attribute name or transportation attribute value is detected in the transportation information (for example, in response to receiving the first carrier feedback information representing the abnormal state sent by the above-mentioned carrier service end, the above-mentioned transportation information is deleted). In turn, the storage of invalid logistics information is reduced, and the waste of storage resources is reduced.
[0092] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a logistics information collection device. These device embodiments are similar to Figure 2 Corresponding to the above method embodiments, the device can be specifically applied to various electronic devices.
[0093] like Figure 4 As shown, the logistics information collection device 400 of some embodiments includes: an acquisition unit 401, an association unit 402, a clustering unit 403 and a storage unit 404. The acquisition unit 401 is configured to acquire a logistics information set from a target server in response to the current time being the target time, wherein the logistics information in the logistics information set includes a logistics type and a logistics status; the association unit 402 is configured to perform association processing on each logistics information in the logistics information set including the logistics type and the logistics status to generate association information as a logistics identification of the logistics information, and obtain a logistics identification set; the clustering unit 403 is configured to perform clustering processing on the logistics information set based on the logistics identification set, and obtain a logistics information group set; the storage unit 404 is configured to store each logistics information group in the logistics information group set into a database corresponding to the logistics information group in a preset database group.
[0094] It is understood that the units described in the device 400 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 400 and the units included therein, and will not be described in detail here.
[0095] Reference below Figure 5 , which shows an electronic device (eg, Figure 1 Schematic diagram of the structure of the computing device 101)500. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0096] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0097] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0098] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0099] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0100] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0101] The computer-readable medium may be included in the device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to the current time being the target time, obtains a logistics information set from the target server, wherein the logistics information in the logistics information set includes logistics type and logistics status; associates each logistics information in the logistics information set including logistics type and logistics status to generate association information as the logistics identification of the logistics information, and obtains a logistics identification set; clusters the logistics information set based on the logistics identification set to obtain a logistics information group set; and stores each logistics information group in the logistics information group set in a database corresponding to the logistics information group in a preset database group.
[0102] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0103] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0104] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be set in a processor, for example, may be described as: a processor includes an acquisition unit, an association unit, a clustering unit and a storage unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the acquisition unit may also be described as "in response to the current time being the target time, obtaining a logistics information set from the target server, wherein the logistics information in the above logistics information set includes units of logistics type and logistics status".
[0105] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0106] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A logistics information collection method, comprising: Acquire a transportation information set within a preset time, wherein the transportation information in the transportation information set includes a transportation identification; Receiving each carrier transportation information sent by each carrier service end as a carrier transportation information group, and obtaining a carrier transportation information group set, wherein the carrier transportation information in the carrier transportation information group includes a carrier identification; For each transport information in the transport information set, the following processing steps are performed: Determine whether there is carrier transportation information in the carrier transportation information group set including a carrier identification corresponding to the transportation identification included in the transportation information; In response to determining that it exists, determining the carrier transportation information corresponding to the transportation information in the carrier transportation information set as the target carrier transportation information; Generate logistics information based on the transportation information and the target carrier transportation information; Storing the generated logistics information in the target server; In response to the current time being the target time, obtaining a logistics information set from the target server, wherein the logistics information in the logistics information set includes a logistics type and a logistics status; Performing association processing on each piece of logistics information in the logistics information set, including the logistics type and the logistics status, to generate association information as the logistics identification of the logistics information, and obtaining a logistics identification set; Based on the logistics identification set, clustering the logistics information set to obtain a logistics information group set; Storing each logistics information group in the logistics information group set into a database corresponding to the logistics information group in a preset database group; In response to receiving a logistics information collection request submitted by a user terminal, obtaining collection request information corresponding to the logistics information collection request, wherein the collection request information includes a logistics node identifier; Selecting a database corresponding to the logistics node identifier included in the collection request information from the database group as a target database; Reading each piece of logistics information corresponding to the collection request information from the logistics information group stored in the target database as a target logistics information group; The target logistics information group is sent to the user terminal.
2. The method according to claim 1, wherein: The transport information includes a transport attribute name group and a transport attribute value group, the target carrier transport information includes a carrier attribute name group and a carrier attribute value group, the transport attribute names in the transport attribute name group correspond to the transport attribute values in the transport attribute value group, and the carrier attribute names in the carrier attribute name group correspond to the carrier attribute values in the carrier attribute value group; as well as The generating of logistics information based on the transportation information and the target carrier transportation information includes: Determining a first information similarity between the transportation information and the target carrier transportation information according to the transportation attribute name group and the carrier attribute name group; In response to the first information similarity satisfying a first preset condition, determining a second information similarity between the transportation information and the target carrier transportation information according to the transportation attribute value group and the carrier attribute value group, wherein the first preset condition is that the first information similarity is 1; In response to the second information similarity satisfying a second preset condition, the transportation information is determined to be logistics information, wherein the second preset condition is: the second information similarity is 1.
3. The method according to claim 2, wherein: The determining, based on the transport attribute name group and the carrier attribute name group, a first information similarity between the transport information and the target carrier transport information includes: Determine, among the transport attribute names included in the transport attribute name group, the transport attribute names that are the same as the carrier attribute names included in the carrier attribute name group as target transport attribute names, to obtain a target transport attribute name group; determining the number of target transport attribute names included in the target transport attribute name group as a first number; determining the sum of the number of transport attribute names included in the transport attribute name group and the number of carrier attribute names included in the carrier attribute name group as a second number; determining a difference between the second amount and the first amount as a third amount; A ratio of the first quantity to the third quantity is determined as a first information similarity between the transportation information and the target carrier transportation information.
4. The method according to claim 2, wherein: The method further comprises: In response to the first information similarity not satisfying the first preset condition, and the number of transport attribute names included in the transport attribute name group is greater than the number of carrier attribute names included in the carrier attribute name group, determining the target carrier transportation information corresponding to the carrier attribute name group as the first abnormal carrier transportation information; Sending the first abnormal transport information to the corresponding transport service end; In response to receiving first carrier feedback information indicating an abnormal state sent by the carrier service end, the transportation information is deleted, wherein the first carrier feedback information is used to indicate the abnormal state or normal state of the carrier attribute name group included in the first abnormal carrier transportation information.
5. The method according to claim 2, wherein: The method further comprises: In response to the second information similarity not satisfying the second preset condition, and the number of the transport attribute values included in the transport attribute value group is greater than the number of the carrier attribute values included in the carrier attribute value group, determining the target carrier transport information corresponding to the carrier attribute value group as the second abnormal carrier transport information; Sending the second abnormal carrier transportation information to the corresponding carrier service end; In response to receiving second carrier feedback information representing an abnormal state sent by the carrier service end, deleting the transportation information, wherein the second carrier feedback information is used to represent the abnormal state or normal state of the carrier attribute value group included in the second abnormal carrier transportation information.
6. A logistics information collection device, applied to the method according to claim 1, comprising: an acquisition unit, configured to acquire a logistics information set from a target server in response to the current time being the target time, wherein the logistics information in the logistics information set includes a logistics type and a logistics status; an associating unit configured to perform associative processing on each piece of logistics information in the logistics information set, including a logistics type and a logistics status, to generate associative information as a logistics identifier of the logistics information, and obtain a logistics identifier set; A clustering unit is configured to perform clustering processing on the logistics information set based on the logistics identification set to obtain a logistics information group set; The storage unit is configured to store each logistics information group in the logistics information group set into a database corresponding to the logistics information group in a preset database group.
7. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Logistics informatization method based on big data
CN106228263A
Method and apparatus for generating information
US20190147063A1