File processing method and device, electronic equipment and computer readable medium
By receiving file processing requests, performing permission checksum operation conflict detection, recording and modifying contents, updating file version numbers, and generating target version files, solving the problems of confusing file processing management and inefficient efficiency, and achieving orderly file management and efficient file processing.
Patent Information
- Application Number
- CN202411272395.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2025-03-04
AI Technical Summary
In the prior art, the information collection and statistics related to the same topic are confusing and inefficient, resulting in the loss or modification of file versions, and increasing labor costs.
By receiving file processing requests, obtaining file identification and user identification, performing permission verification, displaying the processing of files and executable operations, detecting operation conflicts, recording modification content, updating file version numbers, and generating target version files.
It realizes orderly management of file processing, improves file processing efficiency and accuracy, and avoids the problems of file version loss and modification difficulties.
Smart Images

Figure CN119557278A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data processing technology, and in particular to a file processing method, device, electronic device and computer-readable medium. Background Art
[0002] At present, in many fields or work, electronic files are mostly used to record information collection and statistics on the same topic. Multiple people need to write and summarize their own information into one file. Most files on the same topic have the same file structure but different contents. The same structure means that the information collection items of the file are the same, including the collected major items, sub-items and classification items. In actual work, this file is inevitably modified by multiple people many times, and the final modified version cannot meet the requirements. The previous modified version needs to be used. After being modified by multiple people many times, the previous version will be lost for various reasons. Modifying or retrieving documents increases a lot of manpower costs, and the corresponding file processing management is chaotic and inefficient. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a file processing method, device, electronic device and computer-readable medium, which can solve the existing problems of chaotic and inefficient file processing management related to information collection and statistics on the same topic.
[0004] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present application, a file processing method is provided, including: receiving a file processing request, obtaining a corresponding file identifier and a user identifier, performing a permission check based on the user identifier to obtain a permission check result; based on the permission check result, displaying processable files and executable operations on the processable files; in response to the operation of the user corresponding to the user identifier on the processable file, triggering an operation conflict detection program to execute, and if no operation conflict is detected, obtaining the user's operation data on the processable file based on the executable operation; recording the modification content corresponding to the operation data to a modification record table, and updating the version number of the file corresponding to the file identifier; and obtaining the target version file based on the operation data, the file identifier and the updated version number.
[0005] Optionally, based on the permission check result, processable files and executable operations on the processable files are displayed, including: determining operation permissions based on the permission check result; and displaying processable files corresponding to the operation permissions and executable operations on the processable files.
[0006] Optionally, executing an operation conflict detection program includes: querying whether other users are editing the file corresponding to the file identifier, and if so, determining that an operation conflict is detected and prompting that editing is currently not possible; otherwise, determining that no operation conflict is detected.
[0007] Optionally, updating the version number of the file corresponding to the file identifier includes: increasing the version number of the file corresponding to the file identifier by one.
[0008] Optionally, based on the operation data, the file identifier and the updated version number, a target version file is obtained, including: based on the operation data, determining the modification type of the file corresponding to the file identifier; based on the modification type, calling the corresponding modification logic to complete the modification of the file, and adding the updated version number to the name of the modified file to obtain the target version file.
[0009] Optionally, the method also includes: automatically exporting the target version file and modification record table and saving them to a corresponding storage medium; executing a permission verification process in response to a query operation on the target version file or the modification record table, and issuing an alarm in response to a failure of the permission verification; and displaying corresponding query result data in response to a success of the permission verification.
[0010] In addition, the present application also provides a file processing device, including: a receiving unit, configured to receive a file processing request, obtain a corresponding file identifier and a user identifier, and perform a permission check based on the user identifier to obtain a permission check result; a display unit, configured to display processable files and executable operations on processable files based on the permission check result; a detection unit, configured to trigger an operation conflict detection program in response to an operation on a processable file by a user corresponding to the user identifier, and if no operation conflict is detected, obtain the user's operation data on the processable file based on the executable operation; an updating unit, configured to record the modification content corresponding to the operation data to a modification record table, and update the version number of the file corresponding to the file identifier; a target version file generation unit, configured to obtain a target version file based on the operation data, the file identifier and the updated version number.
[0011] Optionally, the display unit is further configured to: determine the operation authority based on the authority verification result; and display the processable files corresponding to the operation authority and the executable operations on the processable files.
[0012] Optionally, the detection unit is further configured to: query whether other users are editing the file corresponding to the file identifier, and if so, determine that an operation conflict is detected and prompt that editing is currently not possible; otherwise, determine that no operation conflict is detected.
[0013] Optionally, the updating unit is further configured to: increase the version number of the file corresponding to the file identifier by one.
[0014] Optionally, the target version file generation unit is further configured to: determine the modification type of the file corresponding to the file identifier based on the operation data; call the corresponding modification logic based on the modification type to complete the modification of the file, and add the updated version number to the name of the modified file to obtain the target version file.
[0015] Optionally, the device also includes an automatic export unit, which is configured to: automatically export the target version file and the modification record table and save them to a corresponding storage medium; in response to a query operation on the target version file or the modification record table, execute a permission verification process, and in response to a failure of the permission verification, issue an alarm; in response to a success of the permission verification, display the corresponding query result data.
[0016] In addition, the present application also provides a file processing electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the file processing method as described above.
[0017] In addition, the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the file processing method as described above is implemented.
[0018] To achieve the above objective, according to another aspect of the embodiments of the present application, a computer program product is provided.
[0019] A computer program product according to an embodiment of the present application includes a computer program, and when the program is executed by a processor, the file processing method provided by the embodiment of the present application is implemented.
[0020] One embodiment of the above invention has the following advantages or beneficial effects: the present application receives a file processing request, obtains the corresponding file identifier and user identifier, performs permission verification based on the user identifier, and obtains the permission verification result; based on the permission verification result, displays the processable files and the executable operations on the processable files; in response to the operation of the user corresponding to the user identifier on the processable files, triggers the execution of the operation conflict detection program, and if no operation conflict is detected, obtains the user's operation data on the processable files based on the executable operation; records the modification content corresponding to the operation data to the modification record table, and updates the version number of the file corresponding to the file identifier; obtains the target version file based on the operation data, the file identifier, and the updated version number. Orderly management of file processing is achieved, and file processing efficiency and accuracy are improved.
[0021] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to better understand the present application and do not constitute an improper limitation on the present application.
[0023] Figure 1 is a schematic diagram of the main process of a file processing method according to an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of the main process of a file processing method according to an embodiment of the present application;
[0025] Figure 3 It is a schematic diagram of the main process of version management of a file processing method according to an embodiment of the present application;
[0026] Figure 4 It is a schematic diagram of the main flow of content management of a file processing method according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of main units of a file processing device according to an embodiment of the present application;
[0028] Figure 6 is an exemplary system architecture diagram to which the embodiments of the present application can be applied;
[0029] Figure 7 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following is a description of the exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, and they should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of known functions and structures is omitted in the following description. It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of the present application are in compliance with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of the present application, certain software, components, models, and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or must have used the solution. In the technical solution of the present application, the collection, analysis, use, transmission, storage, and other aspects of the user's personal information involved are in compliance with the provisions of relevant laws and regulations, and are used for legal and reasonable purposes, and are not shared, leaked, or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Take necessary measures to prevent illegal access to such personal information, ensure that persons with access to personal information comply with relevant laws and regulations, and ensure the security of personal information. Once such personal information is no longer needed, risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0031] When used, including in certain related applications, user privacy is protected by de-identifying data, such as by removing specific identifiers when used, controlling the amount or specificity of data stored, controlling how data is stored, and / or other methods of de-identification.
[0032] Figure 1 is a schematic diagram of the main process of a file processing method according to an embodiment of the present application, such as Figure 1 As shown, the file processing method mainly includes the following steps S101 to S105.
[0033] Step S101, receiving a file processing request, obtaining a corresponding file identifier and a user identifier, and performing a permission check based on the user identifier to obtain a permission check result.
[0034] In this embodiment, the execution subject of the file processing method (for example, it can be a server) can receive the file processing request through a wired connection or a wireless connection. File processing can be, for example, version management of structured files. After receiving the file processing request, the execution subject can obtain the file identifier and user identifier in the request. Among them, the file identifier is used to represent the name or number of the file to be processed. The file to be processed is determined according to the file identifier. The user identifier is used to represent the name or account of the user who initiates the file processing. The execution subject can match the user identifier with the identifier corresponding to the registered user to perform a permission check, and the matching result obtained is the permission check result. If the user identifier exists in the identifier corresponding to the registered user, it is determined that the permission check is passed, that is, the permission check result includes the permission check passed. If the user identifier does not exist in the identifier corresponding to the registered user, it is determined that the permission check fails, that is, the permission check result includes the permission check failed.
[0035] Step S102: Based on the permission verification result, the processable files and executable operations on the processable files are displayed.
[0036] Specifically, based on the permission verification result, processable files and executable operations on the processable files are displayed, including: determining operation permissions based on the permission verification result; and displaying processable files corresponding to the operation permissions and executable operations on the processable files.
[0037] Passing the permission check only indicates that the user has the permission to process the file, but which files can be processed or to what extent the files can be processed requires further determination of the operation permissions corresponding to the user ID to achieve data security during the file processing process. The permission check result may include the permission check passing and the operation permissions corresponding to the user ID. Based on the processable files corresponding to the operation permissions determined according to the user ID and the executable operations on the processable files, the accuracy and security of file processing can be achieved.
[0038] For example, the executable operations on the processable files may include adding, deleting, modifying, querying, etc. The embodiments of the present application do not specifically limit the executable operations.
[0039] Step S103, in response to the operation of the user corresponding to the user identifier on the processable file, triggering the operation conflict detection program, if no operation conflict is detected, obtaining the user's operation data on the processable file based on the executable operation.
[0040] Specifically, executing the operation conflict detection program includes: checking whether other users are editing the file corresponding to the file identifier, if so, determining that an operation conflict is detected, and prompting that editing is currently not possible; otherwise, determining that no operation conflict is detected.
[0041] When the execution subject detects the operation of the user corresponding to the user identifier on the processable file, a conflict detection program can be executed to detect whether other users are editing the processable file at this time. If other users are editing the processable file at this time, it is determined that an operation conflict is detected. If no other users are editing the processable file at this time, it is determined that no operation conflict is detected. If no operation conflict is detected, the operation data of the user on the processable file based on the executable operation is obtained. The operation data on the processable file may include one or more of adding, deleting, modifying, querying, etc.
[0042] Step S104, recording the modified content corresponding to the operation data into the modification record table, and updating the version number of the file corresponding to the file identifier.
[0043] When the editing is completed and confirmed by the user, the new content after modification is stored in the database, and the user's modified content is stored in the modification record table. The version number on the version ID corresponding to the modified file (the file may be the file corresponding to the file identifier) is increased to update the version number of the file corresponding to the file identifier, thereby achieving orderly editing management and avoiding content loss or overwriting.
[0044] Step S105, obtaining the target version file based on the operation data, the file identifier and the updated version number.
[0045] The executing entity can determine whether to perform a full import or export or an incremental import or export based on the operation data. If it is a full import or export, an overwrite file modification method is used to modify the file corresponding to the file identifier, and the updated version number is associated after the file is modified to obtain the target version file; if it is an incremental import or export, it is first necessary to determine the location in the file where the incremental modification is to be performed, and an incremental file modification method is used at that location to append the target content to the file, and the updated version number is associated after the file is modified to obtain the target version file.
[0046] Specifically, the method also includes: automatically exporting the target version file and modification record table and saving them to the corresponding storage medium; in response to the query operation on the target version file or the modification record table, executing the permission verification process, and in response to the failure of the permission verification, an alarm prompt; in response to the success of the permission verification, displaying the corresponding query result data.
[0047] Automatically export the latest target version file (structured file) modified by the current user and save it to the storage medium as a new version for subsequent use when exporting the specified version. In addition, the real-time updated modification record table can also be automatically exported and saved to the corresponding storage medium for user use. When a user query operation on the exported target version file or the modification record table is detected, permission verification is performed to effectively protect the document, allowing only authorized people to view or modify it.
[0048] This embodiment receives a file processing request, obtains the corresponding file identifier and user identifier, performs permission verification based on the user identifier to obtain the permission verification result; based on the permission verification result, displays the processable files and executable operations on the processable files; in response to the operation of the user corresponding to the user identifier on the processable files, triggers the execution of the operation conflict detection program, and if no operation conflict is detected, obtains the user's operation data on the processable files based on the executable operation; records the modification content corresponding to the operation data to the modification record table, and updates the version number of the file corresponding to the file identifier; based on the operation data, the file identifier and the updated version number, obtains the target version file. Orderly management of file processing is achieved, and file processing efficiency and accuracy are improved.
[0049] Figure 2 is a schematic diagram of the main flow of a file processing method according to an embodiment of the present application, such as Figure 2 As shown, the file processing method mainly includes the following steps S201 to S206.
[0050] Step S201, receiving a file processing request, obtaining a corresponding file identifier and a user identifier, and performing a permission check based on the user identifier to obtain a permission check result.
[0051] Step S202: Based on the permission verification result, the processable files and executable operations on the processable files are displayed.
[0052] The permission verification result may include the permission of the user corresponding to the user ID. The file library can be queried according to the permission of the user, so as to determine the files corresponding to the permission of the user according to the permissions associated with each file in the file library as processable files. The determined processable files are displayed. The accuracy of file processing can be improved.
[0053] The execution subject can query the executable operation library according to the permissions possessed by the user, determine the executable operation corresponding to the permissions possessed by the user according to the permissions associated with each executable operation in the executable operation library, and display the executable operation corresponding to the permissions possessed by the user. This can improve the accuracy of file processing.
[0054] Step S203, in response to the operation of the user corresponding to the user identifier on the processable file, triggering the operation conflict detection program, if no operation conflict is detected, obtaining the user's operation data on the processable file based on the executable operation.
[0055] When editing a file corresponding to a certain version ID, first check whether other users are editing this file. If so (i.e., an operation conflict is detected), it will be prompted that other users are editing it and it cannot be edited at present. If not (i.e., no operation conflict is detected), the mark associated with the file that no user is currently editing it will be placed in a shared storage module, such as a database, shared memory, or distributed cache, for subsequent reading and judgment. Specifically, if no operation conflict is detected, the execution subject can obtain the user's operation data on the processable file based on the executable operation for processing the processable file, and update the mark of the file to a mark that a user is currently editing it to avoid operation conflicts.
[0056] Step S204, recording the modified content corresponding to the operation data into the modification record table, and increasing the version number of the file corresponding to the file identifier by one.
[0057] When the editing is completed and the user confirms it, the new content after modification is stored in the database, and the user's modified content is recorded in the modification record table, and the version number on the version ID corresponding to the file is increased by one.
[0058] Step S205: determining the modification type of the file corresponding to the file identifier based on the operation data.
[0059] The execution subject can determine the file modification position according to the operation data, and then determine the scope of the file modification according to the file modification position, and determine the modification type of the file according to the determined scope of the file modification. Specifically, for example, the modification type of the file may include full modification and partial modification. Among them, the partial modification may include incremental continuous modification, incremental discontinuous modification, continuous replacement, discontinuous replacement, etc.
[0060] Among them, incremental continuous modification and incremental discontinuous modification both add content that was not originally there to the file. The file modification position corresponding to incremental continuous modification is continuous, and the file modification position corresponding to incremental discontinuous modification is discontinuous. Continuous replacement and discontinuous replacement both replace the original content in the file with new content. The file modification position corresponding to continuous replacement is continuous, and the file modification position corresponding to discontinuous replacement is discontinuous.
[0061] Specifically, the execution subject can determine whether it is a continuous modification or a discontinuous modification, and whether it is a continuous replacement or a discontinuous replacement according to whether the determined file modification range can be combined into a whole range without moving. If the determined file modification range can be combined into a whole range without moving, it corresponds to an incremental continuous modification or a continuous replacement; if the determined file modification range cannot be combined into a whole range without moving, it corresponds to an incremental discontinuous modification or a discontinuous replacement.
[0062] For example, if there is no content at the determined file modification location, it can be determined that an incremental modification is to be made to the content at that location, and then the file modification type can be determined as an incremental continuous modification or an incremental discontinuous modification based on whether the determined file modification range can be combined into a whole range without moving.
[0063] For example, if there is content at the determined file modification location, it can be determined that the content at that location needs to be replaced, and then the file modification type is determined to be continuous replacement or discontinuous replacement based on whether the determined file modification range can be combined into a whole range without moving.
[0064] By using the operation data, the modification type of the file corresponding to the file identifier can be accurately determined to ensure the accuracy of file processing.
[0065] Step S206, calling the corresponding modification logic based on the modification type to complete the modification of the file, and adding the updated version number to the name of the modified file to obtain the target version file.
[0066] Each modification type has a preset modification logic. After the execution subject determines the modification type of the file corresponding to the file identifier, it can call the modification logic of the modification type to perform the corresponding file modification operation, and after the operation is completed, add the updated version number (for example, the processed version number plus one) to the preset position of the name of the modified file (for example, it can be a prefix or suffix or the middle part of the name) to efficiently and accurately obtain the target version file. The target version file can be a modified file in the version table obtained by the import operation, or a structured file in the original format output corresponding to the export operation.
[0067] Figure 3It is a schematic diagram of the main flow of version management of the file processing method according to an embodiment of the present application. In many fields or work, electronic files are mostly used to record information collection and statistics on the same subject. Multiple people need to write and summarize information related to themselves into one file. Most of the files on the same subject have the same file structure but different contents. The same structure means that the information collection items of the files are the same, including the collected major items, sub-items and classification items. In actual work, this document is inevitably modified by multiple people many times, and the final modified version cannot meet the requirements. It is necessary to use the previous modified version. After multiple modifications, the previous version will be lost for various reasons, and modifying or retrieving the document increases a lot of manpower costs. The Excel file for statistical company personnel information is a structured file with the company personnel information statistics as the theme. Specifically to a certain company, its structure is fixed, that is, the Excel column is fixed. Personal information, educational background, emergency contacts, etc. can be divided into 3 Excel Sheet pages (classification items) for statistics, but the increase or decrease of company personnel will lead to different numbers of rows.
[0068] like Figure 3 As shown, the execution subject detects that the user is logged in and determines whether the user has import and export permissions. If the user does not have permission, an error is returned. If the user has permission, the export version ID is selected, the version number is selected, and then it is determined whether it is an incremental import or export or a full import or export. If it is an incremental import or export, the content of the target version file is appended to obtain the target version file. If it is a full import or export, the file content of the target version is overwritten to obtain the target version file.
[0069] By combining existing web technology with database technology, a version management system for structured content files is constructed. Each record of the structured file is parsed, stored in the database, and a visual editing interface is provided to record the modified content and information when modifying. The system includes: user management module, version management module, content management module and modification record management module.
[0070] User management module: provides visual user management and authorization. Different users have different permissions, such as whether they can manage versions, view or edit file contents, and whether they have permission to export.
[0071] Version management module: provides visual file version management, and provides authorized users with functions such as importing versions, modifying version information, and exporting versions. For the imported file, a record is created in the version table as the version information of the file, recording a unique version ID and the current initial version number 1, and the file is parsed line by line, and the content is stored in the data table corresponding to the file content; after importing, the corresponding information of the file in the version table can be modified; when exporting, a specific version number can be selected, and the content associated with the version in the data table corresponding to the file content can be taken out and output as a structured file in the original format. For example, the target version file can be the modified file in the version table obtained by the import operation, or it can be the structured file in the original format output corresponding to the export operation)
[0072] Figure 4 This is a schematic diagram of the main content management process of the file processing method according to an embodiment of the present application. When the execution subject detects the user's editing operation, it queries whether the user is authorized. If not, an error is returned. If yes, it continues to determine whether other users are editing. If other users are editing, it prompts other users that they are editing and returns. If no other users are editing, it allows the current user to edit. After editing, it is saved to the database, the edited content is recorded, the version number is increased, and the modified file is exported.
[0073] For example, a content management module is used to provide visual editing management and authorized users with viewing and editing functions. When editing a file corresponding to a version ID, first check whether other users are editing the file. If so, it will prompt that other users are editing it and it cannot be edited at the moment. If not, the mark associated with the file indicating that there is no user editing it will be placed in a shared storage module, such as a database, shared memory, or distributed cache, for subsequent reading and judgment. When the editing is completed and confirmed by the user, the new content after modification is stored in the database, and the user's modified content is recorded in the modification record table. The version number on the version ID corresponding to the file is increased, and the latest structured file modified by the current user is automatically exported as a new version and saved to the storage medium for subsequent use when exporting the specified version.
[0074] The modification record management module records the modification records corresponding to each version ID and provides authorized users with the function of querying and filtering the modified content.
[0075] The file processing method of the embodiment of the present application can improve management efficiency and save costs; the authority management effectively protects the document, allowing only authorized people to view and modify it; provides basic verification; the editing management is orderly to avoid content loss or overwriting; the historical versions of the document are effectively managed, and the historical versions are centrally managed to avoid loss. The digital system built using web technology and database is orderly managed and improves management efficiency. Using the constraints of the database table fields, basic verification of the corresponding content of the table fields can be provided. There are user authentication and role management functions, and the viewing, modification and export of documents can be controlled, where the authority can be further subdivided, such as some users only have editing authority but no document export authority. There is a visual editing function, which cooperates with user authentication and role management to support the addition, modification, deletion and search of document content. There is editing authority management to avoid the loss and overwriting of editing content. The modified content of each version can be viewed. There is a version management function to support the import of new version files and the export of historical versions.
[0076] Figure 5 Schematic diagram of the main units of the file processing device according to an embodiment of the present application. Figure 5 As shown, the file processing device 500 includes a receiving unit 501, a display unit 502, a detection unit 503, an updating unit 504 and a target version file generating unit 505.
[0077] The receiving unit 501 is configured to receive a file processing request, obtain a corresponding file identifier and a user identifier, and perform a permission check based on the user identifier to obtain a permission check result.
[0078] The display unit 502 is configured to display the processable files and the executable operations on the processable files based on the permission verification result.
[0079] The detection unit 503 is configured to trigger an operation conflict detection program in response to an operation on a processable file by a user corresponding to the user identifier, and if no operation conflict is detected, obtain operation data of the user on the processable file based on the executable operation.
[0080] The updating unit 504 is configured to record the modified content corresponding to the operation data into the modification record table, and update the version number of the file corresponding to the file identifier.
[0081] The target version file generating unit 505 is configured to obtain the target version file based on the operation data, the file identifier and the updated version number.
[0082] In some embodiments, the display unit 502 is further configured to: determine the operation authority based on the authority verification result; and display the processable files corresponding to the operation authority and the executable operations on the processable files.
[0083] In some embodiments, the detection unit 503 is further configured to: query whether other users are editing the file corresponding to the file identifier, and if so, determine that an operation conflict is detected and prompt that editing is currently not possible; otherwise, determine that no operation conflict is detected.
[0084] In some embodiments, the updating unit 504 is further configured to: increase the version number of the file corresponding to the file identifier by one.
[0085] In some embodiments, the target version file generation unit 505 is further configured to: determine the modification type of the file corresponding to the file identifier based on the operation data; call the corresponding modification logic based on the modification type to complete the modification of the file, and add the updated version number to the name of the modified file to obtain the target version file.
[0086] In some embodiments, the file processing device further includes Figure 5 The automatic export unit not shown in the figure is configured to: automatically export the target version file and the modification record table and save them to the corresponding storage medium; in response to the query operation on the target version file or the modification record table, execute the permission verification process, and in response to the failure of the permission verification, an alarm prompts; in response to the success of the permission verification, display the corresponding query result data.
[0087] It should be noted that the file processing method and the file processing device of the present application have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.
[0088] Figure 6 An exemplary system architecture 600 is shown to which the file processing method or the file processing device according to the embodiment of the present application can be applied.
[0089] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0090] Users can use terminal devices 601, 602, and 603 to interact with server 605 through network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0091] The terminal devices 601 , 602 , and 603 may be various electronic devices having a file processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0092] Server 605 can be a server that provides various services, such as a background management server that provides support for file processing requests submitted by users using terminal devices 601, 602, and 603 (only as an example). The background management server can receive a file processing request, obtain the corresponding file identification and user identification, and perform permission verification based on the user identification to obtain a permission verification result; based on the permission verification result, display the processable files and executable operations on the processable files; in response to the user's operation on the processable files corresponding to the user identification, trigger the execution of the operation conflict detection program, if no operation conflict is detected, obtain the user's operation data on the processable files based on the executable operation; record the modification content corresponding to the operation data to the modification record table, and update the version number of the file corresponding to the file identification; based on the operation data, the file identification and the updated version number, obtain the target version file. Orderly management of file processing is achieved, and file processing efficiency and accuracy are improved.
[0093] It should be noted that the file processing method provided in the embodiment of the present application is generally executed by the server 605 , and accordingly, the file processing device is generally arranged in the server 605 .
[0094] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0095] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present application. Figure 7 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0096] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0097] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0098] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present application are executed.
[0099] 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. Computer-readable storage media may include, for example, but are not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, 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, in which a computer-readable program code is carried. 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.
[0100] 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.
[0101] The units involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a receiving unit, a display unit, a detection unit, an update unit, and a target version file generation unit. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0102] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device receives a file processing request, obtains the corresponding file identification and user identification, performs permission verification based on the user identification to obtain a permission verification result; based on the permission verification result, displays processable files and executable operations on processable files; in response to the operation of the user corresponding to the user identification on the processable file, triggers the execution of the operation conflict detection program, and if no operation conflict is detected, obtains the user's operation data on the processable file based on the executable operation; records the modification content corresponding to the operation data to the modification record table, and updates the version number of the file corresponding to the file identification; based on the operation data, the file identification and the updated version number, obtains the target version file.
[0103] The computer program product of the present application includes a computer program, and when the computer program is executed by a processor, the file processing method in the embodiment of the present application is implemented.
[0104] According to the technical solution of the embodiment of the present application, orderly management of file processing can be achieved, and the efficiency and accuracy of file processing can be improved.
[0105] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A file processing method, characterized in that: include: Receive a file processing request, obtain a corresponding file identifier and a user identifier, and perform an authority check based on the user identifier to obtain an authority check result; Based on the permission verification result, display the processable files and the executable operations on the processable files; In response to an operation on the processable file by a user corresponding to the user identifier, triggering an operation conflict detection program, and if no operation conflict is detected, obtaining operation data of the user on the processable file based on the executable operation; Record the modified content corresponding to the operation data in a modification record table, and update the version number of the file corresponding to the file identifier; Based on the operation data, the file identifier and the updated version number, a target version file is obtained.
2. The method according to claim 1, characterized in that The displaying of processable files and executable operations on the processable files based on the permission verification result includes: Determine the operation permission based on the permission verification result; The processable files corresponding to the operation permission and the executable operations on the processable files are displayed.
3. The method according to claim 1, characterized in that The execution operation conflict detection program includes: It is queried whether other users are editing the file corresponding to the file identifier. If so, it is determined that an operation conflict is detected, and a prompt is given that the file cannot be edited at present; otherwise, it is determined that no operation conflict is detected.
4. The method according to claim 1, characterized in that: The updating of the version number of the file corresponding to the file identifier includes: The version number of the file corresponding to the file identifier is increased by one.
5. The method according to claim 1, characterized in that The step of obtaining a target version file based on the operation data, the file identifier and the updated version number includes: Determining, based on the operation data, a modification type of the file corresponding to the file identifier; Based on the modification type, the corresponding modification logic is called to complete the modification of the file, and the updated version number is added to the name of the modified file to obtain the target version file.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Automatically export the target version file and the modification record table and save them to corresponding storage media; In response to the query operation on the target version file or the modification record table, a permission verification process is executed. In response to the failure of the permission verification, an alarm is issued; in response to the success of the permission verification, corresponding query result data is displayed.
7. A file processing device, characterized in that: include: A receiving unit is configured to receive a file processing request, obtain a corresponding file identifier and a user identifier, and perform an authority check based on the user identifier to obtain an authority check result; A display unit configured to display processable files and executable operations on the processable files based on the permission verification result; a detection unit configured to trigger an operation conflict detection program in response to an operation on the processable file by a user corresponding to the user identifier, and if no operation conflict is detected, obtain operation data of the user on the processable file based on the executable operation; an updating unit, configured to record the modified content corresponding to the operation data into a modification record table, and update the version number of the file corresponding to the file identifier; The target version file generating unit is configured to obtain the target version file based on the operation data, the file identifier and the updated version number.
8. The device according to claim 7, characterized in that The display unit is further configured to: Determine the operation permission based on the permission verification result; The processable files corresponding to the operation permission and the executable operations on the processable files are displayed.
9. The device according to claim 7, characterized in that The detection unit is further configured to: It is queried whether other users are editing the file corresponding to the file identifier. If so, it is determined that an operation conflict is detected, and a prompt is given that the file cannot be edited at present; otherwise, it is determined that no operation conflict is detected.
10. The device according to claim 7, characterized in that The updating unit is further configured to: The version number of the file corresponding to the file identifier is increased by one.
11. The device according to claim 7, characterized in that The target version file generation unit is further configured to: Determining, based on the operation data, a modification type of the file corresponding to the file identifier; Based on the modification type, the corresponding modification logic is called to complete the modification of the file, and the updated version number is added to the name of the modified file to obtain the target version file.
12. The device according to any one of claims 7 to 11, characterized in that: The device further comprises an automatic exporting unit configured to: Automatically export the target version file and the modification record table and save them to corresponding storage media; In response to a query operation on the target version file or the modification record table, executing a permission verification process, and in response to a permission verification failure, issuing an alarm prompt; In response to successful permission verification, the corresponding query result data is displayed.
13. A file processing electronic device, characterized in that: include: 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 method according to any one of claims 1 to 6.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.