CN113342816A - Directory reporting method and device - Google Patents

Directory reporting method and device Download PDF

Info

Publication number
CN113342816A
CN113342816A CN202110699278.2A CN202110699278A CN113342816A CN 113342816 A CN113342816 A CN 113342816A CN 202110699278 A CN202110699278 A CN 202110699278A CN 113342816 A CN113342816 A CN 113342816A
Authority
CN
China
Prior art keywords
directory
target
data
directory system
data table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110699278.2A
Other languages
Chinese (zh)
Other versions
CN113342816B (en
Inventor
林鹏程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dt Dream Technology Co Ltd
Original Assignee
Hangzhou Dt Dream Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dt Dream Technology Co Ltd filed Critical Hangzhou Dt Dream Technology Co Ltd
Priority to CN202110699278.2A priority Critical patent/CN113342816B/en
Publication of CN113342816A publication Critical patent/CN113342816A/en
Application granted granted Critical
Publication of CN113342816B publication Critical patent/CN113342816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method and a device for reporting a directory. According to the embodiment of the invention, when the preset condition is met, the original data information corresponding to the target field and the target directory system information reporting the original data information are obtained, the first directory data source data table is generated according to the directory data table of the current-level directory system, the original data information and the target directory system information, and the first directory data source data table is reported to the previous-level directory system of the current-level directory system, so that the directory system can check the data of the target field according to the original data information corresponding to the target field in the directory data table and the target directory system information, and the directory data is prevented from being tampered.

Description

Directory reporting method and device
Technical Field
The present invention relates to the field of data exchange technologies, and in particular, to a method and an apparatus for reporting a directory.
Background
The data cascade exchange provides a resource catalog cascade function, realizes chess playing of national information resource catalogs through the transverse and longitudinal cascade functions, and realizes resource catalog sharing across systems, departments and regions.
Under the multi-level directory organization, each level of directory system acquires the directory data of the next level of directory system, collects the directory data to form the directory data of the level of directory system, and reports the directory data to the previous level of directory system of the level of directory system. The data developer of each level of directory system can perform data analysis or development on the directory data of the current level of directory system.
In the process of reporting and processing the directory data, the reported data is deviated or tampered due to technical reasons or human reasons, so that the directory data of a superior directory system is deviated from the original data information.
Disclosure of Invention
In order to overcome the problems in the related art, the invention provides a method and a device for reporting a directory, which can prevent the directory data from being tampered.
According to a first aspect of the embodiments of the present invention, there is provided a directory reporting method applied to any one of multi-level directory systems, the method including:
when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information; the target field is a field in a directory data table of the current-level directory system, which is specified and protected by the previous-level directory system of the current-level directory system;
generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information and the target directory system information;
and reporting the first directory data source data table to a higher-level directory system of the current-level directory system.
According to a second aspect of the embodiments of the present invention, there is provided a directory reporting apparatus, which is applied to any directory system in a multi-level directory system, the method including:
the acquisition module is used for acquiring original data information corresponding to a target field and target directory system information for reporting the original data information when a preset condition is met; the target field is a field in a directory data table of the current-level directory system, which is specified and protected by the previous-level directory system of the current-level directory system;
the generating module is used for generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information and the target directory system information;
and the reporting module is used for reporting the first directory data source data table to a higher-level directory system of the current-level directory system.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
a memory for storing executable instructions of the processor;
the processor is configured to execute the instructions to implement the method of any of the first aspect.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed, implement the method of any one of the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, when the preset condition is met, the original data information corresponding to the target field and the target directory system information reporting the original data information are obtained, the first directory data source data table is generated according to the directory data table of the current-level directory system, the original data information and the target directory system information, and the first directory data source data table is reported to the previous-level directory system of the current-level directory system, so that the directory system can inspect the data of the target field according to the original data information corresponding to the target field in the directory data table and the target directory system information, and the directory data is prevented from being tampered.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is an exemplary diagram of a multi-level directory organization.
Fig. 2 is a flowchart illustrating a directory reporting method according to an embodiment of the present invention.
Fig. 3 is a functional block diagram of a directory reporting apparatus according to an embodiment of the present invention.
Fig. 4 is a hardware structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of embodiments of the invention, as detailed in the following claims.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of embodiments of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used to describe various information in embodiments of the present invention, the information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of embodiments of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
FIG. 1 is an exemplary diagram of a multi-level directory organization. As shown in FIG. 1, the multi-level directory includes three levels of directories, namely: level 1 directories, level 2 directories, and level 3 directories. The same-level directory may include multiple directories, for example, level-2 directory 1 and level-2 directory 2 are the same-level directory, and level-3 directory 1 and level-3 directory 2 are the same-level directory.
Wherein each directory is managed by a respective directory system. The directory system is responsible for reporting the directory data of the directory system to the previous directory system and processing and summarizing the directory data reported by the next directory system to form the directory data of the directory system.
The directory data corresponding to each directory system is stored in a data table, which is referred to as a directory data table herein. The directory data table corresponding to each directory system may be stored in the database corresponding to that directory system. The directory data table is mounted under the corresponding directory. The directory system may be application software deployed on a terminal (e.g., server, personal computer, etc.). Different directory systems may be deployed on different terminals.
Assume that in the multi-level directory shown in FIG. 1, level 3 directory 1 has data table C1 mounted thereon, level 3 directory 2 has data table C2 mounted thereon, and level 2 directory 2 has data table B2 mounted thereon. In the related technology, a directory system of a 3-level directory 1 and a directory system of a 3-level directory 2 report a data table C1 and a data table C2 to the directory system of the 2-level directory 1 respectively; the directory system of the level 2 directory 1 summarizes the data table C1 and the data table C2 to form a data table B1 of the level 2 directory 1; the directory system of level 2 directory 1 and the directory system of level 2 directory 2 report data sheet B1 and data sheet B2 to the directory system of level 1 directory 1, respectively, and the directory system of level 1 directory 1 summarizes data sheet B1 and data sheet B2 to form data sheet a1 of level 1 directory 1.
During the process of reporting and processing the directory data, the directory data can be tampered for technical reasons or human reasons.
For example, it is assumed that in the directory data table of the multi-level directory shown in fig. 1, the identity card number is used as the primary key, and the personal annual income is recorded in each directory data table, where the same identity card number x exists in data table C1 and data table C2, the personal annual income corresponding to the identity card number x in data table C1 is a, and the personal annual income corresponding to the identity card number x in data table C2 is b. If the directory system of the level 2 directory 1 adopts an overlay aggregation mode in the aggregation process of the data table C1 and the data table C2, the personal annual income corresponding to the identification number x in the data table B1 is a or B (the correct personal annual income data should be a + B). After the directory system of the level 2 directory 1 reports the data table B1 to the directory system of the level 1 directory 1, the personal annual income corresponding to the identification number x in the data table a1 of the level 1 directory 1 is consistent with the personal annual income corresponding to the identification number x in the data table B1, so that the personal annual income data corresponding to the identification number x in the data table a1 of the level 1 directory 1 is wrong, and thus, the personal annual income data corresponding to the identification number x in the data table a1 of the level 1 directory 1 is tampered for technical reasons.
In view of the foregoing problems, embodiments of the present invention provide a directory reporting method capable of preventing directory data from being tampered. The directory reporting method may be a function of the directory system.
The following describes the directory reporting method of the present invention in detail by way of examples.
Fig. 2 is a flowchart illustrating a directory reporting method according to an embodiment of the present invention. The directory reporting method of the embodiment of the invention can be applied to any directory system in a multi-level directory system, such as the directory system corresponding to each level of directory shown in fig. 1. As shown in fig. 2, in this embodiment, the method for reporting a directory may include:
s201, when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information; the target field is a field in a directory data table of the current-level directory system, which is specified and protected by the previous-level directory system of the current-level directory system.
S202, generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information and the target directory system information.
S203, reporting the first directory data source data table to a higher-level directory system of the current-level directory system.
In one example, the multi-level directory system includes at least a three-level directory system; when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information, which may include:
and when the preset conditions are met, acquiring original data information corresponding to the target field in a cross-stage manner and reporting target directory system information of the original data information.
The cross-level means that the level difference between the current-level directory system and the target directory system where the original data information is located is at least larger than 2. For example, the level 1 directory system acquires the original data information from the level 3 directory system, and the level 2 directory system acquires the original data information from the level 5 directory system, which are all cross-level acquired original data information.
In this embodiment, the multi-level directory system may form an acquisition link according to the data blooding margin, and acquire the original data information by linkage acquisition. And can realize the combination of multiple tables to be summarized into one table.
In this embodiment, the preset condition may be: and after the directory data table of the current-level directory system is released to the previous-level directory system, receiving requirement information sent by the previous-level directory system, wherein the requirement information comprises the target field, and the requirement information is used for indicating the uploading of original data information of the target field.
For example, in the multi-level directory system corresponding to the multi-level directory shown in fig. 1, after the directory system of the 2-level directory 1 issues the data table B1 to the directory system of the 1-level directory 1, the directory system of the 1-level directory 1 approves the data table B1. Upon approval, a protection attribute may be selected for a portion of the fields of data table B1, and the fields in data table B1 having the protection attribute are the target fields.
Then, the directory system of the level 1 directory 1 may send requirement information to the directory system of the level 2 directory 1, where the requirement information includes a target field (i.e., a field to be protected in the directory data table), and the requirement information is used to indicate that the original data information of the target field is uploaded. After the directory system of the level 2 directory 1 receives the requirement information sent by the previous level directory system, that is, the preset condition is considered to be satisfied, the directory system of the level 2 directory 1 may execute the method flow of the embodiment shown in fig. 2.
The target field is a field in a directory data table of the current-level directory system.
The original data information corresponding to the target field refers to data in an original source data table corresponding to the data in the target field, where the original source data table is a summary data table, not a detail data table.
When the directory data tables are recorded in each level of directory system, the attribute identifiers of the data tables can be set for the directory data tables, and the summarized data tables and the detailed data tables are distinguished through the attribute identifiers of the data tables, so that the directory system can quickly identify the correct data tables when looking up the original source data tables. The data table attribute identification may include a summary data table and a detail data table.
In step S201, acquiring the original data information corresponding to the target field may include:
and acquiring or collecting original data information corresponding to the target field in a cross-stage manner.
The target directory system for reporting the original data information refers to a directory system corresponding to the original source data table.
For example, in the foregoing example, assuming that the field "personal annual income" in data table B1 is a target field, i.e., a field that needs to be protected, as can be seen from the blood relationship of data table B1, the data in data table B1 is derived from data table C1 and data table C2, and data table C1 and data table C2 are all summarized data tables of the first record "personal annual income" data, the raw data information corresponding to the field "personal income" in data table B1 is the "personal income" data recorded in data table C1 and data table C2. At this time, the target directory system is a directory system corresponding to the 3-level directory 1 (directory data table is data table C1) and a directory system corresponding to the 3-level directory 2 (directory data table is data table C2).
Assuming that, on the basis of the multi-level directory shown in fig. 1, a 4-level directory is further included, the 4-level directory is the lowest level directory, and the data table C1 corresponding to the 3-level directory 1 is derived from the data table D1 corresponding to the 4-level directory 1 and the data table D2 corresponding to the 4-level directory 2, the original data information corresponding to the field "personal annual income" in the data table B1 at this time is the "personal annual income" data recorded in the data tables D1, D2 and C2. At this time, the target directory system is a directory system corresponding to the 4-level directory 1 (directory data table is data table D1), a directory system corresponding to the 4-level directory 2 (directory data table is data table D2), and a directory system corresponding to the 3-level directory 2 (directory data table is data table C2). At this time, the level 2 directory 1 may obtain the original data information from the directory system corresponding to the level 4 directory 1, the directory system corresponding to the level 4 directory 2, and the directory system corresponding to the level 3 directory 2, where the obtaining of the original data information from the directory system corresponding to the level 4 directory 1 and the directory system corresponding to the level 4 directory 2 is cross-level obtaining.
In an exemplary implementation process, acquiring original data information corresponding to a target field and reporting target directory system information of the original data information includes:
determining an original source data table of original data information corresponding to the target field according to the data table blood relationship of the current-level directory system; the original source data table is a summarized data table for recording the original data information at the earliest time;
searching a first field corresponding to a target field from the source data table;
extracting original data information corresponding to a target field from the first field;
and determining target directory system information according to the directory system reporting the source data table.
For example, the relationship between the aforementioned data table B1 is as follows:
data table C1 → data table B1;
data Table C2 → data Table B1.
Then the original source data tables of the original data information corresponding to the destination field "personal annual income" in the data table B1 at this time are data table C1 and data table C2; the first field is the "personal annual income" field in data table C1 and data table C2.
In the case of inclusion of level 4 directory 1 and level 4 directory 2, the relationship of the blooding borders of data table B1 is as follows:
data table D1 → data table C1 → data table B1;
data table D2 → data table C1 → data table B1;
data Table C2 → data Table B1.
The original source data tables of the original data information corresponding to the destination field "personal annual income" in the data table B1 at this time are data table D1, data table D2 and data table C2; the first field is the "personal annual income" field in data table D1, data table D2, and data table C2.
In an exemplary implementation, generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information, and the target directory system information may include:
copying the contents of the directory data table of the current-level directory system to the intermediate table;
adding a first target column and a second target column in the intermediate table;
and writing the original data information into the first target column, and writing the target directory system information into the second target column to obtain a first directory data source data table.
For example, for the directory data table B1 of the directory system corresponding to the aforementioned level 2 directory 1, the target field is "personal annual income", the content in the data table B1 is copied into the data table B1 ', and 2 columns are added to the data table B1', wherein the field of one column is "original data" for recording original data information, and the field of the other column is "target directory system" for recording target directory system information. The resulting data table B1' is the first directory data source data table corresponding to the data table B1.
Assume that the fields of data table B1 are as shown in table 1:
TABLE 1
Identity card number Personal annual income
x 80000
y 100000
The fields of data table B1' are as shown in table 2:
TABLE 2
Identity card number Personal annual income Raw data Target directory system
x 80000 80000 Level 3 directory 1
x 80000 50000 Level 3 directory 2
y 10000 100000 Level 3 directory 2
In table 1, "personal annual income" data corresponding to the identification number x is 8000, and the original data corresponding to the "personal annual income" data of the identification number x cannot be known from table 1.
In table 2, the identification number x corresponds to 2 "personal annual income" data, one "personal annual income" data is derived from data table C1 (corresponding to category 1 of level 3), the other "personal annual income" data is derived from data table C2 (corresponding to category 2 of level 3), and table 2 records the corresponding original data of the data in the "personal annual income" field.
In one exemplary implementation, the method may further include:
receiving a second directory data source data table reported by a next-level directory system of the current-level directory system, wherein the second directory data source data table comprises a first target column and a second target column; the data in the first target column is original data information corresponding to a target field of a directory data table of the directory system at the current level; the data in the second target column is target directory system information for reporting the original data information;
detecting data of a target field in a directory data table of the directory system of the current level according to original data information in a first target column in the second directory data source data table and target directory system information in a second target column;
and if the data of the target field in the directory data table is detected to be not matched with the original data information in the first target column and the target directory system information in the second target column in the second directory data source data table, determining that the data is abnormal data.
For example. Assuming that the present-level directory system is a directory system corresponding to the 1-level directory 1, the next-level directory system of the present-level directory system includes a directory system corresponding to the 2-level directory 1 and a directory system corresponding to the 2-level directory 2. The directory system corresponding to the level 2 directory 1 reports the data table B1 ' shown in table 2 to the directory system corresponding to the level 1 directory 1, the directory system corresponding to the level 1 directory 1 detects data in the "personal annual income" field according to data in the "original data" column and the "target directory system" column in the data table B1 ' (shown in table 2), determines whether the two data are matched, and if the two data are matched (for example, the "personal annual income" data corresponding to the identity number y in the data table B1 shown in table 1 is 100000, and the "original data" corresponding to the identity number y in the data table B1 ' shown in table 2 is 100000), it is determined that the data corresponding to the identity number y in the "personal annual income" field is correct data and has not been tampered; if the data are not matched (for example, the data of "personal annual income" corresponding to the identification number x in the data table B1 shown in table 1 is 80000, but the data of "original data" corresponding to the identification number x in the data table B1' shown in table 2 is 80000 and 50000), it is indicated that the data corresponding to the identification number x in the field of "personal annual income" is abnormal data, and the data is tampered.
When abnormal data are detected, the abnormal data can be further output and presented to a data developer, and the data developer further carries out manual judgment and investigation.
According to the directory reporting method provided by the embodiment of the invention, when the preset condition is met, the original data information corresponding to the target field and the target directory system information for reporting the original data information are obtained, the first directory data source data table is generated according to the directory data table of the current-level directory system, the original data information and the target directory system information, and the first directory data source data table is reported to the previous-level directory system of the current-level directory system, so that the directory system can check the data of the target field according to the original data information corresponding to the target field in the directory data table and the target directory system information, and the directory data is prevented from being tampered.
Based on the above method embodiment, the embodiment of the present invention further provides corresponding apparatus, device, and storage medium embodiments.
Fig. 3 is a functional block diagram of a directory reporting apparatus according to an embodiment of the present invention. The directory reporting device provided by the embodiment of the invention can be applied to any directory system in a multi-level directory system. As shown in fig. 3, in this embodiment, the catalog reporting apparatus may include:
an obtaining module 310, configured to obtain, when a preset condition is met, original data information corresponding to a target field and target directory system information for reporting the original data information; the target field is a field in a directory data table of the current-level directory system, which is specified and protected by the previous-level directory system of the current-level directory system;
a generating module 320, configured to generate a first directory data source data table according to the directory data table of the current-level directory system, the original data information, and the target directory system information;
the reporting module 330 is configured to report the first directory data source data table to a higher-level directory system of the current-level directory system.
In an exemplary implementation process, the obtaining module 310 is specifically configured to:
determining an original source data table of original data information corresponding to the target field according to the data table blood relationship of the current-level directory system; the original source data table is a summarized data table for recording the original data information at the earliest time;
searching a first field corresponding to a target field from the source data table;
extracting original data information corresponding to a target field from the first field;
and determining target directory system information according to the directory system reporting the source data table.
In an exemplary implementation process, the generating module 320 is specifically configured to:
copying the contents of the directory data table of the current-level directory system to the intermediate table;
adding a first target column and a second target column in the intermediate table;
and writing the original data information into the first target column, and writing the target directory system information into the second target column to obtain a first directory data source data table.
In an exemplary implementation, the method further includes:
the receiving module is used for receiving a second directory data source data table reported by a next-level directory system of the current-level directory system, wherein the second directory data source data table comprises a first target column and a second target column; the data in the first target column is original data information corresponding to a target field of a directory data table of the directory system at the current level; the data in the second target column is target directory system information for reporting the original data information;
the detection module is used for detecting the data of the target field in the directory data table of the directory system at the current level according to the original data information in the first target column in the second directory data source data table and the target directory system information in the second target column;
and the determining module is used for determining that the data is abnormal data if the data of the target field in the directory data table is detected to be not matched with the original data information in the first target column and the target directory system information in the second target column in the second directory data source data table.
In an exemplary implementation process, the preset conditions are:
and after the directory data table of the current-level directory system is released to the previous-level directory system, receiving requirement information sent by the previous-level directory system, wherein the requirement information comprises the target field, and the requirement information is used for indicating the uploading of original data information of the target field.
In one exemplary implementation, the multi-level directory system includes at least a three-level directory system; when the preset condition is satisfied, the obtaining module 310 is specifically configured to:
and when the preset conditions are met, acquiring original data information corresponding to the target field in a cross-stage manner and reporting target directory system information of the original data information.
The embodiment of the invention also provides the electronic equipment. Fig. 4 is a hardware structure diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 4, the electronic apparatus includes: an internal bus 401, and a memory 402, a processor 403, and an external interface 404 connected by the internal bus, wherein:
the memory 402 is configured to store a machine-readable instruction corresponding to the directory reporting logic;
the processor 403 is configured to read the machine-readable instructions in the memory 402 and execute the instructions to implement the following operations:
when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information; the target field is a field in a directory data table of the current-level directory system, which is specified and protected by the previous-level directory system of the current-level directory system;
generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information and the target directory system information;
and reporting the first directory data source data table to a higher-level directory system of the current-level directory system.
In an exemplary implementation process, acquiring original data information corresponding to a target field and reporting target directory system information of the original data information includes:
determining an original source data table of original data information corresponding to the target field according to the data table blood relationship of the current-level directory system; the original source data table is a summarized data table for recording the original data information at the earliest time;
searching a first field corresponding to a target field from the source data table;
extracting original data information corresponding to a target field from the first field;
and determining target directory system information according to the directory system reporting the source data table.
In an exemplary implementation, generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information, and the target directory system information includes:
copying the contents of the directory data table of the current-level directory system to the intermediate table;
adding a first target column and a second target column in the intermediate table;
and writing the original data information into the first target column, and writing the target directory system information into the second target column to obtain a first directory data source data table.
In an exemplary implementation, the method further includes:
receiving a second directory data source data table reported by a next-level directory system of the current-level directory system, wherein the second directory data source data table comprises a first target column and a second target column; the data in the first target column is original data information corresponding to a target field of a directory data table of the directory system at the current level; the data in the second target column is target directory system information for reporting the original data information;
detecting data of a target field in a directory data table of the directory system of the current level according to original data information in a first target column in the second directory data source data table and target directory system information in a second target column;
and if the data of the target field in the directory data table is detected to be not matched with the original data information in the first target column and the target directory system information in the second target column in the second directory data source data table, determining that the data is abnormal data.
In an exemplary implementation process, the preset conditions are:
and after the directory data table of the current-level directory system is released to the previous-level directory system, receiving requirement information sent by the previous-level directory system, wherein the requirement information comprises the target field, and the requirement information is used for indicating the uploading of original data information of the target field.
In one exemplary implementation, the multi-level directory system includes at least a three-level directory system; when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information, wherein the method comprises the following steps:
and when the preset conditions are met, acquiring original data information corresponding to the target field in a cross-stage manner and reporting target directory system information of the original data information.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements the following operations:
when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information; the target field is a field in a directory data table of the current-level directory system, which is specified and protected by the previous-level directory system of the current-level directory system;
generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information and the target directory system information;
and reporting the first directory data source data table to a higher-level directory system of the current-level directory system.
In an exemplary implementation process, acquiring original data information corresponding to a target field and reporting target directory system information of the original data information includes:
determining an original source data table of original data information corresponding to the target field according to the data table blood relationship of the current-level directory system; the original source data table is a summarized data table for recording the original data information at the earliest time;
searching a first field corresponding to a target field from the source data table;
extracting original data information corresponding to a target field from the first field;
and determining target directory system information according to the directory system reporting the source data table.
In an exemplary implementation, generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information, and the target directory system information includes:
copying the contents of the directory data table of the current-level directory system to the intermediate table;
adding a first target column and a second target column in the intermediate table;
and writing the original data information into the first target column, and writing the target directory system information into the second target column to obtain a first directory data source data table.
In an exemplary implementation, the method further includes:
receiving a second directory data source data table reported by a next-level directory system of the current-level directory system, wherein the second directory data source data table comprises a first target column and a second target column; the data in the first target column is original data information corresponding to a target field of a directory data table of the directory system at the current level; the data in the second target column is target directory system information for reporting the original data information;
detecting data of a target field in a directory data table of the directory system of the current level according to original data information in a first target column in the second directory data source data table and target directory system information in a second target column;
and if the data of the target field in the directory data table is detected to be not matched with the original data information in the first target column and the target directory system information in the second target column in the second directory data source data table, determining that the data is abnormal data.
In an exemplary implementation process, the preset conditions are:
and after the directory data table of the current-level directory system is released to the previous-level directory system, receiving requirement information sent by the previous-level directory system, wherein the requirement information comprises the target field, and the requirement information is used for indicating the uploading of original data information of the target field.
In one exemplary implementation, the multi-level directory system includes at least a three-level directory system; when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information, wherein the method comprises the following steps:
and when the preset conditions are met, acquiring original data information corresponding to the target field in a cross-stage manner and reporting target directory system information of the original data information.
For the device and apparatus embodiments, as they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements 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 description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (14)

1. A directory reporting method is applied to any one of multi-level directory systems, and the method comprises the following steps:
when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information; the target field is a field in a directory data table of the current-level directory system, which is specified and protected by the previous-level directory system of the current-level directory system;
generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information and the target directory system information;
and reporting the first directory data source data table to a higher-level directory system of the current-level directory system.
2. The method of claim 1, wherein obtaining original data information corresponding to a target field and target directory system information for reporting the original data information comprises:
determining an original source data table of original data information corresponding to the target field according to the data table blood relationship of the current-level directory system; the original source data table is a summarized data table for recording the original data information at the earliest time;
searching a first field corresponding to a target field from the source data table;
extracting original data information corresponding to a target field from the first field;
and determining target directory system information according to the directory system reporting the source data table.
3. The method of claim 1, wherein generating a first directory data source data table from the directory data table of the current directory system, the original data information, and the target directory system information comprises:
copying the contents of the directory data table of the current-level directory system to the intermediate table;
adding a first target column and a second target column in the intermediate table;
and writing the original data information into the first target column, and writing the target directory system information into the second target column to obtain a first directory data source data table.
4. The method of claim 1, further comprising:
receiving a second directory data source data table reported by a next-level directory system of the current-level directory system, wherein the second directory data source data table comprises a first target column and a second target column; the data in the first target column is original data information corresponding to a target field of a directory data table of the directory system at the current level; the data in the second target column is target directory system information for reporting the original data information;
detecting data of a target field in a directory data table of the directory system of the current level according to original data information in a first target column in the second directory data source data table and target directory system information in a second target column;
and if the data of the target field in the directory data table is detected to be not matched with the original data information in the first target column and the target directory system information in the second target column in the second directory data source data table, determining that the data is abnormal data.
5. The method according to claim 1, wherein the preset condition is:
and after the directory data table of the current-level directory system is released to the previous-level directory system, receiving requirement information sent by the previous-level directory system, wherein the requirement information comprises the target field, and the requirement information is used for indicating the uploading of original data information of the target field.
6. The method of claim 1, wherein the multi-level directory system comprises at least a three-level directory system; when a preset condition is met, acquiring original data information corresponding to a target field and target directory system information for reporting the original data information, wherein the method comprises the following steps:
and when the preset conditions are met, acquiring original data information corresponding to the target field in a cross-stage manner and reporting target directory system information of the original data information.
7. A directory reporting apparatus is applied to any one of multi-level directory systems, and the apparatus comprises:
the acquisition module is used for acquiring original data information corresponding to a target field and target directory system information for reporting the original data information when a preset condition is met; the target field is a field in a directory data table of the current-level directory system, which is specified and protected by the previous-level directory system of the current-level directory system;
the generating module is used for generating a first directory data source data table according to the directory data table of the current-level directory system, the original data information and the target directory system information;
and the reporting module is used for reporting the first directory data source data table to a higher-level directory system of the current-level directory system.
8. The apparatus of claim 7, wherein the obtaining module is specifically configured to:
determining an original source data table of original data information corresponding to the target field according to the data table blood relationship of the current-level directory system; the original source data table is a summarized data table for recording the original data information at the earliest time;
searching a first field corresponding to a target field from the source data table;
extracting original data information corresponding to a target field from the first field;
and determining target directory system information according to the directory system reporting the source data table.
9. The apparatus of claim 7, wherein the generating module is specifically configured to:
copying the contents of the directory data table of the current-level directory system to the intermediate table;
adding a first target column and a second target column in the intermediate table;
and writing the original data information into the first target column, and writing the target directory system information into the second target column to obtain a first directory data source data table.
10. The apparatus of claim 7, further comprising:
the receiving module is used for receiving a second directory data source data table reported by a next-level directory system of the current-level directory system, wherein the second directory data source data table comprises a first target column and a second target column; the data in the first target column is original data information corresponding to a target field of a directory data table of the directory system at the current level; the data in the second target column is target directory system information for reporting the original data information;
the detection module is used for detecting the data of the target field in the directory data table of the directory system at the current level according to the original data information in the first target column in the second directory data source data table and the target directory system information in the second target column;
and the determining module is used for determining that the data is abnormal data if the data of the target field in the directory data table is detected to be not matched with the original data information in the first target column and the target directory system information in the second target column in the second directory data source data table.
11. The apparatus of claim 7, wherein the preset condition is:
and after the directory data table of the current-level directory system is released to the previous-level directory system, receiving requirement information sent by the previous-level directory system, wherein the requirement information comprises the target field, and the requirement information is used for indicating the uploading of original data information of the target field.
12. The apparatus of claim 7, wherein the multi-level directory system comprises at least a three-level directory system; the acquisition module is specifically configured to:
and when the preset conditions are met, acquiring original data information corresponding to the target field in a cross-stage manner and reporting target directory system information of the original data information.
13. An electronic device, comprising:
a memory for storing executable instructions of the processor;
the processor is used for executing the instructions to realize the method of any one of claims 1 to 6.
14. A computer-readable storage medium having stored thereon computer instructions which, when executed, implement the method of any one of claims 1 to 6.
CN202110699278.2A 2021-06-23 2021-06-23 Catalog reporting method and device Active CN113342816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110699278.2A CN113342816B (en) 2021-06-23 2021-06-23 Catalog reporting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110699278.2A CN113342816B (en) 2021-06-23 2021-06-23 Catalog reporting method and device

Publications (2)

Publication Number Publication Date
CN113342816A true CN113342816A (en) 2021-09-03
CN113342816B CN113342816B (en) 2023-07-11

Family

ID=77478220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110699278.2A Active CN113342816B (en) 2021-06-23 2021-06-23 Catalog reporting method and device

Country Status (1)

Country Link
CN (1) CN113342816B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140095458A1 (en) * 2012-09-28 2014-04-03 Samsung Electronics Co., Ltd. Storage device for storing directory entries, directory entry lookup apparatus and method, and storage medium storing directory entry lookup program
CN108228694A (en) * 2017-06-30 2018-06-29 勤智数码科技股份有限公司 Catalogue generation method based on refining data item
US20180218020A1 (en) * 2017-01-30 2018-08-02 Salesforce.Com, Inc. Detection of duplicate values during index generation
US10216769B1 (en) * 2013-09-03 2019-02-26 PMS Systems Corporation Asset catalog management methods and systems
CN109471839A (en) * 2018-10-29 2019-03-15 杭州数梦工场科技有限公司 Inventory management of resources method and device
CN110704455A (en) * 2019-10-17 2020-01-17 北京中油瑞飞信息技术有限责任公司 Method, device, terminal and storage medium for generating data asset directory
CN111581211A (en) * 2020-04-30 2020-08-25 平安医疗健康管理股份有限公司 Data table updating method, device, equipment and computer readable storage medium
US20200285625A1 (en) * 2019-03-04 2020-09-10 Hitachi, Ltd. Data selection system and data selection method
CN111913954A (en) * 2020-06-20 2020-11-10 杭州城市大数据运营有限公司 Intelligent data standard catalog generation method and device
CN112181769A (en) * 2020-09-28 2021-01-05 平安普惠企业管理有限公司 Application abnormal data acquisition method and device, computer equipment and storage medium
CN112685414A (en) * 2020-12-29 2021-04-20 勤智数码科技股份有限公司 Method and device for associating information resource catalog with data resource
CN112817984A (en) * 2021-02-22 2021-05-18 杭州数梦工场科技有限公司 Data processing method and device, and data source obtaining method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140095458A1 (en) * 2012-09-28 2014-04-03 Samsung Electronics Co., Ltd. Storage device for storing directory entries, directory entry lookup apparatus and method, and storage medium storing directory entry lookup program
US10216769B1 (en) * 2013-09-03 2019-02-26 PMS Systems Corporation Asset catalog management methods and systems
US20180218020A1 (en) * 2017-01-30 2018-08-02 Salesforce.Com, Inc. Detection of duplicate values during index generation
CN108228694A (en) * 2017-06-30 2018-06-29 勤智数码科技股份有限公司 Catalogue generation method based on refining data item
CN109471839A (en) * 2018-10-29 2019-03-15 杭州数梦工场科技有限公司 Inventory management of resources method and device
US20200285625A1 (en) * 2019-03-04 2020-09-10 Hitachi, Ltd. Data selection system and data selection method
CN110704455A (en) * 2019-10-17 2020-01-17 北京中油瑞飞信息技术有限责任公司 Method, device, terminal and storage medium for generating data asset directory
CN111581211A (en) * 2020-04-30 2020-08-25 平安医疗健康管理股份有限公司 Data table updating method, device, equipment and computer readable storage medium
CN111913954A (en) * 2020-06-20 2020-11-10 杭州城市大数据运营有限公司 Intelligent data standard catalog generation method and device
CN112181769A (en) * 2020-09-28 2021-01-05 平安普惠企业管理有限公司 Application abnormal data acquisition method and device, computer equipment and storage medium
CN112685414A (en) * 2020-12-29 2021-04-20 勤智数码科技股份有限公司 Method and device for associating information resource catalog with data resource
CN112817984A (en) * 2021-02-22 2021-05-18 杭州数梦工场科技有限公司 Data processing method and device, and data source obtaining method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张辉帅;: "基于列存储的公共信用档案数据管理设计与实现", 微型电脑应用, no. 12 *
田喜平;牛红惠;裴世凯;: "目录树的XML文档的自动生成", 电脑知识与技术, no. 34 *

Also Published As

Publication number Publication date
CN113342816B (en) 2023-07-11

Similar Documents

Publication Publication Date Title
CN111460312A (en) Method and device for identifying empty-shell enterprise and computer equipment
CN111242793B (en) Medical insurance data abnormality detection method and device
CN112162999A (en) Big data processing method based on interactive cloud computing and artificial intelligence server
CN110046155B (en) Method, device and equipment for updating feature database and determining data features
CN111400695B (en) Equipment fingerprint generation method, device, equipment and medium
CN112817984B (en) Data processing method and device, and data source acquisition method and device
CN116094849B (en) Application access authentication method, device, computer equipment and storage medium
CN116302079B (en) Service data processing method and device, electronic equipment and storage medium
CN110489416B (en) Information storage method based on data processing and related equipment
CN113342816A (en) Directory reporting method and device
Tilton Porting an iterative parallel region growing algorithm from the MPP to the MasPar MP-1
CN110704620A (en) Method and device for identifying same entity based on knowledge graph
CN106569731B (en) Limit storage method, device and equipment
CN112231232A (en) Method, device and equipment for determining test data model and generating test data
CN113360491B (en) Data quality inspection method, device, electronic equipment and storage medium
CN110659501A (en) Vulnerability processing tracking method and device, computer system and readable storage medium
CN114756440B (en) Data writing method, device and equipment of smart card and storage medium
CN111566634B (en) Storage association engine
CN115827324B (en) Data backup method, network node and system
CN115099922B (en) Financial data query method, system, readable storage medium and computer equipment
US20220100750A1 (en) Data shape confidence
CN109408511B (en) Method for analyzing meaning of data table field in database
CN116188142A (en) Data acquisition method, system and device based on service request and electronic equipment
CN113760930A (en) Method, device, equipment and storage medium for determining running data in business system
CN117171155A (en) Data cleaning method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant