CN111813771A - Waybill state mapping method, device, equipment and storage medium - Google Patents

Waybill state mapping method, device, equipment and storage medium Download PDF

Info

Publication number
CN111813771A
CN111813771A CN201910294278.7A CN201910294278A CN111813771A CN 111813771 A CN111813771 A CN 111813771A CN 201910294278 A CN201910294278 A CN 201910294278A CN 111813771 A CN111813771 A CN 111813771A
Authority
CN
China
Prior art keywords
codes
waybill state
mapping
waybill
dictionary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910294278.7A
Other languages
Chinese (zh)
Inventor
吴璟
陈娟
吴芳敏
杨爽
戴婧
裴雄健
刘燕
张新辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen SF Taisen Holding Group Co Ltd
Original Assignee
Shenzhen SF Taisen Holding Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen SF Taisen Holding Group Co Ltd filed Critical Shenzhen SF Taisen Holding Group Co Ltd
Priority to CN201910294278.7A priority Critical patent/CN111813771A/en
Publication of CN111813771A publication Critical patent/CN111813771A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Resources & Organizations (AREA)
  • Software Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a waybill state mapping method, a waybill state mapping device, waybill state mapping equipment and a storage medium, wherein the waybill state mapping method comprises the following steps: constructing a dictionary mapping relation between the identification codes and the extension codes thereof and the waybill state; constructing a dictionary tree based on the identification codes and the extended codes thereof according to a dictionary mapping relation; and acquiring an identification code, searching the dictionary tree by using the identification code, and executing corresponding preset operation according to a search result to acquire the waybill state corresponding to the identification code. The method does not depend on an external server, and the external server database is called at a high query speed, so that the waybill state can be mapped under the abnormal condition of the external server, and the stability and reliability of the waybill state query are improved.

Description

Waybill state mapping method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of logistics tracking, in particular to a waybill state mapping method, device, equipment and storage medium.
Background
The rifle is the terminal equipment of generally using in the express delivery trade, and the commodity circulation of express delivery freight note is tracked the scanning record that can not leave the rifle such as warehouse entry, transportation, sign-on. Therefore, for express companies, the wider the business is, the more the classification of the bargun scanning is, the more the corresponding identification codes are, and generally, the state of the package can be realized through one-to-one mapping from the bargun operation code to the state.
However, after the mapping states of the identification codes and the packages are broken due to the division of services, the state classification recorded by the identification codes is very detailed, but the waybill is only in a limited number of states when being displayed outwards, and the states of the waybill are not only related to the identification codes but also possibly related to other states such as package states, so that the judgment of the states of the waybill becomes complicated, sometimes, a plurality of micro-services need to be called to realize the judgment, and once the calling of the associated system fails, the misdisplay or even the loss of the states of the waybill can occur.
Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide a waybill status mapping method, apparatus, device and storage medium.
According to an aspect of the present invention, there is provided a waybill status mapping method, including:
constructing a dictionary mapping relation between the identification codes and the extension codes thereof and the waybill state;
constructing a dictionary tree based on the identification codes and the extended codes thereof according to a dictionary mapping relation;
and acquiring an identification code, searching the dictionary tree by using the identification code, and executing corresponding preset operation according to a search result to acquire the waybill state corresponding to the identification code.
Further, constructing a dictionary tree based on the identification codes and the extended codes thereof according to the dictionary mapping relationship, comprising:
constructing an initial dictionary tree according to the mapping relation between the identification codes and the waybill state, so that each child node of the initial dictionary tree is mapped with one-bit identification code;
and matching the extension codes corresponding to the bargun codes, and constructing an extension dictionary tree by taking the child nodes corresponding to the last bit extension codes as initial nodes.
Further, executing the corresponding preset operation according to the search result includes:
identifying whether the dictionary tree has the extension codes corresponding to the identification codes or not;
if yes, continuing to search the dictionary tree based on the extended codes of the identification codes, mapping the waybill state corresponding to the extended codes and outputting the waybill state;
otherwise, mapping the waybill state corresponding to the identification code and outputting.
Further, constructing a dictionary mapping relation from the identification code and the extension code thereof to the waybill state in a Key-Value Key Value pair mode;
and/or
The extension code is data Segment which is set as Segment
According to another aspect of the present invention, there is provided an waybill status mapping apparatus, comprising:
the mapping relation construction module is used for constructing a dictionary mapping relation between the identification code and the expansion code thereof and the waybill state;
the dictionary tree construction module is configured for constructing a dictionary tree based on the identification code and the extended code thereof according to a dictionary mapping relation;
and the state recognition module is configured for acquiring the identification codes, searching the dictionary tree by using the identification codes, and executing corresponding preset operation according to the search result to acquire the waybill state corresponding to the identification codes.
Further, the mapping relationship building module includes:
the initial dictionary tree construction unit is configured to construct an initial dictionary tree according to the mapping relation between the identification codes and the waybill state, so that each child node of the initial dictionary tree is mapped with one-bit identification code;
and the extended dictionary tree construction unit is configured for matching the extended codes corresponding to the bargun codes and constructing an extended dictionary tree by taking the child nodes corresponding to the last extended codes as initial nodes.
Further, executing a corresponding preset operation according to the search result, including:
identifying whether the dictionary tree has the extension codes corresponding to the identification codes or not;
if yes, continuing to search the dictionary tree based on the extended codes of the identification codes, mapping the waybill state corresponding to the extended codes and outputting the waybill state;
otherwise, mapping the waybill state corresponding to the identification code and outputting.
Further, constructing a dictionary mapping relation from the identification code and the extension code thereof to the waybill state in a Key-Value Key Value pair mode;
and/or
The extension code is a data Segment, and the data Segment is set as a Segment.
One or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of the above.
According to another aspect of the invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements a method as defined in any one of the above.
Compared with the prior art, the invention has the following beneficial effects:
1. the waybill state mapping method can directly and locally identify the waybill state through the identification code, does not depend on an external server to inquire the waybill state, has higher inquiring speed than calling an external server database, greatly simplifies the judging process of the waybill state, and increases the stability and reliability of the waybill state inquiry.
2. According to the waybill state mapping device disclosed by the invention, a dictionary tree is constructed based on the identification code and the expansion code according to the dictionary mapping relation, the identification code is only required to be obtained through an external system, then the waybill state is directly and locally identified through the identification code and the expansion code, corresponding preset operation is executed according to the search result to obtain the waybill state corresponding to the identification code, the waybill state is inquired without depending on calling an external server, the judgment flow of the waybill state is simplified, and the stability and the reliability of the waybill state inquiry are improved.
3. The equipment disclosed by the invention can greatly simplify the judgment process of the waybill state and increase the stability and reliability of the waybill state query by executing the waybill state mapping method through the processor.
4. The readable storage medium disclosed by the invention stores the waybill state mapping method which is realized when the readable storage medium is executed by the processor, so that the waybill state mapping device is convenient to use and popularize.
Drawings
Fig. 1 is a flowchart of the waybill status mapping method of the present invention.
FIG. 2 is a diagram illustrating a structure of a trie according to an embodiment of the present invention.
FIG. 3 is a schematic flow diagram of a method according to an embodiment of the invention.
FIG. 4 is a diagram illustrating a computer system according to the present invention.
Detailed Description
In order to better understand the technical scheme of the invention, the invention is further explained by combining the specific embodiment and the attached drawings of the specification.
Example 1:
an waybill state mapping device of this embodiment includes:
the mapping relationship building module is configured to build a dictionary mapping relationship between an identification code and an extended code thereof and an waybill state, and as an alternative, a mapping file can be further obtained according to the mapping relationship, the identification code of this embodiment is a bargun code, the extended code is a data Segment, the data Segment is set as a Segment.
Firstly, constructing a mapping file from a bargun code to an waybill state, selecting a complete bargun code by a key in a K-V pair, and selecting the waybill state corresponding to the bargun code by a value; and if the bargun code cannot be directly mapped to the waybill state, setting the value corresponding to the waybill state in the bargun code mapping file to segment1.txt, and further judging according to the segment.
The dictionary tree construction module is configured to construct a dictionary tree based on the identification code and the extended code thereof according to a dictionary mapping relationship, and specifically includes: the initial dictionary tree construction unit is configured to construct an initial dictionary tree according to the mapping relation between the identification codes and the waybill state, so that each child node of the initial dictionary tree is mapped with one-bit identification codes, the identification codes are generally 2-10 bits unequal, when the identification codes are stored to the last bit, the value of the value in the mapping file is stored in the node, and then the node has no child nodes; and the extended dictionary tree construction unit is configured to match the extended codes corresponding to the bargun codes, if the extended codes are packagestatus.
The state identification module is configured to acquire an identification code, search the dictionary tree by using the identification code, and execute corresponding preset operation according to a search result to acquire an waybill state corresponding to the identification code, wherein the corresponding preset operation is executed according to the search result, and the state identification module comprises: identifying whether the dictionary tree has the extension codes corresponding to the identification codes or not; if yes, continuing to search the dictionary tree based on the extended codes of the identification codes, mapping the waybill state corresponding to the extended codes and outputting the waybill state; otherwise, mapping the waybill state corresponding to the identification code and outputting the waybill state; as an alternative, the bargun can also be simultaneously associated with a plurality of external order query micro servers, when the waybill state call fails, such as the mispresentation or even the missing of the waybill state occurs, the application is used as an alternative scheme when the query fails, the waybill state can still be mapped under the abnormal condition of the external servers, and the stability and the reliability of the waybill state query are improved. According to the method and the system, the fact that the waybill state of the package is obtained through the mapping relation between the bargun code and the extension code of the bargun code and the dictionary of the waybill state is achieved, the waybill state does not depend on an external server, and even if the bargun does not have a server related to the waybill state query, the bargun code and the extension code can be used for obtaining the corresponding waybill state through the dictionary tree to achieve logistics tracking.
The mapping method corresponding to the waybill state mapping device comprises the following steps:
s1, constructing a dictionary mapping relation between the identification code and the extension code thereof and the waybill state, wherein the identification code of the embodiment adopts bargun code, the extension code is data Segment, the data Segment is set as segment.txt format file, and the construction mode can adopt a K-V pair mode, which is specifically as follows:
s1-1, constructing a mapping file from the bargun code to the waybill state, selecting a complete bargun code by a key in the K-V pair, and selecting the waybill state corresponding to the bargun code by a value;
s1-2, if the bargun code can not be directly mapped to the waybill state, setting the value corresponding to the waybill state in the bargun code mapping file to segment1.txt, and further judging according to the segment of the data.
S2, constructing a dictionary tree based on the identification code and the extended codes thereof according to the dictionary mapping relation, which specifically comprises the following steps:
s2-1, constructing an initial dictionary tree according to the mapping relation between the identification codes and the waybill state, and enabling each child node of the initial dictionary tree to map one-bit identification code; the data structure of the initial dictionary tree is shown in fig. 1, the initial node in the dictionary tree does not store data, but each node in its children node stores one-bit bargun code, if the nodes are stored bit by bit from the root node of the tree, the value of value in the mapping file is stored in the node when the bargun code is stored to the last node, and then the node has no children.
S2-2, matching the extension codes corresponding to the bargun codes, and constructing an extension dictionary tree by taking the child nodes corresponding to the last extension codes as initial nodes; in the actual application process, if the value corresponding to the bargun code in the mapping configuration file is the mapping file name of a certain data segment, such as packagettatus.
S3, acquiring the identification code, calling an external system (external server) when acquiring the identification code, searching the dictionary tree by using the identification code, directly and locally identifying the waybill state through the dictionary tree without calling the external server, and executing corresponding preset operation according to the search result to acquire the waybill state corresponding to the identification code, wherein the corresponding preset operation is executed according to the search result, and the method comprises the following steps: identifying whether the dictionary tree has the extension codes corresponding to the identification codes or not; if yes, continuing to search the dictionary tree based on the extended codes of the identification codes, mapping the waybill state corresponding to the extended codes and outputting the waybill state; otherwise, mapping the waybill state corresponding to the identification code and outputting. The specific searching process is as follows: searching the dictionary tree by using the bargun code in an initial state in a default mode, firstly taking out the bargun code from the parameter object by using the calling method to match the dictionary tree bit by bit, and if the corresponding value is matched, judging that the value is not in a segment. If the judgment is the value in the segment.txt format, the value corresponding to the field is mapped from the dictionary tree by using the name of the segment, as an alternative, when the value corresponding to the field is mapped from the dictionary tree by using the name of the segment, the initial dictionary tree constructed by the gun code before is skipped when the dictionary tree constructed by the segment.txt is searched, the value of the data segment is directly mapped from the expanded dictionary tree, the matching mode is the same as the matching of the gun code until the final waybill state is obtained and returned, and the waybill state is mapped by the dictionary tree without calling an external server, so that the judgment flow of the waybill state is greatly simplified, the query speed is higher than the query speed of calling the external server database without depending on the external server, the database required by the state query is saved, and the stability and reliability of the waybill state query are improved.
It should be understood that each step in the waybill status mapping method corresponds to sub-units recorded in the waybill status mapping device. Thus, the operations and features described above for the apparatus and the units included therein are also applicable to the above method, and are not described herein again, and the waybill status mapping method is further described below by way of example,
1) firstly, constructing an identification code (in the embodiment, a bargun code) and a dictionary mapping relation between an extension code and an waybill state by adopting a K-V pair mode, wherein barcode.txt is a one-to-one mapping file from the bargun code to the waybill state, packstatus.txt is a mapping file from the extension code to the waybill state, and the contents stored by barcode.txt and packstatus.txt are respectively as follows:
barCode.txt
bargun code Waybill status
1 54 Go to house to receive
2 43 Taken out of
3 44 Delivering and delivering
4 30 Loading vehicle
5 877 Transit retention
6 880 Door-mounting part
7 126 Cancelling dispatch
8 128 Signed for
9 8000 packStatus.txt
10 8627 Forwarding third party
packStatus.txt
Extension coding Waybill status
1 80 In customs clearance
2 90 Suspected damage to a package
3 100 Parcel claim settled
4 110 Rendering the package useless
5 120 Parcel delivery retention
2) Then, constructing a dictionary tree based on the identification code and the extended codes thereof according to a dictionary mapping relation, when an initial dictionary tree is constructed by using barcode.txt, the upper half part of the dotted line of fig. 2 can be obtained, for bargun codes other than 8000, the dictionary tree can be searched by using bargun codes to obtain a corresponding waybill state, and for bargun codes 8000, an extended dictionary tree corresponding to packstatus.txt is continuously constructed under the node where the last '0' of the initial dictionary tree 8000 is located to obtain the lower half part of the dotted line;
when the system is used, firstly, an external server is called through a bargun to obtain bargun codes, the waybill state is mapped through a dictionary tree according to the bargun codes, if the obtained bargun codes are 8000, the content obtained after the dictionary tree is searched through 8,0,0 and 0 in sequence is packstatus.
The searching of the dictionary tree of the embodiment only needs to transmit the bargun code, the waybill state can be directly and locally identified through the identification code without calling an external server, a database is omitted, the judging process of the waybill state is greatly simplified, the external server database is not used independently, the waybill state can be mapped under the abnormal condition of the external server, the stability and the reliability of the waybill state inquiry are improved, in addition, when the bargun code does not have a corresponding package state in the dictionary tree and needs to read another txt file, if an extended dictionary tree is not established after the leaf node corresponding to the bargun code is read, the dictionary mapping relation of the extended code and the waybill state can be established, the extended dictionary tree is established in the same manner of establishing the dictionary tree, then the dictionary tree can be spliced by assigning the node where the name of the extended code and the waybill state is stored, the configuration can be modified out of the package without a database.
The apparatus of this embodiment, the apparatus includes:
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 can execute the method, the judgment process of the waybill state can be greatly simplified, and the stability and reliability of the waybill state query can be improved.
A computer-readable storage medium storing a computer program according to this embodiment is characterized in that the program implements the method according to any one of the above descriptions when being executed by a processor, and stores the waybill status mapping method implemented when being executed by the processor, thereby facilitating the use and popularization of the waybill status mapping apparatus.
Further introduction is as follows:
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 section into a Random Access Memory (RAM) 103. In the RAM103, various programs and data necessary for system operation are also stored. The CPU 101, ROM 102, and RAM103 are connected to each other via a bus 104. An input/output (I/O) interface 105 is also connected to bus 104.
The following components are connected to the I/O interface 105: an input portion 106 including a keyboard, a mouse, and the like; an output section including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 108 including a hard disk and the like; and a communication section 109 including a network interface card such as a LAN card, a modem, or the like. The communication section 109 performs communication processing via a network such as the internet. The drives are 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, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 108 as necessary.
In particular, the process described above with reference to the flowchart of fig. 4 may be implemented as a computer software program according to an embodiment of the present invention. For example, embodiment 1 of the invention comprises a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 101.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments 1 of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves. The described units or modules may also be provided in a processor, and may be described as: a processor comprises a mapping relation construction module, a dictionary tree construction module and a state recognition module. The names of these modules do not form a limitation to the modules themselves in some cases, for example, the mapping relationship building module may also be described as a "mapping relationship building module for building a dictionary mapping relationship between the identification code and its extension code and the waybill status".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is enabled to implement the waybill status mapping method as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 1: step S1: constructing a dictionary mapping relation between the identification codes and the extension codes thereof and the waybill state; step S2: constructing a dictionary tree based on the identification codes and the extended codes thereof according to a dictionary mapping relation; step S3: and acquiring an identification code, searching the dictionary tree by using the identification code, and executing corresponding preset operation according to a search result to acquire the waybill state corresponding to the identification code.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the features described above have similar functions to (but are not limited to) those disclosed in this application.

Claims (10)

1. A waybill state mapping method is characterized by comprising the following steps:
constructing a dictionary mapping relation between the identification codes and the extension codes thereof and the waybill state;
constructing a dictionary tree based on the identification codes and the extended codes thereof according to a dictionary mapping relation;
and acquiring an identification code, searching the dictionary tree by using the identification code, and executing corresponding preset operation according to a search result to acquire the waybill state corresponding to the identification code.
2. The waybill state mapping method of claim 1, wherein constructing a dictionary tree based on the identification codes and their extended codes according to a dictionary mapping relationship comprises:
constructing an initial dictionary tree according to the mapping relation between the identification codes and the waybill state, so that each child node of the initial dictionary tree is mapped with one-bit identification code;
and matching the extension codes corresponding to the bargun codes, and constructing an extension dictionary tree by taking the child nodes corresponding to the last bit extension codes as initial nodes.
3. The waybill state mapping method of claim 1, wherein performing the corresponding preset operation according to the search result comprises:
identifying whether the dictionary tree has the extension codes corresponding to the identification codes or not;
if yes, continuing to search the dictionary tree based on the extended codes of the identification codes, mapping the waybill state corresponding to the extended codes and outputting the waybill state;
otherwise, mapping the waybill state corresponding to the identification code and outputting.
4. The waybill state mapping method according to claims 1-3, wherein a Key-Value Key Value pair mode is adopted to construct a dictionary mapping relationship from an identification code and an extension code thereof to a waybill state;
and/or
The extension code is a data Segment, and the data Segment is set as a Segment.
5. An waybill state mapping device, comprising:
the mapping relation construction module is used for constructing a dictionary mapping relation between the identification code and the expansion code thereof and the waybill state;
the dictionary tree construction module is configured for constructing a dictionary tree based on the identification code and the extended code thereof according to a dictionary mapping relation;
and the state recognition module is configured for acquiring the identification codes, searching the dictionary tree by using the identification codes, and executing corresponding preset operation according to the search result to acquire the waybill state corresponding to the identification codes.
6. The waybill state mapping device of claim 5, wherein the mapping relationship building module comprises:
the initial dictionary tree construction unit is configured to construct an initial dictionary tree according to the mapping relation between the identification codes and the waybill state, so that each child node of the initial dictionary tree is mapped with one-bit identification code;
and the extended dictionary tree construction unit is configured for matching the extended codes corresponding to the bargun codes and constructing an extended dictionary tree by taking the child nodes corresponding to the last extended codes as initial nodes.
7. The waybill state mapping device of claim 5, wherein executing corresponding preset operations according to the search result comprises:
identifying whether the dictionary tree has the extension codes corresponding to the identification codes or not;
if yes, continuing to search the dictionary tree based on the extended codes of the identification codes, mapping the waybill state corresponding to the extended codes and outputting the waybill state;
otherwise, mapping the waybill state corresponding to the identification code and outputting.
8. The waybill state mapping device according to claims 5-7, wherein the dictionary mapping relationship from the identification code and its extension code to the waybill state is constructed in a Key-Value Key Value pair manner;
and/or
The extension code is a data Segment, and the data Segment is set as a Segment.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201910294278.7A 2019-04-12 2019-04-12 Waybill state mapping method, device, equipment and storage medium Pending CN111813771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910294278.7A CN111813771A (en) 2019-04-12 2019-04-12 Waybill state mapping method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910294278.7A CN111813771A (en) 2019-04-12 2019-04-12 Waybill state mapping method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111813771A true CN111813771A (en) 2020-10-23

Family

ID=72843891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910294278.7A Pending CN111813771A (en) 2019-04-12 2019-04-12 Waybill state mapping method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111813771A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013097115A1 (en) * 2011-12-28 2013-07-04 华为技术有限公司 File directory storage method, retrieval method and device
CN106970936A (en) * 2017-02-09 2017-07-21 阿里巴巴集团控股有限公司 Data processing method and device, data query method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013097115A1 (en) * 2011-12-28 2013-07-04 华为技术有限公司 File directory storage method, retrieval method and device
CN103299297A (en) * 2011-12-28 2013-09-11 华为技术有限公司 File directory storage method, retrieval method and device
CN106970936A (en) * 2017-02-09 2017-07-21 阿里巴巴集团控股有限公司 Data processing method and device, data query method and device

Similar Documents

Publication Publication Date Title
US11282026B2 (en) Method and apparatus for planning route
US11315070B2 (en) Method and apparatus for storing information
US20200175570A1 (en) Method for processing orders and electronic device
CN111784222A (en) Method and device for processing orders
CN110719200B (en) Information identification method and device
CN113076153A (en) Interface calling method and device
CN111401684A (en) Task processing method and device
CN114297278A (en) Method, system and device for quickly writing batch data
CN110851343A (en) Test method and device based on decision tree
CN110795331A (en) Software testing method and device
WO2020224342A1 (en) Product return task generating method, apparatus, and device, and storage medium
CN113222205A (en) Path planning method and device
CN111813771A (en) Waybill state mapping method, device, equipment and storage medium
CN113393288B (en) Order processing information generation method, device, equipment and computer readable medium
CN114493799A (en) Method and system for managing special vehicle order data in warehouse and table dividing manner
CN115330540A (en) Method and device for processing transaction data
CN113627837B (en) Goods collection positioning method and device
CN114418482A (en) Order information processing method and device, electronic equipment and computer readable medium
CN113742235A (en) Method and device for checking codes
CN113159659A (en) Method, device, equipment and computer readable medium for updating manifest aging
CN114969059B (en) Method and device for generating order information, electronic equipment and storage medium
CN111414566A (en) Method and device for pushing information
CN112015565A (en) Method and device for determining task downloading queue
WO2021169553A1 (en) Method and apparatus for processing order
CN113434508B (en) Method and apparatus for storing information

Legal Events

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