Data archiving method and device, storage medium and electronic equipment
By verifying data archiving metrics and generating verification results, the problems of incomplete and erroneous data archiving were solved, thus improving the quality and accuracy of data archiving.
Patent Information
- Application Number
- CN202511219887.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-28
- Publication Date
- 2026-01-16
AI Technical Summary
Existing technologies are prone to problems such as incomplete archiving, missing archived data, and archived erroneous data when archiving data, which cannot guarantee the quality of data archiving.
By acquiring archived data and archived metrics from different business systems, the system responds to data archiving instructions for verification, generates verification results, and performs archiving operations after successful verification, generating archive verification results.
It enables the verification of archived data indicators, reduces incomplete archives, missing data, and erroneous data, and improves the quality of data archiving.
Smart Images

Figure CN121349961A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of power trading and data archiving technology, specifically to a data archiving method, apparatus, storage medium, and electronic equipment. Background Technology
[0002] Data archiving can be used for data interaction across business systems. It stores business data generated by one business system in a data sharing platform and provides it to one or more business systems to ensure business continuity and improve data security, integrity and consistency.
[0003] Currently, related technologies typically perform archiving operations directly during data archiving. However, when there is a large amount of archived data, problems such as incomplete archiving, missing archived data, and archived incorrect data can easily occur, making it impossible to guarantee the quality of data archiving. Summary of the Invention
[0004] In view of this, the present disclosure provides a data archiving method, apparatus, storage medium and electronic device, the main purpose of which is to solve the technical problem that current related technologies usually perform archiving operations directly during data archiving, but when there is a large amount of archived data, problems such as incomplete archiving, missing archived data, and archived erroneous data are prone to occur, and the quality of data archiving cannot be guaranteed.
[0005] According to a first aspect of this disclosure, a data archiving method is provided, the method comprising:
[0006] Obtain the archived data corresponding to different business systems and the archived metrics corresponding to the archived data;
[0007] In response to receiving a data archiving instruction corresponding to the archived data, the archived data is verified according to the archiving indicators, and the data verification result corresponding to the archived data is obtained.
[0008] If the data verification result is determined to be that the data verification passed, then the archiving operation of the archived data is performed according to the archiving indicators, and the archiving verification result of the archived data is generated.
[0009] According to a second aspect of this disclosure, a data archiving apparatus is provided, the apparatus comprising:
[0010] The acquisition module is used to acquire archived data corresponding to different business systems and archived indicators corresponding to the archived data; in response to receiving a data archiving instruction corresponding to the archived data, the module verifies the archived data according to the archived indicators and acquires the data verification result corresponding to the archived data.
[0011] The generation module is used to, if the data verification result is determined to be data verification passed, perform the archiving operation of the archived data according to the archiving indicators, and generate the archiving verification result of the archived data.
[0012] According to a third aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect described above.
[0013] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause a computer to perform the method of the first aspect described above.
[0014] The data archiving method, apparatus, storage medium, and electronic device disclosed herein, compared with related technologies, first acquire archived data corresponding to different business systems and archived indicators corresponding to the archived data; in response to receiving a data archiving instruction corresponding to the archived data, the archived data is verified according to the archived indicators to obtain a data verification result corresponding to the archived data; if the data verification result is determined to be data verification passed, the archiving operation of the archived data is executed according to the archived indicators, and an archived verification result of the archived data is generated. Through the solution of this disclosure, when receiving data archiving instructions corresponding to archived data sent by different business systems, the archived data is verified according to the archived indicators corresponding to the archived data. After determining that the data verification result of the archived data is data verification passed, the archiving operation of the archived data is executed, and an archived verification result is generated. This provides data archiving services for different business systems, realizes the verification of archived data archived indicators, reduces incomplete archiving, missing archived data, and erroneous archived data, thereby improving the quality of data archiving. Attached Figure Description
[0015] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0016] To more clearly illustrate the technical solutions in the embodiments or related technologies of this disclosure, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating a data archiving method provided in an embodiment of the present disclosure;
[0018] Figure 2 A flowchart illustrating an example provided in an embodiment of this application is shown;
[0019] Figure 3 This is a schematic diagram of the structure of a data archiving device provided in an embodiment of the present disclosure. Detailed Implementation
[0020] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description. It should be noted that, unless otherwise specified, the embodiments of this disclosure and the features described therein can be combined with each other.
[0021] The data archiving method, apparatus, storage medium, and electronic device of this disclosure are described below with reference to the accompanying drawings.
[0022] This disclosure provides a data archiving method, apparatus, storage medium, and electronic device. The main purpose is to solve the technical problem that current related technologies usually perform archiving operations directly during data archiving, but when there is a large amount of archived data, problems such as incomplete archiving, missing archived data, and archived erroneous data are prone to occur, which cannot guarantee the quality of data archiving.
[0023] like Figure 1 As shown, embodiments of this disclosure provide a data archiving method, including:
[0024] Step 101: Obtain the archived data and archived metrics corresponding to the archived data for different business systems.
[0025] In some embodiments, the business system may include, but is not limited to, third-party business systems for electricity retail and electricity wholesale, etc., and the business data may include electricity trading business data, such as traded electricity volume and traded electricity price. Accordingly, according to actual business archiving needs, archiving indicators corresponding to each archived data can be preset. Archiving indicators (archived data indicators) may include, but are not limited to, the number of data records, the number of fields, field types (such as special type field indicators), data-related indicators (such as decimal places indicators, positive and negative number indicators, null value indicators, null value default fields), string-related indicators (such as Chinese and English character control), special field-related indicators, time format indicators, etc. Archiving indicators can be used to verify archived data to ensure that the archived data conforms to the corresponding archiving rules and improve the quality of archived data.
[0026] In some embodiments, data archiving control can be provided for relational databases, with the number of data records, the number of fields, and the field types being common data attributes of relational databases. For the archiving requirements of documents and other materials in power trading operations, special type field indicators can be set. For example, power trading contracts, priority power contracts, and power sales company registration materials all contain non-text format files such as PDF, JPG, and PNG. During archiving, users (such as archiving operators) can specify whether to archive data with special type fields to the data center to ensure the accuracy of archiving different data.
[0027] For example, archived data can be received through a data center. The archived data can be business data that needs to be archived from different business systems associated with the data center. For example, decimal places can be set in the archived indicators for transaction electricity volume, transaction electricity price, etc., to verify whether the transaction electricity volume and transaction electricity price meet the decimal places indicator, which helps to ensure that the archived data can be archived successfully.
[0028] Step 102: In response to receiving the data archiving instruction corresponding to the archived data, verify the archived data according to the archiving indicators and obtain the data verification result corresponding to the archived data.
[0029] The data archiving instruction can be an archiving command sent by different business systems to the data center. The data verification result can be used to indicate whether the archived data meets the corresponding archiving indicators, and can include data verification passed, data verification failed, etc. For example, the archiving operator can call the archiving service through a third-party business system to send a data archiving instruction to the data center. After receiving the data archiving instruction, the data center can use the service interface with the third-party business system to receive the corresponding archived data and obtain the archiving indicators corresponding to the archived data. Then, it verifies the archived data one by one according to the archiving indicators, and checks whether each archived data meets the corresponding archiving indicators. After all the archived data has been verified, the corresponding data verification result is generated, which can be fed back to the third-party business system, and a prompt message corresponding to the data verification result is generated. This helps to reduce situations such as incomplete archiving, missing archived data, and erroneous archived data, thereby improving the accuracy of data archiving.
[0030] Step 103: If the data verification result is determined to be that the data verification is passed, then perform the archiving operation of the archived data according to the archiving indicators, and generate the archiving verification result of the archived data.
[0031] In some embodiments, if the data verification result of the archived data is determined to be data verification passed after verification, that is, the archived data meets the corresponding archiving indicators, then the archiving operation of the archived data can be performed according to the data storage method corresponding to the archiving indicators, and the archived data can be stored in a preset storage location in the data center. After the archived data is stored, the stored archived data can be further verified and compared with the archived data corresponding to the business system. Based on the data comparison results before and after archiving, the archiving verification result corresponding to the archived data can be generated, thereby further improving the accuracy of the archived data and ensuring the quality of data archiving.
[0032] Compared with related technologies, this embodiment first obtains the archived data and archived indicators corresponding to different business systems; in response to receiving the data archiving instruction corresponding to the archived data, it verifies the archived data according to the archived indicators and obtains the data verification result corresponding to the archived data; if it is determined that the data verification result is successful, it executes the archiving operation of the archived data according to the archived indicators and generates the archived verification result of the archived data. Through the solution disclosed herein, when receiving the data archiving instruction corresponding to the archived data sent by different business systems, the archived data is verified according to the archived indicators corresponding to the archived data. After determining that the data verification result of the archived data is successful, the archived data archiving operation is executed and the archived verification result is generated. This provides data archiving services for different business systems, realizes the verification of archived data archived indicators, reduces incomplete archiving, missing archived data, and erroneous archived data, thereby improving the quality of data archiving.
[0033] Based on the technical implementation described in the above embodiments, to further illustrate the specific implementation process of the method in this embodiment, optionally, the archived data is verified according to the archiving indicators to obtain the data verification result corresponding to the archived data. Specifically, this may include: determining the archiving indicators corresponding to the archived data according to the data value rules of the archived data; determining whether the archived data meets the archiving indicators corresponding to the archived data; if the archived data meets the archiving indicators corresponding to the archived data, then the data verification result is determined to be data verification passed; if the archived data does not meet the archiving indicators corresponding to the archived data, then the data verification result is determined to be data verification failed, and data verification feedback information is generated.
[0034] In some embodiments, the data retrieval rules for archived data can be based on the verification requirements of each business data. Optionally, data-related indicators can be set to meet the specific data verification requirements in power trading, enabling automated secondary data verification and validation.
[0035] For example, special field indicators can be set to enumerated values, such as 0 and 1. 0 can represent that XX field is allowed to store BLOB type data, and 1 can represent that XX field is not allowed to store BLOB type data.
[0036] In specific application scenarios, decimal places can be set for traded electricity volume and price. For example, if the traded electricity volume is in megawatt-hours (MWh), the number of decimal places is typically 4 to 6; if it's in kilowatt-hours (kWh), it's typically 1 to 3. Similarly, if the traded electricity price is in yuan per kilowatt-hour (kWh), the number of decimal places is typically 4 or 5; if it's in yuan per megawatt-hour (MWh), it's typically 1 or 2. The specific number of decimal places is determined by the data archiving operator based on specific business requirements.
[0037] Correspondingly, the decimal places indicator can be set to a natural number, and the data center can perform indicator standardization verification when data archiving operators input the indicator.
[0038] For example, positive and negative indicators can be set for settlement electricity volume and settlement electricity charges. For instance, when archiving wholesale electricity user settlement data, the total electricity volume, constant electricity volume, peak electricity volume, average electricity volume, valley electricity volume, non-high energy consumption electricity volume, high energy consumption electricity volume, settlement electricity volume, annual contracted ratio required electricity volume, and monthly actual coal purchase volume can be positive, zero, or negative. The total monthly transaction electricity charge, transaction electricity charge, time-of-use benchmark electricity charge, imbalance charge, refund of electricity charges to users for over-purchased coal-fired power, refund of electricity charges to users for under-purchased coal-fired power, annual transaction assessment electricity charge for failing to meet the contracted ratio, and time-of-use benchmark electricity charge can be positive, zero, or negative. As another example, when archiving wholesale electricity charge allocation results data, retail transaction electricity volume must be zero or positive, retail transaction price must be positive, and retail transaction electricity charge must be positive. For example, when a power sales company archives wholesale electricity discount data, the settled electricity cost must be zero or a positive value, while the electricity discount and the total wholesale electricity cost can be positive, zero, or negative. The specific positive or negative values for each field are determined by the data archiving operator based on specific business requirements.
[0039] Correspondingly, the positive and negative number index can be set to an enumeration value. The positive and negative number index has multiple enumeration options, such as 0, 1, 2, 3, 4, 5, 6, etc., which represent the following conditions: can only take zero value, can only take positive value, can only take negative value, cannot be zero value (can take positive or negative value), cannot be positive value (can take zero or negative value), cannot be negative value (can take zero or positive value), and can take positive value, zero value, or negative value.
[0040] Nullability indicators can be set for fields in data to be archived. For example, the primary key, data archiving operator, and archiving time of each record cannot be null. From a business perspective, fields such as transaction volume, market entity transaction number, and transaction price in the electricity wholesale transaction results table cannot be null; in the electricity sales company performance guarantee table, the electricity sales company transaction number, performance guarantee (insurance) number, and performance guarantee (insurance) amount cannot be null.
[0041] Specifically, the null value indicator can be set to an enumerated value. Two enumerated values (0 and 1) can be set, where 0 represents that it cannot be null and 1 represents that it can be null. For records with a null value indicator of 1, a default null field indicator is set to ensure data integrity. During data archiving, fields containing null values will be uniformly converted to the default null field indicator according to the data archiving operator's settings. For example, if the data archiving operator sets a default null field indicator (set to " / ") for field XX, then during data archiving, null values in that field will be automatically archived as " / ".
[0042] Correspondingly, the null value default field indicator can be set to a common string. The optional strings for the null value default field indicator setting include, but are not limited to, " / " and "-". Another feasible solution is to set this indicator according to the actual business situation. The optional fields include, but are not limited to, "retail users", "wholesale users", "electricity sales companies", "Category C retail users" and "power generation companies".
[0043] Optionally, string-related indicators can be set to meet the string verification requirements specific to power trading operations, enabling automated secondary string verification and validation.
[0044] Specifically, for fields such as company name and company registration name, a control indicator for the use of both Chinese and English characters can be set. This indicator is set to avoid situations where the same record is archived twice or fails verification due to discrepancies in parentheses between Chinese and English characters, which are not easily verifiable by the naked eye. For example, "XX Power Plant (XX Photovoltaic Power Plant)" and "XX Power Plant (XX Photovoltaic Power Plant)" are treated as two different records during data archiving because the parentheses are in English and Chinese formats respectively. This causes a third-party business system to be unable to distinguish between the two records when retrieving data, affecting subsequent business operations.
[0045] For example, the Chinese and English character control index can be set to an enumeration value. There are three enumeration values (0, 1 and 2) for the Chinese and English character control index. 0 can represent that the current field can only contain Chinese characters, 1 can represent that the current field can only contain English characters, and 2 can represent that the current field can archive strings containing a mixture of Chinese and English characters.
[0046] For example, if the archived data does not meet the corresponding archived metrics, to avoid delays or even failures in the database archived data process, and to prevent third-party business systems from obtaining corrupted archived data and affecting related business operations, data verification feedback information can be generated for the archived data. This feedback will inform the data archiving operator of the problem and request them to check the archived data. For example, the data verification feedback information could be: "The XX field type of the data to be archived does not meet the requirements of the special type field metric. Please check the XX field before archiving."
[0047] In some embodiments, if the archived data meets the corresponding archiving indicators, the data verification result is determined to be data verification passed, and archiving can proceed. If the archived data does not meet the corresponding archiving indicators, the data verification result is determined to be data verification failed, and data verification feedback information can be generated. This feedback information can be used to prompt the user to verify and correct the archived data to ensure its accuracy. For example, after receiving the data archiving instruction corresponding to the archived data, data verification feedback information can be generated. This allows the data center to notify the archiving operator to confirm the archiving indicators. By confirming the archiving indicators, the archiving indicator verification of the archived data is achieved, reducing situations such as incomplete archiving, missing archived data, and erroneous archived data, thereby improving the quality of data archiving and ensuring the integrity, accuracy, and consistency of the archived data.
[0048] For example, if the data to be archived does not meet the positive and negative value indicator requirements of the data archiving operator, in order to avoid the subsequent third-party business systems obtaining dirty archived data and affecting related business, the problems with the data to be archived can be reported to the data archiving operator, asking the data archiving operator to check the data to be archived. The feedback information can be "Field XX of the data to be archived does not meet the positive and negative value indicator requirements. Please check field XX before archiving". If the data to be archived does not meet the null value indicator requirements of the data archiving operator, the feedback information can be "Field XX of the data to be archived contains null values, which does not meet the null value indicator requirements. Please check field XX before archiving". If the data to be archived does not meet the Chinese and English character control indicator requirements of the data archiving operator, the feedback information can be "Field XX of the data to be archived contains Chinese / English characters, which does not meet the Chinese and English character control indicator requirements. Please check field XX before archiving".
[0049] Optionally, step 103 may specifically include: if the data verification result is determined to be data verification passed, then the archiving method of the archived data is determined according to the primary key of the archived record; according to the archiving method, the preset storage location corresponding to the archived data is determined, and the archived data is stored in the preset storage location according to the archiving indicators, and the archived storage data after storage is completed is obtained; and the archived verification result of the archived data is generated based on the archived storage data and the archived data.
[0050] For example, after the data archiving operator confirms that the archived data metrics are correct, the data center begins data archiving. The archived data can be stored uniformly in the data center. In actual operation, the preset storage location (destination location) for data archiving can be replaced according to actual needs. The destination location may include, but is not limited to, a data warehouse, a data middle platform, etc.
[0051] Optionally, the archiving method for archived data may include, but is not limited to, overwrite archiving, incremental archiving, etc., and the primary key of the archived record can be used as a unique identifier to distinguish records. For example, when the primary key of the archived record is an existing primary key, overwrite archiving can be performed; when the primary key of the archived record is a newly added primary key, incremental archiving can be performed. Specifically, when archiving data, the data center can obtain the primary key of the record, and then query whether the current primary key exists in the archived data. If it exists, the record corresponding to the current primary key is replaced with the record to be archived; if it does not exist, the record to be archived is inserted into the data table.
[0052] It should be noted that the choice between overlay archiving and incremental archiving should be made based on the actual business situation. Only one method can be used, or a combination of both can be employed.
[0053] In some embodiments, virtual device clusters can be used to support the data archiving process, and virtual computing resource pools can be used for data backup, thereby improving the robustness of data storage hardware. Specifically, the connection between third-party business systems and the data center can be achieved using an SOA architecture, i.e., without a physical connection, improving the security and stability of data storage through physical isolation.
[0054] Optionally, based on the archived storage data and the archived data, an archive verification result for the archived data can be generated. Specifically, this may include: determining whether the archived storage metrics corresponding to the archived storage data are consistent with the archived metrics corresponding to the archived data; if it is determined that the archived storage metrics corresponding to the archived storage data are inconsistent with the archived metrics corresponding to the archived data, then a data rollback operation is performed.
[0055] Among them, the archived storage data can be the archived storage data. The archived storage indicators (archiving result indicators) corresponding to the archived storage data can be automatically generated based on the actual archiving results in the data center. By comparing the archived indicators of the archived data with the archived storage indicators of the archived storage data, an archive verification result can be generated to verify whether the archiving was successful, so as to ensure the accuracy of the archived data.
[0056] For example, if the values of all archiving result indicators match the values of the archiving indicators, the data archiving operation has been executed correctly; if the values of all archiving result indicators do not match the values of the archiving indicators, the data archiving operation has not been executed correctly, and a data archiving operation rollback can be performed. Specifically, the state of the data center data model can be rolled back to the state before the current data archiving operation was executed through the transaction log. In this way, by rolling back the data archiving operation through the data center, dirty data is avoided, and effective data assurance is provided for the smooth operation of subsequent business processes.
[0057] Optionally, the method in this embodiment may further include: generating a confirmation notification corresponding to the archiving result indicators, so as to notify the user to confirm whether the archiving result indicators of the archived stored data are correct after the data archiving is completed in the data center, so that the archiving operator can make a second confirmation, help the archiving operator to understand that the data has been archived according to the confirmed data archiving indicators, improve the transparency of data archiving indicator changes during the data archiving process, and issue a visual alarm of data archiving failure to the data archiving operator and the data center administrator through visual indicators.
[0058] Optionally, if the archived data does not meet the archiving indicators corresponding to the archived data, the data verification result is determined to be data verification failed. Specifically, this may include: if the archived data does not meet the archiving indicators corresponding to the archived data, correcting the archived data according to the data value rules; determining whether the corrected archived data meets the archiving indicators corresponding to the archived data; if the corrected archived data does not meet the archiving indicators corresponding to the archived data, the data verification result is determined to be data verification failed; if the corrected archived data meets the archiving indicators corresponding to the archived data, the data verification result is determined to be data verification passed.
[0059] The data retrieval rules can include rules for decimal places and rules for Chinese and English characters. For example, regarding the decimal place rules, if the number of decimal places in a field is less than the number of places corresponding to the archiving index, then zeros can be automatically added during archiving according to the number of decimal places required by the archiving index; if the number of decimal places in a field is greater than the number of places corresponding to the archiving index, then the original data can be rounded according to the number of decimal places required by the archiving index, and the number of places corresponding to the archiving index can be the preset number of places required by the archiving operator.
[0060] For example, for the rules for taking Chinese and English characters, character forced conversion can be set. During archiving, the string will be converted according to the Chinese and English character control index requirements. When the Chinese and English character control index value is 0, "(" and ")" can be converted to "(" and ")" respectively; "[" and "]" can be forcibly converted to "
" and "
[0061] Optionally, step 101 may specifically include: determining the business archiving permissions corresponding to different business systems; and obtaining the archived data and the archived indicators corresponding to the archived data based on the data tables corresponding to the different business archiving permissions.
[0062] In some embodiments, data centers can use data models to manage data archiving permissions (such as data query permissions) to improve data security. To meet actual business data archiving needs, data centers can assign different data model data archiving permissions to different third-party business systems, preventing third-party business systems from accessing the archiving services of other business systems' data models to archive dirty data and disrupt normal business operations. For example, data tables for which data archiving permissions are granted to third-party power retail business systems include, but are not limited to, retail lists, power sales company settlement lists, and retail order details tables; data tables for which data archiving permissions are granted to third-party power wholesale business systems include, but are not limited to, wholesale market transaction results, time-of-use transaction results, and time-of-use deviation electricity benchmark prices.
[0063] Optionally, the method in this embodiment may further include: receiving data query requests from different business systems through the corresponding business service interfaces of different business systems.
[0064] In some embodiments, a data center can provide a unified business service interface (data archiving service interface) to third-party business systems through service encapsulation. This business service interface may include, but is not limited to, RESTful interfaces and WebService services. For example, it can provide data query permissions for green electricity information of power generation enterprises to power trading systems and power settlement systems; provide data query permissions for pre-established agency relationships to wholesale trading systems; and provide data query permissions for users' monthly transaction information to electricity spot settlement systems.
[0065] In specific application scenarios, when other third-party business systems retrieve data from an authorized data model, they can first verify whether the previous data archiving operation was executed correctly to ensure that no dirty data from the archive is retrieved. Verification can be done by obtaining the most recent data archiving operator confirmation result for that data model. If the most recent data archiving execution was successful, the data from that data model can be retrieved. This approach resolves existing issues related to the connection between data archiving and data retrieval processes, such as untimely data archiving affecting data retrieval, or repeated archiving after data retrieval leading to the reading of dirty data. By obtaining data archiving information from other third-party business systems, it ensures that the data retrieval process is free of dirty or outdated data, improving the quality of data flow between business processes and perfecting the data archiving quality control process.
[0066] As one possible implementation method, such as Figure 2 The diagram shows a data archiving quality control flowchart, which may include the following steps:
[0067] (1) Third-party business system archiving operators call service to archive data;
[0068] (2) The data center notifies the archiving operator to confirm the archived data metrics;
[0069] (3) Determine if the archiving metrics are correct; if the archiving metrics are correct, the data center performs the data archiving operation; if the archiving metrics are incorrect, return to step (1).
[0070] (4) The data center performs data archiving operations;
[0071] (5) Statistical data archiving results indicators after data archiving is completed;
[0072] (6) The data center notifies the archiving operator to confirm the data archiving result metrics;
[0073] (7) Determine if the archiving result indicators are correct; if the archiving result indicators are incorrect, the data center rolls back the data archiving operation; if the archiving indicators are correct, other third-party business systems obtain the data archiving status.
[0074] (8) Determine whether the data archiving process is executed smoothly; if the data archiving process is executed smoothly, other third-party business systems can call the data service to obtain data.
[0075] Compared with related technologies, this embodiment, upon receiving data archiving instructions from different business systems, verifies the archived data based on the corresponding archiving indicators. After confirming that the data verification result is successful, it executes the archiving operation and generates an archiving verification result. This provides data archiving services for different business systems, realizes archiving indicator verification of archived data, reduces incomplete archiving, missing archived data, and erroneous archived data, thereby improving data archiving quality. Furthermore, it can determine the corresponding archiving indicators based on the data value rules of the archived data, and perform data verification in conjunction with the value requirements of each archived data. If the archived data does not meet the corresponding archiving indicators, the data verification result is determined to be unsuccessful, and data verification feedback information is generated to prompt the user to correct the archived data. Based on the archived storage data and the archived data, an archiving verification result is generated to provide feedback on the archiving result, ensuring the integrity, consistency, and correctness of data during the archiving operation.
[0076] Based on the above Figure 1 The specific implementation of the method shown in this embodiment provides a data archiving device, such as... Figure 3 As shown, the device includes: an acquisition module 31 and a generation module 32;
[0077] The acquisition module 31 is used to acquire archived data and archived indicators corresponding to different business systems; in response to receiving the data archiving instruction corresponding to the archived data, it verifies the archived data according to the archived indicators and acquires the data verification result corresponding to the archived data.
[0078] The generation module 32 is used to perform the archiving operation of the archived data according to the archiving indicators and generate the archiving verification result of the archived data if the data verification result is determined to be that the data verification is passed.
[0079] In some examples of this embodiment, the acquisition module 31 is specifically configured to determine the archiving indicators corresponding to the archived data according to the data value rules of the archived data; determine whether the archived data meets the archiving indicators corresponding to the archived data; if the archived data meets the archiving indicators corresponding to the archived data, then determine that the data verification result is data verification passed; if the archived data does not meet the archiving indicators corresponding to the archived data, then determine that the data verification result is data verification failed, and generate data verification feedback information.
[0080] In some examples of this embodiment, the generation module 32 is specifically configured to, if the data verification result is determined to be data verification passed, determine the archiving method of the archived data according to the primary key of the archived record; determine the preset storage location corresponding to the archived data according to the archiving method, and store the archived data in the preset storage location according to the archiving indicators, and obtain the archived storage data after storage is completed; and generate the archived verification result of the archived data based on the archived storage data and the archived data.
[0081] In some examples of this embodiment, the generation module 32 is specifically configured to determine whether the archive storage index corresponding to the archive storage data is consistent with the archive index corresponding to the archive data; if it is determined that the archive storage index corresponding to the archive storage data is inconsistent with the archive index corresponding to the archive data, then a data rollback operation is performed.
[0082] In some examples of this embodiment, the acquisition module 31 is specifically configured to: if the archived data does not meet the archived indicators corresponding to the archived data, then correct the archived data according to the data value rules; determine whether the corrected archived data meets the archived indicators corresponding to the archived data; if the corrected archived data does not meet the archived indicators corresponding to the archived data, then determine that the data verification result of the archived data is data verification failed; if the corrected archived data meets the archived indicators corresponding to the archived data, then determine that the data verification result of the archived data is data verification passed.
[0083] In some examples of this embodiment, the acquisition module 31 is specifically configured to determine the business archiving permissions corresponding to different business systems; and to acquire the archived data and the archived indicators corresponding to the archived data based on the data tables corresponding to the different business archiving permissions.
[0084] In some examples of this embodiment, the acquisition module 31 is further configured to receive data query requests from different business systems through the corresponding business service interfaces of different business systems.
[0085] Based on the above, Figure 1 Accordingly, this embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method. Figure 1 The method shown.
[0086] Based on this understanding, the technical solution of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, or portable hard drive) and includes several instructions to cause a computer device (such as a personal computer, server, or network device) to execute the methods of various implementation scenarios of this disclosure.
[0087] Based on the above, Figure 1 The method shown, and Figure 3 To achieve the above objectives, this disclosure also provides an electronic device, comprising a storage medium and a processor; the storage medium for storing a computer program; and the processor for executing the computer program to implement the above-described virtual device embodiments. Figure 1 The method shown.
[0088] Optionally, the aforementioned physical devices may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.
[0089] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.
[0090] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.
[0091] Through the above description of the embodiments, those skilled in the art can clearly understand that this disclosure can be implemented using software plus necessary general-purpose hardware platforms, or it can be implemented using hardware. With the solution of this disclosure, upon receiving data archiving instructions corresponding to archived data sent by different business systems, the archived data is verified according to the archiving indicators corresponding to the archived data. After determining that the data verification result of the archived data is that the data verification has passed, the archiving operation of the archived data is executed, and an archiving verification result is generated. This can provide data archiving services for different business systems, realize the verification of archiving indicators for archived data, reduce incomplete archiving, missing archived data, and erroneous archived data, thereby improving the quality of data archiving. Furthermore, the archiving indicators corresponding to the archived data can be determined according to the data value rules of the archived data, and data verification can be performed in conjunction with the value requirements of each archived data. If the archived data does not meet the archiving indicators corresponding to the archived data, the data verification result is determined to be that the data verification has failed, and data verification feedback information is generated to prompt the user to correct the archived data. Based on the archived storage data and the archived data, an archiving verification result of the archived data is generated to provide feedback on the archiving result of the archived data, ensuring the integrity, consistency, and correctness of the data during the archiving operation.
[0092] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" or any other variations thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0093] The above are merely specific embodiments of this disclosure, enabling those skilled in the art to understand or implement this disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to these embodiments, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A data archiving method, characterized by, The method comprises: acquiring archiving data corresponding to different business systems and archiving indexes corresponding to the archiving data; in response to receiving a data archiving instruction corresponding to the archiving data, verifying the archiving data according to the archiving indexes to acquire a data verification result corresponding to the archiving data; if it is determined that the data verification result is data verification passed, performing an archiving operation of the archiving data according to the archiving indexes and generating an archiving verification result of the archiving data.
2. The method of claim 1, wherein, The verifying the archiving data according to the archiving indexes to acquire the data verification result corresponding to the archiving data comprises: determining the archiving indexes corresponding to the archiving data according to a data value rule of the archiving data; judging whether the archiving data meets the archiving indexes corresponding to the archiving data; if the archiving data meets the archiving indexes corresponding to the archiving data, determining that the data verification result is data verification passed; if the archiving data does not meet the archiving indexes corresponding to the archiving data, determining that the data verification result is data verification failed and generating data verification feedback information.
3. The method of claim 2, wherein, The if it is determined that the data verification result is data verification passed, performing an archiving operation of the archiving data according to the archiving indexes and generating an archiving verification result of the archiving data comprises: if it is determined that the data verification result is data verification passed, determining an archiving mode of the archiving data according to an archiving record primary key; determining a preset storage location corresponding to the archiving data according to the archiving mode and storing the archiving data into the preset storage location according to the archiving indexes to acquire archiving storage data after storage is completed; generating the archiving verification result of the archiving data according to the archiving storage data and the archiving data.
4. The method of claim 3, wherein, The generating the archiving verification result of the archiving data according to the archiving storage data and the archiving data comprises: judging whether archiving storage indexes corresponding to the archiving storage data are consistent with the archiving indexes corresponding to the archiving data; if it is determined that the archiving storage indexes corresponding to the archiving storage data are not consistent with the archiving indexes corresponding to the archiving data, performing a data rollback operation.
5. The method as claimed in claim 2, wherein, The if the archiving data does not meet the archiving indexes corresponding to the archiving data, determining that the data verification result is data verification failed comprises: if the archiving data does not meet the archiving indexes corresponding to the archiving data, modifying the archiving data according to the data value rule; judging whether the modified archiving data meets the archiving indexes corresponding to the archiving data; if the modified archiving data does not meet the archiving indexes corresponding to the archiving data, determining that the data verification result of the archiving data is data verification failed; if the modified archiving data meets the archiving indexes corresponding to the archiving data, determining that the data verification result of the archiving data is data verification passed.
6. The method as claimed in claim 1, wherein, The acquiring the archiving data corresponding to different business systems and the archiving indexes corresponding to the archiving data comprises: determining business archiving permissions corresponding to the different business systems; According to the data table corresponding to the different business archiving permissions, archive data and archive indexes corresponding to the archive data are obtained.
7. The method of claim 6, wherein, The method further includes: Through the corresponding business service interface of the different business systems, a data query request of the different business systems is received.
8. A data archiving apparatus, characterized by, Including: An obtaining module is configured to obtain archive data corresponding to different business systems and archive indexes corresponding to the archive data; In response to receiving a data archiving instruction corresponding to the archive data, the archive data is verified according to the archive indexes, and a data verification result corresponding to the archive data is obtained; A generating module is configured to, if it is determined that the data verification result is a data verification pass, perform an archiving operation of the archive data according to the archive indexes, and generate an archiving verification result of the archive data.
9. An electronic device, comprising: Including: At least one processor; And A memory connected in communication with the at least one processor; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to enable the computer to perform the method of any one of claims 1-7.
Citation Information
Patent Citations
Service data archiving method and system
CN107729556A
Electronic file automatic filing method and system
CN114416638A
Method, system and equipment for detecting authenticity of metadata of electronic file and medium
CN115964684A