Waybill information management method, device, equipment and storage medium

By analyzing and processing electronic page bill requests, obtaining authorization information, generating signatures, and sending data to a third-party electronic page bill platform, the problem of low security in connection with the electronic page bill systems of various platforms is solved, and a higher level is achieved data security and lower R&D costs.

CN112132510BActive Publication Date: 2025-02-21SHANGHAI DONGPU INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010935104.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-08
Publication Date
2025-02-21
Estimated Expiration
2040-09-08

AI Technical Summary

Technical Problem

When the existing systems are connected with the electronic faceplate systems of each platform, the security is not high, resulting in the data security is not high.

Method used

By receiving the user's electronic bill request, using the packet analysis rules to obtain order data and merchant information, obtain authorization information of the third-party electronic bill platform, generate signature information, and select the page information acquisition interface through the authorization information, and Order data, merchant information and signature information are sent to third-party electronic bill list platforms to realize the generation and printing of electronic bill lists.

Benefits of technology

It improves the interaction security between systems, isolates abnormal problems between systems, enhances the security of printing service requests and print data, avoids the phenomenon of data interleaving and transmission, and reduces the R&D cost of inter-system docking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112132510B_ABST
    Figure CN112132510B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of waybill processing, and discloses a waybill information management method, device, equipment and storage medium. The method obtains authorization information of a third-party platform connected to the warehouse management system according to order data and merchant information in a request for printing an electronic waybill sent by the warehouse management system, calls a waybill information acquisition interface on the third-party platform based on the authorization information, and sends order data, merchant information and signature information based on the waybill information acquisition interface to generate an electronic waybill and printing information on the third-party platform, and receives the printing information fed back through the waybill information acquisition interface, and calls the third-party electronic waybill platform through the authorization information, thereby realizing the docking security between the warehouse and the platform and the acquisition of waybill data, ensuring the security of data and facilitating the docking of different platforms, and realizing the lean, refined and accurate management of order printing by the warehouse management system, and responding to business needs more quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of waybill processing, and in particular to a waybill information management method, device, equipment and storage medium. Background Art

[0002] With the development of the e-commerce logistics industry, merchant platforms have higher and higher requirements for the timeliness, safety, and service of express delivery, while express delivery companies are also increasing their efforts to control the costs of each express delivery link. In response to the urgent needs of the market, third-party platforms and express delivery companies jointly provide merchants with a logistics service that prints out paper logistics bills on thermal paper. In order to meet the personalized needs of thousands of merchants, the system currently used by express delivery companies can provide electronic bill logistics services for all merchants. However, when the system is connected with the electronic bill systems of various platforms, it needs to bear a lot of basic maintenance, and the instability of the bill printing and information management services it provides leads to low data security. Summary of the invention

[0003] The main purpose of the present invention is to solve the technical problem of low security in the connection between the existing system and the electronic waybill systems of various platforms.

[0004] A first aspect of the present invention provides a method for managing delivery order information, which is applied to an order management system. The method for managing delivery order information includes:

[0005] Receive a request from a user to print an electronic waybill;

[0006] The request for printing the electronic shipping form is parsed using message parsing rules to obtain order data and merchant information;

[0007] Obtain the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, and call the corresponding signature rule to generate signature information;

[0008] According to the authorization information, the corresponding electronic waybill information acquisition interface is selected, and the order data, merchant information and signature information are sent to the third-party electronic waybill platform, wherein the signature information is used to verify the generation of the electronic waybill by the third-party electronic waybill platform.

[0009] After receiving and verifying the signature information, the printing information generated when the third-party electronic waybill platform generates the electronic waybill is obtained and stored.

[0010] Optionally, in a first implementation of the first aspect of the present invention, the using of a message parsing rule to parse and process the face sheet printing request to obtain order data and merchant information includes:

[0011] Identify the field name carried in the request to print the electronic shipping form according to the field information specified in the message parsing rule;

[0012] The authorization information of the third-party electronic waybill platform carried in the request to print the electronic waybill and the merchant ID, warehouse shipping address and delivery address in the corresponding order are extracted according to the field name.

[0013] Optionally, in a second implementation of the first aspect of the present invention, extracting the authorization information of the third-party electronic waybill platform carried in the request to print the electronic waybill according to the field name includes:

[0014] Call $_REQUEST in PHP to extract the application appkey information, interface method name information and signature information carried in the request to print the electronic bill according to the field name of the authorization information;

[0015] Respectively check whether the flag bits in the application appkey information, interface method name information and signature information have values;

[0016] If not, an error warning of electronic waybill request will be output;

[0017] If yes, the corresponding authorization status is determined according to the value of the flag bit.

[0018] Optionally, in a third implementation of the first aspect of the present invention, after obtaining the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, the method further includes:

[0019] According to the interface method name information, query whether there is an interface class name and / or interface processing method name corresponding to the interface method name information in the database of the order management system; if not, output a request error warning, wherein the interface class name and / or interface processing method name both identify the waybill information acquisition interface of the third-party electronic waybill platform;

[0020] According to the application appkey information, query whether there is an application key corresponding to the application appkey information in the database of the order management system; if not, output a request error warning.

[0021] Optionally, in a fourth implementation manner of the first aspect of the present invention, if the interface class name, the interface processing method name and the application key exist in the database of the order management system, before selecting the corresponding waybill information acquisition interface according to the authorization information and sending the order data, merchant information and signature information to the third-party electronic waybill platform, it also includes:

[0022] The application key is concatenated to the beginning and end of the message of the request to print the electronic bill to generate a character string;

[0023] Calling the MD5 encryption algorithm to encrypt the string, and encoding the encrypted result to obtain an encoded string;

[0024] Converting the encoded string into a signature message, and comparing the signature message with the signature;

[0025] If the comparison is consistent, the step of selecting the corresponding waybill information acquisition interface according to the authorization information and sending the order data and merchant information to the third-party electronic waybill platform for printing the waybill is executed;

[0026] If the comparison is inconsistent, a request error warning will be output.

[0027] Optionally, in a fifth implementation of the first aspect of the present invention, after obtaining the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, the method further includes:

[0028] According to the merchant ID, query the database of the order management system to obtain the shipping province, shipping city, and shipping detailed address;

[0029] The shipping address of the warehouse is determined according to the shipping province, shipping city and shipping detailed address;

[0030] Call the SDK to generate an interface request of the third electronic waybill platform according to the interface processing method name;

[0031] The selecting a corresponding electronic bill information acquisition interface according to the authorization information and sending the order data, merchant information and signature information to the third-party electronic bill platform comprises:

[0032] Determine the corresponding delivery note information acquisition interface according to the interface request, and perform authorization authentication according to the authorization information;

[0033] After the authorization authentication is passed, the order data, merchant information and signature information are sent to the third-party electronic waybill platform through the waybill information acquisition interface, so that the third-party electronic waybill platform can generate an electronic waybill and produce the printing information of the electronic waybill.

[0034] Optionally, in a sixth implementation of the first aspect of the present invention, after receiving and verifying the signature information, obtaining and storing the print information generated when the third-party electronic waybill platform generates the electronic waybill includes:

[0035] Receive the confirmation information fed back by the third-party electronic waybill platform after the signature information is verified, and call the waybill information acquisition interface to read the electronic waybill and large print information generated on the third-party electronic waybill platform, and extract the waybill number therein;

[0036] A printing log is generated according to the waybill number and printing information, and sent to the warehouse management system for storage and recording.

[0037] A second aspect of the present invention provides a bill of lading information management device, the bill of lading information management device comprising:

[0038] A request module, used to receive a request from a user to print an electronic waybill;

[0039] A parsing module, used to parse the request for printing the electronic waybill using message parsing rules to obtain order data and merchant information;

[0040] An acquisition module, used to acquire the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, and call the corresponding signature rule to generate signature information;

[0041] An output module, used to select a corresponding electronic waybill information acquisition interface according to the authorization information, and send the order data, merchant information and signature information to the third-party electronic waybill platform;

[0042] The recording module is used to obtain and store the printing information generated when the third-party electronic waybill platform generates the electronic waybill after receiving and verifying the signature information.

[0043] Optionally, in a first implementation of the second aspect of the present invention, the parsing module includes:

[0044] An identification unit, used to identify the field name carried in the request for printing the electronic bill according to the field information specified in the message parsing rule;

[0045] An extraction unit is used to extract the authorization information of the third-party electronic waybill platform carried in the request to print the electronic waybill and the merchant ID, warehouse shipping address and delivery address in the corresponding order according to the field name.

[0046] Optionally, in a second implementation of the second aspect of the present invention, the extraction unit is specifically used to:

[0047] Call $_REQUEST in PHP to extract the application appkey information, interface method name information and signature information carried in the request to print the electronic bill according to the field name of the authorization information;

[0048] Respectively check whether the flag bits in the application appkey information, interface method name information and signature information have values;

[0049] If not, an error warning of electronic waybill request will be output;

[0050] If yes, the corresponding authorization status is determined according to the value of the flag bit.

[0051] Optionally, in a third implementation of the second aspect of the present invention, the bill information management device further includes:

[0052] A first query module is used to query, based on the interface method name information, whether there is an interface class name and / or interface processing method name corresponding to the interface method name information in the database of the order management system, wherein the interface class name and / or interface processing method name are both the waybill information acquisition interface identifying the third-party electronic waybill platform;

[0053] A first early warning module, configured to output a request error warning when the first query module queries that there is no interface class name and / or interface processing method name corresponding to the interface method name information;

[0054] A second query module is used to query whether there is an application key corresponding to the application appkey information in the database of the order management system according to the application appkey information;

[0055] The second early warning module is used to output a request error warning when the second query module queries that there is no application key corresponding to the application appkey information.

[0056] Optionally, in a fourth implementation of the second aspect of the present invention, the bill information management device further includes a signature module, which is specifically used to:

[0057] The application key is concatenated to the beginning and end of the message of the request to print the electronic bill to generate a character string;

[0058] Calling the MD5 encryption algorithm to encrypt the string, and encoding the encrypted result to obtain an encoded string;

[0059] Converting the encoded string into a signature message, and comparing the signature message with the signature;

[0060] If the comparison is consistent, the step of selecting the corresponding electronic waybill information acquisition interface according to the authorization information and sending the order data, merchant information and signature information to the third-party electronic waybill platform is executed;

[0061] If the comparison is inconsistent, a request error warning will be output.

[0062] Optionally, in a fifth implementation of the second aspect of the present invention, the bill information management device further includes a supplementing module, which is specifically used to:

[0063] According to the merchant ID, query the database of the order management system to obtain the shipping province, shipping city, and shipping detailed address;

[0064] The shipping address of the warehouse is determined according to the shipping province, shipping city and shipping detailed address;

[0065] Call the SDK to generate an interface request of the third electronic waybill platform according to the interface processing method name;

[0066] The output module is specifically used for:

[0067] Determine the corresponding delivery note information acquisition interface according to the interface request, and perform authorization authentication according to the authorization information;

[0068] After the authorization authentication is passed, the order data, merchant information and signature information are sent to the third-party electronic waybill platform through the waybill information acquisition interface, so that the third-party electronic waybill platform can generate an electronic waybill and produce the printing information of the electronic waybill.

[0069] Optionally, in a sixth implementation of the second aspect of the present invention, the recording module is specifically used to:

[0070] Receive the confirmation information fed back by the third-party electronic waybill platform after the signature information is verified, and call the waybill information acquisition interface to read the electronic waybill and large print information generated on the third-party electronic waybill platform, and extract the waybill number therein;

[0071] A printing log is generated according to the waybill number and printing information, and sent to the warehouse management system for storage and recording.

[0072] The third aspect of the present invention provides a waybill information management device, comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected via a line; the at least one processor calls the instructions in the memory so that the waybill information management device executes the above-mentioned waybill information management method.

[0073] The fourth aspect of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is executed on a processor of a computer, the computer executes the above-mentioned waybill information management method.

[0074] In the technical solution provided by the present invention, the authorization information of the third-party electronic waybill platform connected to the warehouse management system is obtained according to the order data and merchant information in the request for printing the electronic waybill sent by the warehouse management system, the waybill information acquisition interface on the third-party electronic waybill platform is called based on the authorization information, and the order data and merchant information are sent based on the waybill information acquisition interface to generate an electronic waybill on the third-party electronic waybill platform and print it. By calling the third-party electronic waybill platform through the authorization information, the connection security between the warehouse and the platform is realized, the data security is guaranteed and the connection between different platforms is facilitated. At the same time, the third-party electronic waybill platform is called through the interface, so that the warehouse management system can realize the lean, refined and accurate management of order printing, which can respond to business needs more quickly.

[0075] Furthermore, the interface of the corresponding platform is called through the merchant ID and interface method name in the request to print the electronic waybill sent by the warehouse management system, which facilitates the warehouse to connect with different electronic waybill platforms separately. There is no need to set up a separate electronic waybill printing service on the warehouse management system, which can reduce a lot of R&D costs. This approach can respond to the business needs of merchants more quickly, thereby realizing the connection with electronic waybill platforms such as Cainiao, JD.com, Pinduoduo, etc. in the current market, and ensuring the normal operation of the electronic waybill business. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 This is a schematic diagram of a first embodiment of a method for managing bill of lading information in an embodiment of the present invention;

[0077] Figure 2 It is a schematic diagram of a second embodiment of the method for managing bill of lading information in an embodiment of the present invention;

[0078] Figure 3 This is a schematic diagram of a third embodiment of the method for managing bill of lading information in an embodiment of the present invention;

[0079] Figure 4 This is a schematic diagram of a fourth embodiment of the method for managing bill of lading information in an embodiment of the present invention;

[0080] Figure 5 It is a sequence diagram of the method for managing the waybill information in an embodiment of the present invention;

[0081] Figure 6 This is a schematic diagram of a fifth embodiment of the method for managing bill of lading information in an embodiment of the present invention;

[0082] Figure 7 This is a schematic diagram of a first embodiment of a device for managing bill information in an embodiment of the present invention;

[0083] Figure 8 This is a schematic diagram of a second embodiment of the device for managing bill information in an embodiment of the present invention;

[0084] Fig. 9 It is a structural schematic diagram of an embodiment of a waybill information management device of the present invention. DETAILED DESCRIPTION

[0085] In response to the way the existing warehouse management system (WMS) handles merchants' requests for printing electronic waybills, the present application proposes a waybill information management method that realizes lean and refined WMS system management and makes the connection between warehouses and electronic waybill platforms more secure. Specifically, the electronic waybill message from the WMS system is parsed and processed to obtain the merchant ID, authorization status, warehouse shipping address and other relevant data corresponding to each order; the data after parsing and processing the message is requested to the interface of the third-party electronic waybill platform, and the order data to be printed is sent to the third-party electronic waybill platform based on the interface to realize the printing of the electronic waybill. Through such an implementation method, the standard protocol for interaction between systems is standardized, abnormal problems between systems are isolated, the security of printing service requests and printing data is improved, and the phenomenon of data interleaving transmission is avoided. At the same time, calling the third-party platform can reduce a large amount of R&D costs, time costs and operating costs for connection between systems, thereby realizing lean and refined WMS system management.

[0086] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0087] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1, which is a flow chart of the waybill information management method provided by the present invention. According to different needs, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method is mainly applied to the order management system OMS. The OMS system is a system with an electronic waybill service function. Each e-commerce platform or merchant can apply to the OMS system to open the electronic waybill service function, and then connect with the third-party electronic waybill platform through the system to realize the printing and processing of the waybill. The electronic waybill generated by the electronic waybill service function of the system can meet the needs of all express companies or logistics companies, and also meet the order needs of merchants. The specific implementation process is as follows:

[0088] 101. Receive a request from a user to print an electronic waybill;

[0089] In this embodiment, the request to print the electronic waybill is a request generated based on the printing instruction issued by the merchant. The request is in the form of a message, and each merchant can access the WMS system through an APP or a web page, and trigger the printing of the electronic waybill by operations on the WMS system. In this regard, before this step, it also includes: the WMS system regularly collects corresponding information from each merchant, the electronic waybill printing system and the warehouse database, and maintains basic relationships based on the collected information, especially the maintenance of authorization information of merchants and third-party electronic waybill platforms.

[0090] In this embodiment, the request to print the electronic waybill includes at least the order information to be printed, the merchant information and the relevant information of the third-party electronic waybill platform requested to be printed. The relevant information includes the authorization information between the merchant and the third-party electronic waybill platform, such as the request interface, and the registration information between the merchant and the WMS system, etc.

[0091] In actual applications, the generation of the request to print an electronic waybill is specifically as follows: first, after receiving the customer's order request, the merchant will generate the corresponding order information based on the order request. Then the merchant arranges the warehouse to ship the goods, and arranging the shipment requires an electronic waybill, which is a paper version of the express delivery note. The backend warehouse will correspond to different shipping platforms, such as JD warehouse, Taobao warehouse, Pinduoduo warehouse, etc. The merchant determines the corresponding shipping address based on the goods in the order, and determines the printing platform of the waybill based on the shipping address. Finally, a request to print an electronic waybill is generated to request the printing platform to print the waybill to realize the shipping process.

[0092] Furthermore, in the process of generating a request to print an electronic waybill, it is necessary to obtain the customer's order information and the information of the shipping merchant who will later determine the shipping address. Then, this information is strung together in accordance with the message generation rules and the request instructions to generate a request message. The request message is then sent to the WMS system, which then forwards it to the order management system OMS for shipment allocation and waybill printing.

[0093] 102. Analyze and process the request for printing the electronic shipping form using the message parsing rules to obtain order data and merchant information;

[0094] In this step, the message parsing rules here are the same as the rules for the merchant to generate a request for printing an electronic waybill. The two are negotiated through the handshake protocol in the communication protocol, and then the two ends share the rules. When the OMS system receives the request message sent by the WMS system, the message parsing rules are called to extract the order data and merchant information from the request message. Specifically, the information carried in the extracted message includes the product, the merchant ID where the product is listed (that is, the merchant ID that generated the order), the authorization information between the OMS system and the WMS system and the merchant, and the warehouse shipping address of the product and other related data

[0095] 103. Obtain the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, and call your signature rule to generate signature information;

[0096] In this step, the authorization information includes the authorization information between the OMS system and the WMS system and the merchant, and the authorization information between the merchant and the third-party electronic waybill platform, and the signature information is generated based on the merchant ID and account information in the authorization information combined with the preset signature rules. The signature information is used for verification processing for the third-party electronic waybill platform when generating the electronic waybill. When the verification is successful, the electronic waybill is generated according to the order data and merchant information, and the electronic waybill and the printing information related to the waybill are returned based on the ID of the waybill information acquisition interface carried in the signature information.

[0097] In actual applications, after obtaining the two authorization information here, the two authorization information are also compared and verified with the authorization information carried in the request message. If the verification passes, step 104 is executed. Otherwise, an alarm signal is issued to remind the merchant that there is an error in the platform for requesting to print the electronic waybill or its connection with the WMS system and OMS system, and it is necessary to re-request printing or check and maintain the connection information between it and the system.

[0098] 104. Select the corresponding electronic waybill information acquisition interface according to the authorization information, and send the order data, merchant information and signature information to the third-party electronic waybill platform;

[0099] In this step, the signature information is used to verify the generation of the electronic waybill by the third-party electronic waybill platform.

[0100] 105. After the signature information is received and verified, the printing information generated when the third-party electronic waybill platform generates the electronic waybill is obtained and stored.

[0101] In this embodiment, the authorization information is compared with the authorization ID corresponding to the merchant information in the third-party electronic waybill platform. After the comparison is consistent, the OMS system establishes a communication connection with the third-party electronic waybill platform, and then sends the order data to be printed and the merchant information to the third-party electronic waybill platform based on the communication connection. The third-party electronic waybill platform compiles the received order data in combination with the merchant information into code, and then sends the compiled code snippet to the server of the third-party electronic waybill platform, and then calls the corresponding waybill information acquisition interface according to the authorization information to receive the code snippet from the server, and controls the lodop plug-in to use the code snippet to control the printer to print the compiled data.

[0102] In this embodiment, after the order data, merchant information, and signature information are sent to the third-party electronic waybill platform, the third-party electronic waybill platform will verify the signature information, generate an electronic waybill after the verification is passed, generate printing information based on the electronic waybill, and return it to the warehouse management system. The warehouse management system receives the printing information of the electronic waybill based on the waybill information acquisition interface based on the received verification information, generates a storage log based on the printing information, and prints the electronic waybill.

[0103] Through the above implementation, the authorization information of the third-party electronic waybill platform connected to the warehouse management system is obtained according to the order data and merchant information in the request for printing the electronic waybill sent by the warehouse management system, and the waybill information acquisition interface on the third-party electronic waybill platform is called based on the authorization information. The order data and merchant information are sent based on the waybill information acquisition interface to generate an electronic waybill on the third-party electronic waybill platform and print it. The third-party electronic waybill platform is called through the authorization information, thereby achieving secure docking between the warehouse and the platform, ensuring data security and facilitating the docking of different platforms.

[0104] In actual applications, the WMS system in the method provided by the present invention is mainly used to connect to electronic waybill platforms such as Cainiao, JD.com, and Pinduoduo. Since the method is used to forward the printing request of the electronic waybill issued by the merchant, after the implementation of this method, the warehouse end does not need to independently develop the printing platform of the electronic waybill, but can be provided by the shipper of the goods, that is, the platform of the goods. Since the warehouse end does not set up the printing service, the data processing volume of the warehouse system is reduced, so that the warehouse end and the merchant can be connected very quickly, which can quickly and stably ensure the rapid operation of the electronic waybill business. In this regard, in addition to the above-mentioned process implementation, the embodiment of the present invention can also be implemented through the following process, such as Figure 2 As shown:

[0105] 201. Receive a request for printing an electronic waybill sent by the warehouse management system;

[0106] In actual applications, the reception of the request to print the electronic waybill can be specifically carried out by monitoring the transmission interface of the WMS system through specific commands in PHP, specifically monitoring the transmission message with request message flag information in the interface. When the flag information is monitored, the corresponding message segment is intercepted to form a request to print the electronic waybill.

[0107] 202. Identify the field name carried in the request for printing the electronic shipping form according to the field information specified in the message parsing rule;

[0108] In this step, the message parsing rules are essentially the definition of the fields in the request message. A message template for an electronic waybill printing request is defined and set. The information of the order and the merchant requested for printing is obtained and filled into the message template to generate a print request. After the OMS system receives the print request, it selects the field information it needs to extract based on the definition of the fields in the message template, and specifically identifies it in the form of field names.

[0109] 203. Extract the authorization information of the third-party electronic waybill platform carried in the request to print the electronic waybill and the merchant ID, warehouse shipping address, receiving address and the name of the interface method to be called in the corresponding order according to the field name;

[0110] In this embodiment, in the process of extracting information from the printing request, the items in the request message that are consistent with their field names are first identified based on the field names, and then the items are marked. The keyword extraction technology is further mobilized to extract the data after the items, thereby obtaining the authorization information of the third-party electronic waybill platform and the merchant ID, warehouse shipping address and delivery address in the corresponding order.

[0111] 204. According to the merchant ID, query the database of the order management system to obtain the shipping province, shipping city, and shipping detailed address;

[0112] In this step, in order to fill in the order data conveniently and quickly, the address information may not be fully filled in, or there may be errors in the filling of the address information. In this case, in order to ensure data consistency, the merchant ID in the request is used to query whether the merchant ID exists in the pre-stored merchant information table in the database. If it exists, the merchant information in the table is read, and the merchant information is compared with the merchant information parsed in the request. If they are inconsistent, the merchant information in the table shall prevail and the merchant information obtained from the request shall be updated.

[0113] In practical applications, it is also possible to directly replace without comparison.

[0114] 205. The warehouse shipping address is determined based on the shipping province, shipping city and shipping detailed address;

[0115] 206. Call the SDK to generate an interface request of the third electronic waybill platform according to the interface processing method name;

[0116] 207. Obtain the authorization information of the corresponding third-party electronic waybill platform according to the merchant information;

[0117] In this step, the merchant information is used to request the third-party electronic waybill platform to return the corresponding authorization information.

[0118] 208. Compare the authorization information in the request for printing the electronic waybill with the authorization information obtained from the third-party electronic waybill platform to obtain a comparison result;

[0119] In this step, if the comparison result is consistent, step 208 is executed, otherwise, an alarm signal is output.

[0120] 209. Determine the corresponding interface for obtaining the bill of lading information according to the interface request, and perform authorization authentication according to the authorization information;

[0121] The authorization information in this step refers to the authorization information carried in the request to print the electronic waybill. The receiving authorization authentication here refers to the authorization authentication when calling the waybill information acquisition interface. Specifically, the state that the receiving should be in is determined according to the authorization information. Then, based on the state, it is queried whether the current state of the waybill information acquisition interface to be called is the state it should be in. If so, it is called and used, and the interface request is sent out.

[0122] 210. After the authorization and authentication is passed, the order data, merchant information and signature information will be sent to the third-party electronic waybill platform through the waybill information acquisition interface.

[0123] In this step, the third-party electronic waybill platform generates an electronic waybill and produces printing information of the electronic waybill.

[0124] 211. After receiving the signature information verification pass information, obtain the printing information generated when the third-party electronic waybill platform generates the electronic waybill and store it.

[0125] In actual application, after the authorization authentication is passed, the OMS will form a message containing order data and merchant data and send it to the server on the third-party electronic waybill platform. Then the third-party electronic waybill platform obtains template data from the server. The template data includes the waybill format and optional fields. The platform renders the template data and generates optional waybill and optional fields.

[0126] Further, the platform responds to the request operation of the OMS system, selects the face sheet to be printed and the field to be printed from the optional face sheets and the optional fields; then extracts the information of the corresponding fields from the message and fills them into the face sheet to be printed, and previews the face sheet to be printed and the printing field;

[0127] Further, the code snippets corresponding to the to-be-printed face sheet and the printing fields are retrieved;

[0128] Furthermore, the lodop plug-in is controlled to compile the code snippet, and the printer is controlled to print the compiled data.

[0129] In summary, through the implementation of the above method, merchants on the sales platform can independently choose the waybills to be printed and the printing platform, and request the corresponding supplier to print and ship the waybills. There is no need to request waybill printing from the warehouse. At the same time, the WMS system only needs to forward the waybills to be printed to the third-party electronic waybill printing platform, which reduces the data processing volume in the warehouse and the maintenance cost between the WMS system and different platforms. At the same time, authorization authentication is performed based on the authorization information between the merchant and the third-party electronic waybill platform. Only after the authentication is passed, the corresponding interface is requested to realize the printing of the electronic waybill. This method not only ensures the security of the connection, but also avoids the cross transmission of waybill data, greatly improving work efficiency.

[0130] In this embodiment, in addition to the above Figure 1 and 2 In addition to the implementation method of electronic bill printing provided in the text, it also includes authorization verification and interface request verification before requesting a third-party electronic bill platform to print an electronic bill. The specific implementation process includes the following steps: Figure 3 As shown:

[0131] 301. Receive a request for printing an electronic waybill sent by the warehouse management system;

[0132] 302. parse and process the request for printing the electronic shipping form using the message parsing rule to obtain order data and merchant information, wherein the merchant information includes application appkey information, interface method name information, and signature information;

[0133] In this step, the specific implementation of the analysis is as follows:

[0134] Identify the field name carried in the request to print the electronic shipping form according to the field information specified in the message parsing rules;

[0135] Call $_REQUEST in PHP and extract the application appkey information, interface method name information and signature information carried in the request to print the electronic waybill according to the field name of the authorization information;

[0136] Check whether the flag bits in the application appkey information, interface method name information, and signature information have values;

[0137] If not, an error warning of electronic waybill request will be output;

[0138] If yes, the corresponding authorization status is determined according to the value of the flag bit.

[0139] 303. Obtain the authorization information of the corresponding third-party electronic waybill platform according to the merchant information;

[0140] This step also includes comparing the authorization information with the authorization information in the request for printing the electronic delivery form. If the comparison is consistent, step 304 is executed. Otherwise, the printing request is terminated or step 312 is executed.

[0141] 304. According to the interface method name information, query the order management system database to see whether there is an interface class name and / or interface processing method name corresponding to the interface method name information;

[0142] In this step, the interface class name and / or interface processing method name both identify the electronic waybill information acquisition interface of the third-party electronic waybill platform; if the interface class name and / or interface processing method name corresponding to the interface method name information exists in the query database, step 305 is executed; if not, a request error warning is output.

[0143] 305. According to the application appkey information, query whether there is an application key corresponding to the application appkey information in the database of the order management system;

[0144] In this step, if the application key exists in the query database, it is determined whether the query result shows that the interface class name, interface processing method name and application key exist in the database of the order management system. If so, step 306 is executed, otherwise a request error warning is output.

[0145] 306. If the interface class name, interface processing method name and application key exist in the database of the order management system, the application key is concatenated to the beginning and end of the message of the request to print the electronic shipping form to generate a character string;

[0146] 307. Call the MD5 encryption algorithm to encrypt the string, and encode the encrypted result to obtain an encoded string;

[0147] 308. Convert the encoded string into a signature message, and compare the signature message with the signature;

[0148] In this step, if the comparison is consistent, step 309 is executed, and if the comparison is inconsistent, a request error warning is output.

[0149] In this embodiment, after comparing the message signature with the signature, the following is further included:

[0150] According to the merchant ID, query the database of the order management system to obtain the shipping province, shipping city, and shipping detailed address;

[0151] The shipping address of the warehouse is determined according to the shipping province, shipping city and shipping detailed address;

[0152] Call the SDK to generate an interface request of the third electronic waybill platform according to the interface processing method name;

[0153] The printing interface on the third-party electronic waybill platform is set to printing status through interface request.

[0154] 309. Select the corresponding electronic waybill information acquisition interface according to the authorization information, and send the order data, merchant information and signature information to the third-party electronic waybill platform;

[0155] This step can be specifically implemented as follows:

[0156] Determine the corresponding delivery note information acquisition interface according to the interface request, and perform authorization authentication according to the authorization information;

[0157] After the authorization authentication is passed, the order data and merchant information are sent to the third-party electronic waybill platform through the waybill information acquisition interface;

[0158] The third-party electronic waybill platform generates an electronic waybill and produces printing information of the electronic waybill.

[0159] 310. After receiving the signature information verification pass information, read the electronic waybill generated on the third-party electronic waybill platform, and extract the waybill number and printing information therein;

[0160] The signature information verification information is a confirmation identification information generated by the third-party electronic waybill platform after the signature information is verified, and returned to the warehouse management system. At the same time, the electronic waybill and the corresponding printing information of the electronic waybill are generated according to the order data and merchant information, and finally the printing information is returned to the warehouse management system through the waybill information acquisition interface.

[0161] 311. Generate a printing log according to the waybill number and printing information, and send it to the warehouse management system for storage and recording;

[0162] 312. Output request error warning.

[0163] In the technical solution provided by the embodiment of the present invention, the electronic waybill message from the WMS system is parsed and processed to obtain relevant data such as the merchant ID, authorization status, warehouse shipping address, etc. corresponding to each order; the data after the message parsing and processing is requested to the interface of the third-party electronic waybill platform, and the order data to be printed is sent to the third-party electronic waybill platform based on the interface to realize the printing of the electronic waybill. Through such an implementation method, the standard protocol for interaction between systems is standardized, abnormal problems between systems are isolated, the security of printing service requests and printing data is improved, and the phenomenon of data interleaving transmission is avoided.

[0164] See also Figure 4 , taking the complete electronic waybill printing system as an example for detailed description, the corresponding relationship between warehouses, cargo owners, platforms, and merchants is specifically defined. Based on this corresponding relationship, when users (i.e. merchants on the sales platform) need to print electronic waybills, the specific implementation steps include:

[0165] 401. The user establishes a communication connection with the WMS system through the APP and sends a request for printing a shipping order to the WMS system;

[0166] Among them, the user fills in the corresponding order information through the APP. The order information is first filled in according to the customer's order data, and then the platform data of the printing request is supplemented according to the goods and merchants in the order data.

[0167] 402. The WMS system forwards the received shipping order printing request to the OMS system;

[0168] In this step, after receiving the face sheet printing request, the WMS system adjusts it according to the message format of the face sheet printing request to the OMS system, and after obtaining the request message in the format recognized by the OMS system, it sends it to the OMS for distribution processing of the face sheet printing.

[0169] 403. The OMS system receives the label printing request, parses and processes it, and obtains the merchant's authorization information and merchant ID;

[0170] In this step, after parsing the bill printing request to obtain the authorization information, it also includes extracting the business processing information such as the interface class name, interface processing method name, etc. of the third-party electronic bill printing platform requested by the bill printing request, and then executing step 404 based on this business processing information.

[0171] 404. The OMS system sends an interface request to the corresponding third-party electronic waybill platform according to the information parsed from the waybill printing request;

[0172] 405. The third-party electronic waybill platform generates and prints the electronic waybill according to the interface request, and returns the printing status and related information of the electronic list;

[0173] 406. The OMS system receives the printing status and related information returned by the third-party electronic waybill platform, and sends it to the WMS system to generate a printing log.

[0174] In this embodiment, when the user needs to query an order, the user can query the request information, printing records, and the waybill number of the generated delivery note recorded in the printing log, etc.

[0175] Through the above steps, the printing of the waybill is realized by forwarding the waybill printing request through the OMS system and the WMS system, and the forwarding needs to be verified with the interface of the third-party electronic waybill platform to realize the forwarding, so that the warehouse and the electronic waybill platform can be connected more safely. Through this design, the warehouse can more conveniently connect with different electronic waybill platforms, realize the lean and refined management of the WMS system, improve the stability of the connection, and ensure the normal operation of the waybill printing service.

[0176] Further, the specific implementation of the method for managing the waybill information provided by the present application is described below by taking the WMS system, OMS system and multiple electronic waybill systems as examples. Figure 5 and 6 As shown:

[0177] 501. Obtain order data and generate an order printing request;

[0178] This step mainly involves the WMS system querying the corresponding order data according to the user's request when receiving the user's waybill printing request, selecting the corresponding merchant according to the order data, and then generating an order printing request and sending it to the OMS system.

[0179] 502. Receive order printing request, and parse and process interface data;

[0180] In this step, after the OMS system receives the order printing request, it parses the request according to the parsing rules of the request and queries the corresponding interface data. The interface data refers to the interface data of the printing interface of the electronic waybill system, such as application appkey, interface method name, signature, etc. In addition, it also includes parsing the corresponding printing data, that is, the business message data.

[0181] In this embodiment, after the parsing of the face-to-face printing request is completed, the following steps are also included:

[0182] Receive the parameters in the WMS system request through $_REQUEST in PHP, and then check whether the required parameters, such as application appkey, interface method name, signature, business message data, etc., have values. If there is no value, an error is thrown;

[0183] Query the system database according to the interface method name to obtain the interface class name, interface processing method name and other business processing information corresponding to the interface. If it does not exist, an error is thrown;

[0184] Query the system database based on the application appkey to determine whether the appkey exists. If it does, obtain the corresponding application key to facilitate the subsequent signature generation and signature verification in the request parameters. If it does not exist, an error is thrown;

[0185] The application key is concatenated at the beginning and end of the business message to generate a string, which is then encrypted using MD5. The encrypted result is encoded using base64. Finally, the encoded string is converted to uppercase to obtain a signature, which is compared with the signature in the request parameter. If the two values ​​are consistent, the signature verification passes, otherwise an error is thrown;

[0186] According to the cargo owner code, platform code, warehouse code, and store name, query the system data table to obtain the corresponding merchant ID;

[0187] Get the authorization information access_token based on the merchant ID and platform code.

[0188] 503. Complete the parsed data;

[0189] In this embodiment, the system database is queried based on the merchant ID, warehouse code, and courier code to obtain shipping information such as the shipping province, shipping city, and detailed shipping address. The parsed data is completed based on the shipping information to obtain complete data for the shipping label printing request.

[0190] 504. Verify the order printing request;

[0191] In this step, the verification is mainly to verify the authorization status of the merchant ID. First, the corresponding authorization data is requested from the database or the electronic waybill system through the merchant ID, and the authorization data is compared with the data parsed from the waybill printing request. If the comparison result is consistent, step 505 is executed, otherwise step 506 is executed.

[0192] 505. If the verification is successful, request the electronic waybill system to generate the electronic waybill data, print it, and output the waybill number and printing information.

[0193] Specifically, the authorization information is compared with the authorization ID corresponding to the merchant information in the third-party electronic waybill platform. After the comparison is consistent, the OMS system establishes a communication connection with the third-party electronic waybill platform, and then sends the order data to be printed and the merchant information to the third-party electronic waybill platform based on the communication connection. The third-party electronic waybill platform compiles the received order data in combination with the merchant information into code, and then sends the compiled code snippet to the server of the third-party electronic waybill platform, and then calls the corresponding waybill information acquisition interface according to the authorization information to receive the code snippet from the server, and controls the lodop plug-in to use the code snippet to control the printer to print the compiled data.

[0194] 506. The merchant performs re-authorization processing;

[0195] 507. Receive the waybill number and printing information to generate a printing log, and return it to the WMS system;

[0196] 508. The WMS system stores and prints logs.

[0197] In this embodiment, after completing the parsed data, it encapsulates the request parameters, calls the SDK, and requests the electronic waybill system to print the waybill; and records the request and return logs for problem tracing and data viewing; and returns the data returned by the electronic waybill system and the merchant ID to the WMS system;

[0198] Based on this, the present invention realizes lean and refined WMS system management, making the docking between warehouses and electronic waybill platforms safer. Through this design, warehouses can more conveniently dock with different electronic waybill platforms, reduce a lot of R&D costs, and respond to business needs more quickly. At present, the docking of electronic waybill platforms such as Cainiao, JD.com, and Pinduoduo has been realized, and it has experienced the test of Double 11 and Double 12, ensuring the normal operation of electronic waybill business.

[0199] The above describes the method for managing the information of the waybill in the embodiment of the present invention. The following describes the device for managing the information of the waybill in the embodiment of the present invention. Figure 7, an implementation of a bill information management device in an embodiment of the present invention, the device includes: a request module 701, a parsing module 702, an acquisition module 703 and an output module 704, wherein:

[0200] Request module 701, used to receive a request for printing an electronic bill sent by a user;

[0201] The parsing module 702 is used to parse the request for printing the electronic shipping form using message parsing rules to obtain order data and merchant information;

[0202] The acquisition module 703 is used to obtain the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, and call the corresponding signature rule to generate signature information;

[0203] Output module 704, used to select a corresponding electronic waybill information acquisition interface according to the authorization information, and send the order data, merchant information and signature information to the third-party electronic waybill platform;

[0204] The recording module 705 is used to obtain and store the printing information generated when the third-party electronic waybill platform generates the electronic waybill after receiving the signature information verification pass information.

[0205] The above-mentioned device standardizes the standard protocol for interaction between systems, reducing the R&D cost, time cost and operation cost of docking between a large number of systems. Specifically, the authorization information of the third-party electronic waybill platform connected to it is obtained according to the order data and merchant information in the request for printing the electronic waybill sent by the warehouse management system, and the waybill information acquisition interface on the third-party electronic waybill platform is called based on the authorization information, and the order data and merchant information are sent based on the waybill information acquisition interface to generate an electronic waybill on the third-party electronic waybill platform and print it. The third-party electronic waybill platform is called through the authorization information, which realizes the docking security between the warehouse and the platform, ensures the security of data and facilitates the docking of different platforms. At the same time, the third-party electronic waybill platform is called through the interface to realize the lean, refined and precise management of order printing by the warehouse management system.

[0206] Since the contents of the embodiment are the same as those of the above-mentioned method for managing the shipping document information of the present invention, the present embodiment will not elaborate on the contents of the embodiment of the device for managing the shipping document information.

[0207] See also Figure 8 Another implementation of the device for managing the bill of lading information in the embodiment of the present invention includes:

[0208] Request module 701, used to receive a request for printing an electronic bill sent by a user;

[0209] The parsing module 702 is used to parse the request for printing the electronic shipping form using message parsing rules to obtain order data and merchant information;

[0210] The acquisition module 703 is used to obtain the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, and call the corresponding signature rule to generate signature information;

[0211] Output module 704, used to select a corresponding electronic waybill information acquisition interface according to the authorization information, and send the order data, merchant information and signature information to the third-party electronic waybill platform;

[0212] The recording module 705 is used to obtain and store the printing information generated when the third-party electronic waybill platform generates the electronic waybill after receiving the signature information verification pass information.

[0213] In this embodiment, the parsing module 702 includes:

[0214] The identification unit 7021 is used to identify the field name carried in the request for printing the electronic bill according to the field information specified in the message parsing rule;

[0215] The extraction unit 7022 is used to extract the authorization information of the third-party electronic waybill platform carried in the request to print the electronic waybill and the merchant ID, warehouse shipping address and delivery address in the corresponding order according to the field name.

[0216] In this embodiment, the extraction unit 7022 is specifically used for:

[0217] Call $_REQUEST in PHP to extract the application appkey information, interface method name information and signature information carried in the request to print the electronic bill according to the field name of the authorization information;

[0218] Respectively check whether the flag bits in the application appkey information, interface method name information and signature information have values;

[0219] If not, an error warning of electronic waybill request will be output;

[0220] If yes, the corresponding authorization status is determined according to the value of the flag bit.

[0221] In this embodiment, the bill information management device further includes:

[0222] The first query module 706 is used to query, based on the interface method name information, whether there is an interface class name and / or interface processing method name corresponding to the interface method name information in the database of the order management system, wherein the interface class name and / or interface processing method name are both the waybill information acquisition interface identifying the third-party electronic waybill platform;

[0223] A first warning module 707, configured to output a request error warning when the first query module 706 queries that there is no interface class name and / or interface processing method name corresponding to the interface method name information;

[0224] The second query module 708 is used to query whether there is an application key corresponding to the application appkey information in the database of the order management system according to the application appkey information;

[0225] The second warning module 709 is configured to output a request error warning when the second query module 708 queries that there is no application key corresponding to the application appkey information.

[0226] In this embodiment, the bill information management device further includes a signature module 710, which is specifically used to:

[0227] The application key is concatenated to the beginning and end of the message of the request to print the electronic bill to generate a character string;

[0228] Calling the MD5 encryption algorithm to encrypt the string, and encoding the encrypted result to obtain an encoded string;

[0229] Converting the encoded string into a signature message, and comparing the signature message with the signature;

[0230] If the comparison is consistent, the step of selecting the corresponding electronic waybill information acquisition interface according to the authorization information and sending the order data, merchant information and signature information to the third-party electronic waybill platform is executed;

[0231] If the comparison is inconsistent, a request error warning will be output.

[0232] In this embodiment, the bill information management device further includes a supplement module 711, which is specifically used to:

[0233] According to the merchant ID, query the database of the order management system to obtain the shipping province, shipping city, and shipping detailed address;

[0234] The shipping address of the warehouse is determined according to the shipping province, shipping city and shipping detailed address;

[0235] Call the SDK to generate an interface request of the third electronic waybill platform according to the interface processing method name;

[0236] The output module 704 is specifically used for:

[0237] Determine the corresponding delivery note information acquisition interface according to the interface request, and perform authorization authentication according to the authorization information;

[0238] After the authorization authentication is passed, the order data, merchant information and signature information are sent to the third-party electronic waybill platform through the waybill information acquisition interface, so that the third-party electronic waybill platform can generate an electronic waybill and produce the printing information of the electronic waybill.

[0239] In this embodiment, the bill information management device further includes a recording module 705, which is specifically used to:

[0240] Receive the confirmation information fed back by the third-party electronic waybill platform after the signature information is verified, and call the waybill information acquisition interface to read the electronic waybill and large print information generated on the third-party electronic waybill platform, and extract the waybill number therein;

[0241] A printing log is generated according to the waybill number and printing information, and sent to the warehouse management system for storage and recording.

[0242] Through the implementation of the above-mentioned device, the electronic waybill message from the WMS system is parsed and processed to obtain the merchant ID, authorization status, warehouse shipping address and other relevant data corresponding to each order; the data after parsing and processing the message is requested to the interface of the third-party electronic waybill platform, and the order data to be printed is sent to the third-party electronic waybill platform based on the interface to realize the printing of the electronic waybill, thereby realizing the lean and refined management of the WMS system and making the connection between the warehouse and the electronic waybill platform safer.

[0243] above Figure 7-8 The waybill information management device in the embodiment of the present invention is described in detail from the perspective of modular functional entities, and the waybill information management device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0244] Fig. 9It is a structural diagram of an embodiment of a bill of lading information management device of the present invention. The bill of lading information management device 900 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 910 (for example, one or more processors) and a memory 920, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 933 or data 932. Among them, the memory 920 and the storage medium 9030 can be short-term storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the bill of lading information management device 900. Furthermore, the processor 910 can be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the bill of lading information management device 900 to implement the steps of the bill of lading information management method provided by the above-mentioned embodiments.

[0245] The bill information management device 900 may also include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input and output interfaces 960, and / or one or more operating systems 931, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Fig. 9 The structure of the waybill information management device shown does not constitute a limitation on the waybill information management device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0246] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. A computer program (i.e., instructions) is stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for managing the delivery note information. Optionally, the computer program is executed by a processor on the computer.

[0247] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0248] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0249] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for managing delivery order information, applied to an order management system, characterized in that: The method for managing the waybill information comprises: Receive the request for printing electronic waybills sent by the warehouse management system; The request for printing the electronic shipping form is parsed using message parsing rules to obtain order data and merchant information; Obtain the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, and call the corresponding signature rule to generate signature information; Select a corresponding waybill information acquisition interface according to the authorization information, and send the order data, merchant information and signature information to the third-party electronic waybill platform, wherein the signature information is used to verify the generation of the electronic waybill by the third-party electronic waybill platform; After receiving the signature information verification pass information, the printing information generated when the third-party electronic waybill platform generates the electronic waybill is obtained and stored.

2. The method for managing the waybill information according to claim 1, characterized in that: The method of parsing the printed form request using the message parsing rule to obtain the order data and merchant information includes: Identify the field name carried in the request to print the electronic shipping form according to the field information specified in the message parsing rule; The authorization information of the third-party electronic waybill platform carried in the request to print the electronic waybill and the merchant ID, warehouse shipping address and delivery address in the corresponding order are extracted according to the field name.

3. The method for managing the waybill information according to claim 2, characterized in that: The step of extracting the authorization information of the third-party electronic waybill platform carried in the request to print the electronic waybill according to the field name includes: Call $_REQUEST in PHP to extract the application appkey information, interface method name information and signature information carried in the request to print the electronic bill according to the field name of the authorization information; Respectively check whether the flag bits in the application appkey information, interface method name information and signature information have values; If not, an error warning of electronic waybill request will be output; If yes, the corresponding authorization status is determined according to the value of the flag bit.

4. The method for managing the waybill information according to claim 3, characterized in that: After obtaining the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, the method further includes: According to the interface method name information, query whether there is an interface class name and / or interface processing method name corresponding to the interface method name information in the database of the order management system; if not, output a request error warning, wherein the interface class name and / or interface processing method name both identify the waybill information acquisition interface of the third-party electronic waybill platform; According to the application appkey information, query whether there is an application key corresponding to the application appkey information in the database of the order management system; if not, output a request error warning.

5. The method for managing the waybill information according to claim 4, characterized in that: If the interface class name, interface processing method name and application key all exist in the database of the order management system, before selecting the corresponding bill information acquisition interface according to the authorization information and sending the order data, merchant information and signature information to the third-party electronic bill platform, the method further includes: The application key is concatenated to the beginning and end of the message of the request to print the electronic bill to generate a character string; Calling the MD5 encryption algorithm to encrypt the string, and encoding the encrypted result to obtain an encoded string; Converting the encoded string into a signature message, and comparing the signature message with the signature; If the comparison is consistent, the corresponding delivery order information acquisition interface is selected according to the authorization information, and the order data, merchant information and signature information are sent to the third-party electronic delivery order platform for delivery order steps; If the comparison is inconsistent, a request error warning will be output.

6. The method for managing the waybill information according to claim 5, characterized in that: After obtaining the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, the method further includes: According to the merchant ID, query the database of the order management system to obtain the shipping province, shipping city, and shipping detailed address; The shipping address of the warehouse is determined according to the shipping province, shipping city and shipping detailed address; Call the SDK to generate an interface request of the third electronic waybill platform according to the interface processing method name; The selecting a corresponding electronic bill information acquisition interface according to the authorization information and sending the order data, merchant information and signature information to the third-party electronic bill platform comprises: Determine the corresponding delivery note information acquisition interface according to the interface request, and perform authorization authentication according to the authorization information; After the authorization authentication is passed, the order data, merchant information and signature information are sent to the third-party electronic waybill platform through the waybill information acquisition interface, so that the third-party electronic waybill platform can generate an electronic waybill and produce the printing information of the electronic waybill.

7. The method for managing the waybill information according to any one of claims 1 to 5, characterized in that: After receiving the signature information verification pass information, obtaining the printing information generated when the third-party electronic waybill platform generates the electronic waybill and storing it includes: Receive the confirmation information fed back by the third-party electronic waybill platform after the signature information is verified, and call the waybill information acquisition interface to read the electronic waybill and large print information generated on the third-party electronic waybill platform, and extract the waybill number therein; A printing log is generated according to the waybill number and printing information, and sent to the warehouse management system for storage and recording.

8. A bill of lading information management device, characterized in that: The bill of lading information management device comprises: A request module, used to receive a request for printing an electronic waybill sent by the warehouse management system; A parsing module, used to parse the request for printing the electronic waybill using message parsing rules to obtain order data and merchant information; An acquisition module, used to acquire the authorization information of the corresponding third-party electronic waybill platform according to the merchant information, and call the corresponding signature rule to generate signature information; An output module, used to select a corresponding electronic waybill information acquisition interface according to the authorization information, and send the order data, merchant information and signature information to the third-party electronic waybill platform; The recording module is used to obtain and store the printing information generated when the third-party electronic waybill platform generates the electronic waybill after receiving the signature information verification pass information.

9. A waybill information management device, characterized in that: The bill information management device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory so that the waybill information management device executes the waybill information management method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for managing label information as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method for rapidly establishing enterprise electronic order sheet system based on information extraction system

    CN106228329A

  • System and method used for express sheet modification of express industry

    CN107169833A