CN114138734A - Web-based version management method facing database and file resource - Google Patents

Web-based version management method facing database and file resource Download PDF

Info

Publication number
CN114138734A
CN114138734A CN202210115498.0A CN202210115498A CN114138734A CN 114138734 A CN114138734 A CN 114138734A CN 202210115498 A CN202210115498 A CN 202210115498A CN 114138734 A CN114138734 A CN 114138734A
Authority
CN
China
Prior art keywords
resource
instruction
resource information
managed
users
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210115498.0A
Other languages
Chinese (zh)
Inventor
卢遥
毛新军
陈璟
宋万盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN202210115498.0A priority Critical patent/CN114138734A/en
Publication of CN114138734A publication Critical patent/CN114138734A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1873Versioning file systems, temporal file systems, e.g. file system supporting different historic versions of files

Abstract

The application relates to a version management method facing database and file resources based on Web. The method comprises the following steps: constructing a database for storing file resources to be managed in a background, and simulating the database on a front-end page through a network interface; receiving an operation instruction of a plurality of users for operating the resource information through the front-end page, and judging whether the resource information objects and the resource information contents operated by the plurality of users in the front-end page are the same; when the resource information objects are the same and the resource information contents are different, fusing modification contents and resource information corresponding to the operation instructions of the multiple users to obtain a resource fusion instruction; and sending the resource fusion instruction to a background through a network interface, modifying the file resources to be managed stored in the database by the background according to the resource fusion instruction, and updating the version number of the file resources to be managed. By adopting the method, the version management of the database and the file resource can be carried out at the mobile terminal.

Description

Web-based version management method facing database and file resource
Technical Field
The present application relates to the field of resource version management and data processing, and in particular, to a method and an apparatus for managing versions of database and file resources based on Web, a computer device, and a storage medium.
Background
With the development of resource version management technology, file version management software such as Git, SVN and the like appears, which are file version management oriented to a file system in an operating system, both of which need to install corresponding software, need to install different software on different operating systems respectively, and have certain use thresholds in operation and use aspects.
In view of the foregoing, it is desirable to provide a Web-based version management method and apparatus for database and file resources, a computer device, and a storage medium, which can manage the versions of the database and file resources on a mobile side.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a Web-based version management method and apparatus for database and file resources, a computer device, and a storage medium, which can manage the versions of the database and file resources on a mobile side.
A version management method facing database and file resources based on Web comprises the following steps:
constructing a database for storing file resources to be managed in a background, and simulating the database on a front-end page through a network interface; in the front end page, the file resource to be managed comprises: folder information and resource information;
receiving an operation instruction of a plurality of users for operating the resource information through the front-end page, and judging whether the resource information objects and the resource information contents operated by the plurality of users in the front-end page are the same;
when the resource information objects are the same and the resource information contents are different, fusing modification contents and resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and resource fusion instructions;
and sending the resource fusion instruction to the background through the network interface so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction and updates the version number of the file resources to be managed.
In one embodiment, when the resource information objects are the same and the resource information contents are the same, performing conflict judgment on the modified contents corresponding to the operation instructions of the multiple users and the resource information by adopting a three-way comparison algorithm to obtain a conflict instruction; performing conflict resolution on the resource information according to the conflict instruction, and returning a conflict resolution result; the conflict resolution result comprises the operation instructions of rejecting the plurality of users and the operation instructions of one of the plurality of users according to the preset priority order.
In one embodiment, accepting an operation instruction of one of the users according to a preset priority order includes: receiving an operation instruction of a user who logs in latest or an operation instruction of a user with the highest identity from a plurality of users according to the login time of the user or the priority order of the identity attributes of the user; the user identities include: managers and general users.
In one embodiment, receiving operation instructions of a plurality of users for operating the folder information through a front page; and sending the operation instruction to the background through the network interface so that the background modifies the file resources to be managed stored in the database according to the operation instruction and updates the path of the file resources to be managed.
In one embodiment, the user finds the resource information through a front-end page; generating an operation instruction according to the path of the resource information; sending the operation instruction to a background through a network interface, and directly operating the file resources to be managed by the background according to the attributes of the file resources to be managed; the attributes include: ID. A path and a title.
In one embodiment, a viewing instruction, a deleting instruction and a version rollback instruction of a plurality of users for operating resource information through a front-end page are received; when a version rollback instruction is received, the version rollback instruction is sent to a background through a network interface, the background backs the version of the resource information according to the version rollback instruction to obtain historical version information of the resource information, and meanwhile, the version number of the historical version information is generated; and updating the version number of the file resource to be managed according to the version number of the historical version information.
In one embodiment, when the resource information objects are the same and the resource information contents are different, fusing modification contents and resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and resource fusion instructions, including: and when the resource information objects are the same and the resource information contents are different, fusing the modification contents corresponding to the operation instructions of the plurality of users and the resource information by adopting a three-way comparison node splitting, comparing and fusing technology to obtain resource fusion data and generate a resource fusion instruction.
In one embodiment, the sending the resource fusion instruction to the background through the network interface, so that the background modifies the file resource to be managed stored in the database according to the resource fusion instruction, and updates the version number of the file resource to be managed, includes: sending the resource fusion instruction to a background through a network interface, storing the resource fusion data into a file resource to be managed by the background according to the resource fusion instruction, and simultaneously generating the version number of the resource fusion data; and updating the version number of the file resource to be managed according to the version number of the resource fusion data.
A Web-based database-oriented and file resource version management apparatus, the apparatus comprising:
the system comprises a database building module, a database management module and a file management module, wherein the database building module is used for building a database for storing file resources to be managed in a background and simulating the database on a front-end page through a network interface; in the front end page, the file resource to be managed comprises: folder information and resource information;
the judging module is used for receiving an operation instruction of a plurality of users for operating the resource information through the front-end page and judging whether the resource information objects and the resource information contents operated by the plurality of users in the front-end page are the same or not;
the data fusion module is used for fusing modification contents and resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and resource fusion instructions when the resource information objects are the same and the resource information contents are different;
and the version number updating module is used for sending the resource fusion instruction to the background through the network interface so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction and updates the version number of the file resources to be managed.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
constructing a database for storing file resources to be managed in a background, and simulating the database on a front-end page through a network interface; in the front end page, the file resource to be managed comprises: folder information and resource information;
receiving an operation instruction of a plurality of users for operating the resource information through the front-end page, and judging whether the resource information objects and the resource information contents operated by the plurality of users in the front-end page are the same;
when the resource information objects are the same and the resource information contents are different, fusing modification contents and resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and resource fusion instructions;
and sending the resource fusion instruction to the background through the network interface so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction and updates the version number of the file resources to be managed.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
constructing a database for storing file resources to be managed in a background, and simulating the database on a front-end page through a network interface; in the front end page, the file resource to be managed comprises: folder information and resource information;
receiving an operation instruction of a plurality of users for operating the resource information through the front-end page, and judging whether the resource information objects and the resource information contents operated by the plurality of users in the front-end page are the same;
when the resource information objects are the same and the resource information contents are different, fusing modification contents and resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and resource fusion instructions;
and sending the resource fusion instruction to the background through the network interface so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction and updates the version number of the file resources to be managed.
The Web-based version management method, device, computer equipment and storage medium for the database and file resources construct a database for storing file resources to be managed in a background, and simulate the database on a front-end page through a network interface; in the front end page, the file resource to be managed comprises: folder information and resource information; the folder information and the resource information exist in the same level in the database, certain information can be directly operated in the database through a certain attribute of the information without searching layer by layer, an operation instruction of a plurality of users for operating the resource information through a front-end page is received, the operation instruction of the users is sent to a background through a network interface, and judgment information of whether resource information objects and resource information contents operated by the plurality of users in the front-end page by the background are the same is obtained; when the resource information objects are the same and the resource information contents are different, acquiring modified contents corresponding to the operation instructions of a plurality of users by a background and information for fusing the resource information, and acquiring resource fusion data and a resource fusion instruction; and sending the resource fusion instruction to the background through the network interface so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction and updates the version number of the file resources to be managed. By the version management method, a user can quickly and accurately operate the data to be processed at the mobile terminal, the use threshold is low, the applicability is high, multiple users can simultaneously operate the same resource on line, the version number of the resource is generated after conflict detection and data fusion are carried out on the resource modified by the multiple users, and version management of two resources, namely folder information and resource information, is realized.
Drawings
FIG. 1 is a flowchart illustrating a Web-based version management method for database and file resources in one embodiment;
FIG. 2 is a block diagram of an embodiment of a Web-based database-oriented and file resource version management apparatus;
FIG. 3 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a Web-based version management method for database and file resources is provided, which includes the following steps:
102, constructing a database for storing file resources to be managed in a background, and simulating the database on a front-end page through a network interface; in the front end page, the file resource to be managed comprises: folder information and resource information.
The resource information comprises the name, content and resource type of the resource, the resource type comprises media resource (mp 3, mp4, etc.), compressed file (zip, rar, etc.), document resource (pdf, doc, etc.) and plain text information (rich text content, test paper content, etc.), a database is simulated on a front-end page through a network interface for realizing the conventional resource management operation of a user in an operating system, folder information and resource information exist in the same level in the database, the information is stored in the database, the file resource to be managed can be directly operated through an attribute with a sharp identification such as a certain attribute (id, path, title), etc., the criticality of the path attribute is reduced, the path attribute does not exist, the path attribute in the application is only used for showing, the path attribute exists for simulating the use habit of the user, and the threshold of the user for using the application is reduced.
And 104, receiving an operation instruction of a plurality of users for operating the resource information through the front-end page, and judging whether the resource information objects and the resource information contents operated by the plurality of users in the front-end page are the same.
The operation instruction in the application refers to a modification instruction, and when a plurality of users operate the same resource information object and the same resource information content in a front-end page, a conflict is generated, and at the moment, different conflict comparison methods are executed according to different resource types to perform conflict judgment.
And 106, when the resource information objects are the same and the resource information contents are different, fusing modification contents and resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and resource fusion instructions.
When the resource information objects are the same and the resource information contents are different, no conflict is generated, the modified contents corresponding to the operation instructions of the multiple users and the resource information are fused, the contents modified by multiple users on line are integrated, and the modification requirement of each user is met.
And step 108, sending the resource fusion instruction to the background through the network interface, so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction, and updates the version number of the file resources to be managed.
The background stores the resource fusion data into the file resource to be managed according to the resource fusion instruction, modifies the data of the file resource to be managed, generates the generation time of the resource fusion data, a machine code, a service process ID and a preset secret key, calculates and generates 20-bit characters to obtain the latest version number of the resource fusion data, generates a version number of the resource version modified by a user each time, and manages the versions according to the version numbers of different versions of the resource.
The Web-based version management method, device, computer equipment and storage medium for the database and file resources construct a database for storing file resources to be managed in a background, and simulate the database on a front-end page through a network interface; in the front end page, the file resource to be managed comprises: folder information and resource information; the folder information and the resource information exist in the same level in the database, certain information can be directly operated in the database through a certain attribute of the information without searching layer by layer, an operation instruction of a plurality of users for operating the resource information through a front-end page is received, the operation instruction of the users is sent to a background through a network interface, and judgment information of whether resource information objects and resource information contents operated by the plurality of users in the front-end page by the background are the same is obtained; when the resource information objects are the same and the resource information contents are different, acquiring modified contents corresponding to the operation instructions of a plurality of users by a background and information for fusing the resource information, and acquiring resource fusion data and a resource fusion instruction; and sending the resource fusion instruction to the background through the network interface so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction and updates the version number of the file resources to be managed. By the version management method, a user can quickly and accurately operate the data to be processed at the mobile terminal, the use threshold is low, the applicability is high, multiple users can simultaneously operate the same resource on line, the version number of the resource is generated after conflict detection and data fusion are carried out on the resource modified by the multiple users, and version management of two resources, namely folder information and resource information, is realized.
In one embodiment, when the resource information objects are the same and the resource information contents are the same, performing conflict judgment on the modified contents corresponding to the operation instructions of the multiple users and the resource information by adopting a three-way comparison algorithm to obtain a conflict instruction; performing conflict resolution on the resource information according to the conflict instruction, and returning a conflict resolution result; the conflict resolution result comprises the operation instructions of rejecting the plurality of users and the operation instructions of one of the plurality of users according to the preset priority order.
When the resource information objects are the same and the resource information contents are the same, a conflict is generated certainly, the modified contents corresponding to the operation instructions of a plurality of users and the resource information need to be subjected to conflict judgment by adopting a three-way comparison algorithm, different conflict comparison methods are executed according to different resource types, and the conflict judgment method comprises the following steps: if the type of the current resource is a test paper, after the content of the test paper is determined to be changed, the content of the test paper is split according to the question, whether the number of the questions is changed or not is firstly judged by taking the question as a basic unit, if the number of the questions is changed, the number of the questions is searched and compared before and after the changed position, and the position where the change occurs is determined according to the judgment of the previous question and the next question. And according to the current modification and the version on which the current modification is based (the modification is not necessarily based on the final version, and the modification can happen to the last version), performing three-way comparison calculation on the current modification and the last version (the last modified version of the resource), finding a common history node between the final version and the current modified version, performing content comparison judgment based on the history node, and if the title of the current modified content is the same as the title in the final version, not changing the title. And if the current modification title does not exist in the latest version, the current modification title is added, the data of the current modification and the data of the final version are integrated and interpenetrated, and the added part in the modification or the part which solves the conflict is fused with the current final data to obtain resource fusion data. If the current modified title is different from the title in the final version, the modification is judged to have occurred, and the specific position of the modification in the title is found by comparing the historical version with the current modified version and the final version in three ways. If the final version and the current modification are the same in the historical version, the final version and the current modification are judged to be in conflict, conflict information is returned to the user, and the user is required to solve the conflict. The conflict resolution result comprises the operation instructions of rejecting the plurality of users and the operation instructions of one of the plurality of users according to the preset priority order. The flow of processing conflicts by other types of resources is similar, except that the data splitting method is different, for example: the rich text information is split according to different elements, the plain characters are split according to paragraphs, the mind map is compared according to nodes, and the like.
In one embodiment, accepting an operation instruction of one of the users according to a preset priority order includes: receiving an operation instruction of a user who logs in latest or an operation instruction of a user with the highest identity from a plurality of users according to the login time of the user or the priority order of the identity attributes of the user; the user identities include: managers and general users.
In one embodiment, receiving operation instructions of a plurality of users for operating the folder information through a front page; and sending the operation instruction to a background through a network interface so that the background modifies the folder information in the file resources to be managed stored in the database according to the operation instruction and updates the path of the file resources to be managed.
When receiving an operation instruction of a plurality of users for operating the folder information through the front page, without performing conflict judgment, the background modifies the folder information (the folder information comprises folder names, paths and other information) according to the operation instruction to obtain new folder information, stores the new folder information into the database, generates a unique identifier of the new folder information, updates the path of file resources to be managed according to the new folder information and the unique identifier, and manages the folder information by using the unique identifier of the folder.
In one embodiment, the user finds the resource information through a front-end page; generating an operation instruction according to the path of the resource information; sending the operation instruction to a background through a network interface, and directly operating the file resources to be managed by the background according to the attributes of the file resources to be managed; the attributes include: ID. A path and a title.
When a user finds resource information through a front-end page, a background cannot know the resource information, and needs to receive an operation instruction generated according to a path of the resource information through a network interface to determine the position of the resource information, and operate file resources to be managed after finding the resource information.
In one embodiment, a viewing instruction, a deleting instruction and a version rollback instruction of a plurality of users for operating resource information through a front-end page are received; when a version rollback instruction is received, the version rollback instruction is sent to a background through a network interface, the background backs the version of the resource information according to the version rollback instruction to obtain historical version information of the resource information, and meanwhile, the version number of the historical version information is generated; and updating the version number of the file resource to be managed according to the version number of the historical version information.
Receiving a checking instruction of a plurality of users for operating the resource information through a front page, and directly checking and reading the version number of the resource information in the database after receiving the checking instruction by a background;
receiving a deleting instruction of a plurality of users for operating the resource information through the front-end page, deleting the resource information by the background according to the deleting instruction to obtain the deleting information, generating a version number of the deleting information for the deleting information, and storing the version number of the deleting information into the database to update the version number of the file resource to be managed.
In one embodiment, when the resource information objects are the same and the resource information contents are different, fusing modification contents and resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and resource fusion instructions, including: and when the resource information objects are the same and the resource information contents are different, fusing the modification contents corresponding to the operation instructions of the plurality of users and the resource information by adopting a three-way comparison node splitting, comparing and fusing technology to obtain resource fusion data and generate a resource fusion instruction.
The node splitting comparison means that data are split according to node splitting modes of different data types and three-way comparison is carried out, three-way comparison is carried out on current modified data, historical data modified at this time and final data generated based on the same history in the application, if no conflict exists, the current modified data and the final version of data are integrated and interpenetrated, newly added parts in modification or parts with conflict solved are fused with the current final data, and resource fusion data are obtained.
In one embodiment, the sending the resource fusion instruction to the background through the network interface, so that the background modifies the file resource to be managed stored in the database according to the resource fusion instruction, and updates the version number of the file resource to be managed, includes: sending the resource fusion instruction to a background through a network interface, storing the resource fusion data into a file resource to be managed by the background according to the resource fusion instruction, and simultaneously generating the version number of the resource fusion data; and updating the version number of the file resource to be managed according to the version number of the resource fusion data.
And the background stores the resource fusion data into the file resource to be managed according to the resource fusion instruction, and if the current resource fusion data is stored for the first time, the current resource fusion data is calculated according to time, a machine code, a service process ID and a preset secret key to obtain the unique identifier of the resource fusion data. And then, a resource encryption method is called, the resource fusion data is encrypted by using a sha-1 encryption algorithm to obtain a series of hashes after encryption, and the hashes and the fusion data are simultaneously stored in a content table. And storing the title, author, content, hash and other information of the resource into a version table, and updating the latest version number and the historical version number of the resource fusion data. And then, carrying out a callback method, updating the version content of the file resource to be managed, executing the callback method, updating information such as a title, content and the like in a resource table, wherein the resource table is a data table which is used for being externally displayed, and permanently displaying the information of the final version.
And when the background finds the file resource to be managed, if the file resource to be managed has a historical version, returning the old version number and the latest version number at the same time, and if the historical version does not exist, setting the historical version number as a default initial version number set by the background. The historical version number and the latest version number are written into a final version node, and a version chain can be formed according to the unique identifier of the file resource to be managed and the two version numbers, so that a user can trace the source one step by one step according to the version number of the file resource to be managed.
It should be understood that, although the various steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 2, there is provided a Web-based database and file resource version management apparatus, including: the method comprises the following steps of constructing a database module 202, a judging module, a data fusion module and an update version number module, wherein:
the database building module 202 is used for building a database for storing file resources to be managed in the background and simulating the database on a front-end page through a network interface; in the front end page, the file resource to be managed comprises: folder information and resource information;
the determining module 204 is configured to receive an operation instruction for a plurality of users to operate resource information through a front-end page, and determine whether resource information objects and resource information contents operated by the plurality of users in the front-end page are the same;
the data fusion module 206 is configured to fuse modification content and resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and resource fusion instructions when the resource information objects are the same and the resource information contents are different;
and the version number updating module 208 is configured to send the resource fusion instruction to the background through the network interface, so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction, and updates the version number of the file resources to be managed.
In one embodiment, the determining module 204 is further configured to perform collision determination on modified content corresponding to the operation instructions of the multiple users and the resource information by using a three-way comparison algorithm when the resource information objects are the same and the resource information contents are the same, so as to obtain a collision instruction; performing conflict resolution on the resource information according to the conflict instruction, and returning a conflict resolution result; the conflict resolution result comprises the operation instructions of rejecting the plurality of users and the operation instructions of one of the plurality of users according to the preset priority order.
In one embodiment, the determining module 204 is further configured to accept an operation instruction of one of the users according to a preset priority order, including: receiving an operation instruction of a user who logs in latest or an operation instruction of a user with the highest identity from a plurality of users according to the login time of the user or the priority order of the identity attributes of the user; the user identities include: managers and general users.
In an embodiment, the data fusion module 206 is further configured to fuse, when the resource information objects are the same and the resource information contents are different, the modification contents and the resource information corresponding to the operation instructions of the multiple users to obtain resource fusion data and a resource fusion instruction, including: and when the resource information objects are the same and the resource information contents are different, fusing the modification contents corresponding to the operation instructions of the plurality of users and the resource information by adopting a three-way comparison node splitting, comparing and fusing technology to obtain resource fusion data and generate a resource fusion instruction.
In an embodiment, the update version number module 208 is further configured to send the resource fusion instruction to the background through the network interface, so that the background modifies the file resource to be managed stored in the database according to the resource fusion instruction, and updates the version number of the file resource to be managed, including: sending the resource fusion instruction to a background through a network interface, storing the resource fusion data into a file resource to be managed by the background according to the resource fusion instruction, and simultaneously generating the version number of the resource fusion data; and updating the version number of the file resource to be managed according to the version number of the resource fusion data.
For specific limitations of the Web-based version management apparatus for database and file resource, reference may be made to the above limitations of the Web-based version management method for database and file resource, which are not described herein again. The modules in the Web-based database-oriented and file resource version management apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a Web-based version management method for database and file resources. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the method in the above embodiments when the processor executes the computer program.
In an embodiment, a computer storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method in the above-mentioned embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A version management method facing database and file resources based on Web is characterized by comprising the following steps:
constructing a database for storing file resources to be managed in a background, and simulating the database on a front-end page through a network interface; in the front-end page, the file resource to be managed includes: folder information and resource information;
receiving an operation instruction of a plurality of users for operating the resource information through the front-end page, and judging whether the resource information objects and the resource information contents operated by the plurality of users in the front-end page are the same;
when the resource information objects are the same and the resource information contents are different, fusing modification contents corresponding to the operation instructions of a plurality of users and the resource information to obtain resource fusion data and resource fusion instructions;
and sending the resource fusion instruction to a background through the network interface so that the background modifies the file resources to be managed stored in the database according to the resource fusion instruction and updates the version number of the file resources to be managed.
2. The method of claim 1, further comprising:
when the resource information objects are the same and the content of the resource information is the same, performing conflict judgment on the modified content corresponding to the operation instructions of the plurality of users and the resource information by adopting a three-way comparison algorithm to obtain a conflict instruction;
performing conflict resolution on the resource information according to the conflict instruction, and returning a conflict resolution result;
the conflict resolution result comprises operation instructions for rejecting the users and operation instructions for one of the users according to a preset priority order.
3. The method of claim 2, wherein accepting the operation instruction of one of the plurality of users according to a preset priority order comprises:
receiving an operation instruction of a user who logs in latest or an operation instruction of a user with the highest identity from a plurality of users according to the login time of the user or the priority order of the identity attributes of the users; the user identity includes: managers and general users.
4. The method of claim 1, further comprising:
receiving an operation instruction of a plurality of users for operating the folder information through a front page;
and sending the operation instruction to a background through the network interface so that the background modifies the file resources to be managed stored in the database according to the operation instruction and updates the path of the file resources to be managed.
5. The method of claim 1, further comprising:
the user finds the resource information through a front page; generating an operation instruction according to the path of the resource information;
the operation instruction is sent to a background through the network interface, and the background directly operates the file resources to be managed according to the attributes of the file resources to be managed; the attributes include: ID. A path and a title.
6. The method of claim 5, further comprising:
receiving a viewing instruction, a deleting instruction and a version backspacing instruction of a plurality of users through front page operation resource information;
when a version rollback instruction is received, the version rollback instruction is sent to a background through the network interface, the background backs the version of the resource information according to the version rollback instruction to obtain historical version information of the resource information, and meanwhile, the version number of the historical version information is generated;
and updating the version number of the file resource to be managed according to the version number of the historical version information.
7. The method according to claim 1, wherein when the resource information objects are the same and the resource information contents are different, fusing modification contents corresponding to the operation commands of a plurality of users and the resource information to obtain resource fusion data and resource fusion commands, comprises:
and when the resource information objects are the same and the resource information contents are different, fusing modification contents corresponding to the operation instructions of the plurality of users and the resource information by adopting a three-way comparison node splitting, comparing and fusing technology to obtain resource fusion data and generate a resource fusion instruction.
8. The method according to claim 7, wherein sending the resource fusion instruction to a background through the network interface, so that the background modifies the file resource to be managed stored in the database according to the resource fusion instruction, and updates the version number of the file resource to be managed, includes:
sending the resource fusion instruction to a background through the network interface, storing resource fusion data into a file resource to be managed by the background according to the resource fusion instruction, and generating a version number of the resource fusion data;
and updating the version number of the file resource to be managed according to the version number of the resource fusion data.
CN202210115498.0A 2022-02-07 2022-02-07 Web-based version management method facing database and file resource Pending CN114138734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210115498.0A CN114138734A (en) 2022-02-07 2022-02-07 Web-based version management method facing database and file resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210115498.0A CN114138734A (en) 2022-02-07 2022-02-07 Web-based version management method facing database and file resource

Publications (1)

Publication Number Publication Date
CN114138734A true CN114138734A (en) 2022-03-04

Family

ID=80381843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210115498.0A Pending CN114138734A (en) 2022-02-07 2022-02-07 Web-based version management method facing database and file resource

Country Status (1)

Country Link
CN (1) CN114138734A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117596237A (en) * 2024-01-19 2024-02-23 安擎计算机信息股份有限公司 Mobile terminal-based server remote control system and method
CN117596237B (en) * 2024-01-19 2024-04-19 安擎计算机信息股份有限公司 Mobile terminal-based server remote control system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7451158B1 (en) * 2002-11-27 2008-11-11 Microsoft Corporation System and method for creating, appending and merging a work management file
CN102929630A (en) * 2012-10-31 2013-02-13 中标软件有限公司 Method and system for code management based on distributed collaborative development environment
CN105912740A (en) * 2015-12-15 2016-08-31 大连理工大学 CAE distributed cooperative work method based on cloud calculation
WO2021073636A1 (en) * 2019-10-18 2021-04-22 华为技术有限公司 Code conflict resolution system and method, devices, apparatus, and medium
CN112988920A (en) * 2021-05-20 2021-06-18 中国人民解放军国防科技大学 Data version management method and device for AI application and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7451158B1 (en) * 2002-11-27 2008-11-11 Microsoft Corporation System and method for creating, appending and merging a work management file
CN102929630A (en) * 2012-10-31 2013-02-13 中标软件有限公司 Method and system for code management based on distributed collaborative development environment
CN105912740A (en) * 2015-12-15 2016-08-31 大连理工大学 CAE distributed cooperative work method based on cloud calculation
WO2021073636A1 (en) * 2019-10-18 2021-04-22 华为技术有限公司 Code conflict resolution system and method, devices, apparatus, and medium
CN112988920A (en) * 2021-05-20 2021-06-18 中国人民解放军国防科技大学 Data version management method and device for AI application and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢圣明: ""云环境下协同开发平台的设计与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117596237A (en) * 2024-01-19 2024-02-23 安擎计算机信息股份有限公司 Mobile terminal-based server remote control system and method
CN117596237B (en) * 2024-01-19 2024-04-19 安擎计算机信息股份有限公司 Mobile terminal-based server remote control system and method

Similar Documents

Publication Publication Date Title
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN110297813B (en) Data migration method and device, computer equipment and storage medium
KR101999409B1 (en) Formatting data by example
US9680707B2 (en) Automated change approval
CN111191221A (en) Method and device for configuring authority resources and computer readable storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
CN110781070A (en) Big data test verification method and device, computer equipment and storage medium
CN111078507A (en) Data monitoring method, system, computer equipment and storage medium
CN111475376A (en) Method and device for processing test data, computer equipment and storage medium
CN113448862B (en) Software version testing method and device and computer equipment
CN107832227B (en) Interface parameter testing method, device, equipment and storage medium of business system
CN109462661B (en) Data synchronization method and device, computer equipment and storage medium
CN108762787B (en) Software repairing method, device, computer equipment and storage medium
CN109088914B (en) Block generation method, block chain ecosystem and computer readable storage medium
CN112862449A (en) Structural chemical industry bill generation method and device, computer equipment and storage medium
CN115221156A (en) Database cluster capacity expansion method and device, computer equipment and storage medium
CN106529281A (en) Executable file processing method and device
CN111522881B (en) Service data processing method, device, server and storage medium
CN113282799A (en) Node operation method and device, computer equipment and storage medium
CN112612706A (en) Automated testing method, computer device and storage medium
CN109542872B (en) Data reading method and device, computer equipment and storage medium
CN108763393B (en) Workbook management method and device, computer equipment and storage medium
CN114138734A (en) Web-based version management method facing database and file resource
CN111061875B (en) Super parameter determination method, device, computer equipment and storage medium
CN110460685B (en) User unique identifier processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220304

RJ01 Rejection of invention patent application after publication