Express sheet information acquisition method and device, server and storage medium
By constructing a mapping table of file addresses and storage addresses, the page list information is directly obtained in the storage address, which solves the problem of low efficiency in obtaining page list information in the prior art, and realizes the rapid acquisition of page list information.
Patent Information
- Application Number
- CN202410101909.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-24
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, the acquisition efficiency of the page order information is low, especially when processing a large amount of page order information is slow.
By building a mapping table of file addresses and storage addresses, the page order information is directly obtained in the storage address, avoiding real-time processing of original page order data and achieving rapid acquisition.
It improves the efficiency of obtaining page order information and realizes the accurate and fast acquisition of page order information.
Smart Images

Figure CN120373981A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of logistics technology, and in particular, to a method, apparatus, server, and storage medium for obtaining waybill information. Background Art
[0002] With the continuous prevalence of e-commerce, more and more users choose to shop online to meet their daily needs for items. After a user places an order on a shopping platform, they often need to obtain the waybill information corresponding to the order. Therefore, the rapid acquisition of waybill information is particularly important.
[0003] In the prior art, when obtaining waybill information, the server needs to complete steps such as order parameter verification, order logic processing, placing an order with a logistics service provider, processing the waybill, converting the waybill, uploading the waybill, and generating a link address before obtaining the corresponding waybill information.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following technical problems in the prior art:
[0005] The efficiency of obtaining waybill information is relatively low. Summary of the Invention
[0006] The present invention provides a method, apparatus, server, and storage medium for obtaining waybill information to achieve the rapid acquisition of waybills, thereby improving the efficiency of waybill acquisition.
[0007] In a first aspect, an embodiment of the present invention provides a method for obtaining waybill information, including:
[0008] After receiving a waybill acquisition request, determining a storage address corresponding to the file address included in the waybill acquisition request in a mapping table of file addresses and storage addresses;
[0009] Obtaining waybill information corresponding to the waybill acquisition request based on the storage address, and sending the waybill information to an access device, where the access device is determined by the device identifier included in the waybill acquisition request.
[0010] In a second aspect, an embodiment of the present invention further provides an apparatus for obtaining waybill information, the apparatus including:
[0011] A determination module, configured to determine a storage address corresponding to the file address included in the waybill acquisition request in a mapping table of file addresses and storage addresses after receiving the waybill acquisition request;
[0012] An acquisition module, configured to obtain waybill information corresponding to the waybill acquisition request based on the storage address, and send the waybill information to an access device, where the access device is determined by the device identifier included in the waybill acquisition request.
[0013] In a third aspect, an embodiment of the present invention further provides a server, including:
[0014] One or more processors;
[0015] A storage device for storing one or more programs,
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for obtaining waybill information according to any one of the first aspect.
[0017] In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, and the computer-executable instructions thereon are used to execute the method for obtaining waybill information according to any one of the first aspect when executed by a computer processor.
[0018] The embodiments in the above invention have the following advantages or beneficial effects:
[0019] The method for obtaining waybill information provided by the embodiment of the present invention includes: after receiving a waybill acquisition request, determining the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file address and storage address; obtaining the waybill information corresponding to the waybill acquisition request based on the storage address, and sending the waybill information to the access device. In the above technical solution, after receiving the waybill acquisition request, the corresponding storage address can be determined in the mapping table of file address and storage address according to the file address included in the waybill acquisition request, and then the waybill information corresponding to the waybill acquisition request can be obtained based on the storage address. Since the storage address stores the waybill information corresponding to the originally determined original waybill data, therefore, the waybill information corresponding to the waybill acquisition request including the file address corresponding to the original waybill data can be directly obtained from the storage address, solving the problem in the prior art that the original waybill data needs to be processed in real time to determine the waybill information, realizing the rapid acquisition of the waybill information corresponding to the waybill acquisition request, and improving the acquisition efficiency of the waybill information. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic flowchart of a method for obtaining waybill information provided by an embodiment of the present invention;
[0021] Figure 2 It is an example diagram of a system for obtaining waybill information in the prior art;
[0022] Figure 3 It is another schematic flowchart of a method for obtaining waybill information provided by an embodiment of the present invention;
[0023] Figure 4 It is an example diagram of a system for obtaining waybill information provided by an embodiment of the present invention;
[0024] Figure 5 Schematic structural diagram of an apparatus for obtaining waybill information provided by an embodiment of the present invention;
[0025] Figure 6 Schematic structural diagram of a server provided by an embodiment of the present invention. Detailed implementation manners
[0026] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of description, only parts related to the present invention are shown in the drawings rather than all structures.
[0027] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operations are completed, but it can also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc. In addition, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.
[0028] Figure 1 Schematic flow diagram of a method for obtaining waybill information provided by an embodiment of the present invention. The embodiments of the present invention are applicable to the situation of quickly obtaining waybill information. This method can be executed by a waybill obtaining apparatus, and the apparatus can be implemented in a software and / or hardware manner.
[0029] For ease of understanding, first, how users obtain waybill information in the prior art will be introduced below. Figure 2 Example diagram of a waybill information obtaining system in the prior art, as Figure 2 shown, the waybill information obtaining system includes an access device, a logistics scheduling system, a logistics service system, and an object storage server. Among them, the access device can be a user terminal or any system capable of generating an order, such as an order receiving system; the logistics scheduling system can be a third-party logistics (3PL); the logistics service system can be the logistics service system of each logistics carrier; the object storage server can be a storage server, for example, it can be an object storage service (OSS).
[0030] In the prior art, after a user places an order on a shopping platform, the access device sends the generated order to the logistics scheduling system. The logistics scheduling system can synchronously send the order to the logistics service system according to the order parameters and the order receiving logic. After the logistics service system receives the order, it can generate the original waybill data based on the order and can also send the original waybill data to the logistics scheduling system. The logistics scheduling system can process the original waybill data. Specifically, it can perform processing on the original waybill data for processed waybills and conversion of waybills to obtain the waybill information corresponding to the original waybill data. It can also upload the waybill information corresponding to the original waybill data to the object storage server, and then can obtain the link address of the waybill information corresponding to the original waybill data in the object storage server. After the logistics scheduling system obtains the link address of the waybill information corresponding to the original waybill data in the object storage server, it can send the link address of the waybill information corresponding to the original waybill data to the access device. At this time, the user can obtain the waybill information corresponding to the original waybill data based on this link address.
[0031] In the method for obtaining waybill information in the prior art, the logistics scheduling system needs to complete order parameter verification, order logic processing, placing an order with the logistics service system, processing waybills, converting waybills, uploading waybills, and generating link addresses. Moreover, when the quantity of waybill information to be obtained is large, the logistics scheduling system needs to perform synchronous processing or sorting processing on the waybill information, resulting in a slow speed and low efficiency for obtaining waybill information.
[0032] Therefore, the present invention proposes a method for obtaining waybill information to achieve fast acquisition of waybill information and improve the acquisition efficiency of waybill information.
[0033] As Figure 1 shown, the method specifically includes the following steps:
[0034] S101. After receiving a waybill acquisition request, determine the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses.
[0035] Among them, the waybill acquisition request can be sent by the access device and transmitted to the server via the logistics scheduling system. The file address is the file link address, which is used to indicate the file link address corresponding to the original waybill data. The storage address is the address where the waybill information corresponding to the original waybill data is stored in the object storage server, which is used to indicate the storage location of the waybill information corresponding to the original waybill data.
[0036] Specifically, after the access device receives an item acquisition task, it can send the item acquisition task to the logistics scheduling system. The logistics scheduling system can call the logistics service system to generate the original waybill data corresponding to the item acquisition task and can also send the original waybill data corresponding to the item acquisition task to the server.
[0037] Exemplarily, after the user clicks on the waybill acquisition control displayed on the user terminal, the user terminal can send a waybill acquisition request to the server via the logistics scheduling system. The third-party system can also send a waybill acquisition request to the server via the logistics scheduling system based on its operation requirements. Therefore, the server can receive the waybill acquisition requests sent by access devices such as the user terminal or the third-party system.
[0038] After determining the original waybill data corresponding to the item acquisition task, the server can uniquely generate the signature information corresponding to the original waybill data. Furthermore, the server can generate the file address corresponding to the original waybill data based on the signature information, waybill information, expiration time, etc. corresponding to the original waybill data.
[0039] After determining the original waybill data corresponding to the item acquisition task, the server can also perform processing and conversion on the original waybill data, obtain the waybill information corresponding to the original waybill data, and then store the waybill information corresponding to the original waybill data in the object storage server, that is, determine the storage address of the waybill information corresponding to the original waybill data in the object storage server.
[0040] Of course, after determining the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data, a mapping table of the file address and the storage address can be constructed.
[0041] Therefore, after receiving the waybill acquisition request, the server can search in the mapping table of the file address and the storage address based on the file address included in the waybill acquisition request to obtain the storage address corresponding to the file address included in the waybill acquisition request.
[0042] Exemplarily, after the user triggers an item acquisition task based on three items in the shopping application installed on the user terminal, the user terminal can send the item acquisition task to the 3PL system. The 3PL system can call the logistics service system, and the logistics service system can generate three original waybill data A, B, and C corresponding to the three item acquisition tasks, and send these three original waybill data to the 3PL system. After receiving the three original waybill data A, B, and C, the 3PL system can send the three original waybill data A, B, and C to the server. The server can generate a uniquely corresponding signature information based on the original waybill data A, and then can generate a file address A* corresponding to the original waybill data A based on the signature information, waybill information, expiration time, etc. corresponding to the original waybill data A. Similarly, file addresses B* and C* corresponding to the original waybill data B and C can also be generated. The server can also perform processing and conversion on the original waybill data A, B, and C respectively to obtain waybill information corresponding to the original waybill data A, B, and C, and store the waybill information corresponding to the original waybill data A, B, and C in the OSS system to obtain the storage addresses A # 、B # and C # 。
[0043] In addition, a mapping table of file addresses and storage addresses can also be determined according to A*, B*, C* and A # 、B # 、C # When the user needs to obtain the waybill information corresponding to the original waybill data, the storage address of the waybill information corresponding to the original waybill data can be determined according to the file address of the original waybill data included in the waybill acquisition request in the mapping table of file addresses and storage addresses.
[0044] In the embodiment of the present invention, after receiving the waybill acquisition request, the storage address corresponding to the file address included in the waybill acquisition request can be determined in the mapping table of file addresses and storage addresses constructed in advance according to the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data. The file address included in the waybill acquisition request is the file address of the original waybill data. Therefore, it is realized to determine the storage address of the waybill information corresponding to the original waybill data according to the file address of the original waybill data.
[0045] S102. Obtain the waybill information corresponding to the waybill acquisition request based on the storage address, and send the waybill information to the access device.
[0046] Wherein, the access device is determined by the device identifier included in the waybill acquisition request.
[0047] Specifically, after the server determines the storage address of the waybill information corresponding to the original waybill data based on the file address of the original waybill data in the mapping table of file addresses and storage addresses, it can obtain the waybill information corresponding to the waybill acquisition request according to the storage address. After obtaining the corresponding waybill information, the waybill information can be sent to the access device that triggers the waybill acquisition request, that is, the waybill information can be sent to the access device corresponding to the device identifier included in the waybill acquisition request, so that the access device can quickly obtain the waybill information.
[0048] In the embodiment of the present invention, the waybill information corresponding to the waybill acquisition request is obtained based on the storage address to achieve the quick acquisition of the waybill information, improving the efficiency of waybill information acquisition. Moreover, after obtaining the waybill information, the waybill information is sent to the access device that triggers the waybill acquisition request, enabling the access device to accurately and quickly obtain the waybill information.
[0049] The method for obtaining waybill information provided by the embodiment of the present invention includes: after receiving a waybill acquisition request sent via a logistics scheduling system, determining the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses; obtaining the waybill information corresponding to the waybill acquisition request based on the storage address, and sending the waybill information to an access device. In the above technical solution, after receiving the waybill acquisition request, the corresponding storage address is determined in the mapping table of file addresses and storage addresses according to the file address included in the waybill acquisition request, and then the waybill information corresponding to the waybill acquisition request can be obtained based on the storage address. Since the storage address stores the waybill information corresponding to the pre-determined original waybill data, the waybill information corresponding to the waybill acquisition request including the file address corresponding to the original waybill data can be directly obtained from the storage address, solving the problem in the prior art that the original waybill data needs to be processed in real time to determine the waybill information, and achieving the quick acquisition of the waybill information corresponding to the waybill acquisition request and improving the waybill acquisition efficiency.
[0050] Figure 3Another flowchart of the method for obtaining waybill information provided by the embodiments of the present invention. The embodiments of the present invention are applicable to the situation where waybill information needs to be obtained quickly. On the basis of the above embodiments, before determining the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses, the following steps are added: "Determine the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data in the object storage service; establish a mapping table of file addresses and storage addresses according to the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data in the object storage service." After obtaining the waybill corresponding to the waybill acquisition request based on the storage address, the following step is added: "Send the waybill information to the access device." After determining the file address corresponding to the original waybill data, the following step is added: "Correspondingly store the original waybill data and the file address corresponding to the original waybill data in the local storage server." After receiving the waybill acquisition request, the following steps are added: "In the case where it is determined that the file address included in the waybill acquisition request does not exist in the mapping table of file addresses and storage addresses, determine the original waybill data corresponding to the file address included in the waybill acquisition request in the local storage server; after converting the original waybill data corresponding to the file address included in the waybill acquisition request into waybill information, determine the waybill information obtained by converting the original waybill data corresponding to the file address included in the waybill acquisition request as the waybill corresponding to the waybill acquisition request." The explanations of the same or corresponding terms in the above embodiments are not repeated here.
[0051] For ease of understanding, the system applied in the present invention will be introduced first below. Figure 4 An example diagram of the system for obtaining waybill information provided by the embodiments of the present invention. As Figure 4 shown, the system for obtaining waybill information may include an access device, a logistics scheduling system, a server, a logistics service system, a processing system, an object storage server, and a local storage server. After a user places an order on the shopping platform, the access device can send the generated order to the logistics scheduling system. The logistics scheduling system can synchronously send the order to the logistics service system according to the order parameters and the order receiving logic. The logistics service system distributes the order data to different logistics service carriers for order receiving. After completing the order receiving, the logistics service system can generate the original waybill data according to the order and send the original waybill data to the logistics scheduling system. The logistics scheduling system then sends the original waybill data to the server, and the server performs subsequent operations. In actual situations, the logistics scheduling system in this system is the 3PL system, and the server can assist the logistics scheduling system in performing subsequent operations.
[0052] After receiving the original waybill data, the server can save the original waybill data to the local storage server and send a processing task to the processing system, that is, send the original waybill data to the processing system. Through the operations of "processing base64" and "converting waybill", the waybill information corresponding to the original waybill data is obtained. After obtaining the waybill information corresponding to the original waybill data, store it in the object storage server to obtain the storage address of the waybill information corresponding to the original waybill data in the object storage service. At the same time, a mapping table of the file address and the storage address can be established according to the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data.
[0053] After the server receives the waybill acquisition request, it can query whether the file address included in the waybill acquisition request exists in the mapping table of the file address and the storage address. If the file address exists, the storage address corresponding to the file address included in the waybill acquisition request can be obtained from the mapping table, and the object storage server can be accessed based on the storage address to obtain the waybill information corresponding to the waybill acquisition request in the object storage server, and the waybill information is sent to the access device. If the file address does not exist, the original waybill data corresponding to the file address included in the waybill acquisition request can be determined in the local server, the original waybill data is processed and converted into waybill information, and the converted waybill information is sent to the access device.
[0054] The specific steps are not elaborated here too much. Please refer to the following method steps.
[0055] Continue to refer to Figure 3 , the method for obtaining waybill information provided by the embodiment of the present invention includes:
[0056] S301. Determine the signature information corresponding to the original waybill data, and determine the file address corresponding to the original waybill data according to the signature information, waybill information, and expiration time corresponding to the original waybill data.
[0057] Among them, the signature information is the unique identification information corresponding to the original waybill data. The waybill information is the relevant information of the waybill, including but not limited to the generation time of the waybill, the item information, or the waybill number, etc. The expiration time is the time when the original waybill data expires. The file address is determined by the signature information, the waybill information, and the expiration time corresponding to the original waybill data. Exemplarily, the file address format can be: http: / / file-center.xjp.jd.com / file?orderId=DT123456782100&sign=37483&expire=1593342400. Among them, "file?orderId=DT123456782100" is the expiration time, "sign=37483" is the signature information, and "expire=1593342400" is the waybill information.
[0058] Specifically, after the user places an order based on the shopping application installed on the user terminal, the file address corresponding to the original waybill data can be determined.
[0059] Exemplarily, after receiving the item acquisition task, the access device can send the item acquisition task to the 3PL system. The 3PL system can call the logistics service system to generate the original waybill data corresponding to the item acquisition task, and send the original waybill data corresponding to the item acquisition task to the server. After receiving the original waybill data corresponding to the item acquisition task, the server can uniquely generate the signature information corresponding to the original waybill data. Furthermore, the file address corresponding to the original waybill data can be generated according to the signature information, the waybill information, and the expiration time corresponding to the original waybill data.
[0060] In the embodiment of the present invention, the file address corresponding to the original waybill data is generated according to the signature information, the waybill information, the expiration time, etc. corresponding to the original waybill data, so as to allocate a file address for each original waybill data.
[0061] S302. Store the original waybill data and the file address corresponding to the original waybill data in the local storage server in a corresponding manner.
[0062] Specifically, after obtaining the file address corresponding to the original waybill data, the server can store the original waybill data and the file address corresponding to the original waybill data in the local storage server to store the original waybill data based on the local storage server. Exemplarily, the original waybill data is S, and the file address corresponding to the original waybill data is S*; then S and S* are stored in the local storage server together.
[0063] In an embodiment of the present invention, the original waybill data and the file address corresponding to the original waybill data are stored in a local storage server correspondingly, so as to directly obtain the original waybill data corresponding to the file address through the local storage server subsequently, and realize the local acquisition of the original waybill data.
[0064] S303. Process and convert the original waybill data to obtain the waybill information corresponding to the original waybill data.
[0065] Among them, the processing refers to encoding and decoding the original waybill data, and the conversion processing refers to format conversion processing of the waybill data after encoding and decoding.
[0066] Specifically, after obtaining the original waybill data, the original waybill data can be encoded and decoded, and then the format of the encoded and decoded waybill data can be converted to obtain the waybill information corresponding to the original waybill data.
[0067] In an embodiment of the present invention, after obtaining the original waybill data, by processing and converting the original waybill data, the waybill information corresponding to the original waybill data can be obtained, realizing the pre-processing of the original waybill data and obtaining the waybill corresponding to the original waybill data.
[0068] S304. Upload the waybill information corresponding to the original waybill data to an object storage server to obtain the storage address of the waybill information corresponding to the original waybill data in the object storage service.
[0069] Among them, the object storage server is a non-local storage server, that is, a third-party storage server. In this embodiment, the object storage server can be OSS.
[0070] Specifically, after processing and converting the original waybill data, the waybill information corresponding to the original waybill data can be obtained, and then the waybill information corresponding to the original waybill data can be uploaded to the object storage server, and the storage address of the waybill information corresponding to the original waybill data in the object storage service can be obtained.
[0071] In an embodiment of the present invention, after processing the original waybill data to obtain the waybill information corresponding to the original waybill data, saving the waybill information corresponding to the original waybill data in the object storage server can obtain the storage address of the waybill information corresponding to the original waybill data in the object storage server. When the user needs to obtain the waybill information corresponding to the original waybill data, there is no need to process and convert the original waybill data in real time, and the waybill information corresponding to the original waybill data can be directly obtained from the object storage server through the storage address, which is convenient for realizing the quick acquisition of the waybill information.
[0072] S305. Establish a mapping table between the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data in the object storage service.
[0073] Specifically, when determining the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data in the object storage service, a mapping table between the file address and the storage address can be established according to the file address and the storage address.
[0074] Exemplarily, Table 1 is a mapping table between the file address and the storage address. As shown in Table 1, the mapping table between the file address and the storage address includes the file address and the storage address. The file address is the file address corresponding to the original waybill data, and the storage address is the storage address of the waybill information corresponding to the original waybill data in the object storage service.
[0075] Table 1 Mapping Table between File Address and Storage Address
[0076] File Address Storage Address A* <![CDATA[A # > B* <![CDATA[B # > C* <![CDATA[C # >
[0077] In the embodiments of the present invention, realizing the establishment of the mapping table between the file address and the storage address provides a basis for quickly obtaining the storage address of the waybill information corresponding to the original waybill data according to the file address included in the waybill acquisition request.
[0078] It should be noted that the above steps are pre - processing of the original waybill data. That is, after the user places an order through the shopping platform, the server performs pre - processing on the original waybill data corresponding to the order to pre - generate the waybill information corresponding to the original waybill data, so that after receiving the waybill acquisition request, the waybill information corresponding to the waybill acquisition request can be quickly obtained.
[0079] S306. Receive a waybill acquisition request.
[0080] Specifically, after the access device receives the item acquisition task, it can send the item acquisition task to the logistics scheduling system. The logistics scheduling system can call the logistics service system to generate the original waybill data corresponding to the item acquisition task, and can also send the original waybill data corresponding to the item acquisition task to the server.
[0081] Exemplarily, after the user clicks the waybill acquisition control displayed on the user terminal, the user terminal can send a waybill acquisition request to the server via the logistics scheduling system. The third - party system can also send a waybill acquisition request to the server via the logistics scheduling system based on the operation requirements. Therefore, the server can receive the waybill acquisition request sent by access devices such as the user terminal or the third - party system.
[0082] In an embodiment of the present invention, when a user needs to view waybill information, the user can send a waybill acquisition request to the server based on the user terminal, so as to quickly initiate a waybill acquisition request.
[0083] S307. Determine whether the file address included in the waybill acquisition request exists in the mapping table of file addresses and storage addresses.
[0084] If the file address included in the waybill acquisition request does not exist in the mapping table of file addresses and storage addresses, execute S308; if the file address included in the waybill acquisition request does not exist in the mapping table of file addresses and storage addresses, then execute S310.
[0085] Specifically, after receiving the current waybill acquisition request, the server can determine the current file address included in the current waybill acquisition request, and then can determine whether the current file address exists in the pre-constructed mapping table of file addresses and storage addresses. If it exists, the current storage address corresponding to the current file address can be determined in the mapping table of file addresses and storage addresses based on the current file address; if it does not exist, it is necessary to determine the current original waybill data corresponding to the current file address included in the waybill acquisition request in the local storage server, and determine the current waybill information according to the current original waybill data.
[0086] In an embodiment of the present invention, after receiving the waybill acquisition request, it is possible to determine whether the current file address included in the waybill acquisition request exists in the pre-generated mapping table of file addresses and storage addresses, so as to quickly determine whether the waybill information corresponding to the waybill acquisition request has been generated according to the mapping table of file addresses and storage addresses.
[0087] S308. Determine the original waybill data corresponding to the file address included in the waybill acquisition request in the local storage server.
[0088] Specifically, in the case where it is determined that the file address included in the waybill acquisition request does not exist in the mapping table of file addresses and storage addresses, the current original waybill data corresponding to the current file address included in the waybill acquisition request can be directly determined from the local storage server. Exemplarily, when the user first needs to view waybill information A, since waybill information A has not been processed, converted, and stored in the object storage server, or, the current waybill processing node is in the situation before generating the mapping table of file addresses and storage addresses. At this time, the user initiates a waybill acquisition request, and the file address included in the waybill acquisition request does not exist in the pre-generated mapping table of file addresses and storage addresses. At this time, the original waybill data corresponding to the file address included in the waybill acquisition request can be directly determined from the local storage server, and the waybill information can be determined based on the original waybill data.
[0089] In an embodiment of the present invention, when it is determined that the current file address does not exist in the mapping table of the pre-generated file address and the storage address, it can be determined that the label information corresponding to the current label acquisition request has not been generated yet. Therefore, it is necessary to determine the original label data corresponding to the file address included in the label acquisition request in the local storage server, so as to quickly determine the original label data corresponding to the current label acquisition request according to the local storage server.
[0090] S309. After converting the original label data corresponding to the file address included in the label acquisition request into label information, determine the label information obtained by converting the original label data corresponding to the file address included in the label acquisition request as the label information corresponding to the label acquisition request.
[0091] Specifically, after determining the original label data corresponding to the file address included in the label acquisition request from the local storage server, process the original label data to convert the original label data into label information, and determine this label information as the label information corresponding to the label acquisition request. Exemplarily, when it is determined that the current file address does not exist in the mapping table of the pre-generated file address and the storage address, that is, the label information corresponding to the original label data does not exist in the object storage server. At this time, the original label data corresponding to the current file address included in the current label acquisition request can be directly determined from the local storage server, and after processing the original label data, it is converted into label information, and then this label information can be determined as the label information corresponding to the label acquisition request.
[0092] In an embodiment of the present invention, since most labels are pre-processed in advance and the label information corresponding to the original label data is stored in the object storage server, the situation where the file address in the label acquisition request does not exist in the mapping table of the file address and the storage address is relatively rare. Therefore, when the label information corresponding to the current label acquisition request cannot be directly obtained, the original label data corresponding to the file address included in the label acquisition request can be determined in the local storage server. After converting the original label data into label information, determine this label information as the label information corresponding to the label acquisition request, so as to solve the problem of low efficiency in obtaining label information due to a large number of current labels to be obtained, and realize quickly processing the original label data to obtain label information when the label information has not been pre-processed or the processed label information has not been stored in the object storage server.
[0093] S310. Search in the mapping table of the file address and the storage address based on the file address included in the label acquisition request to determine the storage address corresponding to the file address included in the label acquisition request.
[0094] Specifically, when it is determined that the current file address included in the current waybill acquisition request exists in the mapping table of file addresses and storage addresses, the server may search the mapping table of file addresses and storage addresses based on the current file address to determine the storage address corresponding to the current file address.
[0095] In an embodiment of the present invention, when it is determined that the current file address exists in the pre-generated mapping table of file addresses and storage addresses, it can be determined that the waybill information corresponding to the current waybill acquisition request has been generated. Therefore, the storage address corresponding to the current file address can be searched in the mapping table of file addresses and storage addresses based on the current file address.
[0096] S311. Access the object storage server based on the storage address, and obtain the waybill information corresponding to the waybill acquisition request in the object storage server.
[0097] Specifically, after the storage address corresponding to the current file address is found in the mapping table of file addresses and storage addresses based on the current file address, the server may access the object storage server based on the storage address. In the object storage server, the waybill information corresponding to the waybill acquisition request can be obtained according to the storage address. This waybill information is the waybill information corresponding to the waybill acquisition request.
[0098] In an embodiment of the present invention, when it is determined that the current file address exists in the pre-generated mapping table of file addresses and storage addresses, the storage address corresponding to the current file address can be directly determined in the mapping table of file addresses and storage addresses according to the current file address in the waybill acquisition request, access the object storage server based on the storage address, and obtain the waybill information corresponding to the waybill acquisition request, so as to achieve the rapid acquisition of the waybill information.
[0099] S312. Send the waybill information to the access device.
[0100] Specifically, after the waybill information corresponding to the waybill acquisition request is obtained, the waybill information can be sent to the access device for the user to view.
[0101] In an embodiment of the present invention, sending the waybill information to the access device for the user to view better meets the user's needs, thereby improving the user experience.
[0102] The method for obtaining waybill information provided by an embodiment of the present invention determines the signature information corresponding to the original waybill data, and determines the file address corresponding to the original waybill data according to the signature information, waybill information, and expiration time; stores the original waybill data and the file address in a local storage server; performs processing and conversion processing on the original waybill data to obtain the waybill information corresponding to the original waybill data; uploads the waybill corresponding to the original waybill data to an object storage server to obtain the storage address of the waybill information corresponding to the original waybill data in the object storage server; establishes a mapping table between the file address and the storage address according to the file address corresponding to the original waybill data and the storage address of the waybill corresponding to the original waybill data in the object storage service; receives a waybill acquisition request; determines whether the file address included in the waybill acquisition request exists in the mapping table of the file address and the storage address; if the file address included in the waybill acquisition request does not exist in the mapping table of the file address and the storage address, determines the original waybill data corresponding to the file address included in the waybill acquisition request in the local storage server, converts the original waybill data corresponding to the file address included in the waybill acquisition request into waybill information, and determines the waybill information obtained by converting the original waybill data corresponding to the file address included in the waybill acquisition request as the waybill information corresponding to the waybill acquisition request; if the file address included in the waybill acquisition request exists in the mapping table of the file address and the storage address, searches in the mapping table of the file address and the storage address based on the file address included in the waybill acquisition request to determine the storage address corresponding to the file address included in the waybill acquisition request, accesses the object storage server based on the storage address, and obtains the waybill information corresponding to the waybill acquisition request in the object storage server; sends the waybill information to the access device.
[0103] In the above technical solution, after obtaining the original waybill data, a file address corresponding to the original waybill data can be generated according to the signature information corresponding to the original waybill data, waybill information, expiration time, etc., so as to allocate a file address for each original waybill data; store the original waybill data and the file address corresponding to the original waybill data in a local storage server, so as to directly obtain the original waybill data corresponding to the file address through the local storage server in the future, and realize the rapid acquisition of the original waybill data; the original waybill data can also be processed and converted to obtain the waybill information corresponding to the original waybill data, so as to realize the pre-processing of the original waybill data to obtain the waybill information corresponding to the original waybill data, and then the waybill information corresponding to the original waybill data can be saved to the object storage server, and at the same time, the storage address of the waybill information corresponding to the original waybill data in the object storage server can be determined, and further a mapping table between the file address and the storage address can be established.
[0104] After receiving a waybill acquisition request, it is possible to determine whether the file address included in the waybill acquisition request exists in the mapping table of file addresses and storage addresses, so as to quickly determine whether the waybill information corresponding to the waybill acquisition request has been generated. Since the waybill information corresponding to the original waybill data has been determined in advance, and a mapping table of file addresses and storage addresses has been established based on the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data in the object storage server, therefore, the situation where the file address included in the waybill acquisition request does not exist in the mapping table of file addresses and storage addresses is relatively rare. When the waybill corresponding to the waybill acquisition request cannot be directly obtained, the original waybill data corresponding to the file address included in the waybill acquisition request can be determined in the local storage server, the original waybill data can be converted into waybill information, and the waybill information can be determined as the waybill corresponding to the waybill acquisition request, realizing the quick acquisition of waybill information without pre-processing the waybill or storing the processed waybill information in the object storage server.
[0105] When it is determined that the current file address exists in the mapping table of file addresses and storage addresses, the corresponding storage address can be determined in the mapping table of file addresses and storage addresses according to the file address included in the waybill acquisition request. By accessing the object storage server based on the storage address, the waybill information corresponding to the waybill acquisition request can be obtained, realizing the quick acquisition of waybill information. Finally, the waybill information is sent to the access device for the user to view, better meeting the user's needs and thus improving the user experience.
[0106] Figure 5 FIG. is a schematic structural diagram of an apparatus for acquiring waybill information provided by an embodiment of the present invention. This apparatus and the method for acquiring waybill information in the above embodiments belong to the same inventive concept. For the details not described in detail in the embodiment of the apparatus for acquiring waybill information, reference can be made to the embodiments of the method for acquiring waybill information above.
[0107] The specific structure of the apparatus for acquiring waybill information is as Figure 5 shown, including:
[0108] A determination module 501, configured to determine, after receiving a waybill acquisition request, the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses;
[0109] An acquisition module 502, configured to acquire the waybill information corresponding to the waybill acquisition request based on the storage address and send the waybill information to the access device, where the access device is determined by the device identifier included in the waybill acquisition request.
[0110] Based on the above embodiment, the apparatus further includes:
[0111] A building module is used to determine the file address corresponding to the original waybill data and the storage address of the waybill corresponding to the original waybill data in the object storage service; according to the file address corresponding to the original waybill data and the storage address of the waybill corresponding to the original waybill data in the object storage service, a mapping table of the file address and the storage address is established.
[0112] In one implementation, determining the file address corresponding to the original waybill data and the storage address of the waybill corresponding to the original waybill data in the object storage service includes:
[0113] Determine the signature information corresponding to the original waybill data, and determine the file address corresponding to the original waybill data according to the signature information, waybill information, and expiration time corresponding to the original waybill data; after processing the original waybill data to obtain the waybill corresponding to the original waybill data, upload the waybill corresponding to the original waybill data to the object storage server to obtain the storage address of the waybill corresponding to the original waybill data in the object storage service.
[0114] Further, processing the original waybill data to obtain the waybill corresponding to the original waybill data includes:
[0115] Perform processing and conversion on the original waybill data to obtain the waybill corresponding to the original waybill data.
[0116] Based on the above embodiments, the determination module 502 is specifically used for:
[0117] Search in the mapping table of the file address and the storage address based on the file address included in the waybill acquisition request to determine the storage address corresponding to the file address included in the waybill acquisition request.
[0118] Based on the above embodiments, the acquisition module 503 is specifically used for:
[0119] Access the object storage server based on the storage address, and obtain the waybill corresponding to the waybill acquisition request in the object storage server.
[0120] Based on the above embodiments, the device further includes:
[0121] A storage module is used to store the original waybill data and the file address corresponding to the original waybill data in the local storage server.
[0122] Based on the above embodiments, the device further includes:
[0123] An execution module, configured to determine, when it is determined that the file address included in the waybill acquisition request does not exist in the mapping table of the file address and the storage address, the original waybill data corresponding to the file address included in the waybill acquisition request in the local storage server; after converting the original waybill data corresponding to the file address included in the waybill acquisition request into a waybill, determine the waybill obtained by converting the original waybill data corresponding to the file address included in the waybill acquisition request as the waybill corresponding to the waybill acquisition request.
[0124] The waybill acquisition device provided by the embodiments of the present invention can execute the waybill information acquisition method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution of the waybill information acquisition method.
[0125] It should be noted that in the embodiments of the above waybill acquisition device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.
[0126] Figure 6 It is a schematic structural diagram of a server provided by an embodiment of the present invention. Figure 6 It shows a block diagram of an exemplary server 6 suitable for implementing the embodiments of the present invention. Figure 6 The displayed server 6 is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present invention.
[0127] As Figure 6 shown, the server 6 is presented in the form of a general-purpose computing server. The components of the server 6 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0128] The bus 18 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure in a variety of bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (2AC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0129] The server 6 typically includes a variety of computer system readable media. These media can be any available media accessible by the server 6, including volatile and non-volatile media, removable and non-removable media.
[0130] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Server 6 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 can be used for reading and writing on non-removable, non-volatile magnetic media ( Figure 6 not shown and typically called a "hard disk drive"). Although Figure 6 not shown in, a disk drive for reading and writing on removable non-volatile disks (such as a "floppy disk") and an optical disk drive for reading and writing on removable non-volatile optical disks (such as CD-ROM, DVD-ROM or other optical media) can be provided. In these cases, each drive can be connected to bus 18 through one or more data media interfaces. System memory 28 may include at least one program product having a set (such as at least one) of program modules configured to perform the functions of the various embodiments of the present invention.
[0131] A program / utility 40 having a set (at least one) of program modules 42 can be stored, for example, in system memory 28. Such program modules 42 include but are not limited to an operating system, one or more application programs, other program modules, and program data. Implementations of a network environment may be included in each or some combination of these examples. Program modules 42 generally perform the functions and / or methods in the embodiments described in the present invention.
[0132] Server 6 can also communicate with one or more external devices 14 (such as a keyboard, pointing device, display 24, etc.), can also communicate with one or more devices that enable a user to interact with the server 6, and / or can communicate with any device that enables the server 6 to communicate with one or more other computing devices (such as a network card, modem, etc.). Such communication can be carried out through an input / output (I / O) interface 22. Also, server 6 can communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through network adapter 20. As Figure 6 shown, network adapter 20 communicates with other modules of server 6 through bus 18. It should be understood that although Figure 6 not shown in, other hardware and / or software modules can be used in conjunction with server 6, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0133] The processing unit 16 executes various functional applications and page displays by running the programs stored in the system memory 28, for example, implementing the method for obtaining waybill information provided in the embodiments of the present invention. The method includes:
[0134] After receiving the waybill acquisition request, determine the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses;
[0135] Obtain the waybill information corresponding to the waybill acquisition request based on the storage address, and send the waybill information to the access device, where the access device is determined by the device identifier included in the waybill acquisition request.
[0136] Of course, those skilled in the art can understand that the processor can also implement the technical solutions of the method for obtaining waybill information provided in any embodiment of the present invention.
[0137] The embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements, for example, the method for obtaining waybill information provided in the embodiments of the present invention. The method includes:
[0138] After receiving the waybill acquisition request, determine the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses;
[0139] Obtain the waybill information corresponding to the waybill acquisition request based on the storage address, and send the waybill information to the access device, where the access device is determined by the device identifier included in the waybill acquisition request.
[0140] The computer storage medium of the embodiments of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: 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 a 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 this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
[0141] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0142] The program code contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0143] The computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., by connecting through the Internet using an Internet service provider).
[0144] Those of ordinary skill in the art should understand that the various modules or steps of the present invention described above may be implemented using a general-purpose computing device. They may be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Optionally, they may be implemented using program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0145] It should be noted that in the technical solution of the present invention, in aspects such as the collection, gathering, update, analysis, processing, use, transmission, and storage of user personal information, it complies with the provisions of relevant laws and regulations, is used for legal purposes, and does not violate public order and good customs. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and to safeguard the security of user personal information, network security, and national security.
[0146] After obtaining the original waybill data, we will desensitize the personal privacy information in the original waybill data through technical means.
[0147] Note that the above is only the preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments here, and various obvious changes, re-adjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments only. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for obtaining waybill information, characterized in that, Including: After receiving the waybill acquisition request, determine the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses; Obtain the waybill information corresponding to the waybill acquisition request based on the storage address, and send the waybill information to the access device, where the access device is determined by the device identifier included in the waybill acquisition request.
2. The method for obtaining waybill information according to claim 1, wherein Before determining the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses, it further includes: Determine the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data in the object storage service; Establish the mapping table of file addresses and storage addresses according to the file address corresponding to the original waybill data and the storage address of the waybill information corresponding to the original waybill data in the object storage service.
3. The method for obtaining the waybill information according to claim 2, characterized in that, Determining the file address corresponding to the original waybill data and the storage address of the original waybill in the object storage service includes: Determine the signature information corresponding to the original waybill data, and determine the file address corresponding to the original waybill data according to the signature information, waybill information, and expiration time corresponding to the original waybill data; After processing the original waybill data to obtain the waybill information corresponding to the original waybill data, upload the waybill information corresponding to the original waybill data to the object storage server to obtain the storage address of the waybill information corresponding to the original waybill data in the object storage service.
4. The method for obtaining the waybill information according to claim 3, wherein Processing the original waybill data to obtain the waybill information corresponding to the original waybill data includes: Perform processing and conversion on the original waybill data to obtain the waybill information corresponding to the original waybill data.
5. The method for obtaining the waybill information according to claim 1, wherein Determining the storage address corresponding to the file address included in the waybill acquisition request in the mapping table of file addresses and storage addresses includes: Search in the mapping table of file addresses and storage addresses based on the file address included in the waybill acquisition request to determine the storage address corresponding to the file address included in the waybill acquisition request.
6. The method for obtaining the surface waybill information according to claim 2, wherein Obtaining the waybill information corresponding to the waybill acquisition request based on the storage address includes: Access the object storage server based on the storage address, and obtain the waybill information corresponding to the waybill acquisition request in the object storage server.
7. The method for obtaining the waybill information according to claim 2, wherein After determining the file address corresponding to the original waybill data, it further includes: Correspondingly store the original waybill data and the file address corresponding to the original waybill data in the local storage server.
8. The method for obtaining waybill information according to claim 7, wherein After receiving the waybill acquisition request sent by the access device, it further includes: In the case where it is determined that the file address included in the waybill acquisition request does not exist in the mapping table of file addresses and storage addresses, determine the original waybill data corresponding to the file address included in the waybill acquisition request in the local storage server; After converting the original label data corresponding to the file address included in the label acquisition request into label information, the label information obtained by converting the original label data corresponding to the file address included in the label acquisition request is determined as the label information corresponding to the label acquisition request.
9. An apparatus for obtaining waybill information, characterized in that, It includes: A determination module, configured to, after receiving a label acquisition request, determine the storage address corresponding to the file address included in the label acquisition request in a mapping table of file addresses and storage addresses; An acquisition module, configured to acquire the label information corresponding to the label acquisition request based on the storage address and send the label information to an access device, where the access device is determined by the device identifier included in the label acquisition request.
10. A server, characterized in that, The server includes: 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 for acquiring label information as described in any one of claims 1-8.
11. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions are used to execute the method for acquiring label information as described in any one of claims 1-8 when executed by a computer processor.
Citation Information
Patent Citations
DE37483A