Data retrieval method and system for logistics digital management and control system
By setting up the entry module and storage module in the logistics digital management and control system, the logistics record files are generated and processed, which solves the retrieval problem when the uncompleted logistics information is stored, realizes the retrieval processing when the filling is not completed, and ensures the efficient response of the system. and storage space utilization.
Patent Information
- Application Number
- CN202410878981.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-02
AI Technical Summary
The existing logistics digital management and control system cannot retrieve unfinished logistics information when storing logistics information in the database, resulting in a failure to respond to the retrieval request.
Generate logistics record files by setting up an entry module in the logistics distribution center and send them to the storage module for storage and retrieval processing. Use the preset running time to select some data records from the unfilled logistics record table to generate transfer files. , to realize retrieval processing when the filling of the logistics record table is not completed.
It implements instant response to retrieval requests and avoids failure to respond to retrieval requests while ensuring that the storage module has available storage space, ensuring the normal operation of the system.
Smart Images

Figure CN118672977A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data retrieval, and in particular relates to a data retrieval method and system for a digital logistics management and control system. Background Art
[0002] With the continuous development of computer application technology, digital logistics management and control systems are being used more and more in people's lives. Through the digital logistics management and control system, logistics information can be queried, so that the progress of logistics can be easily understood.
[0003] The Chinese invention application with publication number CN106844372A discloses a logistics information query method and device, the method comprising: receiving a primary query request for specific logistics information from a logistics user, querying information related to the specific logistics information in a designated logistics information storage database according to query conditions provided in the primary query request, initiating a secondary query request to a corresponding logistics system according to the query conditions and / or the information related to the specific logistics information obtained by the query, updating the corresponding data in the designated logistics information storage database according to the received real-time logistics information and the information related to the specific logistics information queried in the designated logistics information storage database, forming a query result corresponding to the primary query request according to the corresponding data in the updated designated logistics information storage database, and generating a query result display page to send to the logistics user. In addition, the Chinese invention application with publication number CN106528636A proposes a courier number query system and method, the system includes a query device, a cloud platform and at least one courier number database, the query device, the cloud platform and the courier number database are connected in sequence, the query device is used to exchange information with the cloud platform, the cloud platform is used to transmit information with the query device, and receive the courier number information transmitted by the courier number database, the courier number database is used to transmit the courier number information to the cloud platform, the method includes the courier number database sending the courier number information to the cloud platform, the query device sending the user verification information to the cloud platform, the cloud platform storing the courier number information, the cloud platform receiving and verifying the user's verification information, if the verification is passed, querying the relevant courier number information according to the pre-stored user-related information, and sending the relevant courier number information to the query device.
[0004] However, in the above-mentioned invention applications, there is a problem that when the logistics information is stored in the database, the logistics information that has not yet been stored cannot be retrieved. Summary of the invention
[0005] In the present invention, logistics record files are generated by different input modules, and different logistics record files are sent to the storage module. The storage module uses different logistics record files to fill different logistics record tables, and searches are performed according to the first search request of the search module. The storage module also transfers and processes part of the data records in different logistics record tables, and searches are performed according to the second search request of the search module. The present invention aims to realize the search without completing the filling of the logistics record table.
[0006] In order to achieve the above-mentioned object of the invention, the present invention provides the following data retrieval method for a logistics digital management and control system, which mainly includes the following steps:
[0007] S1. In different logistics distribution centers, the logistics information of the items arriving at the logistics distribution centers is input through the input module to generate a logistics record file, and the input modules of the different logistics distribution centers send the generated logistics record file to the storage module;
[0008] S2, the storage module receives the logistics record files sent by the input modules of different logistics distribution centers, stores the different logistics record files in the first storage unit respectively, uses the different logistics record files in the first storage unit to fill the different logistics record tables in the second storage unit, and the retrieval module sends a first retrieval request to the storage module, and the storage module performs a first retrieval process according to the first retrieval request;
[0009] S3. After a preset running time, the storage module selects some data records from different logistics record tables in the second storage unit to generate logistics transfer files, stores different logistics transfer files in the third storage unit, and the retrieval module sends a second retrieval request to the storage module, and the storage module executes a second retrieval process according to the second retrieval request.
[0010] As a preferred technical solution of the present invention, the storage module stores a first description table, and the data records in the first description table include a logistics record table ID, a block division identifier, a first storage location, a transfer identifier, and a second storage location.
[0011] As a preferred technical solution of the present invention, the storage module stores a second description table, and the data records in the second description table include a logistics record table ID, an attribute name, and an attribute identifier.
[0012] As a preferred technical solution of the present invention, the storage module stores a first corresponding table, a second corresponding table, and a third corresponding table. The data records in the first corresponding table include a logistics record table ID, a logistics record file name, a marking time, and a usage identifier. The data records in the second corresponding table include a logistics record table ID, a block number, and a block identifier. The data records in the third corresponding table include a logistics record table ID, a block number, a logistics transfer file name, a minimum attribute value, and a maximum attribute value.
[0013] As a preferred technical solution of the present invention, the storage module uses different logistics record files in the first storage unit to fill different logistics record tables in the second storage unit, including the following steps:
[0014] S211, the storage module waits for a preset time, and then proceeds to S212;
[0015] S212, the storage module uses a first storage location in the first description table as a target first storage location based on the first description table, and the storage module monitors and processes the logistics record file stored in the target first storage location, and then continues to S213;
[0016] S213, the storage module determines whether the first corresponding table is updated in the monitoring process. If yes, the storage module fills the corresponding logistics record table with the logistics record file corresponding to the logistics record file name in the updated data record in the first corresponding table, and continues to S214. If no, directly continue to S214;
[0017] S214, the storage module determines whether all the first storage locations in the first description table have been processed by S212 and S213. If not, jump to S212. If yes, the storage module continues to determine whether to stop all processing. If yes, end all steps. If no, jump to S211.
[0018] As a preferred technical solution of the present invention, the storage module monitors and processes the logistics record file stored in the target first storage location, including the following steps:
[0019] S2121, the storage module obtains relevant information of all logistics record files stored in the target first storage location, the relevant information including the logistics record file name generated when the logistics record file is stored, and the marking time related to the logistics record file;
[0020] S2122, the storage module determines whether all logistics record files have been processed by S2123 and steps after S2123, and if so, ends all steps, and if not, continues to S2123;
[0021] S2123, the storage module regards a logistics record file as a target logistics record file, and determines whether there is a data record in the first corresponding table containing a logistics record file name that is the same as the logistics record file name in the relevant information of the target logistics record file. If not, the storage module adds a data record in the first corresponding table and jumps to S2122. If yes, continue to S2124;
[0022] S2124, the storage module determines whether the marking time in the relevant information of the target logistics record file is later than the marking time in the corresponding data record in the first corresponding table. If so, the storage module updates the corresponding data record, and the updated content includes the marking time and the usage identifier, and jumps to S2122. If not, jumps directly to S2122.
[0023] As a preferred technical solution of the present invention, the storage module performs a first search process according to the first search request, including the following steps:
[0024] S221, based on the first search request, the storage module determines whether there is a data record in the first corresponding table containing a logistics record table ID that is the same as the logistics record table ID in the first search request, if not, jump to S223, if yes, continue to determine whether the use identifier in the corresponding data record is used, if yes, jump to S223, if no, continue to S222;
[0025] S222, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the first search request according to the first search request, and performs a second search on the logistics record file corresponding to the logistics record file name in the corresponding data record, and ends all steps;
[0026] S223. The storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the first search request according to the first search request.
[0027] As a preferred technical solution of the present invention, the storage module selects part of the data records from a logistics record table in the second storage unit to generate a logistics transfer file, and stores the logistics transfer file in the third storage unit, including the following steps:
[0028] S311, the storage module selects the data record block that is first filled into the logistics record table to generate a logistics transfer file, and adds a data record in the third corresponding table, the data record includes the logistics record table ID, the block number, the logistics transfer file name, the minimum attribute value, and the maximum attribute value, wherein the minimum attribute value and the maximum attribute value refer to the minimum value and the maximum value of all attribute values corresponding to the attribute name corresponding to the attribute identifier in the data record block that is first filled into the logistics record table;
[0029] S312, the storage module searches the second corresponding table for a data record containing a logistics record table ID and a block number that respectively correspond to the logistics record table ID and the block number in the added data record based on the added data record, and sets the block identifier in the data record to have been transferred;
[0030] S313: The storage module deletes the data record block that is first filled into the logistics record table in the logistics record table.
[0031] As a preferred technical solution of the present invention, the storage module performs a second search process according to the second search request, including the following steps:
[0032] S321, based on the second search request, the storage module determines whether there is a data record in the third correspondence table whose logistics record table ID is the same as the logistics record table ID in the second search request, if not, proceed to S324, if yes, proceed to S322;
[0033] S322, the storage module determines whether the second search request contains a search condition for an attribute value corresponding to an attribute name corresponding to the attribute identifier, and if so, determines the logistics transfer file to be searched in the logistics transfer file corresponding to the logistics transfer file name in the corresponding data record according to the search condition, performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request, and performs a second search on the logistics transfer file to be searched, and if not, continues to S323;
[0034] S323, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request, and performs a second search on the logistics transfer file corresponding to the logistics transfer file name in the corresponding data record, and ends all steps;
[0035] S324. The storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request according to the second search request.
[0036] The present invention also provides a data retrieval system for a logistics digital management and control system, which mainly includes the following modules:
[0037] An input module, used for inputting logistics information of items arriving at different logistics distribution centers to generate logistics record files, and for sending the generated different logistics record files to the storage module;
[0038] A storage module, used to store different logistics record files in a first storage unit respectively, to fill different logistics record tables in a second storage unit with different logistics record files in the first storage unit, and to select part of data records from different logistics record tables in the second storage unit to generate logistics transfer files, to store different logistics transfer files in a third storage unit, and to perform a first retrieval process according to a first retrieval request, and to perform a second retrieval process according to a second retrieval request;
[0039] The retrieval module is used to send a first retrieval request and a second retrieval request to the storage module.
[0040] Compared with the prior art, the beneficial effects of the present invention are at least as follows:
[0041] In the present invention, firstly, the logistics information of the articles arriving at the logistics distribution center is entered through the entry module to generate a logistics record file, and the entry modules of different logistics distribution centers send the generated logistics record files to the storage module. Secondly, the storage module stores different logistics record files in the first storage unit respectively, and uses different logistics record files in the first storage unit to fill different logistics record tables in the second storage unit. The retrieval module sends a first retrieval request to the storage module, and the storage module performs a first retrieval process according to the first retrieval request. Finally, after a preset running time, the storage module selects part of the data records from the different logistics record tables in the second storage unit to generate a logistics transfer file, and stores the different logistics transfer files in the third storage unit. The retrieval module sends a second retrieval request to the storage module, and the storage module performs a second retrieval process according to the second retrieval request. Through the present invention, even if the filling of the logistics record table is not completed, the retrieval process can be performed, so that the retrieval request can be responded to in time, and the storage module can also ensure that the storage module has available storage space, and when some data records in the logistics record table are deleted, the retrieval process is performed to avoid the failure of responding to the retrieval request. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flow chart of the steps of the data retrieval method for the digital logistics management and control system of the present invention;
[0043] Figure 2 It is a composition structure diagram of the data retrieval system for the digital logistics management and control system of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0045] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.
[0046] The present invention provides Figure 1 The data retrieval method for the logistics digital management and control system shown is mainly implemented by executing the following steps:
[0047] S1. In different logistics distribution centers, the logistics information of the items arriving at the logistics distribution centers is input through the input module to generate a logistics record file, and the input modules of the different logistics distribution centers send the generated logistics record files to the storage module;
[0048] S2, the storage module receives the logistics record files sent by the input modules of different logistics distribution centers, stores the different logistics record files in the first storage unit respectively, fills the different logistics record tables in the second storage unit with the different logistics record files in the first storage unit, and the retrieval module sends a first retrieval request to the storage module, and the storage module performs a first retrieval process according to the first retrieval request;
[0049] S3. After a preset running time, the storage module selects some data records from different logistics record tables in the second storage unit to generate logistics transfer files, stores different logistics transfer files in the third storage unit, and the retrieval module sends a second retrieval request to the storage module, and the storage module executes a second retrieval process according to the second retrieval request.
[0050] Specifically, first, an input module is set up in different logistics distribution centers. The input module can input the logistics information of the items arriving at the logistics distribution center and generate a logistics record file, wherein the logistics information includes the logistics order number, the time of arrival at the distribution center, etc. The logistics record file contains different data records. For example, a data record is "SF6787989O, 2024 / 06 / 01 9:10", the logistics order number and the time of arrival at the distribution center are separated by commas. The input modules of different logistics distribution centers send the generated logistics record files to the storage module for storage, so that by uniformly initiating a retrieval request to the storage module, the logistics progress can be queried, which is convenient for controlling the logistics process. Secondly, the storage module stores the logistics record files received from the input modules of different logistics distribution centers in their first storage units respectively. The first storage positions of different logistics record files in the first storage unit are set in advance by the storage module. The storage module uses the different logistics record files in the first storage unit to fill the different logistics record tables in the second storage unit. It should be noted that multiple logistics record files may be needed to fill a logistics record table, and the first storage positions of multiple logistics record files are the same. In addition, the filling here means automatically importing all data records in the logistics record file into the logistics record table. When the number of data records to be imported is relatively large, it takes a long time. In the process of the storage module filling different logistics record tables, The retrieval module can send a first retrieval request to the storage module, and the storage module executes the first retrieval processing according to the first retrieval request. Finally, as time goes by, the amount of data stored in the second storage unit will continue to increase, making the available space of the second storage unit continue to decrease. Therefore, after each running time, for example, the running time can be one month, the storage module selects part of the data records from different logistics record tables in the second storage unit to generate a logistics transfer file. The format of the logistics transfer file and the logistics record file is the same. The storage module stores different logistics transfer files in the third storage unit. The second storage position of different logistics transfer files in the third storage unit is also set in advance by the storage module. It should be noted that multiple logistics transfer files can be stored in one second storage position. Multiple logistics transfer files stored in one second storage position correspond to one logistics record table. In the process of the storage module transferring part of the data records of different logistics record tables, the retrieval module sends a second retrieval request to the storage module, and the storage module executes the second retrieval processing according to the second retrieval request.
[0051] Furthermore, the storage module stores a first description table, and the data records in the first description table include a logistics record table ID, a block division identifier, a first storage location, a transfer identifier, and a second storage location.
[0052] Specifically, the data record in the first description table records the setting information about different logistics record tables. The data record includes a logistics record table ID, a block division identifier, a first storage location, a transfer identifier, and a second storage location. The logistics record table ID can uniquely identify the logistics record table. The block division identifier represents whether it is allowed to fill the logistics record table corresponding to the logistics record table ID in units of data record blocks. The data record block contains multiple data records. When the block division identifier is yes, it indicates permission, otherwise it indicates no permission. For ease of understanding, the data record block is explained here. When multiple logistics record files are needed to fill a logistics record table, each logistics record file corresponds to a data record block in the logistics record table. The first storage location refers to the storage location of the logistics record file that fills the logistics record table corresponding to the logistics record table ID in the first storage unit. The transfer identifier represents whether it is allowed to transfer part of the data records in the logistics record table corresponding to the logistics record table ID to the third storage unit. The transfer identifier is yes, indicating permission, otherwise it indicates no permission. The second storage location refers to the storage location of the logistics transfer file corresponding to the logistics record table corresponding to the logistics record table ID in the third storage unit. In the first description table, one logistics record table ID corresponds to one data record.
[0053] Furthermore, the storage module stores a second description table, and the data records in the second description table include a logistics record table ID, an attribute name, and an attribute identifier.
[0054] Specifically, the data records in the second description table record information about the attribute names in different logistics record tables. The attribute name is the attribute name in the logistics record table corresponding to the logistics record table ID. The attribute identifier represents whether the corresponding attribute name is regarded as an identification attribute name. If the attribute identifier is yes, it indicates that the corresponding attribute name is an identification attribute name. Otherwise, it indicates that the corresponding attribute name is not an identification attribute name. When initiating a retrieval request, the retrieval module usually restricts the size range of the attribute value corresponding to the identification attribute name. In the second description table, a combination of the logistics record table ID and the attribute name corresponds to a data record.
[0055] Furthermore, the storage module stores a first corresponding table, a second corresponding table, and a third corresponding table. The data records in the first corresponding table include a logistics record table ID, a logistics record file name, a marking time, and a usage identifier. The data records in the second corresponding table include a logistics record table ID, a block number, and a block identifier. The data records in the third corresponding table include a logistics record table ID, a block number, a logistics transfer file name, a minimum attribute value, and a maximum attribute value.
[0056] Specifically, the first corresponding table, the second corresponding table, and the third corresponding table are introduced here respectively, wherein in the first corresponding table, the data record includes the logistics record table ID, the logistics record file name, the marking time, and the use identifier. In the first corresponding table, a logistics record file name corresponds to a data record. The logistics record file name is generated by the storage module when storing the logistics record file. The marking time refers to the time when the logistics record file corresponding to the logistics record file name is stored, or the time when the logistics record file corresponding to the logistics record file name is updated. After the input module updates the generated logistics record file, the storage module also updates the stored logistics record file accordingly. The use identifier represents whether the logistics record file corresponding to the logistics record file name has been used to fill the logistics record table corresponding to the logistics record table ID. The use identifier is yes, indicating that it has been used, otherwise, it indicates that it has not been used. In the second corresponding table, the data record includes the logistics record table ID, the block number, and the block identifier. In the second corresponding table, a combination of the logistics record table ID and the block number corresponds to a data record. The block number represents the unique number of the data record block in the logistics record table corresponding to the logistics record table ID. The block identifier represents whether the data record block corresponding to the block number has been transferred. The content of the block identifier includes transferred and not transferred. In the third corresponding table, the data record includes the logistics record table ID, the block number, the logistics transfer file name, the minimum attribute value, and the maximum attribute value. In the third corresponding table, a logistics transfer file name corresponds to a data record. The logistics transfer file name represents the name of the logistics transfer file generated when the data record block corresponding to the block number is transferred. The minimum attribute value refers to the minimum value of all attribute values corresponding to the identification attribute name in the logistics transfer file corresponding to the logistics transfer file name. The maximum attribute value refers to the maximum value of all attribute values corresponding to the identification attribute name in the logistics transfer file corresponding to the logistics transfer file name. The identification attribute name has been introduced above.
[0057] Further, the storage module uses different logistics record files in the first storage unit to fill different logistics record tables in the second storage unit, including the following steps:
[0058] S211, the storage module waits for a preset time, and then proceeds to S212;
[0059] S212, based on the first description table, the storage module uses a first storage location in the first description table as a target first storage location, and the storage module monitors and processes the logistics record file stored in the target first storage location, and then continues to S213;
[0060] S213, the storage module determines whether the first corresponding table is updated in the monitoring process. If yes, the storage module fills the corresponding logistics record table with the logistics record file corresponding to the logistics record file name in the updated data record in the first corresponding table, and continues to S214. If no, directly continue to S214;
[0061] S214, the storage module determines whether all the first storage locations in the first description table have been processed by S212 and S213. If not, jump to S212. If yes, the storage module continues to determine whether to stop all processing. If yes, end all steps. If no, jump to S211.
[0062] Specifically, in step S211, the storage module waits for a certain period of time and executes step S212. In step S212, the storage module uses a first storage location in the first description table as the target first storage location based on the first description table. The selection of this first storage location can be arbitrary. The logistics record file stored in the target first storage location is monitored and processed. The monitoring process will be described in detail below. The storage module continues with step S213. In step S213, the storage module determines whether the first corresponding table is updated during the monitoring process. If so, the corresponding logistics record table is filled with the logistics record file corresponding to the logistics record file name in the updated data record in the first corresponding table. The corresponding logistics record table is the logistics record table ID corresponding to the logistics record file name in the updated data record. The corresponding logistics record table should be noted that after filling, the usage identifier corresponding to the logistics record file name in the updated data record is set to yes in the first corresponding table, and step S214 is continued. If not, step S214 is continued directly. In step S214, the storage module determines whether all the first storage locations in the first description table have been processed as above. If not, jump to step S212 and treat other first storage locations as new target first storage locations. If yes, the storage module continues to determine whether to stop all processing. If yes, end all steps. If no, jump to step S211. That is to say, when the storage module does not receive a message indicating to stop all processing, the storage module executes steps S212 to S214 every certain period of time.
[0063] Furthermore, the storage module monitors and processes the logistics record file stored in the target first storage location, including the following steps:
[0064] S2121. With respect to all logistics record files stored in the target first storage location, the storage module obtains relevant information of all logistics record files, the relevant information including the logistics record file name generated when the logistics record file is stored, and the marking time related to the logistics record file;
[0065] S2122, the storage module determines whether all logistics record files have been processed by S2123 and steps after S2123. If yes, all steps are terminated; if no, continue with S2123;
[0066] S2123, the storage module regards a logistics record file as a target logistics record file, and determines whether there is a data record in the first corresponding table containing a logistics record file name that is the same as the logistics record file name in the relevant information of the target logistics record file. If not, the storage module adds a data record in the first corresponding table and jumps to S2122. If yes, continue to S2124;
[0067] S2124. The storage module determines whether the marking time in the relevant information of the target logistics record file is later than the marking time in the corresponding data record in the first corresponding table. If so, the storage module updates the corresponding data record, and the updated content includes the marking time and the usage identifier, and jumps to S2122. If not, jump directly to S2122.
[0068] Specifically, the monitoring and processing process is introduced here. In step S2121, the storage module obtains relevant information of all logistics record files for all logistics record files stored in the target first storage position, wherein the relevant information includes the logistics record file name generated when the logistics record file is stored, and the marking time related to the logistics record file, which has been introduced above, and then continues to step S2122. In step S2122, the storage module determines whether all logistics record files have been processed by subsequent steps. If so, end all steps. If not, continue to step S2123. In step S2123, the storage module regards a logistics record file as the target logistics record file. The selection of this logistics record file is arbitrary. It is determined whether there is a data record in the first corresponding table containing a logistics record file name that is the same as the logistics record file name in the relevant information of the target logistics record file. If not, the storage module adds a data record in the first corresponding table. To determine the logistics record file in this data record Flow record table ID, first search the first description table for the data record containing the same first storage location and the target first storage location, then determine the logistics record table ID in the found data record, and then supplement the logistics record file name, marking time, and usage identification in this data record. If the usage identification is no, then jump to step S2122. If so, continue to step S2124. In step S2124, the storage module determines whether the marking time in the relevant information of the target logistics record file is later than the marking time in the corresponding data record in the first corresponding table. The corresponding data record refers to the data record whose logistics record file name contained in the first corresponding table is the same as the logistics record file name in the relevant information of the target logistics record file. If so, the storage module updates the corresponding data record. The updated content includes the marking time and usage identification. If the usage identification is no, jump to step S2122. If not, jump directly to step S2122. After that, other logistics record files may also be regarded as new target logistics record files.
[0069] Further, the storage module performs a first search process according to the first search request, including the following steps:
[0070] S221, based on the first search request, the storage module determines whether there is a data record in the first corresponding table containing the same logistics record table ID as the logistics record table ID in the first search request, if not, jump to S223, if yes, continue to determine whether the use identifier in the corresponding data record is used, if yes, jump to S223, if no, continue to S222;
[0071] S222, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the first search request according to the first search request, and performs a second search on the logistics record file corresponding to the logistics record file name in the corresponding data record, and ends all steps;
[0072] S223. The storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the first search request according to the first search request.
[0073] Specifically, in step S221, the storage module determines, based on the first retrieval request, whether there is a data record in the first corresponding table that contains the same logistics record table ID as the logistics record table ID in the first retrieval request. If not, jump to step S223. If yes, continue to determine whether the usage identifier in the corresponding data record is yes. The corresponding data record refers to the data record in the first corresponding table that contains the same logistics record table ID as the logistics record table ID in the first retrieval request. If yes, jump to step S223. If not, continue to step S222. In step S222, since the logistics record file corresponding to the logistics record file name in the corresponding data record has not been used for filling processing, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the first retrieval request, and performs a second search on the logistics record file corresponding to the logistics record file name in the corresponding data record, and then ends all steps. In step S223, the storage module only performs a first search on the logistics record table corresponding to the logistics record table ID in the first retrieval request, and then ends all steps. Through the above method, even if the storage module has not completed filling the logistics record file, it can still be retrieved, so that the retrieval request of the retrieval module can be responded to in time.
[0074] Further, the storage module selects part of the data records from a logistics record table in the second storage unit to generate a logistics transfer file, and stores the logistics transfer file in the third storage unit, including the following steps:
[0075] S311, the storage module selects the data record block that is first filled into the logistics record table to generate a logistics transfer file, and adds a data record in the third corresponding table, the data record includes the logistics record table ID, the block number, the logistics transfer file name, the minimum attribute value, and the maximum attribute value, wherein the minimum attribute value and the maximum attribute value refer to the minimum value and the maximum value of all attribute values corresponding to the attribute name corresponding to the attribute identifier in the data record block that is first filled into the logistics record table;
[0076] S312, based on the added data record, the storage module searches the second corresponding table for a data record containing a logistics record table ID and a block number that respectively correspond to the logistics record table ID and the block number in the added data record, and sets the block identifier in the data record to have been transferred;
[0077] S313. The storage module deletes the data record block that is first filled into the logistics record table in the logistics record table.
[0078] Specifically, here, an example is taken that the storage module selects part of the data records from a logistics record table in the second storage unit to generate a logistics transfer file, and stores the logistics transfer file in the third storage unit. The logistics record table ID of this logistics record table corresponds to a transfer identifier of yes in the data record of the first description table. In step S311, the storage module selects the data record block that is first filled into this logistics record table, generates a logistics transfer file, stores the logistics transfer file according to the second storage location recorded in the first description table, and adds a data record to the third corresponding table. This data record includes the logistics record table ID, block number, logistics transfer file name, minimum attribute value, and maximum attribute value. The block number is the block number of the data record block that is first filled into this logistics record table. The logistics transfer file name It is the name of the logistics transfer file generated when transferring the data record block. The minimum attribute value and the maximum attribute value respectively refer to the minimum value and the maximum value of all attribute values corresponding to the attribute name corresponding to the attribute identifier in the data record block that is first filled in this logistics record table. The attribute name corresponding to the attribute identifier is also the identification attribute name. In step S312, the storage module searches the second corresponding table for the data record whose logistics record table ID and block number correspond to the same logistics record table ID and block number in the added data record according to the added data record, and sets the block identifier in the data record to have been transferred. In step S313, the storage module deletes the data record block that is first filled in this logistics record table in the logistics record table, thereby increasing the available space of the second storage unit.
[0079] Further, the storage module performs a second search process according to the second search request, including the following steps:
[0080] S321, based on the second search request, the storage module determines whether there is a data record in the third corresponding table whose logistics record table ID is the same as the logistics record table ID in the second search request, if not, proceed to S324, if yes, proceed to S322;
[0081] S322, the storage module determines whether the second search request contains a search condition for the attribute value corresponding to the attribute name corresponding to the attribute identifier, if yes, determines the logistics transfer file to be searched in the logistics transfer file corresponding to the logistics transfer file name in the corresponding data record according to the search condition, performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request, and performs a second search on the logistics transfer file to be searched, if no, continues to S323;
[0082] S323, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request, and performs a second search on the logistics transfer file corresponding to the logistics transfer file name in the corresponding data record, and ends all steps;
[0083] S324. The storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request according to the second search request.
[0084] Specifically, in step S321, the storage module determines, based on the second search request, whether there is a data record in the third corresponding table containing the same logistics record table ID as the logistics record table ID in the second search request. If not, proceed to step S324. If yes, proceed to step S322. In step S322, the storage module determines whether the second search request contains a search condition regarding the attribute value corresponding to the attribute name corresponding to the attribute identifier. The attribute name corresponding to the attribute identifier refers to the identification attribute name. The search condition limits the size of the attribute value to a certain range, so that the logistics transfer file to be retrieved can be determined in the logistics transfer file corresponding to the logistics transfer file name in the corresponding data record according to the search condition. This can shorten the time spent on the search. The specific method is to match the search condition with the minimum The attribute value is compared with the maximum attribute value. The corresponding data record is a data record with the same logistics record table ID as the logistics record table ID in the third corresponding table and the logistics record table ID in the second search request. The storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request, and performs a second search on the logistics transfer file to be retrieved. If not, continue with step S323. In step S323, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request, and directly performs a second search on the logistics transfer file corresponding to the logistics transfer file name in the corresponding data record, and then ends all steps. In step S324, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request according to the second search request, and then ends all steps. Through the above method, the storage module can perform retrieval when some data records in the logistics record table have been deleted, avoiding the failure of responding to the search request of the retrieval module.
[0085] References Figure 2 As shown, the present invention also provides a data retrieval system for a digital logistics management and control system, including an input module, a storage module, and a retrieval module, which are used to implement the data retrieval method for a digital logistics management and control system as described above.
[0086] The functions of each module are as follows:
[0087] An input module, used for inputting logistics information of items arriving at different logistics distribution centers to generate logistics record files, and for sending the generated different logistics record files to the storage module;
[0088] A storage module is used to store different logistics record files in a first storage unit respectively, to use the different logistics record files in the first storage unit to fill different logistics record tables in a second storage unit, and to select part of the data records from the different logistics record tables in the second storage unit to generate logistics transfer files, to store the different logistics transfer files in a third storage unit, and to execute a first retrieval process according to a first retrieval request, and to execute a second retrieval process according to a second retrieval request.
[0089] The retrieval module is used to send a first retrieval request and a second retrieval request to the storage module.
[0090] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0091] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0092] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0093] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0094] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data retrieval method for a digital logistics control system, applied to a data retrieval system for a digital logistics control system, comprising an input module, a storage module, and a retrieval module, characterized in that: The method comprises the following steps: S1. In different logistics distribution centers, the logistics information of the items arriving at the logistics distribution centers is input through the input module to generate a logistics record file, and the input modules of the different logistics distribution centers send the generated logistics record file to the storage module; S2, the storage module receives the logistics record files sent by the input modules of different logistics distribution centers, stores the different logistics record files in the first storage unit respectively, uses the different logistics record files in the first storage unit to fill the different logistics record tables in the second storage unit, and the retrieval module sends a first retrieval request to the storage module, and the storage module performs a first retrieval process according to the first retrieval request; S3. After a preset running time, the storage module selects some data records from different logistics record tables in the second storage unit to generate logistics transfer files, stores different logistics transfer files in the third storage unit, and the retrieval module sends a second retrieval request to the storage module, and the storage module executes a second retrieval process according to the second retrieval request.
2. The method according to claim 1, characterized in that The storage module stores a first description table, and the data records in the first description table include a logistics record table ID, a block division identifier, a first storage location, a transfer identifier, and a second storage location.
3. The method according to claim 2, characterized in that The storage module stores a second description table, and the data records in the second description table include a logistics record table ID, an attribute name, and an attribute identifier.
4. The method according to claim 3, characterized in that The storage module stores a first corresponding table, a second corresponding table, and a third corresponding table. The data records in the first corresponding table include a logistics record table ID, a logistics record file name, a marking time, and a usage identifier. The data records in the second corresponding table include a logistics record table ID, a block number, and a block identifier. The data records in the third corresponding table include a logistics record table ID, a block number, a logistics transfer file name, a minimum attribute value, and a maximum attribute value.
5. The method according to claim 4, characterized in that The storage module uses different logistics record files in the first storage unit to fill different logistics record tables in the second storage unit, including the following steps: S211, the storage module waits for a preset time, and then proceeds to S212; S212, the storage module uses a first storage location in the first description table as a target first storage location based on the first description table, and the storage module monitors and processes the logistics record file stored in the target first storage location, and then continues to S213; S213, the storage module determines whether the first corresponding table is updated in the monitoring process. If yes, the storage module fills the corresponding logistics record table with the logistics record file corresponding to the logistics record file name in the updated data record in the first corresponding table, and continues to S214. If no, directly continue to S214; S214, the storage module determines whether all the first storage locations in the first description table have been processed by S212 and S213. If not, jump to S212. If yes, the storage module continues to determine whether to stop all processing. If yes, end all steps. If no, jump to S211.
6. The method according to claim 5, characterized in that The storage module monitors and processes the logistics record file stored in the target first storage location, including the following steps: S2121, the storage module obtains relevant information of all logistics record files stored in the target first storage location, the relevant information including the logistics record file name generated when the logistics record file is stored, and the marking time related to the logistics record file; S2122, the storage module determines whether all logistics record files have been processed by S2123 and steps after S2123, and if so, ends all steps, and if not, continues to S2123; S2123, the storage module regards a logistics record file as a target logistics record file, and determines whether there is a data record in the first corresponding table containing a logistics record file name that is the same as the logistics record file name in the relevant information of the target logistics record file. If not, the storage module adds a data record in the first corresponding table and jumps to S2122. If yes, continue to S2124; S2124, the storage module determines whether the marking time in the relevant information of the target logistics record file is later than the marking time in the corresponding data record in the first corresponding table. If so, the storage module updates the corresponding data record, and the updated content includes the marking time and the usage identifier, and jumps to S2122. If not, jumps directly to S2122.
7. The method according to claim 6, characterized in that The storage module performs a first search process according to the first search request, including the following steps: S221, based on the first search request, the storage module determines whether there is a data record in the first corresponding table containing a logistics record table ID that is the same as the logistics record table ID in the first search request, if not, jump to S223, if yes, continue to determine whether the use identifier in the corresponding data record is used, if yes, jump to S223, if no, continue to S222; S222, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the first search request according to the first search request, and performs a second search on the logistics record file corresponding to the logistics record file name in the corresponding data record, and ends all steps; S223. The storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the first search request according to the first search request.
8. The method according to claim 4, characterized in that The storage module selects part of the data records from a logistics record table in the second storage unit to generate a logistics transfer file, and stores the logistics transfer file in the third storage unit, including the following steps: S311, the storage module selects the data record block that is first filled into the logistics record table to generate a logistics transfer file, and adds a data record in the third corresponding table, the data record includes the logistics record table ID, the block number, the logistics transfer file name, the minimum attribute value, and the maximum attribute value, wherein the minimum attribute value and the maximum attribute value refer to the minimum value and the maximum value of all attribute values corresponding to the attribute name corresponding to the attribute identifier in the data record block that is first filled into the logistics record table; S312, the storage module searches the second corresponding table for a data record containing a logistics record table ID and a block number that respectively correspond to the logistics record table ID and the block number in the added data record based on the added data record, and sets the block identifier in the data record to have been transferred; S313: The storage module deletes the data record block that is first filled into the logistics record table in the logistics record table.
9. The method according to claim 8, characterized in that The storage module performs a second search process according to the second search request, including the following steps: S321, based on the second search request, the storage module determines whether there is a data record in the third correspondence table whose logistics record table ID is the same as the logistics record table ID in the second search request, if not, proceed to S324, if yes, proceed to S322; S322, the storage module determines whether the second search request contains a search condition for an attribute value corresponding to an attribute name corresponding to the attribute identifier, and if so, determines the logistics transfer file to be searched in the logistics transfer file corresponding to the logistics transfer file name in the corresponding data record according to the search condition, performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request, and performs a second search on the logistics transfer file to be searched, and if not, continues to S323; S323, the storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request, and performs a second search on the logistics transfer file corresponding to the logistics transfer file name in the corresponding data record, and ends all steps; S324. The storage module performs a first search on the logistics record table corresponding to the logistics record table ID in the second search request according to the second search request.
10. A data retrieval system for a digital logistics management and control system, used to implement the method according to any one of claims 1 to 9, characterized in that: Includes the following modules: An input module, used for inputting logistics information of items arriving at different logistics distribution centers to generate logistics record files, and for sending the generated different logistics record files to the storage module; A storage module, used to store different logistics record files in a first storage unit respectively, to fill different logistics record tables in a second storage unit with different logistics record files in the first storage unit, and to select part of data records from different logistics record tables in the second storage unit to generate logistics transfer files, to store different logistics transfer files in a third storage unit, and to perform a first retrieval process according to a first retrieval request, and to perform a second retrieval process according to a second retrieval request; The retrieval module is used to send a first retrieval request and a second retrieval request to the storage module.
Citation Information
Patent Citations
Data query and sharing system
CN111507710A
Cooperative processing method and device for logistics information, equipment and storage medium
CN114925133A
Database full-text retrieval processing method and system
CN116821135A
Logistics quotation response method and device, equipment and medium
CN116911722A
Information retrieval device, information retrieval method and program
JP2012018579A
