Data processing method, device, medium and equipment for multi-stage and multi-version

By synchronizing historical version data and locking specific data in multi-stage and multi-version data processing, the problem of low version linkage is solved, cross-stage and same-stage data inheritance is realized, and the diversity and consistency of data processing are improved. .

CN114327591BActive Publication Date: 2024-09-06SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111227899.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-21
Publication Date
2024-09-06
Estimated Expiration
2041-10-21

AI Technical Summary

Technical Problem

In the existing technology, multi-stage and multi-version data processing has the problem of low version linkage, making it difficult to achieve effective inheritance of cross-stage and same-stage data.

Method used

By detecting the version creation operation, determine the current stage and adjacent historical stages to which the new data version belongs, synchronize the data of the first historical version and the second historical version, and realize the horizontal inheritance of cross-stage version data and the vertical inheritance of version data in the same stage. , the function of updating data and locking specific data using a preset synchronization sequence.

Benefits of technology

It improves version linkage and diversification of data processing solutions, improves data consistency and controllability between different versions and stages, and reduces data maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327591B
    Figure CN114327591B
Patent Text Reader

Abstract

The embodiments of the present application provide a data processing method applied to multiple stages and multiple versions, a data processing device applied to multiple stages and multiple versions, a computer-readable medium and an electronic device, and relate to the field of data processing technology; the above method includes: when a version creation operation for creating a new data version is detected, determining the current stage to which the new data version belongs, and determining the historical stage adjacent to the current stage; determining the first historical version adjacent to the new data version from the current stage, and determining the latest data version from the historical stage as the second historical version; synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order. It can be seen that the technical solution of the embodiment of the present application can simultaneously realize the horizontal inheritance of version data across stages and the vertical inheritance of version data in the same stage, thereby improving the linkage of versions and the degree of diversification of data processing solutions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method applied to multiple stages and multiple versions, a data processing device applied to multiple stages and multiple versions, a computer-readable medium, and an electronic device. Background Art

[0002] In the process of project development, there are usually multiple stages involved, and each stage involves multiple versions. The new version usually inherits the data of the previous version, and the new version usually inherits the data of the last version of the previous stage. However, this data inheritance method has the problem of low version linkage.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a data processing method applied to multiple stages and multiple versions, a data processing device applied to multiple stages and multiple versions, a computer-readable medium and an electronic device, which can simultaneously realize the horizontal inheritance of version data across stages and the vertical inheritance of version data in the same stage, thereby improving the linkage between versions and improving the diversification of data processing solutions.

[0005] A first aspect of an embodiment of the present application provides a data processing method applied to multiple stages and multiple versions, including:

[0006] When a version creation operation for creating a new data version is detected, a current stage to which the new data version belongs is determined, and a historical stage adjacent to the current stage is determined;

[0007] Determine a first historical version adjacent to the new data version from the current stage, and determine the latest data version from the historical stage as the second historical version;

[0008] The data in the first historical version and the data in the second historical version are synchronized to the new data version according to a preset synchronization order.

[0009] In an exemplary embodiment of the present application, synchronizing data in a first historical version and data in a second historical version to a new data version according to a preset synchronization order includes:

[0010] If the preset synchronization order is used to indicate that intra-stage synchronization is performed first and then inter-stage synchronization is performed, the first historical version is synchronized to the new data version to obtain the new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the second historical version;

[0011] If the preset synchronization order is used to indicate that inter-stage synchronization is performed first and then intra-stage synchronization is performed, the second historical version is synchronized to the new data version to obtain the new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the first historical version.

[0012] In an exemplary embodiment of the present application, updating the new data version after data synchronization according to the data in the second historical version includes:

[0013] If the target data corresponding to the specific mark exists in the first historical version, the target data in the new data version after data synchronization is locked;

[0014] The other data except the target data in the new data version after data synchronization is updated according to the data in the second historical version.

[0015] In an exemplary embodiment of the present application, updating other data except target data in the new data version after data synchronization according to the data in the second historical version includes:

[0016] If there is new data in the second historical version, the new data will be added to the new data version after data synchronization;

[0017] If the deleted data exists in the second historical version and there is specific data in the other data that is located at the same position as the deleted data, the specific data in the other data is deleted.

[0018] In an exemplary embodiment of the present application, after synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, the method further includes:

[0019] When a new data addition operation acting on a new data version is detected, the new data is added to the new data version.

[0020] In an exemplary embodiment of the present application, after synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, the method further includes:

[0021] When a specific marking operation acting on new data is detected, the modification function for the new data is locked. The locked new data cannot be modified before and after synchronization until the specific marking for the new data is removed.

[0022] In an exemplary embodiment of the present application, after synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, the method further includes:

[0023] When a version acquisition operation is detected, the latest version is determined from all stages; wherein all stages include the current stage and the historical stages;

[0024] The data in the latest version is structured and the structured representation result is output.

[0025] A second aspect of an embodiment of the present application provides a data processing device for multi-stage and multi-version, including:

[0026] a stage determination unit, configured to, when a version creation operation for creating a new data version is detected, determine a current stage to which the new data version belongs, and determine a historical stage adjacent to the current stage;

[0027] A version determination unit, used to determine a first historical version adjacent to the new data version from the current stage, and to determine the latest data version from the historical stage as a second historical version;

[0028] The data synchronization unit is used to synchronize the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order.

[0029] In an exemplary embodiment of the present application, the data synchronization unit synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, including:

[0030] If the preset synchronization order is used to indicate that intra-stage synchronization is performed first and then inter-stage synchronization is performed, the first historical version is synchronized to the new data version to obtain the new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the second historical version;

[0031] If the preset synchronization order is used to indicate that inter-stage synchronization is performed first and then intra-stage synchronization is performed, the second historical version is synchronized to the new data version to obtain the new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the first historical version.

[0032] In an exemplary embodiment of the present application, the data synchronization unit updates the new data version after data synchronization according to the data in the second historical version, including:

[0033] If the target data corresponding to the specific mark exists in the first historical version, the target data in the new data version after data synchronization is locked;

[0034] The other data except the target data in the new data version after data synchronization is updated according to the data in the second historical version.

[0035] In an exemplary embodiment of the present application, the data synchronization unit updates other data except the target data in the new data version after data synchronization according to the data in the second historical version, including:

[0036] If there is new data in the second historical version, the new data will be added to the new data version after data synchronization;

[0037] If the deleted data exists in the second historical version and there is specific data in the other data that is located at the same position as the deleted data, the specific data in the other data is deleted.

[0038] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0039] The data adding unit is used to add new data to the new data version when a new data operation acting on the new data version is detected after the data synchronization unit synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order.

[0040] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0041] A marking unit is used to lock the modification function of the new data when a specific marking operation acting on the new data is detected after the data synchronization unit synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order. The locked new data cannot be modified before and after synchronization until the specific mark for the new data is released.

[0042] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0043] A version acquisition unit is used to determine the latest version from all stages when a version acquisition operation is detected after the data synchronization unit synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order; wherein all stages include the current stage and historical stages; perform structured representation on the data in the latest version and output the structured representation result.

[0044] According to a third aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the data processing method applied to multiple stages and multiple versions as described in the first aspect of the above embodiment is implemented.

[0045] According to the fourth aspect of the embodiments of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method applied to multiple stages and multiple versions as described in the first aspect of the above embodiments.

[0046] According to a fifth aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0047] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0048] In the technical solutions provided by some embodiments of the present application, when a version creation operation for creating a new data version is detected, the current stage to which the new data version belongs can be determined, and the historical stage adjacent to the current stage can be determined; the first historical version adjacent to the new data version can be determined from the current stage, and the latest data version can be determined from the historical stage as the second historical version; the data in the first historical version and the data in the second historical version can be synchronized to the new data version according to a preset synchronization order. By implementing the embodiments of the present application, horizontal inheritance of version data across stages and vertical inheritance of version data in the same stage can be achieved simultaneously, thereby improving version linkage and increasing the degree of diversification of data processing solutions.

[0049] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 A schematic diagram schematically shows an exemplary system architecture of a multi-stage and multi-version data processing method and a multi-stage and multi-version data processing device to which the embodiments of the present application can be applied;

[0052] Figure 2A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown;

[0053] Figure 3 A flowchart of a multi-stage and multi-version data processing method according to an embodiment of the present application is schematically shown;

[0054] Figure 4 Schematically shows a multi-stage and multi-version schematic diagram according to an embodiment of the present application;

[0055] Figure 5 A flowchart of a multi-stage and multi-version data processing method according to an embodiment of the present application is schematically shown;

[0056] Figure 6 The structure block diagram of a data processing device applied to multiple stages and multiple versions according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0057] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present application will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present application.

[0058] In addition, the accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0059] Figure 1 A schematic diagram of the system architecture of an exemplary application environment of a multi-stage and multi-version data processing method and a multi-stage and multi-version data processing device to which the embodiments of the present application can be applied is shown.

[0060] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers is only illustrative. Any number of terminal devices, networks and servers may be provided as required for implementation. For example, server 105 may be a server cluster consisting of multiple servers. For example, server 105 may be used to perform: when a version creation operation for creating a new data version is detected, determine the current stage to which the new data version belongs, and determine the historical stage adjacent to the current stage; determine the first historical version adjacent to the new data version from the current stage, and determine the latest data version from the historical stage as the second historical version; synchronize the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order.

[0061] Figure 2 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0062] It should be noted that Figure 2 The computer system 200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0063] like Figure 2 As shown, the computer system 200 includes a central processing unit (CPU) 201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 202 or the program loaded from the storage part 208 to the random access memory (RAM) 203. In the (RAM) 203, various programs and data required for system operation are also stored. The (CPU) 201, the (ROM) 202 and the (RAM) 203 are connected to each other through a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

[0064] The following components are connected to the (I / O) interface 205: an input section 206 including a keyboard, a mouse, etc.; an output section 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN card, a modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to the (I / O) interface 205 as needed. A removable medium 211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.

[0065] In particular, according to an embodiment of the present application, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 209, and / or installed from a removable medium 211. When the computer program is executed by the central processing unit (CPU) 201, various functions defined in the method and apparatus of the present application are executed.

[0066] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0067] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0068] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0069] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being installed in the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiment. For example, the electronic device may implement the following method. Figure 3 The various steps shown, etc.

[0070] This example embodiment provides a data processing method applicable to multiple stages and multiple versions. Figure 3 As shown, the data processing method applied to multiple stages and multiple versions may include the following steps S310 to S330, specifically:

[0071] Step S310: When a version creation operation for creating a new data version is detected, the current stage to which the new data version belongs is determined, and the historical stage adjacent to the current stage is determined.

[0072] Step S320: Determine a first historical version adjacent to the new data version from the current stage, and determine the latest data version from the historical stage as the second historical version.

[0073] Step S330: Synchronize the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order.

[0074] Among them, steps S310 to S330 can all be executed by the server / terminal device, and the terminal device can be a mobile phone, a tablet computer, a personal computer, etc., which is not limited in the embodiments of the present application. Optionally, the terminal device can detect the version creation operation used to create a new data version, and the server determines the current stage to which the new data version belongs, and determines the historical stage adjacent to the current stage; determines the first historical version adjacent to the new data version from the current stage, and determines the latest data version from the historical stage as the second historical version; synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order.

[0075] Among them, the above-mentioned version creation operation can be a click operation, a touch screen operation, a voice control operation, a gesture control operation, etc., which is not limited in the embodiments of the present application. The current stage to which the new data version belongs may include one or more versions, and the data version may be any version in the current stage. In addition, the historical stage adjacent to the current stage may be the previous stage adjacent to the creation time of the current stage. The data in the first historical version adjacent to the new data version may be the same as or different from the new data version, and the latest data version in the historical stage may be the same as or different from the data in the first historical version, which is not limited in the embodiments of the present application. In addition, the synchronized new data version can be understood as the union of the first historical version and the second historical version.

[0076] Among them, optionally, the data in the first historical version and the data in the second historical version are synchronized to the new data version according to the preset synchronization order, including: if the preset synchronization order is used to indicate that intra-stage synchronization is performed first and then inter-stage synchronization is performed, the first historical version is synchronized to the new data version to obtain a new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the second historical version; if the preset synchronization order is used to indicate that inter-stage synchronization is performed first and then intra-stage synchronization is performed, the second historical version is synchronized to the new data version to obtain a new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the first historical version. In this way, the data linkage between different versions and different stages can be improved, and the new version data can be kept consistent with the horizontal stage and vertical version, thereby reducing the data maintenance cost and improving the data traceability efficiency.

[0077] Specifically, the preset synchronization order is used to characterize the synchronization priority between the first historical version and the second historical version. In addition, the new data version synchronization result corresponding to the preset synchronization order for first performing inter-stage synchronization and then performing intra-stage synchronization, and the new data version synchronization result corresponding to the preset synchronization order for first performing inter-stage synchronization and then performing intra-stage synchronization, may be the same or different, and the embodiments of the present application do not limit this.

[0078] Among them, optionally, the first historical version is synchronized to the new data version to obtain the new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the second historical version, including: synchronizing the first historical version to the new data version to obtain the new data version after data synchronization, determining the reference data included in the second historical version but not included in the first historical version, and updating the new data version after data synchronization according to the reference data.

[0079] And, synchronizing the second historical version to the new data version to obtain the new data version after data synchronization, and updating the new data version after data synchronization according to the data in the first historical version, including: synchronizing the second historical version to the new data version to obtain the new data version after data synchronization, determining the reference data included in the first historical version but not included in the second historical version, and updating the new data version after data synchronization according to the reference data.

[0080] Further optionally, updating the new data version after data synchronization according to the data in the second historical version includes: if there is target data corresponding to a specific mark in the first historical version, locking the target data in the new data version after data synchronization; and updating other data except the target data in the new data version after data synchronization according to the data in the second historical version. This can improve the controllability of the target data, the limitation of the inheritance relationship of the version, and the personalization degree in the version inheritance process.

[0081] Specifically, a specific tag can be used to indicate data with modification restriction conditions, which can be specifically expressed as a string, text, number, etc., which is not limited in the embodiments of the present application. For example, the modification restriction conditions may include: cannot be modified, can only be modified by the administrator, etc. In addition, the locked target data cannot be modified until there is no association between the target data and the specific tag; wherein the target data may be one or more data specified by the user.

[0082] Furthermore, other data except the target data in the new data version after data synchronization are updated according to the data in the second historical version, including: if there is new data in the second historical version, the new data is added to the new data version after data synchronization; if there is deleted data in the second historical version and there is specific data in the other data that is in the same position as the deleted data, the specific data in the other data is deleted. This can improve the consistency of data between different versions.

[0083] Specifically, the newly added data can be understood as data that does not exist in versions before the second historical version. The number of the newly added data can be one or more. Similarly, the number of the deleted data can also be one or more.

[0084] In addition, after synchronizing the data in the first historical version and the data in the second historical version to the new data version according to the preset synchronization order, the above method further includes: when a new data operation acting on the new data version is detected, adding new data to the new data version. This can enrich the functionality of the new version, and according to the expanded new data function, it can be convenient for users to continuously adjust version data according to their needs, thereby improving the user experience.

[0085] Specifically, the new data operation can be a click operation, a touch screen operation, a voice control operation, a gesture control operation, etc., which is not limited in the embodiments of the present application. The same version can correspond to multiple new data operations, that is, the same version can experience multiple new data operations, and each new data operation can correspond to one or more new data.

[0086] In an exemplary embodiment of the present application, after synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, the above method further includes: when a specific marking operation acting on the new data is detected, the modification function for the new data is locked, and the locked new data cannot be modified before and after synchronization until the specific mark for the new data is removed. This can improve the controllability of different data in the version data.

[0087] Specifically, after the modification function for new data is locked, the new data cannot be modified. When a specific mark removal operation acting on the new data is detected, the lock on the modification function can be removed so that the new data can be modified. The specific mark operation can be a click operation, a touch screen operation, a voice control operation, a gesture control operation, etc., which is not limited in the embodiments of the present application.

[0088] In an exemplary embodiment of the present application, after synchronizing the data in the first historical version and the data in the second historical version to the new data version according to the preset synchronization order, the above method further includes: when a version acquisition operation is detected, determining the latest version from all stages; wherein all stages include the current stage and the historical stage; performing a structured representation of the data in the latest version, and outputting the structured representation result. In this way, any version in multiple stages can be called in a targeted manner and structured represented, thereby improving the visualization of the data.

[0089] Specifically, the version acquisition operation can be a click operation, a touch screen operation, a voice control operation, a gesture control operation, etc., which is not limited in the embodiments of the present application. The version acquisition operation can act on any version of any stage. If it is detected that the version acquisition operation does not act on any version, the latest stage is determined from all stages, and the latest version is determined from the latest stage. In addition, the structured representation result can be tabular data or graphical data, etc., which is not limited in the embodiments of the present application.

[0090] This application can be applied to projects with multiple stages and versions. Figure 3 See also Figure 4 , Figure 4 A schematic diagram of a multi-stage multi-version system according to an embodiment of the present application is shown schematically. Figure 4As shown, it may include phase 1, phase 2, and phase 3. Phase 1 may include version 1, version 2, and version 4; phase 2 may include version 3, version 5, and version 7; and phase 3 may include version 6 and version 8.

[0091] In phase one, version one may include: data 1, data 2. Version two may include: data 1, data 2, data 3. Version four may include: data 1, data 2, data 4. In phase two, version three may include: data 1, data 2, data 3. Version five may include: data 1, data 2, data 4, data 5. Version seven may include: data 1, data 2, data 4, data 6. In phase three, version six may include: data 1, data 2, data 4, data 5. Version eight may include: data 1, data 2, data 4, data 5, data 6.

[0092] Specifically, version one can be created in stage one as the initial version. Then, when a version creation operation for creating a new data version (i.e., version two) is detected, the current stage (i.e., stage one) to which version two belongs can be determined, and the historical stage adjacent to stage one can be determined. Since stage one is the initial stage, the historical stage adjacent to stage one is empty. Then, the first historical version (i.e., version one) adjacent to version two can be determined from stage one, and the latest data version can be determined from the historical stage as the second historical version. Since the historical stage adjacent to stage one is empty, the above-mentioned second historical version can also be empty. Then, according to the preset synchronization order (e.g., first perform intra-stage synchronization and then perform inter-stage synchronization), the data in the first historical version (i.e., version one) (i.e., data 1, data 2) can be synchronized to version two first, and then the data in the second historical version (i.e., empty) can be synchronized to the new data version. At this time, version two includes data 1 and data 2. When a new data operation acting on version two is detected, new data (i.e., data 3) is added to version two. At this time, version 2 includes data 1, data 2, and data 3.

[0093] Furthermore, when a version creation operation is detected to create a new data version (i.e., version three) in stage two, the current stage (i.e., stage two) to which version three belongs can be determined, and the historical stage (i.e., stage one) adjacent to stage two can be determined. Furthermore, the first historical version (i.e., empty) adjacent to version three can be determined from stage two, and the latest data version (i.e., version two) can be determined from stage one as the second historical version. Furthermore, the data in the first historical version (i.e., empty) can be synchronized to version three first according to a preset synchronization order (e.g., first synchronizing within a stage and then synchronizing between stages), and then the data in the second historical version (i.e., version two) (i.e., data 1, data 2, data 3) can be synchronized to version three. At this time, version three includes data 1, data 2, and data 3. When a specific marking operation acting on data 3 is detected, the modification function for data 3 is locked, and the locked data 3 cannot be modified before and after synchronization until the specific mark for data 3 is released.

[0094] Furthermore, when a version creation operation is detected to create a new data version (i.e., version four) in stage one, the current stage (i.e., stage one) to which version four belongs can be determined, and the historical stage adjacent to stage one (i.e., empty) can be determined. Furthermore, the first historical version (i.e., version two) adjacent to version four can be determined from stage one, and the latest data version (i.e., empty) can be determined as the second historical version from the historical stage adjacent to stage one (i.e., empty). Furthermore, the data (i.e., data 1, data 2, data 3) in the first historical version (i.e., version two) can be synchronized to version four according to a preset synchronization order (e.g., first performing intra-stage synchronization and then performing inter-stage synchronization), and then the data in the second historical version (i.e., empty) can be synchronized to version four. At this time, version four includes data 1, data 2, and data 3. When a new data addition operation acting on version four is detected, new data (i.e., data 4) is added to version four. At this time, version four includes data 1, data 2, data 3, and data 4. When a data deletion operation is detected for version 4, data 3 corresponding to the data deletion operation is deleted in version 4. At this time, version 4 includes data 1, data 2, and data 4.

[0095] Furthermore, when a version creation operation is detected to create a new data version (i.e., version five) in stage two, the current stage (i.e., stage two) to which version five belongs can be determined, and the historical stage (i.e., stage one) adjacent to stage two can be determined. Furthermore, the first historical version (i.e., stage three) adjacent to version five can be determined from stage two, and the latest data version (i.e., version four) can be determined from stage one as the second historical version. Furthermore, the data in the first historical version (i.e., data 1, data 2, data 3) can be synchronized to version five according to a preset synchronization order (e.g., first performing intra-stage synchronization and then performing inter-stage synchronization), and then the data in the second historical version (i.e., version four) (i.e., data 4) can be synchronized to version five. At this time, version five includes data 1, data 2, data 3, and data 4. Since data 3 of version four is deleted, data 3 in version five is also deleted synchronously in the process of synchronizing the data (i.e., data 4) in the second historical version (i.e., version four) to version five. When a new data addition operation is detected for version 5, new data (ie, data 5) is added to version 5. At this time, version 5 includes data 1, data 2, data 4, and data 5.

[0096] Furthermore, when a version creation operation is detected to create a new data version (i.e., version six) in stage three, the current stage (i.e., stage three) to which version six belongs can be determined, and the historical stage (i.e., stage two) adjacent to stage three can be determined. Furthermore, the first historical version (i.e., empty) adjacent to version six can be determined from stage three, and the latest data version (i.e., version five) can be determined from stage two as the second historical version. Furthermore, the data in the first historical version (i.e., empty) can be synchronized to version six first according to a preset synchronization order (e.g., first synchronizing within a stage and then synchronizing between stages), and then the data in the second historical version (i.e., version five) (i.e., data 1, data 2, data 4, data 5) can be synchronized to version five. At this time, version six includes data 1, data 2, data 4, and data 5. When a specific marking operation acting on data 4 and data 5 is detected, the modification function for data 4 and data 5 is locked, and the locked data 4 and data 5 cannot be modified before and after synchronization until the specific marking for data 4 and data 5 is released.

[0097] Furthermore, when a version creation operation is detected to create a new data version (i.e., version seven) in stage two, the current stage (i.e., stage two) to which version seven belongs can be determined, and the historical stage (i.e., stage one) adjacent to stage two can be determined. Furthermore, the first historical version (i.e., version five) adjacent to version seven can be determined from stage two, and the latest data version (i.e., version four) can be determined from stage one as the second historical version. Furthermore, the data (i.e., data 1, data 2, data 4, data 5) in the first historical version (i.e., version five) can be synchronized to version six according to a preset synchronization order (e.g., first performing intra-stage synchronization and then performing inter-stage synchronization), and then the data (i.e., none) in the second historical version (i.e., version four) can be synchronized to version six. At this time, version six includes data 1, data 2, data 4, and data 5. When a new data addition operation acting on version six is ​​detected, new data (i.e., data 6) is added to version six. At this time, version six includes data 1, data 2, data 3, data 4, data 5, and data 6. When a data deletion operation is detected for version 6, data 5 corresponding to the data deletion operation is deleted in version 6. At this time, version 7 includes data 1, data 2, data 4, and data 6.

[0098] Furthermore, when a version creation operation is detected to create a new data version (i.e., version eight) in stage three, the current stage (i.e., stage three) to which version eight belongs can be determined, and the historical stage (i.e., stage two) adjacent to stage three can be determined. Furthermore, the first historical version (i.e., version six) adjacent to version eight can be determined from stage three, and the latest data version (i.e., version seven) can be determined from stage two as the second historical version. Furthermore, the data (i.e., data 1, data 2, data 4, data 5) in the first historical version (i.e., version six) can be synchronized to version eight according to a preset synchronization order (e.g., first performing intra-stage synchronization and then performing inter-stage synchronization), and then the data (i.e., data 6) in the second historical version (i.e., version seven) can be synchronized to version eight. At this time, version eight includes data 1, data 2, data 4, data 5, and data 6.

[0099] It can be seen that implementation Figure 3 The data processing method shown for multi-stage and multi-version can simultaneously realize horizontal inheritance of version data across stages and vertical inheritance of version data within the same stage, thereby improving version linkage and increasing the degree of diversification of data processing solutions.

[0100] Furthermore, in this example implementation, a data processing method applicable to multiple stages and multiple versions is also provided. Figure 5 As shown, the data processing method applied to multiple stages and multiple versions may include: steps S500 to S590.

[0101] Step S500: When a version creation operation for creating a new data version is detected, the current stage to which the new data version belongs is determined, and the historical stages adjacent to the current stage are determined.

[0102] Step S510: Determine the first historical version adjacent to the new data version from the current stage, and determine the latest data version from the historical stage as the second historical version. If the preset synchronization order is used to indicate that inter-stage synchronization is performed first and then intra-stage synchronization is performed, step S520 is executed. If the preset synchronization order is used to indicate that intra-stage synchronization is performed first and then inter-stage synchronization is performed, step S530 is executed.

[0103] Step S520: Synchronize the second historical version to the new data version to obtain a new data version after data synchronization, and update the new data version after data synchronization according to the data in the first historical version. Then, execute step S560.

[0104] Step S530: Synchronize the first historical version to the new data version to obtain a new data version after data synchronization.

[0105] Step S540: If target data corresponding to the specific mark exists in the first historical version, the target data in the new data version after data synchronization is locked.

[0106] Step S550: updating other data except the target data in the new data version after data synchronization according to the data in the second historical version.

[0107] Step S560: When a new data addition operation acting on a new data version is detected, new data is added to the new data version.

[0108] Step S570: When a specific marking operation acting on new data is detected, the modification function for the new data is locked, and the locked new data cannot be modified before and after synchronization until the specific marking for the new data is removed.

[0109] Step S580: When a version acquisition operation is detected, the latest version is determined from all stages; wherein all stages include the current stage and historical stages.

[0110] Step S590: Perform structured representation on the data in the latest version and output the structured representation result.

[0111] If necessary, steps S500 to S590 are Figure 3 The steps and their embodiments shown correspond to each other. For the specific implementation of steps S500 to S590, please refer to Figure 3 The steps and embodiments shown are not described in detail here.

[0112] It can be seen that implementation Figure 5 The method shown can simultaneously realize the horizontal inheritance of version data across stages and the vertical inheritance of version data in the same stage, thereby improving the linkage between versions and increasing the diversification of data processing solutions.

[0113] Furthermore, in this exemplary embodiment, a data processing device for multiple stages and multiple versions is also provided. Figure 6 As shown, the data processing device 600 applied to multiple stages and multiple versions may include: a stage determining unit 601 , a version determining unit 602 and a data synchronization unit 603 .

[0114] The stage determination unit 601 is used to determine the current stage to which the new data version belongs and determine the historical stage adjacent to the current stage when a version creation operation for creating a new data version is detected;

[0115] A version determination unit 602, configured to determine a first historical version adjacent to the new data version from the current stage, and to determine the latest data version from the historical stage as a second historical version;

[0116] The data synchronization unit 603 is used to synchronize the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order.

[0117] It can be seen that implementation Figure 6 The device shown can simultaneously realize the horizontal inheritance of version data across stages and the vertical inheritance of version data in the same stage, thereby improving the linkage between versions and increasing the diversification of data processing solutions.

[0118] In an exemplary embodiment of the present application, the data synchronization unit 603 synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, including:

[0119] If the preset synchronization order is used to indicate that intra-stage synchronization is performed first and then inter-stage synchronization is performed, the first historical version is synchronized to the new data version to obtain the new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the second historical version;

[0120] If the preset synchronization order is used to indicate that inter-stage synchronization is performed first and then intra-stage synchronization is performed, the second historical version is synchronized to the new data version to obtain the new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the first historical version.

[0121] It can be seen that implementing this optional embodiment can improve the data linkage between different versions and different stages, and can make the new version data always consistent with the horizontal stage and vertical version, thereby reducing data maintenance costs and improving data traceability efficiency.

[0122] In an exemplary embodiment of the present application, the data synchronization unit 603 updates the new data version after data synchronization according to the data in the second historical version, including:

[0123] If the target data corresponding to the specific mark exists in the first historical version, the target data in the new data version after data synchronization is locked;

[0124] The other data except the target data in the new data version after data synchronization is updated according to the data in the second historical version.

[0125] It can be seen that the implementation of this optional embodiment can improve the controllability of the target data, as well as the limitation of the inheritance relationship of the versions, and improve the degree of personalization in the version inheritance process.

[0126] In an exemplary embodiment of the present application, the data synchronization unit 603 updates other data except the target data in the new data version after data synchronization according to the data in the second historical version, including:

[0127] If there is new data in the second historical version, the new data will be added to the new data version after data synchronization;

[0128] If the deleted data exists in the second historical version and there is specific data in the other data that is located at the same position as the deleted data, the specific data in the other data is deleted.

[0129] It can be seen that implementing this optional embodiment can improve the consistency of data between different versions.

[0130] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0131] A data adding unit (not shown) is used to add new data to the new data version when a new data operation acting on the new data version is detected after the data synchronization unit synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order.

[0132] It can be seen that the implementation of this optional embodiment can enrich the functionality of the new version. According to the extended new data function, it can be convenient for users to continuously adjust the version data according to their needs, thereby improving the user experience.

[0133] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0134] A marking unit (not shown) is used to lock the modification function of the new data when a specific marking operation acting on the new data is detected after the data synchronization unit synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order. The locked new data cannot be modified before and after synchronization until the specific mark for the new data is released.

[0135] It can be seen that implementing this optional embodiment can improve the controllability of different data in the version data.

[0136] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0137] A version acquisition unit (not shown) is used to determine the latest version from all stages when a version acquisition operation is detected after the data synchronization unit synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order; wherein all stages include the current stage and historical stages; perform structured representation on the data in the latest version and output the structured representation result.

[0138] It can be seen that by implementing this optional embodiment, any version in multiple stages can be called in a targeted manner and structured to represent it, thereby improving the visualization of data.

[0139] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0140] Since the various functional modules of the multi-stage and multi-version data processing device of the example embodiment of the present application correspond to the steps of the example embodiment of the multi-stage and multi-version data processing method mentioned above, for details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the multi-stage and multi-version data processing method mentioned above in the present application.

[0141] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0142] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A data processing method applied to multiple stages and multiple versions, characterized in that: include: When a version creation operation for creating a new data version is detected, determining a current stage to which the new data version belongs, and determining a historical stage adjacent to the current stage; Determine a first historical version adjacent to the new data version from the current stage, and determine the latest data version from the historical stage as a second historical version; Synchronize the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order; The step of synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order includes: If the preset synchronization order is used to indicate that intra-stage synchronization is performed first and then inter-stage synchronization is performed, the first historical version is synchronized to the new data version to obtain a new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the second historical version; If the preset synchronization order is used to indicate that inter-stage synchronization is performed first and then intra-stage synchronization is performed, the second historical version is synchronized to the new data version to obtain a new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the first historical version; Wherein, updating the new data version after data synchronization according to the data in the second historical version includes: If the target data corresponding to the specific mark exists in the first historical version, the target data in the new data version after data synchronization is locked; updating other data except the target data in the new data version after data synchronization according to the data in the second historical version; The updating of other data except the target data in the new data version after data synchronization according to the data in the second historical version includes: If there is new data in the second historical version, add the new data to the new data version after data synchronization; If there is deleted data in the second historical version and there is specific data in the other data that is in the same position as the deleted data, the specific data in the other data is deleted.

2. The method according to claim 1, characterized in that: After synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, the method further includes: When a new data addition operation acting on the new data version is detected, new data is added to the new data version.

3. The method according to claim 2, characterized in that After synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, the method further includes: When a specific marking operation acting on the new data is detected, the modification function for the new data is locked, and the locked new data cannot be modified before and after synchronization until the specific marking for the new data is released.

4. The method according to claim 1, characterized in that After synchronizing the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, the method further includes: When a version acquisition operation is detected, the latest version is determined from all stages; wherein all stages include the current stage and the historical stages; The data in the latest version is structured and the structured representation result is output.

5. A data processing device for multi-stage and multi-version, characterized in that: include: a stage determination unit, configured to, when a version creation operation for creating a new data version is detected, determine a current stage to which the new data version belongs, and determine a historical stage adjacent to the current stage; a version determination unit, configured to determine a first historical version adjacent to the new data version from the current stage, and to determine a latest data version from the historical stage as a second historical version; A data synchronization unit, configured to synchronize the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order; The data synchronization unit synchronizes the data in the first historical version and the data in the second historical version to the new data version according to a preset synchronization order, including: If the preset synchronization order is used to indicate that intra-stage synchronization is performed first and then inter-stage synchronization is performed, the first historical version is synchronized to the new data version to obtain a new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the second historical version; If the preset synchronization order is used to indicate that inter-stage synchronization is performed first and then intra-stage synchronization is performed, the second historical version is synchronized to the new data version to obtain a new data version after data synchronization, and the new data version after data synchronization is updated according to the data in the first historical version; The data synchronization unit updates the new data version after data synchronization according to the data in the second historical version, including: If the target data corresponding to the specific mark exists in the first historical version, the target data in the new data version after data synchronization is locked; updating other data except the target data in the new data version after data synchronization according to the data in the second historical version; The data synchronization unit updates other data except the target data in the new data version after data synchronization according to the data in the second historical version, including: If there is new data in the second historical version, add the new data to the new data version after data synchronization; If there is deleted data in the second historical version and there is specific data in the other data that is in the same position as the deleted data, the specific data in the other data is deleted.

6. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data processing method applied to multiple stages and multiple versions as described in any one of claims 1 to 4 is implemented.

7. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the multi-stage and multi-version data processing method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Data synchronization method and system

    CN102143193A

  • A method and system for synchronizing report metadata to a test environment

    CN102289460A

  • Data processing method, data processing device, electronic equipment and computer readable storage medium

    CN110609779A

  • Retrieving historical object-related configuration data

    US20140122427A1