Data archiving method and device, electronic equipment and storage medium
By obtaining the business data to be archived in the OA system and pushing the data to the cloud archive archiving system based on the mapping relationship of the organization tree, the problem of data archiving errors in the OA system is solved and accurate archiving of data is achieved.
Patent Information
- Application Number
- CN202411492487.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-02-11
AI Technical Summary
The prior art is difficult to accurately archive data in OA systems, especially when the organization tree used in the OA system is different from the organization tree used in the cloud archive archiving system, it is easy to cause data archiving errors.
By obtaining the business data to be archived in the OA system and pushing the data to the cloud archive archiving system based on the mapping relationship of the organization tree. The specific steps include: obtaining the business data to be archived in the OA system; mapping the data into the corresponding institutions in the cloud archive archiving system based on the organization tree mapping relationship between the OA system and the cloud archive archiving system; pushing the data to the cloud through timed tasks Archives are archived.
Accurate archiving of data in OA system is realized. Even if the organization tree used by the OA system and the cloud archive archiving system are different, it can ensure that the data is archived under the correct organization, solving the problem of data archiving errors.
Smart Images

Figure CN119415479A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing and computer technology, and in particular to a data archiving method, device, electronic device and storage medium. Background Art
[0002] With the continuous improvement of the level of enterprise informatization, OA (Office Automation) system has become an indispensable part of the daily operation of enterprises. OA system not only simplifies the workflow and improves work efficiency, but also accumulates a large amount of data for enterprises. However, as time goes by, the amount of data gradually increases, which brings challenges to the storage, management and query of enterprises. Therefore, data archiving has become a key link to ensure the long-term availability of data and reduce storage costs. How to accurately archive the data in the OA system is a problem that needs to be solved. Summary of the invention
[0003] The present application provides a data archiving method, device, electronic device and storage medium to solve the technical problem of how to accurately archive data in an OA system in the related art.
[0004] In a first aspect, the present application provides a data archiving method, the method comprising: when a business process corresponding to a target business module of a first organization in the OA system is completed, obtaining first business data to be archived under the target business module of the first organization; based on a first mapping relationship between organizations in an organization tree adopted by the OA system and an organization tree adopted by a benchmark organization system, mapping the first organization to a second organization corresponding to the benchmark organization system, and using the first business data as second business data to be archived under the target business module of the second organization; through a scheduled task, pushing the second business data to be archived under the target business module of the second organization to a cloud archive archiving system, so as to map the second organization to a third organization corresponding to the cloud archive archiving system based on a second mapping relationship between organizations in the organization tree adopted by the cloud archive archiving system and the organization tree adopted by the benchmark organization system, and archiving the second business data based on the third organization.
[0005] In a second aspect, the present application provides a data archiving device, the device comprising: an acquisition module, used to acquire first business data to be archived under the target business module of the first organization in the OA system when the business process corresponding to the target business module of the first organization is completed; a processing module, used to map the first organization to a second organization corresponding to the benchmark organization system based on a first mapping relationship between organizations in the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system, and use the first business data as the second business data to be archived under the target business module of the second organization; a sending module, used to push the second business data to be archived under the target business module of the second organization to a cloud archive archiving system through a scheduled task, so as to map the second organization to a third organization corresponding to the cloud archive archiving system based on a second mapping relationship between organizations in the organization tree adopted by the cloud archive archiving system and the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization.
[0006] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method described in the first aspect.
[0007] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0008] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0009] The technical solution provided by the embodiment of the present application is that, when the business process corresponding to the target business module of the first organization in the OA system is completed, the first organization in the OA system can be mapped to the second organization corresponding to the benchmark organization system based on the organization tree adopted by the benchmark organization system, and then based on the first business data to be archived under the target business module of the first organization, the second business data to be archived under the target business module of the second organization is obtained, and the second business data is pushed to the cloud archive system through a scheduled task, so that the cloud archive system can map the second organization to the third organization corresponding to the cloud archive system based on the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization, so that even if the organization tree adopted by the OA system is different from the organization in the organization tree adopted by the cloud archive system, the first business data to be archived under the target business module of the first organization in the OA system can be accurately archived to the third organization corresponding to the cloud archive system, thereby realizing accurate archiving of data in the OA system. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0011] Figure 1 The process of the data archiving method provided in the embodiment of the present application Figure 1 ;
[0012] Figure 2 The process of the data archiving method provided in the embodiment of the present application Figure 2 ;
[0013] Figure 3 The process of the data archiving method provided in the embodiment of the present application Figure 3 ;
[0014] Figure 4 A schematic diagram of the structure of a data archiving device provided in an embodiment of the present application;
[0015] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0016] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0017] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0018] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties. The acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant laws and regulations of the relevant regions.
[0019] 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, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0020] Related technologies can push the data to be archived in the OA system to the cloud archive system, which will archive the data. The cloud archive system is a system that uses cloud computing technology to store, manage and retrieve long-term data. It can store the data to be archived (such as historical documents, emails, financial records, etc.) in the cloud based on the cloud computing platform, thereby providing safe, reliable and scalable storage services and supporting fast retrieval and recovery of data.
[0021] When archiving data, the cloud archive system can archive data of different institutions separately, and archive data of the same institution under the same institution. The institution can refer to an enterprise or company, a subsidiary, a department, etc., and this application does not limit this.
[0022] However, the inventors discovered that the cloud archive filing system archives data according to the organizations in its own organizational tree, while the organizational tree used by the OA system may be different from the organizational tree used by the cloud archive management system. This results in the data to be archived in the OA system being directly pushed to the cloud archive filing system for archiving. It is easy for the data of one organization to be archived to another organization, resulting in data archiving errors.
[0023] In order to accurately archive data in the OA system, the present application embodiment proposes the following ideas:
[0024] When the business process corresponding to the target business module of the first organization in the OA system is completed, the first business data to be archived under the target business module of the first organization is obtained; based on the first mapping relationship between the organizations in the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system, the first organization is mapped to the second organization corresponding to the benchmark organization system, and the first business data is used as the second business data to be archived under the target business module of the second organization; through a scheduled task, the second business data to be archived under the target business module of the second organization is pushed to the cloud archive archiving system, so as to map the second organization to the third organization corresponding to the cloud archive archiving system based on the second mapping relationship between the organizations in the organization tree adopted by the cloud archive archiving system and the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization.
[0025] Therefore, when the business process corresponding to the target business module of the first organization in the OA system is completed, the first organization in the OA system can be mapped to the second organization corresponding to the benchmark organization system based on the organization tree adopted by the benchmark organization system, and then based on the first business data to be archived under the target business module of the first organization, the second business data to be archived under the target business module of the second organization can be obtained, and the second business data can be pushed to the cloud archive system through a scheduled task, so that the cloud archive system can map the second organization to the third organization corresponding to the cloud archive system based on the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization, so that even if the organization tree adopted by the OA system is different from the organization in the organization tree adopted by the cloud archive system, the first business data to be archived under the target business module of the first organization in the OA system can be accurately archived to the third organization corresponding to the cloud archive system, thereby realizing accurate archiving of data in the OA system.
[0026] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0027] First combine Figure 1 , the data archiving method provided in the embodiment of the present application is described. Figure 1 The process of the data archiving method provided in the embodiment of the present application Figure 1 .
[0028] It should be noted that the data archiving method provided in the embodiment of the present application can be executed by a data archiving device, wherein the data archiving device can be an electronic device or can be configured in an electronic device, and the present application does not limit this.
[0029] Among them, the electronic device can be any device with computing capabilities, such as a personal computer, a mobile terminal, a server, etc. The mobile terminal can be, for example, a vehicle-mounted device, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and other hardware devices with various operating systems, touch screens and / or display screens.
[0030] The data archiving method can be applied to an OA system, specifically, the back end of the OA system. Correspondingly, the data archiving device, such as the back end of the OA system, is configured in an electronic device.
[0031] like Figure 1 As shown, the data archiving method includes the following steps:
[0032] S101. When a business process corresponding to a target business module of a first organization in an OA system is completed, first business data to be archived under the target business module of the first organization is obtained.
[0033] Among them, the OA system can specifically be the back end of the OA system, or the back end plus the front end of the OA system, and this application does not impose any limitation on this.
[0034] The first institution is an institution whose business data needs to be archived. The number of the first institutions can be one or more, and this application does not limit this. Among them, the institution can refer to an enterprise or company, a subsidiary, a department, etc., and this application does not limit this.
[0035] The target business module is a business module whose business data needs to be archived. The number of target business modules can be one or more, and this application does not limit this. Among them, the business module is a group of related components or services designed and implemented to achieve specific business functions. These components or services are organized around a specific business field or function to achieve specific business goals. Among them, the business module can be, for example, a sending module for implementing the sending business, a receiving module for implementing the receiving business, etc.
[0036] Wherein, taking the target business module as the document issuing module as an example, the first business data to be archived under the document issuing module of the first institution may include data such as title, font size, date, document content, etc. Taking the target business module as the document receiving module as an example, the first business data to be archived under the document receiving module of the first institution may include data such as title, font size, date, document content, etc.
[0037] As an example, the first business data to be archived under the target business module of the first organization can be stored in a public data table when the business process corresponding to the target business module of the first organization is completed, so that the data archiving device can read the public data table to obtain the first business data to be archived under the target business module of the first organization.
[0038] S102. Based on the first mapping relationship between the organizations in the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system, the first organization is mapped to the second organization corresponding to the benchmark organization system, and the first business data is used as the second business data to be archived under the target business module of the second organization.
[0039] Wherein, the benchmark organization system is a system pre-agreed as a benchmark by the OA system and the cloud archive filing system, and each organization in the organization tree adopted by the system can be used as a benchmark organization. In an embodiment of the present application, a mapping relationship between the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system can be established in advance, and a mapping relationship between the organization tree adopted by the cloud archive filing system and the organization tree adopted by the benchmark organization system can be established. Wherein, for the convenience of distinction, the mapping relationship between the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system is referred to as the first mapping relationship, and the mapping relationship between the organization tree adopted by the cloud archive filing system and the organization tree adopted by the benchmark organization system is referred to as the second mapping relationship. In addition, the first mapping relationship can be maintained on the OA system side, the second mapping relationship can be maintained on the cloud archive filing system side, and the first mapping relationship and the second mapping relationship can be updated in time based on the actual situation.
[0040] Therefore, after the data archiving device applied to the OA system obtains the first business data to be archived under the target business module of the first organization, the first organization can be mapped to the second organization corresponding to the benchmark organization system based on the first mapping relationship, and the first business data to be archived under the target business module of the first organization can be used as the second business data to be archived under the target business module of the second organization.
[0041] As an example, the first mapping relationship may include a first mapping relationship between organization identifiers, so that based on the first mapping relationship, the first organization is mapped to the second organization corresponding to the benchmark organization system, which may include: based on the first mapping relationship between the organization identifiers of the organizations in the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system, the organization identifier of the first organization is mapped to the organization identifier of the second organization. Among them, the organization identifier may include one or more of the organization name, the organization unique number, etc., and this application does not limit this.
[0042] S103. Push the second business data to be archived under the target business module of the second organization to the cloud archive archiving system through a scheduled task, and map the second organization to a third organization corresponding to the cloud archive archiving system based on a second mapping relationship between organizations in the organization tree adopted by the cloud archive archiving system and the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization.
[0043] In an embodiment of the present application, the second business data to be archived under the target business module of the second organization can be pushed to the cloud archive archiving system through a scheduled task, so that the cloud archive archiving system can map the second organization to a third organization corresponding to the cloud archive archiving system based on the second mapping relationship it maintains, and archive the second business data to the third organization, thereby realizing the archiving of the second business data.
[0044] Therefore, when the business process corresponding to the target business module of the first organization in the OA system is completed, the first organization in the OA system can be mapped to the second organization corresponding to the benchmark organization system based on the organization tree adopted by the benchmark organization system, and then based on the first business data to be archived under the target business module of the first organization, the second business data to be archived under the target business module of the second organization can be obtained, and the second business data can be pushed to the cloud archive system through a scheduled task, so that the cloud archive system can map the second organization to the third organization corresponding to the cloud archive system based on the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization, so that even if the organization tree adopted by the OA system is different from the organization in the organization tree adopted by the cloud archive system, the first business data to be archived under the target business module of the first organization in the OA system can be accurately archived to the third organization corresponding to the cloud archive system, thereby realizing accurate archiving of data in the OA system.
[0045] In addition, since the OA system side and the cloud archive filing system side respectively maintain the mapping relationship between the organizations in the organization tree adopted by the benchmark organization system, when the organization in the organization tree adopted by one party changes, only the mapping relationship maintained by themselves needs to be updated, thereby reducing the maintenance cost of the mapping relationship.
[0046] In some embodiments, the first service data may include parameter data corresponding to the target parameter item, wherein the number of the target parameter items may be one or more. Figure 2 In response to the above situation, in the data archiving method provided in the embodiment of the present application, when the business process corresponding to the target business module of the first organization in the OA system is completed, a method for obtaining the first business data to be archived under the target business module of the first organization is further explained.
[0047] Figure 2 The process of the data archiving method provided in the embodiment of the present application Figure 2 .like Figure 2 As shown, the data archiving method includes the following steps:
[0048] S201. Read a pre-configured parameter table to obtain pre-configured parameter items under a pre-configured business module of a pre-configured organization in the parameter table and corresponding first indication information, wherein the first indication information is used to indicate whether parameter data corresponding to the pre-configured parameter items under the pre-configured business module of the pre-configured organization needs to be archived.
[0049] In an embodiment of the present application, a preconfiguration mechanism, a preconfiguration business module, a preconfiguration parameter item and a first indication information can be preconfigured in a parameter table, so that the data archiving device can read the preconfigured parameter table to obtain the preconfiguration parameter items under the preconfiguration business module of the preconfiguration mechanism in the parameter table and the corresponding first indication information.
[0050] The pre-configured mechanism is a mechanism pre-configured in the parameter table. The number of pre-configured mechanisms can be one or more, and this application does not limit this.
[0051] The pre-configured service module is a service module pre-configured in the parameter table. The number of pre-configured service modules can be one or more, and this application does not impose any restrictions on this.
[0052] The preconfigured parameter items are parameter items preconfigured in the parameter table. The number of preconfigured parameter items can be one or more, and this application does not limit this. Among them, the parameter items are various variables or configuration items defined in the system, which are used to describe specific information or settings. Among them, the system here can be any software system or application with management or configuration functions.
[0053] It should be noted that the same pre-configuration agency may have one or more pre-configuration service modules, and the pre-configuration service modules of different pre-configuration agencies may be the same or different. The same pre-configuration service module may have one or more pre-configuration parameter items, and the pre-configuration parameter items of different pre-configuration service modules may be the same or different.
[0054] The parameter data corresponding to the preconfigured parameter item refers to the specific numerical value or value associated with the preconfigured parameter item, and is the actual content of the preconfigured parameter item. For example, when the preconfigured parameter item is "date", the parameter data corresponding to the preconfigured parameter item may be a specific date such as January 1, 2020; when the preconfigured parameter item is "font size", the parameter data corresponding to the preconfigured parameter item may be a specific font size such as 1 or 2, etc.
[0055] The first indication information is the indication information pre-configured in the parameter table. Any pre-configured parameter item under any pre-configured business module of any pre-configuration organization may have corresponding first indication information, which is used to indicate whether the parameter data corresponding to the pre-configured parameter item under the pre-configured business module of the pre-configuration organization needs to be archived.
[0056] The type or style of the first indication information can be set as needed. For example, the first indication information may include "yes" or "no". In the case where the first indication information corresponding to a certain preconfigured parameter item under a certain preconfigured business module of a certain preconfigured institution is "yes", it indicates that the parameter data corresponding to the preconfigured parameter item under the preconfigured business module of the preconfigured institution needs to be archived. In the case where the first indication information corresponding to a certain preconfigured parameter item under a certain preconfigured business module of a certain preconfigured institution is "no", it indicates that the parameter data corresponding to the preconfigured parameter item under the preconfigured business module of the preconfigured institution does not need to be archived.
[0057] For example, the pre-configured parameter table may be shown in Table 1 below. In the parameter table, the pre-configured organizations include "Company A" numbered "A001" and "Company B" numbered "A002", the pre-configured business modules include "Document Issuing Module" numbered "B001" and "Document Receiving Module" numbered "B002", and the pre-configured parameter items include "Title", "Font Size" and "Date".
[0058] Among them, taking the second row as an example, the first indication information "yes" indicates that the parameter data corresponding to the "title" under the "document issuance module" of "Company A" needs to be archived. Taking the third row as an example, the first indication information "no" indicates that the parameter data corresponding to the "font size" under the "document issuance module" of "Company A" does not need to be archived. Taking the last row as an example, the first indication information "no" indicates that the parameter data corresponding to the "date" under the "document receipt module" of "Company B" does not need to be archived.
[0059] Table 1 Pre-configured parameter table
[0060]
[0061] As an example, the preconfiguration mechanism, the preconfiguration service module, the preconfiguration parameter item and the first indication information may be configured in the parameter table in the following manner, that is, before S201, the following steps may also be included:
[0062] By means of script initialization, the pre-configuration mechanism, the pre-configuration service module, the pre-configuration parameter item and the first indication information are configured in the parameter table;
[0063] and / or,
[0064] Based on the first configuration information input in the parameter configuration page, the pre-configuration mechanism, the pre-configuration service module, the pre-configuration parameter item and the first indication information are configured in the parameter table.
[0065] That is, the pre-configuration mechanism, pre-configuration business module, pre-configuration parameter item and the first indication information may be configured in the parameter table through the script initialization method; or, the pre-configuration mechanism, pre-configuration business module, pre-configuration parameter item and the first indication information may be configured in the parameter table based on the first configuration information entered in the parameter configuration page; or, the pre-configuration mechanism, pre-configuration business module, pre-configuration parameter item and the first indication information may be configured in the parameter table based on the first configuration information entered in the parameter configuration page in combination with the script initialization method.
[0066] The parameter configuration page is a page for configuring the data in the parameter table. The first configuration information is the configuration information entered by the user on the parameter configuration page as needed, and is used to configure the data in the parameter table. For example, it may include the name and unique number of the pre-configured organization, the name and unique number of the pre-configured business module, the name and unique number of the pre-configured parameter item, and the corresponding first indication information.
[0067] By configuring the pre-configuration mechanism, pre-configuration business module, pre-configuration parameter item and the first indication information in the parameter table through the script initialization method, the pre-configuration mechanism, pre-configuration business module, pre-configuration parameter item and the first indication information in the parameter table can be configured automatically, flexibly and quickly, reducing manual input errors and improving configuration efficiency. By configuring the pre-configuration mechanism, pre-configuration business module, pre-configuration parameter item and the first indication information in the parameter table through the parameter configuration page, the pre-configuration mechanism, pre-configuration business module, pre-configuration parameter item and the first indication information in the parameter table can be configured flexibly and conveniently.
[0068] S202. When the first indication information indicates that parameter data corresponding to the preconfigured parameter item under the preconfigured business module of the preconfigured organization needs to be archived, the preconfigured organization is determined as the first organization, the preconfigured business module is determined as the target business module, and the preconfigured parameter item is determined as the target parameter item.
[0069] For example, referring to Table 1, since the first indication information in rows 2-8 and row 10 is "Yes", it can be determined that the target parameter items under the target business module of the first organization include: the parameter items "Title", "Font Size" and "Date" under the "Document Issuing Module" of "Company A", the parameter items "Title", "Font Size" and "Date" under the "Document Receiving Module" of "Company A", the parameter item "Title" under the "Document Issuing Module" of "Company B", and the parameter item "Title" under the "Document Receiving Module" of "Company B".
[0070] S203. When the business process corresponding to the target business module of the first institution in the OA system is completed, obtain parameter data corresponding to the target parameter item under the target business module of the first institution, and use the obtained parameter data corresponding to the target parameter item as the first business data.
[0071] Continuing with the above example, referring to Table 1, the target parameter items under the target business module of the first institution to be determined include: the parameter items "title", "font size" and "date" under the "document issuance module" of "Company A", the parameter items "title", "font size" and "date" under the "document receipt module" of "Company A", the parameter item "title" under the "document issuance module" of "Company B", and the parameter item "title" under the "document receipt module" of "Company B" as examples. Among them, taking the parameter items "title", "font size" and "date" under the "document issuance module" of "Company A" as an example, when the business process corresponding to the "document issuance module" of "Company A" in the OA system is completed, the parameter data corresponding to the parameter items "title", "font size" and "date" under the "document issuance module" of "Company A" can be obtained, and the obtained parameter data corresponding to the parameter items "title", "font size" and "date" under the "document issuance module" of "Company A" are used as the first business data to be archived under the "document issuance module" of "Company A". Taking the parameter item "Title" under the "Document Issuing Module" of "Company B" as an example, when the business process corresponding to the "Document Issuing Module" of "Company B" is completed in the OA system, the parameter data corresponding to the parameter item "Title" under the "Document Issuing Module" of "Company B" can be obtained, and the obtained parameter data corresponding to the parameter item "Title" under the "Document Issuing Module" of "Company B" can be used as the first business data to be archived under the "Document Issuing Module" of "Company B".
[0072] As an example, when the business process corresponding to the target business module of the first institution in the OA system is completed, obtaining the parameter data corresponding to the target parameter item under the target business module of the first institution can be achieved in the following ways:
[0073] Read the public data table in the OA system to obtain parameter data corresponding to the target parameter item under the target business module of the first institution;
[0074] Among them, the parameter data corresponding to the target parameter item is read from the original business table corresponding to the target business module of the first organization in the OA system through a batch task when the business process corresponding to the target business module of the first organization is completed, and stored in the public data table.
[0075] Among them, the OA system may include multiple original business tables, and an original business table corresponds to a business module of an organization. For example, the original business table corresponding to a business module of an organization may include parameter data corresponding to each parameter item under the business module of the organization. Therefore, when the business process corresponding to the target business module of the first organization is completed, these data can be read from the original business table corresponding to the target business module of the first organization through batch tasks and stored in the public data table. Then, the data archiving device can read the public data table in the OA system to obtain the parameter data corresponding to the target parameter item under the target business module of the first organization.
[0076] For example, taking the "document sending module" and "document receiving module" of "Company A" numbered "A001" as an example, the original business table corresponding to the "document sending module" of "Company A" can be shown in Table 2 below, and the original business table corresponding to the "document receiving module" of "Company A" can be shown in Table 3 below.
[0077] Table 2 The original business table corresponding to the "Issuance Module" of "Company A"
[0078]
[0079] Table 3 The original business table corresponding to the "Document Receiving Module" of "Company A"
[0080]
[0081] Then, when it is determined by reading the pre-configured parameter table that the target parameter items under the target business module of the first institution include the parameter items "title", "font size" and "date" under the "document issuance module" of "Company A", and the parameter items "title", "font size" and "date" under the "document receipt module" of "Company A", the parameter data corresponding to the parameter items "title", "font size" and "date" under the "document issuance module" of "Company A" can be read from the above Table 2 through batch tasks, and the parameter data corresponding to the parameter items "title", "font size" and "date" under the "document receipt module" of "Company A" can be read from the above Table 3, and stored in the public data table. The public data table can be shown in Table 4 below.
[0082] Table 4 Public data table
[0083]
[0084] Then, by reading the public data table, the parameter data corresponding to the target parameter item under the target business module of the first organization can be obtained.
[0085] Thus, by adopting batch tasks to read the parameter data corresponding to the target parameter item under the target business module of the first institution from the original business table corresponding to the target business module of the first institution and store it in the public data table when the business process corresponding to the target business module of the first institution is completed, the efficiency of obtaining the data from the original business table and storing the data in the public data table can be improved when the amount of data of the parameter data corresponding to the target parameter item under the target business module of the first institution is large. By reading the parameter data corresponding to the target parameter item under the target business module of the first institution from the original business table corresponding to the target business module of the first institution and storing it in the public data table, and reading the parameter data corresponding to the target parameter item under the target business module of the first institution from the public data table, and then archiving the data, it can be realized that when the number of the first institution or the target business module is multiple, the business data to be archived in multiple original business tables are stored in the same public data table, and then the business data to be archived can be batch archived only by reading the public data table, thereby improving the efficiency of data archiving and simplifying the data processing logic in the data archiving process.
[0086] As an example, second indication information corresponding to the preconfigured parameter item under the preconfigured business module of the preconfiguration mechanism may also be preconfigured in the parameter table to indicate whether the parameter data corresponding to the preconfigured parameter item under the preconfigured business module of the preconfiguration mechanism needs to be verified. Accordingly, the data archiving method may also include:
[0087] Reading the parameter table to obtain second indication information corresponding to the target parameter item under the target business module of the first organization in the parameter table, wherein the second indication information is used to indicate whether parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified;
[0088] In the second indication information, when it is indicated that the parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified, the parameter data corresponding to the target parameter item under the target business module of the first organization is verified through the reflection mechanism according to the verification rules defined in the corresponding verification annotation.
[0089] Among them, the second indication information is the indication information pre-configured in the parameter table. Any pre-configured parameter item under any pre-configured business module of any pre-configuration organization may have corresponding second indication information, which is used to indicate whether the parameter data corresponding to the pre-configured parameter item under the pre-configured business module of the pre-configuration organization needs to be verified.
[0090] Among them, the type or style of the second indication information can be set as needed. For example, the second indication information may include "yes" or "no". Among them, when the second indication information corresponding to a certain preconfigured parameter item under a certain preconfigured business module of a certain preconfigured institution is "yes", it indicates that the parameter data corresponding to the preconfigured parameter item under the preconfigured business module of the preconfigured institution needs to be verified. When the second indication information corresponding to a certain preconfigured parameter item under a certain preconfigured business module of a certain preconfigured institution is "no", it indicates that the parameter data corresponding to the preconfigured parameter item under the preconfigured business module of the preconfigured institution does not need to be verified.
[0091] For example, the pre-configured parameter table may be shown in Table 5 below. In the parameter table, the pre-configured organizations include "Company A" numbered "A001" and "Company B" numbered "A002", the pre-configured business modules include "Document Issuing Module" numbered "B001" and "Document Receiving Module" numbered "B002", and the pre-configured parameter items include "Title", "Font Size" and "Date".
[0092] Among them, taking the second row as an example, the second indication information "yes" indicates that the parameter data corresponding to the "title" under the "document issuance module" of "Company A" needs to be verified. Taking the third row as an example, the second indication information "no" indicates that the parameter data corresponding to the "font size" under the "document issuance module" of "Company A" does not need to be verified. Taking the last row as an example, the second indication information "no" indicates that the parameter data corresponding to the "date" under the "document receipt module" of "Company B" does not need to be verified.
[0093] Table 5 Pre-configured parameter table
[0094]
[0095] By reading the parameter table, it can be determined that the target parameter items under the target business module of the first organization include: the parameter items "title", "font size" and "date" under the "document issuing module" of "Company A", the parameter items "title", "font size" and "date" under the "document receiving module" of "Company A", the parameter item "title" under the "document issuing module" of "Company B", and the parameter item "title" under the "document receiving module" of "Company B". In addition, by reading the parameter table, it can be obtained that the second indication information corresponding to the parameter item "title" under the "document issuing module" of "Company A" is "yes", and the second indication information corresponding to the parameter item "title" under the "document receiving module" of "Company A" is "yes".
[0096] After obtaining the parameter data corresponding to the parameter item "Title" under the "document sending module" of "Company A", the reflection mechanism can be used to verify the parameter data corresponding to the parameter item "Title" under the "document sending module" of "Company A" according to the verification rules defined in the verification annotation corresponding to the parameter item "Title" under the "document sending module" of "Company A"; after obtaining the parameter data corresponding to the parameter item "Title" under the "document receiving module" of "Company A", the reflection mechanism can be used to verify the parameter data corresponding to the parameter item "Title" under the "document receiving module" of "Company A" according to the verification rules defined in the verification annotation corresponding to the parameter item "Title" under the "document receiving module" of "Company A".
[0097] By pre-configuring a parameter table, wherein the parameter table includes second indication information for indicating whether parameter data corresponding to a target parameter item under a target business module of the first organization needs to be verified, it is possible to quickly complete the configuration of verification requirements for each data to be archived by simply configuring the parameter table, and by reading the corresponding indication information in the parameter table, it is possible to quickly determine whether parameter data corresponding to a target parameter item under a target business module of the first organization needs to be verified, and then quickly complete data verification when verification is required, thereby improving archiving efficiency and the reliability and quality of archived data.
[0098] As an example, the second indication information corresponding to the first organization, the target business module, and the target parameter item may be configured in the parameter table in the following manner, that is, before reading the parameter table and obtaining the second indication information corresponding to the target parameter item under the target business module of the first organization in the parameter table, the following steps may also be included:
[0099] Configuring the second indication information in the parameter table by means of script initialization, and / or configuring the second indication information in the parameter table based on the second configuration information input in the parameter configuration page;
[0100] When the second indication information indicates that parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified, according to the corresponding verification rule, the verification annotation corresponding to the verification rule is selected from the preset verification annotations, and the verification annotation is added to the source code, wherein the verification annotation is used to define the corresponding verification rule.
[0101] Among them, the source code is the source code used to implement the data archiving method in the embodiment of the present application.
[0102] That is, the second indication information can be configured in the parameter table through script initialization; or, the second indication information can be configured in the parameter table based on the second configuration information entered in the parameter configuration page; or, the second indication information can be configured in the parameter table based on the second configuration information entered in the parameter configuration page in combination with the script initialization method. Furthermore, when the second indication information indicates that the parameter data corresponding to the target parameter item under the target business module of the first institution needs to be verified, according to the corresponding verification rule, the verification annotation corresponding to the verification rule is selected from the preset verification annotations, and the verification annotation is added to the source code.
[0103] By configuring the second indication information in the parameter table through script initialization, the second indication information can be automatically, flexibly and quickly configured in the parameter table, reducing manual input errors and improving configuration efficiency. By configuring the second indication information in the parameter table through the parameter configuration page, the second indication information can be flexibly and conveniently configured in the parameter table. When the second indication information indicates that the parameter data corresponding to the target parameter item under the target business module of the first institution needs to be verified, according to the corresponding verification rules, the verification annotation corresponding to the verification rule is selected from the preset verification annotation, and the verification annotation is added to the source code, it can be realized that the verification annotation is automatically added to the source code as needed to verify the corresponding data according to the verification rules defined by the verification annotation.
[0104] It should be noted that when it is necessary to add, modify or delete at least one of the pre-configured organization, pre-configured business module, pre-configured parameter item, first indication information and second indication information in the parameter table, the operation can be performed in the current parameter table through script initialization method and / or parameter configuration page, thereby reducing repetitive and tedious parameter table configuration work and improving the configuration efficiency of the parameter table.
[0105] S204. Based on the first mapping relationship between the organizations in the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system, the first organization is mapped to the second organization corresponding to the benchmark organization system, and the first business data is used as the second business data to be archived under the target business module of the second organization.
[0106] S205. Push the second business data to be archived under the target business module of the second organization to the cloud archive archiving system through a scheduled task, and map the second organization to a third organization corresponding to the cloud archive archiving system based on a second mapping relationship between the organizations in the organization tree adopted by the cloud archive archiving system and the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization.
[0107] The data archiving method provided in the embodiment of the present application pre-configures a parameter table, reads the pre-configured parameter table, obtains the pre-configured parameter items under the pre-configured business module of the pre-configured organization in the parameter table and the corresponding first indication information, and determines the target business module of the first organization to perform business data archiving and the target parameter items under the target business module according to the first indication information, and then obtains the parameter data corresponding to the target parameter items under the target business module of the first organization when the business process corresponding to the target business module of the first organization in the OA system is completed, and uses the obtained parameter data corresponding to the target parameter items as the first business data to be archived. This method can achieve the configuration of the archiving requirements of the business data to be archived under each business module of each organization by simply configuring the parameter table, and meet the archiving requirements of different organizations, so that it can be applied to data archiving scenarios of different organizations, and by reading the parameter table, the target parameter items under the target business module of the first organization can be quickly determined, and then the first business data to be archived under the target business module of the first organization can be quickly archived, thereby improving the archiving efficiency.
[0108] Combine the following Figure 3 , in the data archiving method provided in the embodiment of the present application, a method of pushing the second business data to be archived under the target business module of the second organization to the cloud archive archiving system through a scheduled task is further described.
[0109] Figure 3 The process of the data archiving method provided in the embodiment of the present application Figure 2 .like Figure 3 As shown, the data archiving method includes the following steps:
[0110] S301. When a business process corresponding to a target business module of a first organization in an OA system is completed, first business data to be archived under the target business module of the first organization is obtained.
[0111] S302. Based on the first mapping relationship between the organizations in the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system, the first organization is mapped to the second organization corresponding to the benchmark organization system, and the first business data is used as the second business data to be archived under the target business module of the second organization.
[0112] S303: Generate an archive file of a set type based on the second business data to be archived under the target business module of the second organization.
[0113] As an example, the archive file of the set type includes at least one of a first type archive file, a second type archive file, and a third type archive file;
[0114] The first type of archive file is used to store detailed information of the second business data;
[0115] The second type of archive file is used to store summary information of the second business data;
[0116] The third type of archive file is a compressed file of the file where the second business data is located.
[0117] The detailed information of the second business data is used to record detailed information of the second business data.
[0118] The summary information of the second business data is used to record the statistical or summary information of the second business data.
[0119] Therefore, when the types of archive files are set, including first type archive files, second type archive files and third type archive files, the cloud archive archiving system can archive the second business data more comprehensively, and based on the second type archive files, the second type archive files and the third type archive files can be checked, thereby further improving the accuracy of data archiving.
[0120] As an example, a first type of archive file may store detailed information of the second business data under all target business modules of all second institutions, a second type of archive file may store summary information of the second business data under all target business modules of all second institutions, and a third type of archive file may be a compressed file of the file containing the second business data under all target business modules of all second institutions.
[0121] S304: Push the archived files to the cloud archive system through a scheduled task, and update the archive status of the archived files.
[0122] As an example, when the archived file is successfully pushed to the cloud archive system, the archive status of the archived file can be updated to archive successfully. When the archived file is not successfully pushed to the cloud archive system, the archive status of the archived file can be updated to archive failed.
[0123] S305: When the archive status of the archive file is a push failure status, the archive file is pushed to the cloud archive system again through a scheduled task.
[0124] In the embodiment of the present application, after the archived file is pushed to the cloud archive filing system, the cloud archive filing system can map the second organization to the third organization corresponding to the cloud archive filing system based on the second mapping relationship between the organization tree adopted by the cloud archive filing system and the organization tree adopted by the reference organization system, and archive the second business data based on the third organization and the archived file. For example, the cloud archive filing system can obtain the data to be archived belonging to different third organizations from the archived file, and archive the data to be archived of different third organizations to the corresponding third organization.
[0125] The data archiving method provided in the embodiment of the present application generates an archive file of a set type based on the second business data to be archived under the target business module of the second organization, pushes the archive file to the cloud archive archiving system through a scheduled task, and updates the archive status of the archive file. When the archive status of the archive file is a push failure state, the archive file is pushed back to the cloud archive archiving system through a scheduled task, thereby improving the archiving success rate of the second business data to be archived.
[0126] Figure 4 A schematic diagram of the structure of a data archiving device provided in an embodiment of the present application.
[0127] like Figure 4 As shown, the data archiving device 400 includes: an acquisition module 410, a processing module 420 and a sending module 430.
[0128] The acquisition module 410 is used to acquire the first business data to be archived under the target business module of the first institution in the OA system when the business process corresponding to the target business module of the first institution is completed;
[0129] The processing module 420 is used to map the first organization to a second organization corresponding to the reference organization system based on a first mapping relationship between organizations in the organization tree adopted by the OA system and the organization tree adopted by the reference organization system, and use the first business data as second business data to be archived under the target business module of the second organization;
[0130] The push module 430 is used to push the second business data to be archived under the target business module of the second organization to the cloud archive archiving system through a scheduled task, so as to map the second organization to a third organization corresponding to the cloud archive archiving system based on a second mapping relationship between the organizations in the organization tree adopted by the cloud archive archiving system and the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization.
[0131] It should be noted that the data archiving device 400 provided in the embodiment of the present application can execute the data archiving method in the above-mentioned embodiment. The data archiving device can be an electronic device, or can be configured in an electronic device.
[0132] Among them, the electronic device can be any device with computing capabilities, such as a personal computer, a mobile terminal, a server, etc. The mobile terminal can be, for example, a vehicle-mounted device, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and other hardware devices with various operating systems, touch screens and / or display screens.
[0133] In some embodiments, the acquisition module 410 includes:
[0134] A first acquisition unit is used to read a pre-configured parameter table to obtain pre-configured parameter items under a pre-configured business module of a pre-configuration mechanism in the parameter table and corresponding first indication information, wherein the first indication information is used to indicate whether parameter data corresponding to the pre-configured parameter items under the pre-configured business module of the pre-configuration mechanism needs to be archived;
[0135] A determination unit, configured to determine the preconfiguration institution as the first institution, the preconfiguration business module as the target business module, and the preconfiguration parameter item as the target parameter item when the first indication information indicates that the parameter data corresponding to the preconfiguration parameter item under the preconfiguration business module of the preconfiguration institution needs to be archived;
[0136] The second acquisition unit is used to obtain parameter data corresponding to the target parameter item under the target business module of the first organization in the OA system when the business process corresponding to the target business module of the first organization is completed, and use the obtained parameter data corresponding to the target parameter item as the first business data.
[0137] In some embodiments, the data archiving device 400 further includes a first configuration module, which is used to:
[0138] By means of script initialization, the pre-configuration mechanism, the pre-configuration service module, the pre-configuration parameter item and the first indication information are configured in the parameter table;
[0139] and / or,
[0140] Based on the first configuration information input in the parameter configuration page, the pre-configuration mechanism, the pre-configuration service module, the pre-configuration parameter item and the first indication information are configured in the parameter table.
[0141] In some embodiments, the acquisition module 410 further includes:
[0142] A third acquisition unit is used to read the parameter table to obtain second indication information corresponding to the target parameter item under the target business module of the first organization in the parameter table, wherein the second indication information is used to indicate whether parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified;
[0143] The verification unit is used to verify the parameter data corresponding to the target parameter item under the target business module of the first organization through a reflection mechanism according to the verification rules defined in the corresponding verification annotation when the second indication information indicates that the parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified.
[0144] In some embodiments, the data archiving device 400 further includes a second configuration module for:
[0145] Configuring the second indication information in the parameter table by means of script initialization, and / or configuring the second indication information in the parameter table based on the second configuration information input in the parameter configuration page;
[0146] When the second indication information indicates that parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified, according to the corresponding verification rule, the verification annotation corresponding to the verification rule is selected from the preset verification annotations, and the verification annotation is added to the source code, wherein the verification annotation is used to define the corresponding verification rule.
[0147] In some embodiments, the second acquisition unit is used to:
[0148] Read the public data table in the OA system to obtain parameter data corresponding to the target parameter item under the target business module of the first institution;
[0149] Among them, the parameter data corresponding to the target parameter item is read from the original business table corresponding to the target business module of the first organization in the OA system through a batch task when the business process corresponding to the target business module of the first organization is completed, and stored in the public data table.
[0150] In some embodiments, the sending module 430 is configured to:
[0151] Generate an archive file of a set type based on the second business data to be archived under the target business module of the second organization;
[0152] Through scheduled tasks, archived files are pushed to the cloud archive system and the archive status of archived files is updated;
[0153] When the archive status of the archived file is a push failure status, the archived file is pushed back to the cloud archive system through a scheduled task.
[0154] In some embodiments, the set type of archive file includes at least one of a first type of archive file, a second type of archive file, and a third type of archive file;
[0155] The first type of archive file is used to store detailed information of the second business data;
[0156] The second type of archive file is used to store summary information of the second business data;
[0157] The third type of archive file is a compressed file of the file where the second business data is located.
[0158] The data archiving device provided in the embodiment of the present application can be used to execute the technical solution of the data archiving method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0159] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the processing module 420 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above processing module 420. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0160] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device may include: a transceiver 121 , a processor 122 , and a memory 123 .
[0161] The processor 122 executes the computer execution instructions stored in the memory, so that the processor 122 executes the scheme in the above embodiment. The processor 122 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0162] The memory 123 is connected to the processor 122 via a system bus and completes communication between them. The memory 123 is used to store computer program instructions.
[0163] The transceiver 121 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.
[0164] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.
[0165] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the data archiving method in the above embodiment.
[0166] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the data archiving method of the above embodiment.
[0167] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it can implement the technical solution of the data archiving method in the above embodiment.
[0168] The electronic device, chip, computer-readable storage medium, and computer program product provided in the embodiments of the present application can be used to execute the technical solutions of the data archiving methods in the above embodiments. The implementation principles and technical effects are similar and will not be repeated here.
[0169] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0170] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A data archiving method, characterized in that: The method is applied to an office automation (OA) system, and the method comprises: When a business process corresponding to a target business module of a first institution in the OA system is completed, obtaining first business data to be archived under the target business module of the first institution; Based on a first mapping relationship between the organizations in the organization tree adopted by the OA system and the organization tree adopted by the benchmark organization system, the first organization is mapped to a second organization corresponding to the benchmark organization system, and the first business data is used as the second business data to be archived under the target business module of the second organization; Through a scheduled task, the second business data to be archived under the target business module of the second organization is pushed to the cloud archive archiving system, so that based on a second mapping relationship between organizations in the organization tree adopted by the cloud archive archiving system and the organization tree adopted by the benchmark organization system, the second organization is mapped to a third organization corresponding to the cloud archive archiving system, and the second business data is archived based on the third organization.
2. The method according to claim 1, characterized in that in, The first business data includes parameter data corresponding to the target parameter item; the step of obtaining the first business data to be archived under the target business module of the first institution includes: Reading a pre-configured parameter table, obtaining pre-configured parameter items under a pre-configured business module of a pre-configuration mechanism in the parameter table and corresponding first indication information, wherein the first indication information is used to indicate whether parameter data corresponding to the pre-configured parameter items under the pre-configured business module of the pre-configuration mechanism needs to be archived; In a case where the first indication information indicates that the parameter data corresponding to the preconfiguration parameter item under the preconfiguration business module of the preconfiguration mechanism needs to be archived, the preconfiguration mechanism is determined to be the first mechanism, the preconfiguration business module is determined to be the target business module, and the preconfiguration parameter item is determined to be the target parameter item; When the business process corresponding to the target business module of the first institution in the OA system is completed, the parameter data corresponding to the target parameter item under the target business module of the first institution is obtained, and the parameter data corresponding to the target parameter item obtained is used as the first business data.
3. The method according to claim 2, characterized in that Before reading the pre-configured parameter table and obtaining the pre-configured parameter items under the pre-configured business module of the pre-configured mechanism in the parameter table and the corresponding first indication information, the method further includes: By means of script initialization, configuring the pre-configuration mechanism, the pre-configuration service module, the pre-configuration parameter item and the first indication information in the parameter table; and / or, Based on the first configuration information input in the parameter configuration page, the preconfiguration mechanism, the preconfiguration service module, the preconfiguration parameter item and the first indication information are configured in the parameter table.
4. The method according to claim 2, characterized in that: The method further comprises: Reading the parameter table to obtain second indication information corresponding to the target parameter item under the target business module of the first institution in the parameter table, wherein the second indication information is used to indicate whether parameter data corresponding to the target parameter item under the target business module of the first institution needs to be verified; When the second indication information indicates that the parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified, the parameter data corresponding to the target parameter item under the target business module of the first organization is verified through the reflection mechanism according to the verification rules defined in the corresponding verification annotation.
5. The method according to claim 4, characterized in that Before reading the parameter table and obtaining the second indication information corresponding to the target parameter item under the target business module of the first mechanism in the parameter table, the method further includes: configuring the second indication information in the parameter table by means of script initialization, and / or configuring the second indication information in the parameter table based on the second configuration information input in the parameter configuration page; When the second indication information indicates that the parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified, according to the corresponding verification rule, the verification annotation corresponding to the verification rule is selected from the preset verification annotations, and the verification annotation is added to the source code, wherein the verification annotation is used to define the corresponding verification rule.
6. The method according to any one of claims 2 to 5, characterized in that: When the business process corresponding to the target business module of the first institution in the OA system is completed, obtaining parameter data corresponding to the target parameter item under the target business module of the first institution includes: Reading a public data table in the OA system to obtain parameter data corresponding to the target parameter item under the target business module of the first institution; Among them, the parameter data corresponding to the target parameter item is read from the original business table corresponding to the target business module of the first institution in the OA system through a batch task when the business process corresponding to the target business module of the first institution is completed, and stored in the public data table.
7. The method according to any one of claims 1 to 5, characterized in that The method of pushing the second business data to be archived under the target business module of the second organization to the cloud archive system through a scheduled task includes: Generate an archive file of a set type based on the second business data to be archived under the target business module of the second organization; Pushing the archived file to the cloud archive system through the scheduled task and updating the archive status of the archived file; When the archiving status of the archived file is a push failure status, the archived file is pushed again to the cloud archive archiving system through the scheduled task.
8. The method according to claim 7, characterized in that The archive files of the set type include at least one of the first type archive files, the second type archive files and the third type archive files; The first type of archive file is used to store detailed information of the second business data; The second type of archive file is used to store summary information of the second business data; The third type of archive file is a compressed file of the file where the second business data is located.
9. A data archiving device, characterized in that: The device comprises: An acquisition module, configured to acquire first business data to be archived under a target business module of a first institution in the OA system when a business process corresponding to the target business module of the first institution is completed; A processing module, configured to map the first organization to a second organization corresponding to the reference organization system based on a first mapping relationship between organizations in the organization tree adopted by the OA system and the organization tree adopted by the reference organization system, and use the first business data as second business data to be archived under the target business module of the second organization; A sending module is used to push the second business data to be archived under the target business module of the second organization to the cloud archive archiving system through a scheduled task, so as to map the second organization to a third organization corresponding to the cloud archive archiving system based on a second mapping relationship between organizations in the organization tree adopted by the cloud archive archiving system and the organization tree adopted by the benchmark organization system, and archive the second business data based on the third organization.
10. The device according to claim 9, characterized in that The acquisition module comprises: A first acquisition unit is used to read a pre-configured parameter table to obtain pre-configured parameter items under a pre-configured business module of a pre-configuration mechanism in the parameter table and corresponding first indication information, wherein the first indication information is used to indicate whether parameter data corresponding to the pre-configured parameter items under the pre-configured business module of the pre-configuration mechanism needs to be archived; a determining unit, configured to determine the preconfiguration institution as the first institution, the preconfiguration business module as the target business module, and the preconfiguration parameter item as the target parameter item when the first indication information indicates that the parameter data corresponding to the preconfiguration parameter item under the preconfiguration business module of the preconfiguration institution needs to be archived; The second acquisition unit is used to obtain the parameter data corresponding to the target parameter item under the target business module of the first organization in the OA system when the business process corresponding to the target business module of the first organization is completed, and use the obtained parameter data corresponding to the target parameter item as the first business data.
11. The device according to claim 10, characterized in that The device also includes a first configuration module, configured to: By means of script initialization, configuring the pre-configuration mechanism, the pre-configuration service module, the pre-configuration parameter item and the first indication information in the parameter table; and / or, Based on the first configuration information input in the parameter configuration page, the preconfiguration mechanism, the preconfiguration service module, the preconfiguration parameter item and the first indication information are configured in the parameter table.
12. The device according to claim 10, characterized in that The acquisition module also includes: A third acquisition unit is used to read the parameter table to obtain second indication information corresponding to the target parameter item under the target business module of the first institution in the parameter table, wherein the second indication information is used to indicate whether parameter data corresponding to the target parameter item under the target business module of the first institution needs to be verified; A verification unit is used to verify the parameter data corresponding to the target parameter item under the target business module of the first organization through a reflection mechanism according to the verification rules defined in the corresponding verification annotation when the second indication information indicates that the parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified.
13. The device according to claim 12, characterized in that The device also includes a second configuration module, configured to: configuring the second indication information in the parameter table by means of script initialization, and / or configuring the second indication information in the parameter table based on the second configuration information input in the parameter configuration page; When the second indication information indicates that the parameter data corresponding to the target parameter item under the target business module of the first organization needs to be verified, according to the corresponding verification rule, the verification annotation corresponding to the verification rule is selected from the preset verification annotations, and the verification annotation is added to the source code, wherein the verification annotation is used to define the corresponding verification rule.
14. The device according to any one of claims 10 to 13, characterized in that The second acquiring unit is used for: Reading a public data table in the OA system to obtain parameter data corresponding to the target parameter item under the target business module of the first institution; Among them, the parameter data corresponding to the target parameter item is read from the original business table corresponding to the target business module of the first institution in the OA system through a batch task when the business process corresponding to the target business module of the first institution is completed, and stored in the public data table.
15. The device according to any one of claims 9 to 13, characterized in that The sending module is used for: Generate an archive file of a set type based on the second business data to be archived under the target business module of the second organization; Pushing the archived file to the cloud archive system through the scheduled task and updating the archive status of the archived file; When the archiving status of the archived file is a push failure status, the archived file is pushed again to the cloud archive archiving system through the scheduled task.
16. The device according to claim 15, characterized in that The archive files of the set type include at least one of the first type archive files, the second type archive files and the third type archive files; The first type of archive file is used to store detailed information of the second business data; The second type of archive file is used to store summary information of the second business data; The third type of archive file is a compressed file of the file where the second business data is located.
17. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
19. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.