CN111638904B - Data configuration restoration method and device and readable storage medium - Google Patents

Data configuration restoration method and device and readable storage medium Download PDF

Info

Publication number
CN111638904B
CN111638904B CN202010395070.7A CN202010395070A CN111638904B CN 111638904 B CN111638904 B CN 111638904B CN 202010395070 A CN202010395070 A CN 202010395070A CN 111638904 B CN111638904 B CN 111638904B
Authority
CN
China
Prior art keywords
data configuration
content
version number
restoring
data
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.)
Active
Application number
CN202010395070.7A
Other languages
Chinese (zh)
Other versions
CN111638904A (en
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.)
Beike Technology Co Ltd
Original Assignee
Beike 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN202010395070.7A priority Critical patent/CN111638904B/en
Publication of CN111638904A publication Critical patent/CN111638904A/en
Application granted granted Critical
Publication of CN111638904B publication Critical patent/CN111638904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a data configuration restoration method, a data configuration restoration device and a readable storage medium. Obtaining a target version number according to a first preset operation of a user, wherein the target version number is a version number corresponding to data configuration to be restored; invoking restored content according to the target version number, wherein the restored content at least comprises the first changed content corresponding to all version numbers from the current version number to the target version number; and restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content. And restoring the current data configuration to the data configuration corresponding to the required target version number through the version number and the first change content, and continuing editing, so that the technical problem that the data configuration needs to be edited again each time in the prior art is avoided.

Description

Data configuration restoration method and device and readable storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for restoring data configuration, and a readable storage medium.
Background
Currently, data configuration is a data application mode in which data nodes are configured in a predetermined logical order, and some of the data nodes may also be assigned values, and this data configuration application mode is applied in various fields. For example, in an online service platform, service nodes can be often represented by data nodes, and the predetermined logic sequence represents the logic sequence and relationship between the service nodes, but since the service nodes will change according to different specific application scenarios, the data configuration often needs to be modified, and even if the modification is small, the data configuration needs to be edited again, which causes a great deal of repeated work.
The inventors have found that there is at least a problem in the prior art in that the entire data configuration needs to be re-edited due to the change of the data configuration section, resulting in a lot of repeated work.
Disclosure of Invention
The invention provides a data configuration restoration method, which aims to return the current data configuration to the data configuration corresponding to the required target version number through the version number and the first change content, and continue editing, so that the need of editing the data configuration again in each time in the prior art is avoided.
The method comprises the following steps:
storing data configuration according to a first preset mode, and recording a version number and first change content generated corresponding to each stored data configuration, wherein the version number is a corresponding identifier of each stored data configuration and is used for calling the corresponding data configuration and the first change content, the first change content is a distinguishing content between the stored data configuration and the stored data configuration, and the data configuration is configured according to a preset logic sequence through a data node;
obtaining a target version number according to a first preset operation, wherein the target version number is a version number corresponding to data configuration to be restored;
invoking restored content according to the target version number, wherein the restored content at least comprises the first changed content corresponding to all version numbers from the current version number to the target version number;
and restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content.
Optionally, the storing the data configuration according to the first predetermined manner and recording a version number and a first change content generated corresponding to each stored data configuration, where the version number is a corresponding identifier of each stored data configuration and is used to call the corresponding data configuration and the first change content, the first change content is a distinguishing content between the present stored data configuration and the previous stored data configuration, and before the step of configuring the data configuration by the data node according to the predetermined logic sequence, the method further includes:
marking the data nodes in the data configuration according to a second preset mode and recording second changing contents corresponding to each mark, wherein the second changing contents are distinguishing contents between the data configuration of the current mark and the initial data configuration, and the marks are used for calling the corresponding second changing contents;
acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
invoking the second modified content according to the target mark;
and restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content.
Optionally, the restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content is performed by gradually restoring the current data configuration to the data configuration corresponding to the target version number according to the first changing content in the restoring content.
Optionally, after the step of restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content, the method further includes:
and gradually remolding the data configuration corresponding to the target mark according to the second change content according to the preset logic sequence to obtain the current data configuration.
Optionally, the first change content and/or the second change content includes a new data node and an updated data node, and the predetermined logic order is edited.
The application also provides a data configuration restoring device, which comprises:
the storage module is used for storing the data configuration according to a first preset mode and recording a version number and first change content which are generated corresponding to each stored data configuration, wherein the version number is a corresponding identifier of each stored data configuration and is used for calling the corresponding data configuration and the first change content, the first change content is a distinguishing content between the stored data configuration at this time and the stored data configuration at the previous time, and the data configuration is configured according to a preset logic sequence through a data node;
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a target version number according to a first preset operation of a user, wherein the target version number is a version number corresponding to data configuration to be restored;
the calling module is used for calling the restored content according to the target version number, wherein the restored content at least comprises first changed content corresponding to all version numbers from the current version number to the target version number;
and the restoring module is used for restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content.
Optionally, the apparatus further comprises:
the marking module is used for marking the data nodes in the data configuration according to a second preset mode and recording second changing contents corresponding to each mark, wherein the second changing contents are distinguishing contents between the data configuration of the current mark and the initial data configuration, and the marks are used for calling the corresponding second changing contents;
the acquisition module is used for acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
the calling module is further used for calling the second change content according to the target mark;
and the restoring module is further configured to restore the current data configuration to the data configuration corresponding to the target mark according to the second change content.
Optionally, the apparatus comprises:
the restoring module is further configured to restore the current data configuration to the data configuration corresponding to the target version number according to the restoring content, and gradually restore the current data configuration to the data configuration corresponding to the target version number according to the first changing content in the restoring content.
The application also provides an electronic device, which comprises: a processor and a memory;
the memory stores therein an application executable by the processor for causing the processor to perform the steps of the data configuration restoration method of any one of the above.
The present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the data configuration restoration method.
As can be seen from the above, based on the above embodiment, the current data configuration can be restored to the required data configuration and continuously edited through the version number and the first modification content, or the mark and the second modification content, so that the technical problem that the data configuration needs to be edited again each time in the prior art is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic diagram of a data framework of a data configuration applied to a real estate transaction system in an embodiment of the present application;
FIG. 2 is a schematic diagram of a data framework of a data configuration applied to a real estate transaction system according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a data configuration restoration method 100 according to the present application;
FIG. 4 is a schematic diagram of a data configuration restoration method 200 according to the present application;
FIG. 5 is a schematic diagram of a logical relationship of a data architecture of a data configuration restoration method according to the present application;
FIG. 6 is a schematic diagram of an architecture of a data partitioning device in one embodiment.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Taking house transaction service as an example, in the data configuration process, data nodes are equivalent to service nodes, the data nodes are structured according to a preset logic sequence, the preset logic sequence is equivalent to the logic sequence and the relation among the service nodes, and because house property transaction is influenced by factors such as policies of various cities, the service nodes in the house property transaction flow of various cities are different, the preset logic sequence of the service nodes and the acquired information of corresponding assignment of various cities are different, and even the names defined by the service nodes with the same meaning are inconsistent. Fig. 1 is a schematic diagram of a data frame of a data configuration applied to a real estate transaction system according to an embodiment of the present application, and fig. 2 is a schematic diagram of a data frame of a data configuration applied to a real estate transaction system according to another embodiment of the present application. As shown in fig. 1 and 2, shenzhen needs to register spare parts well, while lan needs to register mapping results. The service nodes configured according to the above-described Shenzhen and Lanzhou exemplary data are different. Each service node may also perform a valuation, for example, where a valuation may be understood as filling the service node with the content of the registered spare part or the result of the registered mapping. For another example, the whole transaction process does not need to apply for a bank loan and the business node of the bank lending link because the bank loan buying room is not needed. The above example of a bank loan illustrates that the predetermined logical order exists between the service nodes in addition to the service nodes. In summary, the complexity of the service system can be known, and the service systems in each region have the same point and different points, but the developer needs to reconfigure the data every time the developer configures the data of the service system, and when the service nodes are numerous, the development efficiency is extremely low.
Fig. 3 is a schematic diagram of a data configuration restoration method 100 in the present application. As shown in fig. 3, in an embodiment, the present application provides a method for restoring a data configuration, where the method includes:
s101, storing data configuration according to a first preset mode, and recording a version number and first change content generated corresponding to each stored data configuration, wherein the version number is a corresponding identifier of each stored data configuration and is used for calling the corresponding data configuration and the first change content, the first change content is a distinguishing content between the stored data configuration at this time and the stored data configuration at the previous time, and the data configuration is configured according to a preset logic sequence through a data node;
in this step, a specific embodiment of generating the version number and the first modification content by saving the data configuration is provided. It should be noted that, in this step, the first predetermined manner may be understood as a manner of saving the data configuration, and it should be noted that the saving operation herein does not need to generate the version number and the first change content of the corresponding data configuration every time saving, and different saving policies may be selected to save according to the first predetermined manner, for example, only generating the version number and the first change content for a single saving, and so on. If the first change content is stored for the first time, the default first change content is the data configuration stored for the first time. If the storage is performed for a plurality of times, a plurality of data configurations are stored, and the corresponding version number and the first change content are generated for each data configuration. It should be noted that the time between saves is a default save order, and the first change content can be understood as the distinguishing content between two adjacent save data configurations.
S102, acquiring a target version number according to a first preset operation, wherein the target version number is a version number corresponding to data configuration to be restored;
in this step, a specific embodiment is provided in which the target version number, that is, the data configuration state to which the user wants the data configuration to be restored, is obtained through the first predetermined operation by the user. According to the previous step, it can be seen that a corresponding version number is obtained after each saving, and the version number corresponding to the data configuration to be restored, namely the target version number, is selected from the version numbers. It should be noted that the data configuration to be restored mentioned in this step is one of the data configurations corresponding to the version number in the previous data configuration process, and the data configuration that is not stored yet cannot be restored.
S103, calling restored contents according to the target version number, wherein the restored contents at least comprise the first changed contents corresponding to all version numbers from the current version number to the target version number;
in this step, a specific step of calling the restored content through the target version number is provided, where the restored content includes at least the first modified content corresponding to all version numbers from the current version number to the target version number. As described above, since the first modified content is a difference between the present save and the previous save, the first modified content can only provide a difference between the data configuration in two adjacent saves, but it is obvious that the target version number and the current version number may be two adjacent saves or may be saved in a plurality of times, so the restored content needs to include at least the first modified content corresponding to all the version numbers from the current version number to the target version number.
S104, restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content.
In this step, a method for restoring the current data configuration to the data configuration corresponding to the target version number is provided, and because the restoring content has the first changing content corresponding to all version numbers from the current version number to the target version number, the current data configuration can be restored to the data configuration corresponding to the target version number.
In this embodiment, a method for restoring a data configuration is provided, where the data configuration is first saved according to the first predetermined manner, the version number and the first modification content are generated correspondingly for each saving, and the data configuration saved this time, the corresponding version number and the first modification content are saved in the background. The preservation may be performed either singly or in a plurality of times. In the case of single save, there are two possibilities, the first is that there is already one existing data configuration, and then the first change content of the save can be understood as the distinguishing content between the data configuration at this time and the existing data configuration. The second possibility is that the first-mentioned current saving is the first saving, and then the data configuration at the time of the current saving is the first change content. And then, acquiring the target version number according to the first preset operation of the user, wherein the first preset operation can be understood as that the user inputs the target version number or selects an option corresponding to the target version from a selection menu of the version number, and the target version number is the version number corresponding to the data configuration to be restored. And calling the restored content according to the target version number, wherein the restored content at least comprises the first changed content corresponding to all version numbers from the current version number to the target version number. And restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content.
Fig. 4 is a schematic diagram of a data configuration restoration method 200 in the present application. As shown in fig. 4, in an embodiment, the storing the data configuration according to the first predetermined manner and recording a version number and a first change content generated corresponding to each stored data configuration, where the version number is a corresponding identifier of each stored data configuration and is used to call the corresponding data configuration and the first change content, and the first change content is a distinguishing content between the present stored data configuration and the previous stored data configuration, and before the step of configuring the data configuration by the data node according to a predetermined logic sequence, the method further includes:
s201, marking data nodes in data configuration according to a second preset mode and recording second changing content corresponding to each mark, wherein the second changing content is the distinguishing content between the current marked data configuration and the initial data configuration, and the mark is used for calling the corresponding second changing content;
in this step, the data node configured by data is marked, and as described above, the data node configured by data corresponds to the service node, so marking the data node can be understood as marking the service node. The second predetermined manner may be understood as selectively marking the data nodes in a manner, such as marking the data nodes at intervals, etc. It should be noted that the interval mark is only an example of the second predetermined manner and is not a specific limitation of the second predetermined manner. The marking in this step may be understood as marking each of said data nodes selected by said second predetermined means with a tag. The second change content is the distinguishing content between the currently marked data configuration and the initial data configuration, wherein the initial data configuration comprises two cases, one is the newly built data configuration, then the initial data configuration can be understood as empty, the other is more common, the loaded data configuration is subjected to subsequent editing based on the data configuration, and then the data configuration can be understood as the initial data configuration.
S202, acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to data configuration to be restored;
in this step, a specific embodiment of obtaining the target mark by the second predetermined operation by the user is provided, where the second predetermined operation may be understood that the user selects a mark corresponding to the data configuration desired from the above marks. Because each of the data nodes selected in the second predetermined manner is marked, each of the data nodes may be provided with a corresponding mark for invoking the second modification.
S203, calling the second change content according to the target mark;
in this step, a specific embodiment of calling the second modification content through the target mark is provided.
S204, restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content.
In this step, the current data configuration may be restored to the data configuration corresponding to the target mark according to the second modification content.
In this embodiment, a specific way of implementing restoration by marking the data node is provided. Marking the data node of the data configuration according to a second preset mode can be understood as marking the data node with a tag. And saving the distinguishing content between the current marked data configuration and the initial editing data configuration, namely the initial data configuration, namely the second changing content. And finally, restoring the current data configuration according to the second change content. It should be noted that, compared to the restoration method using version numbers in the previous embodiment, the first modification content and the second modification content have substantial differences, where the first modification content is a distinguishing content of a data configuration between two adjacent stores, and the second modification content is a distinguishing content between a current tag data configuration and the initial data configuration.
In an embodiment, the restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content is configured to gradually restore the current data configuration to the data configuration corresponding to the target version number according to the first changing content in the restoring content in a saving order.
In this embodiment, a specific manner of restoration is provided, so that in order to enable a developer to know how the current data configuration is gradually edited from the data configuration corresponding to the mark, the restore content is gradually presented according to the restore content, and because the restore content is the first change content corresponding to all the corresponding marks, the first change content between each step can provide data support for gradual restoration.
In an embodiment, after the step of restoring the current data configuration to the data configuration corresponding to the target mark according to the second modification content, the method further includes:
and gradually remolding the data configuration corresponding to the target mark according to the second change content according to the preset logic sequence to obtain the current data configuration.
A specific implementation of reshaping the current data configuration is provided in this embodiment. It should be noted that, because the second modification content is a distinguishing content based on the initial data configuration, the data configuration corresponding to the target mark may be gradually reshaped, and finally the current data configuration is obtained.
In an embodiment, the first change content and/or the second change content comprises a new data node and an updated data node, and the predetermined logical order is edited.
In this embodiment, specific modification contents of the first modification content and/or the second modification content are provided, and according to the operation of data configuration, the first modification content and the second modification content may include a new data node and an updated data node, and edit the predetermined logic sequence.
In addition, the method steps described herein may be implemented by hardware, such as logic gates, switches, application Specific Integrated Circuits (ASIC), programmable logic controllers, embedded microcontrollers, etc., in addition to data processing programs. Such hardware that can implement the methods described herein may also constitute the present application.
The flowcharts and block diagrams in the figures of the present application illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the present application. In particular, the features recited in the various embodiments and/or claims of the present application may be combined in various combinations and/or combinations without departing from the spirit and teachings of the application, all of which are within the scope of the disclosure.
The principles and embodiments of the present invention have been described herein with reference to specific examples, which are intended to be included herein for purposes of illustration only and not to be limiting of the invention. It will be apparent to those skilled in the art that variations can be made in the present embodiments and in the scope of the application in accordance with the spirit and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. are intended to be included within the scope of the present application.
Basic principle and working process:
the data processing procedure of the present application will be further described below by taking Shenzhen merchant credit transaction procedure as an example. It should be noted that this example is only for better explaining the data processing procedure of the present invention, and is not a specific limitation of the present application.
FIG. 5 is a schematic diagram of a data structure logic relationship of a data configuration restoration method according to the present application. As shown in FIG. 5, which is a schematic diagram of data configuration of a Shenzhen credit transaction flow, the service nodes corresponding to the data nodes in FIG. 5 are respectively newspaper audits, face labels, complete registration spare parts, batch credits, net labels, tax payment, passing, new inapplicable certificates, mortgage sending, other certificates outputting, paying and settlement, and the service nodes are configured according to a preset logic sequence, namely are sequentially connected with the configuration.
The save operation is represented in fig. 5 by a dashed line, the first save of the service nodes with a newspaper audit and a facing note in the dashed line box, it being noted that saving should save a predetermined logical order between the service nodes in addition to the service nodes, and that the record, whether saved or marked in the following discussion, includes the service nodes and the predetermined logical order between these service nodes. The broken line box of the second storage comprises the service nodes with complete registration spare parts and batch loan besides the service nodes corresponding to the newspaper censoring and the front face, and the service nodes with complete registration spare parts and batch loan are also included in the broken line box of the second storage, namely the service nodes with complete registration spare parts and batch loan are the first change contents of the second storage.
If we restore the current data configuration stored for the second time to the data configuration stored for the first time, it is obvious that the registration spare part and the batch credit (i.e. the first change content corresponding to the second time) in the current data configuration corresponding to the second time are deleted, and the data configuration corresponding to the first time is obtained. It should be noted that, at this time, the first change content is the restored content, and the content recorded after the first saving includes the version number, that is, version 1 and the first change content in the graph, and since the data is configured to be empty before the saving, the first change content is the service node of the newspaper audit and the face tag.
If we save for three times, namely save for the third time in the graph, save for the third time the corresponding first change content is the web label and the service node paying tax, if it needs to restore to the first save content, save for the third time and save for the second time the corresponding first change content, these two times the first change content is the restore content, delete step by step for two times and restore the current data configuration to the first save data configuration. The version number in fig. 5 may be understood as unique and used to invoke the corresponding first altered content.
The restoration method using the tag is different from the restoration method using the version number, and one of the initial data configurations, i.e., the portion corresponding to the solid line box, is recorded when the tag is saved. Since this flag restoration approach does not necessarily start at new construction, if it starts at new construction, the initial data configuration can be interpreted as empty. As shown in fig. 5, TAG1 is a first mark, which can be understood as marking the service node that receives the new real property card, defining an initial data configuration for the data configuration before marking, wherein the content of the initial data configuration is shown in the figure, and the modified content of the first mark is the service node that receives the new real property card. When the service node of the proposal is marked for the second time, the corresponding second change content is the distinguishing content between the service node of the proposal and the initial data configuration. And because the second change content comprises all service nodes from the initial data configuration to the current data configuration and the corresponding preset logic sequence, the data can be reshaped from the initial data configuration to the current data configuration.
FIG. 6 is a schematic diagram of an architecture of a data partitioning device in one embodiment. As shown in fig. 5, the present application further provides a data configuration restoration device, where the device includes:
a saving module 101, configured to save a data configuration according to a first predetermined manner, and record a version number and a first change content generated corresponding to each saved data configuration, where the version number is a corresponding identifier of each saved data configuration and is used to call the corresponding data configuration and the first change content, and the first change content is a distinguishing content between the saved data configuration and the previous saved data configuration, and the data configuration is configured by a data node according to a predetermined logic sequence;
the obtaining module 102 is configured to obtain a target version number according to a first predetermined operation of a user, where the target version number is a version number corresponding to a data configuration to be restored;
a calling module 103, configured to call restored content according to the target version number, where the restored content at least includes first changed content corresponding to all version numbers from a current version number to the target version number;
and the restoring module 104 is configured to restore the current data configuration to the data configuration corresponding to the target version number according to the restoring content.
In one embodiment, the apparatus comprises:
a marking module 105, configured to mark the data nodes in the data configuration in a second predetermined manner and record a second change content corresponding to each mark, where the second change content is a distinguishing content between the data configuration of the current mark and the initial data configuration, and the mark is used to call the corresponding second change content;
the obtaining module 101 is configured to obtain a target mark according to a second predetermined operation of a user, where the target mark is a mark corresponding to the data configuration to be restored;
the calling module 102 is further configured to call the second modification content according to the target mark;
the restoration module 103 is further configured to restore the current data configuration to a data configuration corresponding to the target mark according to the second modification content.
In an embodiment, the present application further provides an electronic device, including: a processor and a memory;
the memory stores therein an application executable by the processor for causing the processor to perform the steps of the data configuration restoration method of any one of the above.
In an embodiment, the present application further provides a computer readable storage medium having a computer program stored thereon, wherein the program when executed by a processor implements the steps of the data configuration restoration method.
In practice, the computer readable medium may be contained in the apparatus/device/system described in the above embodiments or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs that, when executed, implement the described data-sorting method for data-sorting by the data-sorting device.
According to embodiments disclosed herein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: portable computer diskette, hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing, but are not intended to limit the scope of the protection herein. In the embodiments disclosed herein, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the invention.

Claims (8)

1. A data configuration restoration method, wherein the method is applied to a data configuration process, and the data configuration is a data application mode for configuring data nodes according to a predetermined logic sequence, and the method comprises the steps of;
marking the data nodes in the data configuration according to a second preset mode and recording second changing contents corresponding to each mark, wherein the second changing contents are distinguishing contents between the data configuration of the current mark and the initial data configuration, and the marks are used for calling the corresponding second changing contents;
acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
invoking the second modified content according to the target mark;
restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content;
storing data configuration according to a first preset mode, and recording a version number and first change content generated corresponding to each stored data configuration, wherein the version number is a corresponding identifier of each stored data configuration and is used for calling the corresponding data configuration and the first change content, the first change content is a distinguishing content between the stored data configuration and the stored data configuration, and the data configuration is configured according to a preset logic sequence through a data node;
obtaining a target version number according to a first preset operation, wherein the target version number is a version number corresponding to data configuration to be restored;
invoking restored content according to the target version number, wherein the restored content at least comprises the first changed content corresponding to all version numbers from the current version number to the target version number;
and restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content.
2. The method for restoring a data configuration according to claim 1, wherein the restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content is configured to gradually restore the current data configuration to the data configuration corresponding to the target version number according to the first changing content in the restoring content in a saving order.
3. The method for restoring data configuration according to claim 1, wherein after the step of restoring the current data configuration to the data configuration corresponding to the target mark according to the second modification content, the method further comprises:
and gradually remolding the data configuration corresponding to the target mark according to the second change content according to the preset logic sequence to obtain the current data configuration.
4. The method of restoring a data configuration according to claim 1, wherein the first change content and/or the second change content includes a newly added data node and an updated data node, and the predetermined logical order is edited.
5. A data configuration restoration apparatus, which is applied to a data configuration process, the data configuration being a data application mode in which data nodes are configured in a predetermined logical order, the apparatus comprising:
the storage module is used for storing the data configuration according to a first preset mode and recording a version number and first change content which are generated corresponding to each stored data configuration, wherein the version number is a corresponding identifier of each stored data configuration and is used for calling the corresponding data configuration and the first change content, the first change content is a distinguishing content between the stored data configuration at this time and the stored data configuration at the previous time, and the data configuration is configured according to a preset logic sequence through a data node;
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a target version number according to a first preset operation of a user, wherein the target version number is a version number corresponding to data configuration to be restored;
the calling module is used for calling the restored content according to the target version number, wherein the restored content at least comprises first changed content corresponding to all version numbers from the current version number to the target version number;
the restoring module is used for restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content;
the apparatus further comprises:
the marking module is used for marking the data nodes in the data configuration according to a second preset mode and recording second changing contents corresponding to each mark, wherein the second changing contents are distinguishing contents between the data configuration of the current mark and the initial data configuration, and the marks are used for calling the corresponding second changing contents;
the acquisition module is used for acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
the calling module is further used for calling the second change content according to the target mark;
and the restoring module is further configured to restore the current data configuration to the data configuration corresponding to the target mark according to the second change content.
6. The apparatus for restoring a data configuration according to claim 5, characterized in that the apparatus comprises:
the restoring module is further configured to restore the current data configuration to the data configuration corresponding to the target version number according to the restoring content, and gradually restore the current data configuration to the data configuration corresponding to the target version number according to the first changing content in the restoring content.
7. An electronic device, the electronic device comprising: a processor and a memory;
the memory has stored therein an application executable by the processor for causing the processor to perform the steps of the data configuration restoration method according to any one of claims 1 to 4.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the data configuration restoration method of any one of claims 1 to 4.
CN202010395070.7A 2020-05-11 2020-05-11 Data configuration restoration method and device and readable storage medium Active CN111638904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010395070.7A CN111638904B (en) 2020-05-11 2020-05-11 Data configuration restoration method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010395070.7A CN111638904B (en) 2020-05-11 2020-05-11 Data configuration restoration method and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN111638904A CN111638904A (en) 2020-09-08
CN111638904B true CN111638904B (en) 2023-12-22

Family

ID=72332738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010395070.7A Active CN111638904B (en) 2020-05-11 2020-05-11 Data configuration restoration method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111638904B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056303A (en) * 2007-05-31 2007-10-17 威盛电子股份有限公司 Configurable network interface with horizontal tree structure, its display method and node processing method
CN107220142A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 Perform the method and device of data recovery operation
CN107967188A (en) * 2016-10-18 2018-04-27 腾讯科技(深圳)有限公司 Treating method and apparatus in data storage
CN108073656A (en) * 2016-11-17 2018-05-25 杭州华为数字技术有限公司 A kind of method of data synchronization and relevant device
CN108255925A (en) * 2017-11-10 2018-07-06 平安普惠企业管理有限公司 A kind of display methods and its terminal of data list structure alteration
EP3416055A1 (en) * 2017-06-14 2018-12-19 Beijing Xiaomi Mobile Software Co., Ltd. Method, device, electric device and computer-readable storage medium for updating page
CN109144487A (en) * 2018-09-26 2019-01-04 平安普惠企业管理有限公司 Into part business development method, apparatus, computer equipment and storage medium
CN109299194A (en) * 2018-09-25 2019-02-01 平安科技(深圳)有限公司 Multi-edition data memory management method and device, electronic equipment, storage medium
CN109492200A (en) * 2018-10-26 2019-03-19 天津字节跳动科技有限公司 Cooperated documents restoring method, device, storage medium and electronic equipment
CN109582381A (en) * 2018-10-12 2019-04-05 中国建设银行股份有限公司 File type configuration information synchronization system, method and storage medium
CN110750267A (en) * 2019-09-26 2020-02-04 浙江大搜车软件技术有限公司 Service information updating method and device, computer equipment and storage medium
CN110968363A (en) * 2019-11-22 2020-04-07 贝壳技术有限公司 Data configuration synchronization method and device, electronic equipment and readable storage medium
CN111125057A (en) * 2019-12-05 2020-05-08 江苏苏宁物流有限公司 Service request processing method and device and computer system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730450B2 (en) * 2004-08-12 2010-06-01 National Instruments Corporation Automatic versioning and data mutation of user-defined data types
CN106569824B (en) * 2016-11-07 2019-08-13 腾讯科技(深圳)有限公司 Method and apparatus, the method and apparatus of page rendering of page data compiling
US10976942B2 (en) * 2018-10-24 2021-04-13 EMC IP Holding Company LLC Versioning a configuration of data storage equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056303A (en) * 2007-05-31 2007-10-17 威盛电子股份有限公司 Configurable network interface with horizontal tree structure, its display method and node processing method
CN107220142A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 Perform the method and device of data recovery operation
CN107967188A (en) * 2016-10-18 2018-04-27 腾讯科技(深圳)有限公司 Treating method and apparatus in data storage
CN108073656A (en) * 2016-11-17 2018-05-25 杭州华为数字技术有限公司 A kind of method of data synchronization and relevant device
EP3416055A1 (en) * 2017-06-14 2018-12-19 Beijing Xiaomi Mobile Software Co., Ltd. Method, device, electric device and computer-readable storage medium for updating page
CN108255925A (en) * 2017-11-10 2018-07-06 平安普惠企业管理有限公司 A kind of display methods and its terminal of data list structure alteration
CN109299194A (en) * 2018-09-25 2019-02-01 平安科技(深圳)有限公司 Multi-edition data memory management method and device, electronic equipment, storage medium
CN109144487A (en) * 2018-09-26 2019-01-04 平安普惠企业管理有限公司 Into part business development method, apparatus, computer equipment and storage medium
CN109582381A (en) * 2018-10-12 2019-04-05 中国建设银行股份有限公司 File type configuration information synchronization system, method and storage medium
CN109492200A (en) * 2018-10-26 2019-03-19 天津字节跳动科技有限公司 Cooperated documents restoring method, device, storage medium and electronic equipment
CN110750267A (en) * 2019-09-26 2020-02-04 浙江大搜车软件技术有限公司 Service information updating method and device, computer equipment and storage medium
CN110968363A (en) * 2019-11-22 2020-04-07 贝壳技术有限公司 Data configuration synchronization method and device, electronic equipment and readable storage medium
CN111125057A (en) * 2019-12-05 2020-05-08 江苏苏宁物流有限公司 Service request processing method and device and computer system

Also Published As

Publication number Publication date
CN111638904A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN107038242B (en) Block chain-oriented global intelligent contract service data analysis method
CN110032599B (en) Data structure reading and updating method and device, and electronic equipment
CN104408201A (en) Junk file cleaning method and device
US20080196009A1 (en) Apparatus and method for componentizing legacy system
CN110059088B (en) Data attribute identification method, device and equipment in block chain type account book
CN104363112A (en) Parameter management method and parameter management device
US11144840B2 (en) Completing decision logic to avoid a side effect
CN112712125B (en) Event stream pattern matching method and device, storage medium and processor
CA3138761A1 (en) Method, device, computer equipment and storage medium for verifying inter-system data admission
CN111638904B (en) Data configuration restoration method and device and readable storage medium
CN113034778A (en) Invoice information approval method and system
CN116303589A (en) Workflow construction method, device, equipment and readable storage medium
CN111142975A (en) State machine persistence method and state machine persistence system
CN111090451A (en) Service configuration method, device and storage medium
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN110221952B (en) Service data processing method and device and service data processing system
CN109697216B (en) Clearing transaction information processing method, device and system
CN111444215A (en) Blocking method, device and equipment in block chain type account book
CN110968363A (en) Data configuration synchronization method and device, electronic equipment and readable storage medium
CN111158873A (en) System state machine implementation method and device, storage medium and processor
CN110825450B (en) APP configuration modification method and device, electronic equipment and storage medium
CN111242624A (en) Removal compensation method, device and medium based on block chain
CN106598687A (en) Script preheating method and device
CN110795388A (en) Binary file processing method, system, equipment and readable storage medium
CN111562954B (en) Data processing method and device, storage medium and processor

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
GR01 Patent grant
GR01 Patent grant