Waybill number generation method and device
Through pre-configured waybill number generation script collection, the waybill number of different carriers is quickly generated, which solves the problems of low efficiency and poor scalability of the existing system, and realizes efficient waybill number generation and carrier access.
Patent Information
- Application Number
- CN202411577986.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-21
AI Technical Summary
现有电子面单系统生成不同承运商运单号效率较低,且在面对新的承运商接入时效率较低、扩展性较差,导致承运商接入电子面单系统的时间成本较 high.
Generate scripts through pre-configured waybill number generation requests, obtain the target carrier information, determine the corresponding target script, and call the script to generate the target waybill number, which is quickly compatible with the waybill number generation of different carriers rule.
It improves the efficiency of waybill number generation, simplifies the new carrier access process, and reduces the difficulty and time cost of the system expansion.
Smart Images

Figure CN119494705A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a method and device for generating a waybill number. Background Art
[0002] In the field of e-commerce, different logistics carriers will be connected to the e-commerce platform to perform the task of logistics carrier. When the carrier is connected to the e-commerce platform, it is necessary to pre-place its waybill number generation rules in the electronic waybill system of the e-commerce platform. However, since different carriers have different waybill number generation rules, the electronic waybill system in the e-commerce platform needs to generate the corresponding waybill number according to the waybill number generation rules of each carrier.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: the existing electronic waybill system is inefficient in generating waybill numbers for different carriers, and also has problems of low efficiency and poor scalability when facing the access of new carriers. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a waybill number generation method, device, electronic device and storage medium, which can generate a target waybill number through a pre-configured waybill number generation script, quickly be compatible with the requirements of waybill number generation rules of different carriers, and improve the efficiency of waybill number generation.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for generating a waybill number, the method comprising:
[0006] In response to the request for generating a waybill number, obtaining target carrier information corresponding to the request for generating a waybill number;
[0007] Based on the target carrier information, determine a target script corresponding to the target carrier information from a pre-configured waybill number generation script set; wherein each waybill number generation script in the waybill number generation script set is configured for different carriers to be configured;
[0008] The target script is called to generate a target waybill number corresponding to the target carrier.
[0009] Optionally, in response to the waybill number generation request, before obtaining the target carrier information corresponding to the waybill number generation request, the method further includes:
[0010] Obtain identification information, authority information, serial number generation strategy and waybill number generation rules of multiple carriers to be configured;
[0011] Based on the identification information, authority information, serial number generation strategy and waybill number generation rule, the waybill number generation script of each carrier to be configured is configured to obtain the waybill number generation script set.
[0012] Optionally, calling the target script to generate a target waybill number corresponding to the target carrier includes:
[0013] Call the target script to determine the waybill number prefix, waybill number suffix and sequence number;
[0014] The waybill number prefix, waybill number suffix and serial number are concatenated to generate a target waybill number.
[0015] Optionally, after calling the target script and determining the waybill number prefix, waybill number suffix and sequence number, the following further comprises:
[0016] The serial number is verified based on a preset verification rule.
[0017] Optionally, the serial number is determined by the following steps:
[0018] determining a target list for generating a sequence number from a plurality of lists on the server;
[0019] According to the identification information of the target carrier, acquiring the base value of the serial number corresponding to the target carrier from the target list;
[0020] A sequence number is generated based on a sequence number generation strategy, a sequence number base value, and an identification value of the target list.
[0021] Optionally, the number of the server is at least one, each of the server is provided with at least one database, and each of the databases includes at least one list.
[0022] Optionally, if the pre-configured waybill number generation script set does not include a target script corresponding to the current target carrier information, the method further includes:
[0023] According to the identification information, authority information, serial number generation strategy and waybill number generation rules of the target carrier, configure a waybill number generation script corresponding to the target carrier;
[0024] A target waybill number corresponding to the target carrier is generated according to the waybill number generation script, and the waybill number generation script is saved in a pre-configured waybill number generation script set.
[0025] In a second aspect, the embodiment of the present disclosure further provides a waybill number generating device, including:
[0026] An information acquisition module, configured to respond to a waybill number generation request and acquire target carrier information corresponding to the waybill number generation request;
[0027] A script determination module, configured to determine, based on the target carrier information, a target script corresponding to the target carrier information from a pre-configured waybill number generation script set; wherein each waybill number generation script in the waybill number generation script set is configured for different carriers to be configured;
[0028] The waybill number generating module is used to call the target script to generate a target waybill number corresponding to the target carrier.
[0029] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps in the above-mentioned first aspect, or any optional implementation of the first aspect are performed.
[0030] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect, or any optional implementation of the first aspect are executed.
[0031] Any one of the above aspects or any optional implementation manner of any one of the aspects, by responding to a waybill number generation request, obtaining the target carrier information corresponding to the waybill number generation request; based on the target carrier information, determining the target script corresponding to the target carrier information from a pre-configured waybill number generation script set; wherein each waybill number generation script in the waybill number generation script set is configured for different carriers to be configured; calling the target script to generate a target waybill number corresponding to the target carrier, thereby being able to generate a target waybill number corresponding to the target carrier that currently initiates the request through the pre-configured waybill number generation script, quickly being compatible with the requirements of waybill number generation rules of different carriers, and improving the efficiency of waybill number generation.
[0032] In a further embodiment of the present disclosure, if the pre-configured waybill number generation script set does not include a target script corresponding to the current target carrier information, the method further includes: configuring a waybill number generation script corresponding to the target carrier according to the identification information, authority information, serial number generation strategy and waybill number generation rules of the target carrier; generating a target waybill number corresponding to the target carrier according to the waybill number generation script, and saving the waybill number generation script to the pre-configured waybill number generation script set. Thus, when facing a new carrier, there is no need to perform additional development work for it to access the current electronic waybill system. It is only necessary to configure the waybill number generation rules corresponding to the carrier in the script, which further improves the efficiency of waybill number generation, improves system scalability, and reduces the time cost of the carrier accessing the electronic waybill system. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0034] Figure 1 A flow chart of a method for generating a waybill number provided by an embodiment of the present disclosure is shown;
[0035] Figure 2 A schematic diagram of a device for generating a waybill number provided in an embodiment of the present disclosure is shown;
[0036] Figure 3 An exemplary system architecture is shown in which embodiments of the present disclosure may be applied;
[0037] Figure 4 A schematic diagram of the structure of a computer system of a terminal device or a server used to implement an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0039] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.
[0040] Research has found that with the rapid development of e-commerce and logistics, some e-commerce platforms will provide logistics carrier access services to conveniently achieve warehousing and distribution integration, while also being able to effectively urge shippers and logistics carriers to improve their operational capabilities and levels.
[0041] In the prior art, when a carrier accesses an e-commerce platform, it is necessary to pre-place its waybill number generation rules in the electronic waybill system of the e-commerce platform. However, there are differences between the waybill number generation rules of different carriers. When the carrier accesses, it is necessary to carry out development work based on its own waybill number generation rules to implement the waybill number generation function for different carriers. It is impossible to quickly be compatible with the requirements of waybill number generation rules of different carriers, and the efficiency and scalability are low when facing the access of new carriers. The time cost of the carrier accessing the electronic waybill system is high.
[0042] Based on the above research, the disclosed embodiment provides a waybill number generation method, which can generate a target waybill number through a pre-configured waybill number generation script, quickly compatible with the requirements of waybill number generation rules of different carriers, and improve the efficiency of waybill number generation. In addition, when facing a new carrier, by configuring its own waybill number generation rules in the script, there is no need to perform additional development work for it to access the current electronic waybill system, which further improves the efficiency of waybill number generation, improves the scalability of the system, and reduces the time cost of the carrier to access the electronic waybill system.
[0043] The raising of the above problems and the solutions are the results obtained by the inventor after practice and careful research. The discovery process of the above problems and the solutions proposed for the above problems should be the contributions made by the inventor to the present disclosure during the disclosure process.
[0044] The technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0045] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0046] To facilitate understanding of this embodiment, a method for generating a waybill number disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the method for generating a waybill number provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method for generating a waybill number can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0047] See also Figure 1 As shown, it is a flow chart of a method for generating a waybill number provided in an embodiment of the present disclosure, the method comprising S101 to S103, wherein:
[0048] S101: In response to a request for generating a waybill number, obtaining target carrier information corresponding to the request for generating a waybill number.
[0049] In the disclosed embodiment, the target carrier refers to a third-party logistics company designated by the consignor that can undertake the transportation and delivery of goods on the e-commerce platform. In specific implementation, the consignor on the e-commerce platform can choose the logistics carrier provided by the platform or choose a third-party logistics carrier on its own. The disclosed embodiment only discusses the situation where the third-party logistics carrier undertakes the transportation and delivery of goods.
[0050] In the embodiments of the present disclosure, the waybill number refers to a unique identifier assigned to each package by the carrier when handling the goods, usually composed of numbers and / or letters, and is used to track the status of the package during the entire logistics process, such as location, transportation progress and other information. The consignee, consignor and third party can obtain the information of the corresponding package by querying the waybill number.
[0051] Furthermore, the waybill number is usually composed of a segment prefix, a serial number, and a segment suffix. Different carriers have different segment prefixes and segment suffixes, and the strategies for generating the serial number may also be different. In addition, different carriers may add additional codes to the waybill number, such as a check digit.
[0052] In this step, when the consignor who accesses the electronic waybill system of the e-commerce platform places an order for shipment, a waybill number generation request will be generated to generate a waybill number corresponding to the current goods. In response to the waybill number generation request, the corresponding target carrier information can be obtained, wherein the target carrier information can be carried in the waybill number generation request; in addition, the waybill number generation request can also carry information such as the generated quantity, consignor code, carrier network code, etc. Specifically, the target carrier information can include the carrier ID, carrier code, carrier name, carrier type, carrier scope, and various permissions of the target carrier.
[0053] In an embodiment of the present disclosure, in response to a waybill number generation request, before obtaining the target carrier information corresponding to the waybill number generation request, it also includes: obtaining identification information, authority information, serial number generation strategy and waybill number generation rules of multiple carriers to be configured; based on the identification information, authority information, serial number generation strategy and waybill number generation rules, configuring the waybill number generation script of each of the carriers to be configured to obtain the waybill number generation script set.
[0054] In the disclosed embodiment, the target carrier information is used to search for the waybill number generation script of the corresponding carrier in the script engine, and the waybill number generation scripts of each carrier can be pre-configured in the script engine.
[0055] In a specific implementation, the identification information, authority information, serial number generation strategy, waybill number generation rules and other information of each connected carrier can be obtained in advance, and then the waybill number generation script corresponding to each carrier can be configured in the script engine based on the obtained information. Specifically, the identification information of the carrier may include the carrier ID, carrier code, carrier name, carrier type, etc. of the carrier; the authority information of the carrier may include the carrier's scope of transportation and various types of authority, etc. Exemplarily, the carrier ID can be 1000, the carrier code can be ABC, and the carrier ID and carrier code can both be used as the unique identifier of the carrier. The carrier name can be a certain express, the corresponding carrier type is an express company, the scope of transportation can be nationwide or a local area, and the authority information can include whether the electronic waybill is activated, etc.
[0056] In another feasible implementation, when configuring the waybill number generation script for each carrier, the business type of the waybill and the current timestamp and other information can also be considered. For example, the waybill number generation script corresponding to the carrier can be configured based on different business types such as ordinary express, express mail, and international express; the current timestamp information can also be considered when configuring the waybill number generation script corresponding to the carrier, so that the validity period can be configured for the waybill number generation script based on the timestamp information. When the validity period expires, a new waybill number generation script can be configured based on the identification information, permission information, serial number generation strategy, and waybill number generation rules, thereby improving the security of the electronic waybill system.
[0057] Optionally, it is also possible to obtain information such as the check digit generation rules in the waybill number, and configure the carrier's waybill number generation script based on this information. It should be noted that the above-mentioned information obtained for configuring the waybill number generation script is only used as an example of a possible implementation method of the present disclosure, and does not constitute an improper limitation on the present invention. The information obtained is used to configure the script in the script engine so that it can realize the waybill number generation function of the corresponding carrier. The present disclosure does not specifically limit the specific information used to configure the waybill number generation script, and its function can be realized.
[0058] S102: Based on the target carrier information, determine a target script corresponding to the target carrier information from a pre-configured waybill number generation script set; wherein each waybill number generation script in the waybill number generation script set is configured for different carriers to be configured.
[0059] In this step, you can first search in the script engine based on the target carrier information to see if there is a corresponding waybill number generation script. If so, use this script as the target script to generate the waybill number.
[0060] In an embodiment of the present disclosure, if the pre-configured waybill number generation script set does not include a target script corresponding to the current target carrier information, the method further includes: configuring a waybill number generation script corresponding to the target carrier based on the target carrier's identification information, authority information, serial number generation strategy and waybill number generation rules; generating a target waybill number corresponding to the target carrier based on the waybill number generation script, and saving the waybill number generation script to the pre-configured waybill number generation script set.
[0061] In the specific implementation, for newly connected carriers, you only need to configure the corresponding waybill number generation rules, serial number generation strategies and other information in the script to obtain the waybill number generation script corresponding to the carrier. This can quickly complete the docking with the new carrier without the need for new development tasks, thereby improving the efficiency of waybill number generation and improving the scalability and availability of the system.
[0062] In another possible implementation, in order to further improve the timeliness of waybill number generation, the interface provided by the carrier may be called to first use the interface to generate a waybill number corresponding to the current waybill. After the waybill number is generated, the waybill number generation script corresponding to the carrier may be configured based on the identification information, authority information, serial number generation strategy, waybill number generation rules and other information corresponding to the carrier, for use when the need to generate a waybill number for the carrier arises in the future.
[0063] It should be noted that when the pre-configured waybill number generation script set does not include the waybill number generation script corresponding to the current carrier, the above two methods are only possible implementation methods provided by the present disclosure and do not constitute an improper limitation on the present invention.
[0064] In addition, it should be noted that the same carrier may have different waybill number generation rules for different types of goods. For example, there may be different waybill number generation rules for fresh products and other commodities to identify special types of goods in the package. For such a case, in the embodiment of the present disclosure, it is only necessary to configure the corresponding waybill number generation rules, serial number generation strategy and other information in the script to implement the corresponding waybill number generation task.
[0065] S103: Call the target script to generate a target waybill number corresponding to the target carrier.
[0066] In this step, after the target script is determined according to the target carrier information, the target script can be called to generate the corresponding target waybill number.
[0067] In an embodiment of the present disclosure, the target script is called to generate a target waybill number corresponding to the target carrier, including: calling the target script to determine the waybill number prefix, waybill number suffix and serial number; concatenating the waybill number prefix, waybill number suffix and serial number to generate the target waybill number.
[0068] In a specific implementation, the target script may include codes for determining the waybill number prefix and suffix of the corresponding carrier, and codes for generating serial numbers. After calling these codes to determine the corresponding waybill number prefix, waybill number suffix and serial number, the target script can be used to splice the waybill number prefix, waybill number suffix and serial number to generate the final target waybill number; in addition, the task of splicing can also be implemented by other modules in the electronic waybill system. The implementation of this disclosure is not limited to this, and is based on the ability to achieve its functions.
[0069] In a specific implementation, the target script can determine the waybill number prefix and waybill number suffix by parsing the available number segments provided by the carrier. For example, assuming that the available number segments provided by carrier A are 2200000166 to 2299999966, it can be determined that the waybill number prefix corresponding to the carrier is 22 and the waybill number suffix is 66.
[0070] In a possible implementation, after calling the target script and determining the waybill number prefix, waybill number suffix and serial number, the waybill number prefix, waybill number suffix and serial number generated by the target script can also be verified based on preset verification rules. Specifically, it can be verified whether the target carrier code is correct, whether the shipper has a contractual relationship with the carrier, whether the shipper has the right to issue a bill, etc. This helps to ensure the accuracy of the waybill number generation, thereby improving the availability of the system.
[0071] In the embodiment of the present disclosure, the sequence number is determined by the following steps: determining a target list for generating the sequence number from a plurality of lists of a server; obtaining a sequence number base value corresponding to the target carrier from the target list according to the identification information of the target carrier; generating the sequence number based on the sequence number generation strategy, the sequence number base value and the identification value of the target list. The number of the server is at least one, each server is provided with at least one database, and each database includes at least one list.
[0072] In the disclosed embodiment, the name of the list used to generate the serial number can be set arbitrarily according to the requirements, and a unique identification value, i.e., a table suffix, can be added to each list in sequence starting from 0. This ensures that when the serial number is generated, the serial number generation task can be sent to each list in sequence according to the size of the identification value, so as to ensure the high availability of the generated serial number.
[0073] In the specific implementation, if an error or exception occurs when a list generates a sequence number, it can be removed from the available list. After a preset time (which can be set by yourself, the default is 5 minutes), the removed list can be added back to the available list. If the time it takes for a list to generate a single sequence number exceeds the preset time threshold, and it times out n (which can be set by yourself) times in a recent preset time period, it can also be moved to the exception list. After the time in the exception list exceeds the preset time, it can be put back into the available list.
[0074] In the embodiment of the present disclosure, each of the above lists may include two fields, namely, the owner_ke4 field and the current_value field, wherein owner_ke4 may be a string type used to identify the corresponding carrier that generates the serial number, such as the carrier branch code ABC, etc.; current_value may be used to store the current serial number base value.
[0075] For example, taking carrier A as an example, its available waybill number range is 2200000166 to 2299999966, then it can be determined that the waybill number prefix corresponding to the carrier is 22, the waybill number suffix is 66, and the middle six digits are the serial number. According to the serial number generation strategy corresponding to carrier A, the current serial number base value can be generated, and then the current base value is multiplied by the total number of lists used to generate the serial number. The obtained value is added with the table suffix number of the list used to generate the current serial number to obtain the serial number corresponding to carrier A. Subsequently, the waybill number prefix and the waybill number suffix are concatenated with the obtained serial number to obtain the final waybill number. In addition, for carriers that need to add other codes such as check digits, they can also be concatenated according to the corresponding waybill number composition method to obtain the final waybill number.
[0076] According to a second aspect of the embodiment of the present disclosure, Figure 2 As shown, a waybill number generating device 200 is provided, comprising:
[0077] The information acquisition module 201 is used to respond to the waybill number generation request and obtain the target carrier information corresponding to the waybill number generation request;
[0078] A script determination module 202 is used to determine a target script corresponding to the target carrier information from a pre-configured waybill number generation script set based on the target carrier information; wherein each waybill number generation script in the waybill number generation script set is configured for different carriers to be configured;
[0079] The waybill number generating module 203 is used to call the target script to generate a target waybill number corresponding to the target carrier.
[0080] Optionally, the information acquisition module 201 is further used for:
[0081] Obtain identification information, authority information, serial number generation strategy and waybill number generation rules of multiple carriers to be configured;
[0082] Based on the identification information, authority information, serial number generation strategy and waybill number generation rule, the waybill number generation script of each carrier to be configured is configured to obtain the waybill number generation script set.
[0083] Optionally, the waybill number generating module 203 is specifically used for:
[0084] Call the target script to determine the waybill number prefix, waybill number suffix and sequence number;
[0085] The waybill number prefix, waybill number suffix and serial number are concatenated to generate a target waybill number.
[0086] Optionally, the waybill number generating module 203 is further used for:
[0087] The serial number is verified based on a preset verification rule.
[0088] Optionally, the waybill number generating module 203 is specifically used for:
[0089] determining a target list for generating a sequence number from a plurality of lists on the server;
[0090] According to the identification information of the target carrier, acquiring the base value of the serial number corresponding to the target carrier from the target list;
[0091] A sequence number is generated based on a sequence number generation strategy, a sequence number base value, and an identification value of the target list.
[0092] Optionally, the number of the server is at least one, each of the server is provided with at least one database, and each of the databases includes at least one list.
[0093] Optionally, if the pre-configured waybill number generation script does not include a target script corresponding to the current target carrier information, the script determination module 202 is further configured to:
[0094] According to the identification information, authority information, serial number generation strategy and waybill number generation rules of the target carrier, configure a waybill number generation script corresponding to the target carrier;
[0095] A target waybill number corresponding to the target carrier is generated according to the waybill number generation script, and the waybill number generation script is saved in a pre-configured waybill number generation script set.
[0096] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device for generating a waybill number, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present disclosure.
[0097] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present disclosure is implemented.
[0098] Figure 3 An exemplary system architecture 300 is shown to which the method or device for generating a waybill number implemented by the present disclosure can be applied.
[0099] like Figure 3 As shown, the system architecture 300 may include terminal devices 301, 302, 303, a network 304 and a server 305. The network 304 is used to provide a medium for communication links between the terminal devices 301, 302, 303 and the server 305. The network 304 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0100] Users can use terminal devices 301, 302, 303 to interact with server 305 through network 304 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 301, 302, 303, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0101] The terminal devices 301 , 302 , and 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0102] The server 305 may be a server that provides various services, such as a backend management server (for example only) that provides support for shopping websites browsed by users using the terminal devices 301, 302, and 303. The backend management server may process the received request for generating a waybill number and feed back the processing result (for example only) to the terminal device.
[0103] It should be noted that the method for generating a waybill number provided in the embodiment of the present invention is generally executed by the server 305, and accordingly, the device for generating a waybill number is generally set in the server 305. The method for generating a waybill number provided in the embodiment of the present invention can also be executed by the terminal devices 301, 302, and 303, and accordingly, the device for generating a waybill number can be set in the terminal devices 301, 302, and 303.
[0104] It should be understood that Figure 3 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0105] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 400 of a terminal device suitable for implementing an embodiment of the present invention. Figure 4 The terminal 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 invention.
[0106] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0107] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
[0108] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention 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 such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present invention are executed.
[0109] 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.
[0110] 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 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 the 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.
[0111] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, a processor includes an information acquisition module, a script determination module, and a waybill number generation module. The names of these modules do not constitute limitations on the modules themselves in some cases. For example, the information acquisition module may also be described as a "module for acquiring target carrier information corresponding to the waybill number generation request."
[0112] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements the following method:
[0113] In response to the request for generating a waybill number, obtaining target carrier information corresponding to the request for generating a waybill number;
[0114] Based on the target carrier information, determine a target script corresponding to the target carrier information from a pre-configured waybill number generation script set; wherein each waybill number generation script in the waybill number generation script set is configured for different carriers to be configured;
[0115] The target script is called to generate a target waybill number corresponding to the target carrier.
[0116] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be based on the protection scope of the claims.
Claims
1. A method for generating a waybill number, characterized in that: include: In response to the request for generating a waybill number, obtaining target carrier information corresponding to the request for generating a waybill number; Based on the target carrier information, determine a target script corresponding to the target carrier information from a pre-configured waybill number generation script set; wherein each waybill number generation script in the waybill number generation script set is configured for different carriers to be configured; The target script is called to generate a target waybill number corresponding to the target carrier.
2. The method according to claim 1, characterized in that In response to the waybill number generation request, before obtaining the target carrier information corresponding to the waybill number generation request, the method further includes: Obtain identification information, authority information, serial number generation strategy and waybill number generation rules of multiple carriers to be configured; Based on the identification information, authority information, serial number generation strategy and waybill number generation rule, the waybill number generation script of each carrier to be configured is configured to obtain the waybill number generation script set.
3. The method according to claim 1, characterized in that Calling the target script to generate a target waybill number corresponding to the target carrier includes: Call the target script to determine the waybill number prefix, waybill number suffix and sequence number; The waybill number prefix, waybill number suffix and serial number are concatenated to generate a target waybill number.
4. The method according to claim 3, characterized in that Calling the target script to determine the waybill number prefix, waybill number suffix and serial number also includes: The serial number is verified based on a preset verification rule.
5. The method according to claim 3, characterized in that: The serial number is determined by the following steps: determining a target list for generating a sequence number from a plurality of lists on the server; According to the identification information of the target carrier, acquiring the base value of the serial number corresponding to the target carrier from the target list; A sequence number is generated based on a sequence number generation strategy, a sequence number base value, and an identification value of the target list.
6. The method according to claim 5, characterized in that The number of the server is at least one, each of the server is provided with at least one database, and each of the databases includes at least one list.
7. The method according to claim 1, characterized in that If the pre-configured waybill number generation script set does not include a target script corresponding to the current target carrier information, the method further includes: According to the identification information, authority information, serial number generation strategy and waybill number generation rules of the target carrier, configure a waybill number generation script corresponding to the target carrier; A target waybill number corresponding to the target carrier is generated according to the waybill number generation script, and the waybill number generation script is saved in a pre-configured waybill number generation script set.
8. A device for generating a waybill number, characterized in that: include: An information acquisition module, configured to respond to a waybill number generation request and acquire target carrier information corresponding to the waybill number generation request; A script determination module, configured to determine, based on the target carrier information, a target script corresponding to the target carrier information from a pre-configured waybill number generation script set; wherein each waybill number generation script in the waybill number generation script set is configured for different carriers to be configured; The waybill number generating module is used to call the target script to generate a target waybill number corresponding to the target carrier.
9. An electronic device, characterized in that: include: one or more processors; a storage device 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 implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.