CN116010436A - Method, device, equipment and storage medium for updating logistics scanning data - Google Patents

Method, device, equipment and storage medium for updating logistics scanning data Download PDF

Info

Publication number
CN116010436A
CN116010436A CN202310160647.XA CN202310160647A CN116010436A CN 116010436 A CN116010436 A CN 116010436A CN 202310160647 A CN202310160647 A CN 202310160647A CN 116010436 A CN116010436 A CN 116010436A
Authority
CN
China
Prior art keywords
data
scanning data
user terminal
initial
logistics
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310160647.XA
Other languages
Chinese (zh)
Inventor
闫心现
赵静
王永喜
郭勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qianzhen Information Technology Co ltd
Original Assignee
Shanghai Qianzhen Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Qianzhen Information Technology Co ltd filed Critical Shanghai Qianzhen Information Technology Co ltd
Priority to CN202310160647.XA priority Critical patent/CN116010436A/en
Publication of CN116010436A publication Critical patent/CN116010436A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the field of data processing and discloses a method, a device, equipment and a storage medium for updating logistics scanning data. The method comprises the following steps: when detecting that the target application generates version update and detecting that a preset initial logistics scanning data table has version update resources, sending a data update request to a user terminal; transmitting a data processing confirmation prompt to the user terminal in response to the user terminal permitting the request; in response to receiving a data retention instruction sent by a user terminal, backing up an initial logistics scanning data table in a preset database to obtain an initial logistics scanning data backup table; and acquiring a target logistics scanning data table in the version updating resource, replacing the initial logistics scanning data table based on the target logistics scanning data table, and associating the target logistics scanning data table with the initial logistics scanning data backup table. The invention reserves new and old data by backing up the original scanning data and simultaneously replacing the original scanning data by using the new version scanning data, thereby avoiding the loss of the original data.

Description

Method, device, equipment and storage medium for updating logistics scanning data
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a storage medium for updating logistic scan data.
Background
Because of huge logistics data, daily scanning tasks of the network sites are heavy, and scanning operations need to be performed on the network sites, such as to send and receive the network sites, sell the network sites and abnormal network sites, and the network sites usually store the data in a local application database through a data table in consideration of the private attribute of the data and the storage pressure of a server, so that a large amount of data is stored in the database.
In the prior art, when a user views a scanned data report, data is generally added, deleted and modified at the front end, a back end server responds to the operation of the user, violently deletes all the scanned data corresponding to the scanned data report in a database, and a new blank report is reconstructed to store the data corresponding to the operation of the user, so that the data of the logistics scanned data is lost.
Disclosure of Invention
The embodiment of the application provides a method for updating logistics scan data, which can request to reserve original scan data to a user to backup the original scan data when detecting data version updating, and simultaneously uses new version scan data operated by the user to cover the original scan data, thereby simultaneously reserving new and old data and avoiding the loss of the original scan data.
In a first aspect, an embodiment of the present application provides a method for updating logistics scan data, including:
when detecting that the target application generates version update and detecting that an initial logistics scanning data table in a preset database has version update resources, sending a data update request to a user terminal, wherein the initial logistics scanning data table is used for providing data service for the target application;
responding to a request for updating the permission data of the user terminal, and sending a data processing confirmation prompt to the user terminal, wherein the data processing confirmation prompt is used for confirming whether to retain the original data to the user terminal;
in response to receiving a data retention instruction sent by a user terminal, backing up an initial logistics scanning data table in a preset database to obtain an initial logistics scanning data backup table;
acquiring a target logistics scanning data table in version updating resources;
and replacing the initial logistics scanning data table based on the target logistics scanning data table, and associating the target logistics scanning data table with the initial logistics scanning data backup table.
In one possible implementation, when it is detected that the target application generates version update and it is detected that the initial logistics scan data table in the preset database has version update resources, sending a data update request to the user terminal includes:
when detecting that the target application generates version update and detecting that the initial logistics scanning data table in the preset database has version update resources, generating version update description information;
and sending a data updating request containing the description information to the user terminal.
In one possible implementation, when it is detected that the target application generates a version update and it is detected that the initial logistics scan data table in the preset database has a version update resource, generating version update description information includes:
when detecting that the target application generates version update and detecting that the initial logistics scanning data table in the preset database has version update resources, comparing the initial logistics scanning data table with the target logistics scanning data table in the version update resources;
and determining the update category of the target table according to the comparison result, and obtaining the description information containing the update category of the target table.
In one possible implementation manner, the method for updating the logistics scan data further includes:
and in response to receiving a data merging instruction sent by the user terminal, carrying out table data merging on the target logistics scanning data table and the initial logistics scanning data backup table to obtain a merged logistics scanning data table.
In one possible implementation manner, in response to receiving a data merging instruction sent by the user terminal, performing table data merging on the target logistics scanning data table and the initial logistics scanning data backup table to obtain a merged logistics scanning data table includes:
responding to a data merging instruction sent by a user terminal, and comparing a target logistics scanning data table with an initial logistics scanning data backup table associated with the target logistics scanning data table to obtain distinguishing item data in the target logistics scanning data table relative to the initial logistics scanning data backup table;
and writing the distinguishing item data into the initial logistics scanning data backup table to obtain a combined logistics scanning data table.
In one possible implementation manner, in response to receiving a data merging instruction sent by the user terminal, performing table data merging on the target logistics scanning data table and the initial logistics scanning data backup table to obtain a merged logistics scanning data table includes:
responding to a received data merging instruction sent by a user terminal, and acquiring an entity class corresponding to data version update;
calling entity class to create an intermediate stream scanning data table, wherein the intermediate stream scanning data table only comprises a plurality of attribute fields;
extracting all attribute fields in the intermediate stream scanning data table to obtain a target attribute field set;
and inquiring the field value of each attribute field in the target attribute field set in the initial logistics scanning data backup table and the target logistics scanning data table, and filling the intermediate logistics scanning data table according to the field value of each attribute field to obtain the combined logistics scanning data table.
In one possible implementation manner, after the user terminal permission data update request is responded, the data processing confirmation prompt is sent to the user terminal, and after the data retention instruction sent by the user terminal is received, the initial logistics scanning data table is backed up in the preset database, and before the initial logistics scanning data backup table is obtained, the method further comprises:
and enabling a transaction service in the preset database, wherein the transaction service is used for completely executing any database operation.
In one possible implementation manner, after the user terminal permission data update request is responded, the data processing confirmation prompt is sent to the user terminal, and after the data retention instruction sent by the user terminal is received, the initial logistics scanning data table is backed up in the preset database, and before the initial logistics scanning data backup table is obtained, the method further comprises:
and responding to the received update time parameter sent by the user terminal, and generating an update plan of the initial logistics scanning data table according to the update time parameter, wherein the update plan is used for carrying out version update on the initial logistics scanning data table in a specified time period.
In a second aspect, an embodiment of the present application provides an updating device for logistic scan data, including:
the updating request module is used for sending a data updating request to the user terminal when detecting that the target application generates version updating and detecting that an initial logistics scanning data table in a preset database has version updating resources, wherein the initial logistics scanning data table is used for providing data service for the target application;
the updating confirmation module is used for responding to the user terminal permission data updating request and sending a data processing confirmation prompt to the user terminal, wherein the data processing confirmation prompt is used for confirming whether the original data is reserved or not to the user terminal;
the data backup module is used for backing up the initial logistics scanning data table in a preset database in response to receiving a data retention instruction sent by the user terminal to obtain an initial logistics scanning data backup table;
the updating acquisition module is used for acquiring a target logistics scanning data table in the version updating resource;
and the data updating module is used for replacing the initial logistics scanning data table based on the target logistics scanning data table and associating the target logistics scanning data table with the initial logistics scanning data backup table.
In one possible implementation manner, the update request module specifically includes:
the description generation unit is used for generating version update description information when version update of the target application is detected and version update resources of an initial logistics scanning data table in a preset database are detected;
and the request sending unit is used for sending a data updating request containing the description information to the user terminal.
In a possible implementation manner, the description generating unit is specifically configured to:
when detecting that the target application generates version update and detecting that the initial logistics scanning data table in the preset database has version update resources, comparing the initial logistics scanning data table with the target logistics scanning data table in the version update resources;
and determining the update category of the target table according to the comparison result, and obtaining the description information containing the update category of the target table.
In one possible implementation manner, the updating device of the logistic scan data further includes:
and the table merging module is used for merging the table data of the target logistics scanning data table and the initial logistics scanning data backup table in response to receiving a data merging instruction sent by the user terminal, so as to obtain a merged logistics scanning data table.
In one possible implementation, the table merging module is specifically configured to:
the data comparison unit is used for responding to a data merging instruction sent by the user terminal, comparing the target logistics scanning data table with an initial logistics scanning data backup table associated with the target logistics scanning data table, and obtaining distinguishing item data in the target logistics scanning data table relative to the initial logistics scanning data backup table;
and the data writing unit is used for writing the distinguishing item data into the initial logistics scanning data backup table to obtain the combined logistics scanning data table.
In one possible implementation, the table merging module is specifically configured to:
the entity class acquisition unit is used for responding to the received data merging instruction sent by the user terminal and acquiring entity classes corresponding to the data version update;
the table creating unit is used for calling the entity class to create an intermediate stream scanning data table, wherein the intermediate stream scanning data table only comprises a plurality of attribute fields;
the attribute extraction unit is used for extracting all attribute fields in the intermediate stream scanning data table to obtain a target attribute field set;
and the data filling unit is used for inquiring the field value of each attribute field in the target attribute field set in the initial logistics scanning data backup table and the target logistics scanning data table, and filling the intermediate logistics scanning data table according to the field value of each attribute field to obtain the combined logistics scanning data table.
In one possible implementation manner, the updating device of the logistic scan data further includes:
and the transaction opening module is used for enabling transaction service in the preset database, wherein the transaction service is used for completely executing any database operation.
In one possible implementation manner, the updating device of the logistic scan data further includes:
and the updating plan setting module is used for responding to the received updating time parameter sent by the user terminal and generating an updating plan of the initial logistics scanning data table according to the updating time parameter, wherein the updating plan is used for carrying out version updating on the initial logistics scanning data table in a specified time period.
In a third aspect, an embodiment of the present application provides an update apparatus for logistics scan data, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the update device of the logistic scan data to perform the steps of the update method of logistic scan data described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform the steps of the above-described method of updating logistics scan data.
When the version update of the target application is detected and the version update resource of the preset initial logistics scanning data table is detected, a data update request is sent to the user terminal; transmitting a data processing confirmation prompt to the user terminal in response to the user terminal permitting the request; in response to receiving a data retention instruction sent by a user terminal, backing up an initial logistics scanning data table in a preset database to obtain an initial logistics scanning data backup table; and acquiring a target logistics scanning data table in the version updating resource, replacing the initial logistics scanning data table based on the target logistics scanning data table, and associating the target logistics scanning data table with the initial logistics scanning data backup table. The original logistics scanning data is backed up, and meanwhile, the original logistics scanning data is covered by the new version logistics scanning data, so that the new and old data are reserved at the same time, and the original data is prevented from being lost; meanwhile, the invention correlates the logistics scanning data tables of the new version and the old version, thereby facilitating the user to check the change condition of the logistics scanning data.
Drawings
Fig. 1 is a flowchart of an embodiment of a method for updating logistic scan data provided in an embodiment of the present application;
FIG. 2 is a flowchart of an embodiment of another method for updating physical distribution scanning data according to the embodiments of the present application;
fig. 3 is a schematic structural diagram of a device for updating logistic scan data according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another updating device for physical distribution scanning data according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a device for updating logistic scan data according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a method for updating logistics scan data, which can request to reserve original scan data to a user to backup the original scan data when detecting data version updating, and simultaneously uses new version scan data operated by the user to cover the original scan data, thereby simultaneously reserving new and old data and avoiding the loss of the original scan data.
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein the terms "first," "second," "third," "fourth," and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It is understood that any reference in this application to data acquisition or collection has been given user authorization.
It can be understood that the execution body of the application may be an updating device of the logistic scan data, and may also be a terminal or a server, which is not limited herein.
For easy understanding, the embodiment of the present application describes the method for updating the physical distribution scanning data by taking a server as an execution body as an example, and the following describes a specific flow of the embodiment of the present application, please refer to fig. 1, fig. 1 is a flowchart of an embodiment of the method for updating the physical distribution scanning data provided in the embodiment of the present application, which includes:
101. when detecting that the target application generates version update and detecting that an initial logistics scanning data table in a preset database has version update resources, sending a data update request to a user terminal, wherein the initial logistics scanning data table is used for providing data service for the target application;
the user views the logistics scanning data report on the front-end page, the data in the report is derived from the initial logistics scanning data table in the back-end database, in the viewing process of the report, the user always has data processing requirements, and the server responds to the data management operation by executing the data management operation such as adding, deleting and modifying in the user terminal, so that a new version of target logistics scanning data table is generated based on the initial logistics scanning data.
In one possible design, when the server detects that the target application generates version update and detects that the initial logistics scanning data table in the preset database has version update resources, version update description information is generated, so that a data update request containing the version update description information is sent to the user terminal. It will be appreciated that the description information is used to characterize specific data updates, such as the number of new data, the number of pruned data, and the number of modified data.
In one possible design, the server compares the initial logistics scanning data table with the target logistics scanning data table corresponding to the version update, so that the target table update category is determined according to the comparison result, and description information containing the target table update category is obtained. The comparison result is that the target logistics scanning data table is added or deleted with respect to the initial logistics scanning data table, and the server determines the update type of the target logistics scanning data table; for another example, the server determines that the target table update type is a table structure update type when one or more attribute field names are added or deleted in the target table in the comparison result relative to the initial table.
In one possible design, the server may use a comparison Algorithm such as BF (Brute Force), KMP (The Knuth-Morris-Pratt Algorithm), BM (Boyer-Moore Algorithm), etc. to compare The initial logistics scan data table with The target logistics scan data table corresponding to The version update, thereby improving The comparison efficiency of The table data.
102. Responding to a request for updating the permission data of the user terminal, and sending a data processing confirmation prompt to the user terminal, wherein the data processing confirmation prompt is used for confirming whether to retain the original data to the user terminal;
in one possible design, when the user grants the data update request through the user terminal, the server enables the transaction service in the preset database, and performs the corresponding database operation in the data update request based on the atomicity of the transaction service, so as to stably update the logistics scan data.
In one possible design, the server responds to the received update time parameter sent by the user terminal, and generates an update plan of the initial logistics scanning data table according to the update time parameter, so that version update is carried out on the initial logistics scanning data table within a specified time period, and therefore maintenance efficiency of logistics scanning data is improved.
103. In response to receiving a data retention instruction sent by a user terminal, backing up an initial logistics scanning data table in a preset database to obtain an initial logistics scanning data backup table;
it can be understood that when the user chooses to keep the original data, the server backs up the initial physical distribution scanning data table, and meanwhile, the initial physical distribution scanning data table can be set as a temporary table, and the temporary table is automatically cleared when the database is closed.
104. Acquiring a target logistics scanning data table in version updating resources;
105. and replacing the initial logistics scanning data table based on the target logistics scanning data table, and associating the target logistics scanning data table with the initial logistics scanning data backup table.
It will be appreciated that the server should maintain consistency in the names of the data tables when using the target logistics scan data table to overlay the initial logistics scan data table, thereby avoiding unnecessary service code maintenance.
After the server associates the target logistics scanning data table with the initial logistics scanning data backup table, when a subsequent user checks the logistics scanning data report, the data with changed versions can be checked at will, so that data analysis and decision can be performed rapidly.
Based on the method provided by the embodiment of the application, original logistics scanning data are backed up, and meanwhile new version logistics scanning data are used for covering the original logistics scanning data, so that new and old data are reserved at the same time, and the original data are prevented from being lost; meanwhile, the logistics scanning data tables of the new version and the old version are correlated, so that a user can check the change condition of the logistics scanning data conveniently.
Referring to fig. 2, fig. 2 is a flowchart of an embodiment of another method for updating physical distribution scanning data according to an embodiment of the present application, including:
201. when detecting that the target application generates version update and detecting that an initial logistics scanning data table in a preset database has version update resources, sending a data update request to a user terminal, wherein the initial logistics scanning data table is used for providing data service for the target application;
202. responding to a request for updating the permission data of the user terminal, and sending a data processing confirmation prompt to the user terminal, wherein the data processing confirmation prompt is used for confirming whether to retain the original data to the user terminal;
203. in response to receiving a data retention instruction sent by a user terminal, backing up an initial logistics scanning data table in a preset database to obtain an initial logistics scanning data backup table;
204. acquiring a target logistics scanning data table in version updating resources;
205. replacing the initial logistics scanning data table based on the target logistics scanning data table, and associating the target logistics scanning data table with the initial logistics scanning data backup table;
steps 201 to 205 are similar to the steps 101 to 105, and are not repeated here.
206. And in response to receiving a data merging instruction sent by the user terminal, carrying out table data merging on the target logistics scanning data table and the initial logistics scanning data backup table to obtain a merged logistics scanning data table.
It can be understood that the data in the merged physical distribution scanning data table is the union between the data in the target physical distribution scanning data table and the data in the backup table of the initial physical distribution scanning data, so that the physical distribution scanning data of the new and old versions are saved in the same table.
In one possible design, the server responds to receiving a data merging instruction sent by the user terminal, compares the target logistics scanning data table with an initial logistics scanning data backup table associated with the target logistics scanning data table to obtain distinguishing item data in the target logistics scanning data table relative to the initial logistics scanning data backup table, and writes the distinguishing item data into the initial logistics scanning data backup table, so that the merged logistics scanning data table is obtained. For the conflicting data in the same data record in the table, the server modifies the field attribute name according to a preset naming rule, for example, the a attribute field in the data record a in the merged stream scanning data table corresponds to two values, which are respectively from the target stream scanning data table and the initial stream scanning data backup table, and then splits the a attribute field into an a1 attribute field and an a2 attribute field to be recorded in the table at the same time.
In another possible design, the server obtains an entity class corresponding to the data version update in response to receiving a data merging instruction sent by the user terminal, calls the entity class to create an intermediate stream scanning data table, and the intermediate stream scanning data table is an empty table, wherein the intermediate stream scanning data table only comprises a plurality of attribute fields; extracting all attribute fields in the intermediate stream scanning data table to obtain a target attribute field set; and inquiring the field value of each attribute field in the target attribute field set in the initial logistics scanning data backup table and the target logistics scanning data table, and filling the intermediate logistics scanning data table according to the field value of each attribute field, thereby obtaining the combined logistics scanning data table.
According to the method provided by the embodiment of the application, the data storage space is saved by combining the logistics scanning data of the new version and the old version, and meanwhile, the data after the front-back change is stored in one data table, so that the data comparison is easier for users.
The method for updating the physical distribution scanning data in the embodiment of the present application is described above, and the device for updating the physical distribution scanning data in the embodiment of the present application is described below, referring to fig. 3, fig. 3 is a schematic structural diagram of the device for updating the physical distribution scanning data provided in the embodiment of the present application, including: .
The update request module 301 is configured to send a data update request to a user terminal when it is detected that a target application generates version update and it is detected that an initial physical distribution scanning data table in a preset database has version update resources, where the initial physical distribution scanning data table is used to provide data services for the target application;
an update confirmation module 302, configured to send a data processing confirmation prompt to the user terminal in response to the user terminal permission data update request, where the data processing confirmation prompt is configured to confirm to the user terminal whether to retain the original data;
the data backup module 303 is configured to backup, in response to receiving a data retention instruction sent by the user terminal, the initial physical distribution scanning data table in the preset database, so as to obtain an initial physical distribution scanning data backup table;
an update acquisition module 304, configured to acquire a target logistics scan data table in the version update resource;
the data updating module 305 is configured to replace the initial logistics scan data table based on the target logistics scan data table, and associate the target logistics scan data table with the initial logistics scan data backup table.
Based on the device provided by the embodiment of the application, original logistics scanning data are backed up, and meanwhile new version logistics scanning data are used for covering the original logistics scanning data, so that new and old data are reserved at the same time, and the loss of the original data is avoided; meanwhile, the logistics scanning data tables of the new version and the old version are correlated, so that a user can check the change condition of the logistics scanning data conveniently.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another updating apparatus for physical distribution scanning data according to an embodiment of the present application, including:
the update request module 301 is configured to send a data update request to a user terminal when it is detected that a target application generates version update and it is detected that an initial physical distribution scanning data table in a preset database has version update resources, where the initial physical distribution scanning data table is used to provide data services for the target application;
an update confirmation module 302, configured to send a data processing confirmation prompt to the user terminal in response to the user terminal permission data update request, where the data processing confirmation prompt is configured to confirm to the user terminal whether to retain the original data;
the data backup module 303 is configured to backup, in response to receiving a data retention instruction sent by the user terminal, the initial physical distribution scanning data table in the preset database, so as to obtain an initial physical distribution scanning data backup table;
an update acquisition module 304, configured to acquire a target logistics scan data table in the version update resource;
the data updating module 305 is configured to replace the initial logistics scan data table based on the target logistics scan data table, and associate the target logistics scan data table with the initial logistics scan data backup table.
In one possible design, the update request module 301 specifically includes:
a description generation unit 3011, configured to generate version update description information when it is detected that a version update occurs in the target application and it is detected that a version update resource exists in an initial logistics scan data table in the preset database;
a request transmitting unit 3012 for transmitting a data update request containing the description information to the user terminal.
In one possible design, the description generating unit 3011 is specifically configured to:
when detecting that the version update occurs to the target application and detecting that the version update resource exists in the initial logistics scanning data table in the preset database, comparing the initial logistics scanning data table with the target logistics scanning data table corresponding to the version update;
and determining the update category of the target table according to the comparison result, and obtaining the description information containing the update category of the target table.
In one possible design, the updating device of the logistic scan data further includes:
and the table merging module 306 is configured to, in response to receiving a data merging instruction sent by the user terminal, merge the table data of the target logistics scanning data table and the initial logistics scanning data backup table to obtain a merged logistics scanning data table.
In one possible design, the table merge module 306 is specifically configured to:
the entity class obtaining unit 3061 is configured to obtain an entity class corresponding to the data version update in response to receiving a data merging instruction sent by the user terminal;
a table creating unit 3062, configured to call the entity class to create an intermediate stream scanning data table, where the intermediate stream scanning data table only includes a plurality of attribute fields;
the attribute extraction unit 3063 is configured to extract all attribute fields in the intermediate stream scanning data table to obtain a target attribute field set;
and the data filling unit 3064 is used for inquiring the field value of each attribute field in the target attribute field set in the initial logistics scanning data backup table and the target logistics scanning data table, and filling the intermediate logistics scanning data table according to the field value of each attribute field to obtain the combined logistics scanning data table.
In one possible design, the updating device of the logistic scan data further includes:
the transaction opening module 307 is configured to enable a transaction service in the preset database, where the transaction service is configured to completely execute any database operation.
In one possible design, the updating device of the logistic scan data further includes:
the update plan setting module 308 is configured to generate an update plan of the initial logistics scan data table according to the update time parameter in response to receiving the update time parameter sent by the user terminal, where the update plan is used for performing version update on the initial logistics scan data table in a specified time period.
Based on the device provided by the embodiment of the application, the modularized design enables hardware of each part of the updating device of the logistics scanning data to be focused on realization of a certain function, the performance of the hardware is maximally realized, meanwhile, the coupling between modules of the device is reduced due to the modularized design, and the device is more convenient to maintain.
The above-described device for updating the logistic scan data in the embodiment of the present application is described in detail from the point of view of the modularized functional entity in fig. 3 to 4, and the following describes the device for updating the logistic scan data in the embodiment of the present application in detail from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a device for updating physical distribution scan data according to an embodiment of the present application, where the device 500 for updating physical distribution scan data may have a relatively large difference due to different configurations or performances, and may include one or more processors 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the update apparatus 500 for the logistics scan data. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the update device 500 of the logistic scan data.
The update device 500 for the logistics scan data may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the configuration of the update device of the logistics scan data illustrated in fig. 5 does not constitute a limitation of the update device of the logistics scan data, and may include more or less components than illustrated, or may combine certain components, or may be a different arrangement of components.
The present application also provides a device for updating logistics scan data, where the computer device includes a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the method for updating logistics scan data in the foregoing embodiments.
The present application also provides a computer readable storage medium, which may be a nonvolatile computer readable storage medium, or may be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, where the instructions when executed on a computer cause the computer to perform the steps of the method for updating logistics scan data.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The subject application is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. The method for updating the logistics scanning data is characterized by comprising the following steps of:
when detecting that a target application generates version update and detecting that an initial logistics scanning data table in a preset database has version update resources, sending a data update request to a user terminal, wherein the initial logistics scanning data table is used for providing data service for the target application;
responding to the data updating request allowed by the user terminal, and sending a data processing confirmation prompt to the user terminal, wherein the data processing confirmation prompt is used for confirming whether original data is reserved or not to the user terminal;
in response to receiving a data retention instruction sent by the user terminal, backing up the initial logistics scanning data table in the preset database to obtain an initial logistics scanning data backup table;
acquiring a target logistics scanning data table in the version updating resource;
and replacing the initial logistics scanning data table based on the target logistics scanning data table, and associating the target logistics scanning data table with the initial logistics scanning data backup table.
2. The method for updating physical distribution scan data according to claim 1, wherein when it is detected that the version update of the target application occurs and it is detected that the version update resource exists in the initial physical distribution scan data table in the preset database, the step of sending a data update request to the user terminal includes:
when detecting that the version update of the target application occurs and detecting that the version update resource exists in the initial logistics scanning data table in the preset database, comparing the initial logistics scanning data table with the target logistics scanning data table in the version update resource;
determining a target table update category according to the comparison result, and obtaining description information containing the target table update category;
and sending a data updating request carrying the description information to the user terminal.
3. The method for updating physical distribution scan data according to claim 1, further comprising:
and in response to receiving a data merging instruction sent by the user terminal, carrying out table data merging on the target logistics scanning data table and the initial logistics scanning data backup table to obtain a merged logistics scanning data table.
4. The method for updating physical distribution scan data according to claim 3, wherein in response to receiving the data merging instruction sent by the user terminal, the step of merging the table data of the target physical distribution scan data table with the initial physical distribution scan data backup table to obtain a merged physical distribution scan data table includes:
responding to a data merging instruction sent by the user terminal, comparing the target logistics scanning data table with an initial logistics scanning data backup table associated with the target logistics scanning data table to obtain distinguishing item data in the target logistics scanning data table relative to the initial logistics scanning data backup table;
and writing the distinguishing item data into the initial logistics scanning data backup table to obtain a combined logistics scanning data table.
5. The method for updating physical distribution scan data according to claim 3, wherein in response to receiving the data merging instruction sent by the user terminal, the step of merging the table data of the target physical distribution scan data table with the initial physical distribution scan data backup table to obtain a merged physical distribution scan data table includes:
responding to the received data merging instruction sent by the user terminal, and acquiring an entity class corresponding to the data version update;
calling the entity class to create an intermediate stream scanning data table, wherein the intermediate stream scanning data table only comprises a plurality of attribute fields;
extracting all attribute fields in the intermediate stream scanning data table to obtain a target attribute field set;
and inquiring a field value of each attribute field in the target attribute field set in the initial logistics scanning data backup table and the target logistics scanning data table, and filling the intermediate logistics scanning data table according to the field value of each attribute field to obtain a combined logistics scanning data table.
6. The method for updating physical distribution scanning data according to claim 1, wherein after said responding to said user terminal permitting said data updating request and sending a data processing confirmation prompt to said user terminal, said responding to receiving a data retention instruction sent by said user terminal, backing up said initial physical distribution scanning data table in said preset database, and before obtaining an initial physical distribution scanning data backup table, further comprises:
and enabling the transaction service in the preset database, wherein the transaction service is used for completely executing any database operation.
7. The method for updating physical distribution scan data according to any one of claims 1 to 6, wherein after the response to the user terminal granting the data update request and sending a data processing confirmation prompt to the user terminal, the response to receiving a data retention instruction sent by the user terminal, backing up the initial physical distribution scan data table in the preset database, and before obtaining an initial physical distribution scan data backup table, further comprises:
and generating an update plan of the initial logistics scanning data table according to the update time parameter in response to receiving the update time parameter sent by the user terminal, wherein the update plan is used for carrying out version update on the initial logistics scanning data table in a specified time period.
8. An updating device for logistic scan data, comprising:
the updating request module is used for sending a data updating request to the user terminal when version updating of the target application is detected and version updating resources of an initial logistics scanning data table in a preset database are detected, wherein the initial logistics scanning data table is used for providing data service for the target application;
an update confirmation module, configured to send a data processing confirmation prompt to the user terminal in response to the user terminal permitting the data update request, where the data processing confirmation prompt is configured to confirm to the user terminal whether to retain original data;
the data backup module is used for responding to the data retention instruction sent by the user terminal, backing up the initial logistics scanning data table in the preset database and obtaining an initial logistics scanning data backup table;
the update acquisition module is used for acquiring a target logistics scanning data table in the version update resource;
and the data updating module is used for replacing the initial logistics scanning data table based on the target logistics scanning data table and associating the target logistics scanning data table with the initial logistics scanning data backup table.
9. An update apparatus for physical distribution scan data, characterized in that the update apparatus for physical distribution scan data comprises: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invokes the instructions in the memory to cause the update apparatus of the logistics scan data to perform the steps of the method of updating logistics scan data of any one of claims 1-7.
10. A computer readable storage medium having instructions stored thereon, which when executed by a processor, perform the steps of the method of updating logistic scan data as claimed in any one of claims 1 to 7.
CN202310160647.XA 2023-02-23 2023-02-23 Method, device, equipment and storage medium for updating logistics scanning data Pending CN116010436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310160647.XA CN116010436A (en) 2023-02-23 2023-02-23 Method, device, equipment and storage medium for updating logistics scanning data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310160647.XA CN116010436A (en) 2023-02-23 2023-02-23 Method, device, equipment and storage medium for updating logistics scanning data

Publications (1)

Publication Number Publication Date
CN116010436A true CN116010436A (en) 2023-04-25

Family

ID=86032141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310160647.XA Pending CN116010436A (en) 2023-02-23 2023-02-23 Method, device, equipment and storage medium for updating logistics scanning data

Country Status (1)

Country Link
CN (1) CN116010436A (en)

Similar Documents

Publication Publication Date Title
CN109344183B (en) Data interaction method and device, computer equipment and storage medium
CN107463635B (en) Method for inquiring picture data and distributed NewSQL database system
CN107220142B (en) Method and device for executing data recovery operation
CN111079397B (en) Task file generation method and device based on image recognition
CN102236672A (en) Method and device for importing data
CN105468720A (en) Method for integrating distributed data processing systems, corresponding systems and data processing method
CN101405728A (en) Relational database architecture with dynamic load capability
CN111078559A (en) Method, device, medium and computer equipment for extracting function call in java code
US20020161615A1 (en) Workflow system
CN108897729B (en) Transaction template sharing method and device, electronic equipment and storage medium
CN116562826B (en) Client ERP system management method, system and medium based on user demand
CN112328631A (en) Production fault analysis method and device, electronic equipment and storage medium
CN115080537A (en) Multi-tenant data partitioning method, program product and electronic device
CN115098889B (en) Authority management method, device, equipment and storage medium
CN116010436A (en) Method, device, equipment and storage medium for updating logistics scanning data
CN108959548B (en) Service request processing method and device
CN114547050A (en) Batch processing content duplication judging method, system, device, terminal equipment and storage medium
CN110187385B (en) Seismic data acquisition method, seismic data processing method and device
CN112765600A (en) Control method for collecting automatic synchronization CMDB based on HIDS intrusion detection
CN111752927A (en) Clone-based data form generation method, device, terminal equipment and medium
CN117112846B (en) Multi-information source license information management method, system and medium
CN111311329B (en) Tag data acquisition method, device, equipment and readable storage medium
US20230015123A1 (en) Systems and methods for personally identifiable information metadata governance
CN112860780B (en) Data export method and device and terminal equipment
CN116028444B (en) File fingerprint generation method, device and system, electronic equipment and storage medium

Legal Events

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