Waybill status mapping method, device, equipment and storage medium
By constructing a dictionary tree of identification codes and extended codes, the waybill status is directly identified locally, solving the problem of complex waybill status judgment and reliance on multiple microservices, and realizing fast and reliable waybill status query.
Patent Information
- Application Number
- CN201910294278.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-04-12
AI Technical Summary
In the express delivery industry, the judgment of waybill status is complicated and relies on multiple microservices, which can easily lead to incorrect display or missing information, slow query speed, and poor stability.
By constructing a dictionary mapping relationship between the identification code and its extended code and the waybill status, a dictionary tree is constructed to directly identify the waybill status locally, reducing dependence on external servers and simplifying the judgment process.
It greatly simplifies the judgment process of waybill status, improves query speed and stability, reduces mis-displays and missing cases, and improves the reliability of waybill status query.
Smart Images

Figure CN111813771B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of logistics tracking technology, and in particular to a waybill status mapping method, device, equipment and storage medium. Background Art
[0002] Barcode scanners are terminal devices commonly used in the express delivery industry. The logistics tracking of express delivery waybills, such as collection, warehousing, delivery, and receipt, cannot be separated from barcode scanner scanning records. Therefore, for express delivery companies, the wider the business, the more barcode scanner categories there are, and the more corresponding identification codes there are. Usually, the status of a package can be realized through a one-to-one mapping of barcode scanner operation code to status.
[0003] However, due to the division of business, the mapping status between the identification code and the package is broken. Since the status classification of the identification code record is very detailed, but there are only a limited number of states when the waybill is displayed to the outside, and the state of the waybill is not only related to the identification code but may also be related to other states such as the package status, the judgment of the state of the waybill becomes complicated. Sometimes it is necessary to call several microservices to realize the judgment. Once the associated system fails to call, the waybill status will be incorrectly displayed or even missing. Summary of the invention
[0004] In order to solve the above technical problems, the object of the present invention is to provide a waybill status mapping method, device, equipment and storage medium.
[0005] According to one aspect of the present invention, a waybill status mapping method is provided, comprising:
[0006] Construct a dictionary mapping relationship between the identification code and its extended code and the waybill status;
[0007] Constructing a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship;
[0008] Obtain an identification code, use the identification code to search the dictionary tree, and perform corresponding preset operations according to the search results to obtain the waybill status corresponding to the identification code.
[0009] Further, constructing a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship includes:
[0010] Constructing an initial dictionary tree according to the mapping relationship between the identification code and the waybill status, so that each child node of the initial dictionary tree is mapped to one identification code;
[0011] Match the extended code corresponding to the bar gun code, and construct an extended dictionary tree with the child node corresponding to the last extended code as the initial node.
[0012] Furthermore, performing corresponding preset operations according to the search results includes:
[0013] Identify whether there is an extended code corresponding to the identification code in the dictionary tree;
[0014] If yes, continue searching the dictionary tree based on the extended code of the identification code, map out the waybill status corresponding to the extended code and output it;
[0015] Otherwise, the waybill status corresponding to the identification code is mapped and output.
[0016] Furthermore, a dictionary mapping relationship between the identification code and its extended code and the waybill status is constructed in the form of Key-Value pairs;
[0017] and / or
[0018] The extended code is a data segment Segment, and the data segment Segment is set to a segment.txt format file
[0019] According to another aspect of the present invention, a waybill status mapping device is provided, characterized in that it includes:
[0020] A mapping relationship building module configured to build a dictionary mapping relationship between the identification code and its extended code and the waybill status;
[0021] A dictionary tree construction module, configured to construct a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship;
[0022] The status identification module is configured to obtain an identification code, use the identification code to search the dictionary tree, and perform corresponding preset operations according to the search results to obtain the waybill status corresponding to the identification code.
[0023] Furthermore, the mapping relationship building module includes:
[0024] An initial dictionary tree construction unit is configured to construct an initial dictionary tree according to the mapping relationship between the identification code and the waybill status, so that each child node of the initial dictionary tree is mapped to one identification code;
[0025] The extended dictionary tree construction unit is configured to match the extended code corresponding to the Bargun code, and construct an extended dictionary tree with the child node corresponding to the last extended code as the initial node.
[0026] Furthermore, corresponding preset operations are performed according to the search results, including:
[0027] Identify whether there is an extended code corresponding to the identification code in the dictionary tree;
[0028] If yes, continue searching the dictionary tree based on the extended code of the identification code, map out the waybill status corresponding to the extended code and output it;
[0029] Otherwise, the waybill status corresponding to the identification code is mapped and output.
[0030] Furthermore, a dictionary mapping relationship between the identification code and its extended code and the waybill status is constructed in the form of Key-Value pairs;
[0031] and / or
[0032] The extended code is a data segment Segment, and the data segment Segment is set to a segment.txt format file.
[0033] one or more processors;
[0034] a memory for storing one or more programs,
[0035] When the one or more programs are executed by the one or more processors, the one or more processors are caused to perform any of the methods described above.
[0036] According to another aspect of the present invention, a computer-readable storage medium storing a computer program is provided, and when the program is executed by a processor, any of the above methods is implemented.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] 1. A waybill status mapping method exemplified in the present invention can directly identify the waybill status locally through an identification code, does not rely on an external server to query the waybill status, and the query speed is faster than calling an external server database to query, which greatly simplifies the waybill status judgment process and increases the stability and reliability of the waybill status query.
[0039] 2. A waybill status mapping device according to an example of the present invention constructs a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship. It only needs to obtain the identification code through an external system, and then directly identify the waybill status locally through the identification code and the extended code, and execute the corresponding preset operation according to the search result to obtain the waybill status corresponding to the identification code. It does not rely on calling an external server to query the waybill status, simplifies the waybill status judgment process, and increases the stability and reliability of the waybill status query.
[0040] 3. The device exemplified in the present invention can greatly simplify the judgment process of the waybill status and increase the stability and reliability of the waybill status query by executing the waybill status mapping method through the processor.
[0041] 4. The readable storage medium exemplified in the present invention stores the waybill status mapping method implemented when executed by a processor, which facilitates the use and promotion of the waybill status mapping device. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 The figure is a flow chart of the waybill status mapping method of the present invention.
[0043] Figure 2 The diagram is a structural diagram of a dictionary tree according to an embodiment of the present invention.
[0044] Figure 3 The figure is a schematic flow chart of a method according to an embodiment of the present invention.
[0045] Figure 4 It is a schematic diagram of the structure of the computer system of the present invention. DETAILED DESCRIPTION
[0046] In order to better understand the technical solution of the present invention, the present invention is further described below in conjunction with specific embodiments and the accompanying drawings of the specification.
[0047] Embodiment 1:
[0048] A waybill status mapping device of this embodiment includes:
[0049] The mapping relationship construction module is configured to construct a dictionary mapping relationship between the identification code and its extended code and the waybill status. As an optional solution, a mapping file can be further obtained according to the mapping relationship. In this embodiment, the identification code uses the barcode, and the extended code is the data segment Segment. The data segment Segment is set to a segment.txt format file. The construction method can adopt the Key-Value key value pair (KV pair) method, which is as follows:
[0050] First, construct a mapping file from the bargun code to the waybill status. The key in the KV pair selects the complete bargun code, and the value selects the waybill status corresponding to the bargun code. If the bargun code cannot be directly mapped to the waybill status, set the corresponding value of the waybill status in the bargun code mapping file to segment1.txt, and further judge according to the field segment.
[0051] The dictionary tree construction module is configured to construct a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship, specifically including: an initial dictionary tree construction unit, configured to construct an initial dictionary tree according to the mapping relationship between the identification code and the waybill status, so that each child node of the initial dictionary tree maps an identification code, and the identification code generally ranges from 2 to 10 digits. When the identification code is saved to the last digit, the value in the mapping file is saved in the node, and then the node will no longer have a child node; an extended dictionary tree construction unit, configured to match the extended code corresponding to the bar gun code, such as packageStatus.txt, and then construct an extended dictionary tree with the child node corresponding to the last extended code as the initial node, and so on when the same situation occurs in the future.
[0052] The status identification module is configured to obtain the identification code, use the identification code to search the dictionary tree, and perform the corresponding preset operation according to the search results to obtain the waybill status corresponding to the identification code, wherein the corresponding preset operation is performed according to the search results, including: identifying whether there is an extended code corresponding to the identification code in the dictionary tree; if so, continue to search the dictionary tree based on the extended code of the identification code, map the waybill status corresponding to the extended code and output it; otherwise, map the waybill status corresponding to the identification code and output it; as an optional solution, the bar gun can also be associated with several external order query micro servers at the same time. When the waybill status call fails, such as the wrong display or even missing of the waybill status, the present application is used as an alternative solution when the query fails. The external server can still map the waybill status under abnormal conditions, thereby increasing the stability and reliability of the waybill status query. This embodiment mainly realizes that the waybill status of the package is obtained through the dictionary mapping relationship between the bar gun code and its extended code and the waybill status without relying on the external server. Even if the bar gun is not associated with the server for the waybill status query, after obtaining the bar gun code, the bar gun code and the extended code can be used to obtain the corresponding waybill status through the dictionary tree to realize logistics tracking.
[0053] The mapping method corresponding to the above-mentioned waybill status mapping device includes the following steps:
[0054] S1. Construct a dictionary mapping relationship between the identification code and its extended code and the waybill status. In this embodiment, the identification code uses the barcode, and the extended code is the data segment Segment. The data segment Segment is set to a segment.txt format file. The construction method can adopt the KV pair method, which is as follows:
[0055] S1-1. Construct a mapping file from the barcode to the waybill status. The key in the KV pair selects the complete barcode, and the value selects the waybill status corresponding to the barcode;
[0056] S1-2. If the barcode cannot be directly mapped to the waybill status, set the corresponding value of the waybill status in the barcode mapping file to segment1.txt, and further judge according to the data segment segment.
[0057] S2, constructing a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship, specifically including:
[0058] S2-1. Construct an initial dictionary tree according to the mapping relationship between the identification code and the waybill status, so that each child node of the initial dictionary tree maps an identification code; the data structure of the initial dictionary tree is shown in Figure (1). The initial node in the dictionary tree does not store data, and each node in its child node stores a bar gun code. If the nodes are stored bit by bit from the root node of the tree, when the bar gun code is saved to the last node, the value in the mapping file is saved in the node, and then the node will no longer have child nodes.
[0059] S2-2. Match the extension code corresponding to the bar gun code, and construct an extended dictionary tree with the child node corresponding to the last extension code as the initial node; in actual application, if the value corresponding to the bar gun code in the mapping configuration file is the mapping file name of a data segment, such as packageStatus.txt, then read the configuration file corresponding to the field name and reconstruct the dictionary tree. The reconstructed dictionary tree will be repeated in the same way in the future.
[0060] S3. Obtain the identification code. When obtaining the identification code, it is necessary to call an external system (external server), use the identification code to search the dictionary tree, directly identify the waybill status locally through the dictionary tree without calling the external server, and perform corresponding preset operations according to the search results to obtain the waybill status corresponding to the identification code, wherein the corresponding preset operations are performed according to the search results, including: identifying whether there is an extended code corresponding to the identification code in the dictionary tree; if so, continue to search the dictionary tree based on the extended code of the identification code, map out the waybill status corresponding to the extended code and output it; otherwise, map out the waybill status corresponding to the identification code and output it. The specific search process is as follows: in the initial state, the Bargun code is used by default to search the dictionary tree. When the method is called and the parameter object is passed in, the Bargun code is first taken out to match the dictionary tree bit by bit. If the corresponding value is matched and it is judged that it is not in the segment.txt format, the result is regarded as the corresponding waybill status and returned; if it is judged that the value is in the segment.txt format, the segment name is used to map the value corresponding to the field from the dictionary tree. As an optional solution, when the segment name is used to map the value corresponding to the field from the dictionary tree, when searching the dictionary tree constructed by segment.txt, the initial dictionary tree constructed by the Bargun code is skipped, and the value of the data segment segment is directly mapped from the extended dictionary tree. The matching method is the same as that of the Bargun code until the final waybill status is obtained and returned. When mapping the waybill status through the dictionary tree, there is no need to call an external server, which greatly simplifies the waybill status judgment process, does not rely on external servers, and the query speed is faster than calling the external server database query, eliminating the database required for status query, and increasing the stability and reliability of waybill status query.
[0061] It should be understood that each step in the above-mentioned waybill status mapping method corresponds to each sub-unit recorded in the waybill status mapping device. Therefore, the operations and features described above for the device and the units contained therein are also applicable to the above-mentioned method, which will not be repeated here. The following example further illustrates the waybill status mapping method.
[0062] 1) First, a dictionary mapping relationship between the identification code (barcode in this embodiment) and its extended code and the waybill status is constructed by using a KV pair method, wherein barCode.txt is a one-to-one mapping file from barcode to waybill status, and packStatus.txt is a mapping file from extended code to waybill status. The contents stored in barCode.txt and packStatus.txt are as follows:
[0063] barCode.txt
[0064] Bar gun code Waybill Status 1 54 Door-to-door collection 2 43 Picked up 3 44 Delivery 4 30 Loading 5 877 Transit 6 880 Door-to-door delivery 7 126 Cancel delivery 8 128 Signed for 9 8000 packStatus.txt 10 8627 Forwarding to a third party
[0065] packStatus.txt
[0066] Extension Encoding Waybill Status 1 80 Customs clearance in progress 2 90 The package appears to be damaged 3 100 Package has been claimed 4 110 Package voided 5 120 Package delivery delay
[0067] 2) Then, a dictionary tree is constructed based on the identification code and its extended code according to the dictionary mapping relationship. When the initial dictionary tree is constructed using barCode.txt, Figure 2 For the upper part of the dotted line, for all barcodes except 8000, we can use the barcode to search the dictionary tree to obtain the corresponding waybill status. For barcode 8000, we continue to build the extended dictionary tree corresponding to packStatus.txt under the node where the last "0" of the initial dictionary tree 8000 is located, and get the lower part of the dotted line;
[0068] When in use, first call the external server through the bargun to obtain the bargun code, and map the waybill status through the dictionary tree according to the bargun code. If the obtained bargun code is 8000, we search the dictionary tree in the order of 8, 0, 0, 0 to obtain the content packStatus.txt. When we recognize that the node content ends with .txt and is not a waybill status, we then read the packStatus.txt file to obtain the extended code, and use the extended code to search the extended dictionary tree to obtain the waybill status. For example, if the extended code value is "110", use the extended code (110) to search the extended dictionary tree to obtain the status corresponding to the waybill status 8000 at this time as "package has been invalidated".
[0069] The search of the dictionary tree in this embodiment only needs to pass in the bar gun code, and the waybill status can be directly identified locally through the identification code. There is no need to call an external server, which saves the database, greatly simplifies the judgment process of the waybill status, does not rely on external servers, and the query speed is faster than calling the external server database. The external server can still map the waybill status under abnormal circumstances, which increases the stability and reliability of the waybill status query. In addition, when the bar gun code does not have a corresponding package status in the dictionary tree and another .txt file needs to be read, if the leaf node corresponding to the bar gun code is read and it is determined that the extended dictionary tree is not constructed, a dictionary mapping relationship between the extended code and the waybill status can be constructed. The extended dictionary tree is constructed in the same way as the dictionary tree is constructed, and then the dictionary mapping relationship between the extended code and the waybill status is assigned to the node where the .txt file name is saved to realize the splicing of the dictionary tree. No database is required, and the configuration can be modified outside the package.
[0070] The device of this embodiment includes:
[0071] one or more processors;
[0072] a memory for storing one or more programs,
[0073] When the one or more programs are executed by the one or more processors, the one or more processors execute any of the methods described above, which can greatly simplify the process of determining the waybill status and increase the stability and reliability of the waybill status query.
[0074] A computer-readable storage medium storing a computer program in this embodiment is characterized in that when the program is executed by a processor, the method as described in any one of the above items is implemented, and the waybill status mapping method implemented when executed by the processor is stored, so as to facilitate the use and promotion of the waybill status mapping device.
[0075] Further introduction as follows:
[0076] The computer system includes a central processing unit (CPU) 101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage portion into a random access memory (RAM) 103. In the RAM 103, various programs and data required for system operation are also stored. The CPU 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0077] The following components are connected to the I / O interface 105: an input section 106 including a keyboard, a mouse, etc.; an output section including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 108 including a hard disk, etc.; and a communication section 109 including a network interface card such as a LAN card, a modem, etc. The communication section 109 performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface 105 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 108 as needed.
[0078] In particular, according to an embodiment of the present invention, the above reference process Figure 4 The described process can be implemented as a computer software program. For example, embodiment 1 of the present invention includes 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 such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU) 101, the above-mentioned functions defined in the system of the present application are executed.
[0079] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above 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 the present invention, a 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 the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. 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. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, 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 appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0080] The flow chart and block diagram in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments 1 of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flow chart, and the combination of boxes in the block diagram 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.
[0081] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves. The described units or modules may also be arranged in a processor, for example, they may be described as: a processor includes a mapping relationship construction module, a dictionary tree construction module, and a state identification module. The names of these modules do not, in some cases, constitute limitations on the modules themselves, for example, the mapping relationship construction module may also be described as a "mapping relationship construction module for constructing a dictionary mapping relationship between an identification code and its extended code and the waybill status."
[0082] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the waybill status mapping method described in the above embodiment.
[0083] For example, the electronic device may implement Figure 1 As shown in: Step S1: construct a dictionary mapping relationship between the identification code and its extended code and the waybill status; Step S2: construct a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship; Step S3: obtain the identification code, use the identification code to search the dictionary tree, and perform corresponding preset operations according to the search results to obtain the waybill status corresponding to the identification code.
[0084] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0085] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0086] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features have similar functions to those disclosed in the present application (but not limited to).
Claims
1. A waybill status mapping method, characterized in that: include: Construct a dictionary mapping relationship between the identification code and its extended code and the waybill status; Constructing a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship; Obtain an identification code, use the identification code to search the dictionary tree, and perform corresponding preset operations according to the search results to obtain the waybill status corresponding to the identification code; The step of constructing a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship includes: Constructing an initial dictionary tree according to the mapping relationship between the identification code and the waybill status, so that each child node of the initial dictionary tree is mapped to one identification code; Match the extended code corresponding to the Bargun code, and construct an extended dictionary tree with the child node corresponding to the last extended code as the initial node.
2. The waybill status mapping method according to claim 1, characterized in that: Performing corresponding preset actions based on search results includes: Identify whether there is an extended code corresponding to the identification code in the dictionary tree; If yes, continue searching the dictionary tree based on the extended code of the identification code, map out the waybill status corresponding to the extended code and output it; Otherwise, the waybill status corresponding to the identification code is mapped and output.
3. The waybill status mapping method according to any one of claims 1-2, characterized in that: The dictionary mapping relationship between the identification code and its extended code and the waybill status is constructed in the form of Key-Value pairs; and / or The extended code is a data segment Segment, and the data segment Segment is set to a segment.txt format file.
4. A waybill status mapping device, characterized in that: include: A mapping relationship building module configured to build a dictionary mapping relationship between the identification code and its extended code and the waybill status; A dictionary tree construction module, configured to construct a dictionary tree based on the identification code and its extended code according to the dictionary mapping relationship; A status identification module is configured to obtain an identification code, use the identification code to search the dictionary tree, and perform a corresponding preset operation according to the search result to obtain the waybill status corresponding to the identification code; The mapping relationship building module includes: An initial dictionary tree construction unit is configured to construct an initial dictionary tree according to the mapping relationship between the identification code and the waybill status, so that each child node of the initial dictionary tree is mapped to one identification code; The extended dictionary tree construction unit is configured to match the extended code corresponding to the Bargun code, and construct the extended dictionary tree with the child node corresponding to the last extended code as the initial node.
5. The waybill status mapping device according to claim 4, characterized in that: Perform preset actions based on search results, including: Identify whether there is an extended code corresponding to the identification code in the dictionary tree; If yes, continue searching the dictionary tree based on the extended code of the identification code, map out the waybill status corresponding to the extended code and output it; Otherwise, the waybill status corresponding to the identification code is mapped and output.
6. The waybill status mapping device according to any one of claims 4 to 5, characterized in that: The dictionary mapping relationship between the identification code and its extended code and the waybill status is constructed in the form of Key-Value pairs; and / or The extended code is a data segment Segment, and the data segment Segment is set to a segment.txt format file.
7. A device, characterized in that: The device comprises: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are caused to perform the method according to any one of claims 1 to 3.
8. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
